var r_text = new Array ();
r_text[0] = "<strong>March 2010: Prozone at KONTEH10</strong><br/> Prozone take part in Fair of employment and professional practice KONTEH10...";
r_text[1] = "<strong>March, 2009: Prozone at Cebit 2009</strong><br/>PROZONE had successful presentation of its BPM solutions at Cebit 2009...";
r_text[2] = "<strong>July, 2009: Prozone rebranding</strong><br/> Prozone decided to change its corporate identity. New Prozone identity including new logo, web site… should bring to us better and clear visual identity...";
r_text[3] = "<strong>December 2009: New eArchive version</strong><br/> New version of eArchive, Prozone software product for document capturing is published...";
r_text[4] = "<strong>December 2009: New eDocumentus version</strong><br/> New version of eDocumentus – Prozone software product for document and workflow management is published...";
r_text[5] = "<strong>August 2009: eDocumentus - Outlook integration</strong><br/> New Microsoft Outlook plugin supports full eDocumentus integration turning Outlook 2007 in a new feature-rich eDocumentus client...";
r_text[6] = "<strong>August 2009: Sales representatives in Nordic countries</strong><br/> Prozone has signed contract for sales activities in Nordic countries (Sweden, Norway, Denmark, Finland) with company Coordea from Sweden...";
r_text[7] = "<strong>January 2010: New Contract with Elektrovojvodina</strong><br/> Prozone extended cooperation with Elektrovojvodina from Novi Sad and singed new contract...";
r_text[8] = "<strong>January 2010: Contract with Province Government</strong><br/> eKonkurs project- Prozone has signed Contract with Province Government...";
r_text[9] = "<strong>June 2009: Prozone and eSolutions Maximo from Kuwait have signed a long-term outsourcing Agreement</strong><br/> A business agreement has been signed, according to which Prozone will provide engineering consulting services related to the development and support services in the project regarding implementation and customization of the IBM Maximo software system for a local client of eSolutions company in Kuwait...";

var r_text_count = 10;

var r_text_whole = new Array ();
r_text_whole[0] = "<strong>March 2010: Prozone at KONTEH10</strong><br/> Prozone take part in Fair of employment and professional practice KONTEH10, at the largest University in the Republic of Serbia, Faculty of Technical Sciences in Novi Sad. Prozone presented his software products: eDocumentus, eArchive and eDoc Process Editor to students and fair visitors.";
r_text_whole[1] = "<strong>March, 2009: Prozone at Cebit 2009</strong><br/> PROZONE had successful presentation of its BPM solutions at Cebit 2009. Prozone presented its solutions for utility companies that can empower them to efficiently manage all documentation and all processes related to organizing, creating, distributing and reviewing documents within the existing business processes. System also allows the company to dramatically improve its workflow process, by creating significant savings in man-working hours, thus providing an ever more efficient service to the company’s customers.";
r_text_whole[2] = "<strong>July, 2009: Prozone rebranding</strong><br/> Prozone decided to change its corporate identity. New Prozone identity including new logo, web site… should bring to us better and clear visual identity. We expect that new marketing campaign, as a part of company rebranding process, will help us to increase our sales activities especially in Europe and the Middle East markets.";
r_text_whole[3] = "<strong>December 2009: New eArchive version</strong><br/> New version of eArchive, Prozone software product for document capturing is published. Version 3.1 has improved uninstall procedure, keeps preferences per user, has capability for merging multiple scanned images into single pdf file and a lot more improvements.";
r_text_whole[4] = "<strong>December 2009: New eDocumentus version</strong><br/> New version of eDocumentus – Prozone software product for document and workflow management is published. Version 3.0 offers easier integration and extensibility into already existing systems, Integration of Outlook with eDocumentus Document Management and Ad hoc processes.";
r_text_whole[5] = "<strong>August 2009: eDocumentus - Outlook integration</strong><br/> New Microsoft Outlook plugin supports full eDocumentus integration turning Outlook 2007 in a new feature-rich eDocumentus client. Users can work with eDucumentus documents, get their task lists and use Outlook 2007 as an offline eDocumentus client. Ask our sales representatives for more details.  ";
r_text_whole[6] = "<strong>August 2009: Sales representatives in Nordic countries</strong><br/> Prozone has signed contract for sales activities in Nordic countries (Sweden, Norway, Denmark, Finland) with company Coordea from Sweden. We hope that cooperation with Coordea and Prozone’s experience in ECM projects will bring us new customers from Nordic region.";
r_text_whole[7] = "<strong>January 2010: New Contract with Elektrovojvodina</strong><br/> Prozone extended cooperation with Elektrovojvodina from Novi Sad and singed new contract. According to the contract, Prozone shall implement BPM procedures for case management, legal cases management. Solution will be based on Prozone software products: eDocumentus and eArchive.";
r_text_whole[8] = "<strong>January 2010: Contract with Province Government</strong><br/> eKonkurs project- Prozone has signed Contract with Province Government for creating application for online registration at opened competitions from Province Government.";
r_text_whole[9] = "<strong>June 2009: Prozone and eSolutions Maximo from Kuwait have signed a long-term outsourcing Agreement</strong><br/> A business agreement has been signed, according to which Prozone will provide engineering consulting services related to the development and support services in the project regarding implementation and customization of the IBM Maximo software system for a local client of eSolutions company in Kuwait. The agreement has been signed on the time & material basis for an offer of the initial set of IBM Maximo customization. Successful outcome of this project will provide Prozone the opportunity to take over the planned workload in other projects that this Kuwait-based company runs in the Gulf.";

var flash_name = new Array ();
flash_name[0] = "HomeP_earch_sfw2.swf";
flash_name[1] = "HomeP_eArh_altern_sfw2.swf";
flash_name[2] = "HomeP_edoc_sfw2.swf";
flash_name[3] = "HomeP_etrack_r_altern_sfw2.swf";
flash_name[4] = "HomeP_iso_9000_sfw2.swf";
var flash_name_count = 5;

var home_image_name = new Array ();
home_image_name[0] = "home-big0.jpg";
//home_image_name[1] = "home-big1.jpg";
var home_image_name_count = 1;


// redirect from select dropdown
function redirectToSelected(thisObj)
{
	window.open(thisObj.options[thisObj.selectedIndex].value,'_top');
}

function writeFlashOrImage(target) {
	var i = Math.floor(2*Math.random());

	if (i == 0) {
		writeFlash(target);
	}
	else {
		writeImage(target);
	}
}

// random flash
function writeFlash(target) {
	var i = Math.floor(flash_name_count*Math.random());

	if ($(target)) {
		$(target).innerHTML = "<object type=\"application/x-shockwave-flash\" width=\"944\" height=\"354\" data=\"flashfiles/" + flash_name[i] + "\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"flashfiles/" + flash_name[i] + "\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\" /><a href='http://www.prozone.rs'><img src=\"images/home-big.jpg\" alt=\"Fast Enough\"/></a></object>";

//		$(target).innerHTML = "<object type=\"application/x-shockwave-flash\" width=\"944\" height=\"354\" data=\"flashfiles/" + flash_name[i] + "\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"flashfiles/" + flash_name[i] + "\" /><param name=\"quality\" value=\"high\" /><param name=\"wmode\" value=\"transparent\" /><a href=\"http://www.adobe.com/go/getflashplayer\"><img src=\"http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif\" alt=\"Get Adobe Flash player\" /></a></object>";
	}
}

// random image
function writeImage(target) {
	var i = Math.floor(home_image_name_count*Math.random());

	if ($(target)) {
		$(target).innerHTML = "<img src=\"images/" + home_image_name[i] + "\" alt=\"Prozone Solutions\" />";
	}
}

// random news
function writeNews(target) {
	var i = Math.floor(r_text_count*Math.random());

	if ($(target)) {
		$(target).innerHTML = r_text[i] + "<div id=\"newsToolTip\" onmouseover=\"$(\'newsToolTipText\').style.display=\'inline\';return false;\" onmouseout=\"$(\'newsToolTipText\').style.display=\'none\';return false;\">...read whole news.<span id=\"newsToolTipText\"><div id=\"newsToolTipWrap\">" + r_text_whole[i] + "</div></span><div>";
	}
}

// all news
function writeAllNews(target) {
	var innerContent = "";
	for (i=0;i<r_text_count;i++) {
		innerContent += "<p>" + r_text[i] + "</p><div id=\"newsToolTip\" onmouseover=\"$(\'newsToolTipText\').style.display=\'inline\';return false;\" onmouseout=\"$(\'newsToolTipText\').style.display=\'none\';return false;\">MORE...<span id=\"newsToolTipText\">" + r_text[i] + "</span></div>";
	}
	if ($(target)) {
		$(target).innerHTML = innerContent;
	}
}