// JavaScript Document
/* PRODUCT ROTATING LIST START */

var productImages = new Array(
"<div style=\"width:225px; height:211px; background:url(images/ProductBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:100px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateHeading\">Open Text Vendor Invoice Management <em>for SAP&reg; Solutions</em></span><br><span class=\"RotateText\">extends SAP ERP with a comprehensive, end-to-end solution for optimizing accounts payable processes.</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:25px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"global/sol-products/sol-pro-extensions-sap/pro-ll-sap-vim.htm\">MORE INFO &gt;&gt;</a></div></div>",
"<div style=\"width:225px; height:211px; background:url(images/ProductBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:100px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateHeading\">Open Text ECM Suite</span><br><span class=\"RotateText\">brings together the broad range of content management capabilities needed to securely manage all types of enterprise information</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:25px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/2/sol-products/sol-pro-open-text-ecm-suite.htm\">MORE INFO &gt;&gt;</a></div></div>",
"<div style=\"width:225px; height:211px; background:url(images/ProductBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:100px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateHeading\">Open Text Email Management</span><br><span class=\"RotateText\">reduces the costs of managing email and mitigates the compliance risks associated with it.</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:25px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/2/global/sol-products/sol-pro-email.htm\">MORE INFO &gt;&gt;</a></div></div>",
"<div style=\"width:225px; height:211px; background:url(images/ProductBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:100px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateHeading\">Open Text Web Solutions</span><br><span class=\"RotateText\">Enable you to create, manage and deliver the content that drives business.</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:25px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/2/global/sol-products/pro-wcm.htm\">MORE INFO &gt;&gt;</a></div></div>"
);
		var curPrvw = 0;
		function scrollPrvwDiv(divID, nextPrev) {
			var numPrvws = productImages.length;
			if(nextPrev==-1) { //if showing previous
				if(curPrvw!=0) { //if not currently showing the first in the array, show the current minus one
					curPrvw=curPrvw-1;
					document.getElementById(divID).innerHTML=productImages[curPrvw];			
				}
				else { //if currently showing the first, show the last 
					curPrvw=numPrvws-1;
					document.getElementById(divID).innerHTML=productImages[curPrvw];
				}
			}
			else if(nextPrev==1) { //if showing next
				if(curPrvw==numPrvws-1) { //if showing the last, show the first
					curPrvw=0;
					document.getElementById(divID).innerHTML=productImages[curPrvw];				
				}
				else { //if not showing the last, show the next
					curPrvw=curPrvw+1;				
					document.getElementById(divID).innerHTML=productImages[curPrvw];				
				}
			}
		}
		function updatePrvwDiv(divID, rssImgNum) {
			curPrvw = rssImgNum;
			document.getElementById(divID).innerHTML=productImages[rssImgNum];
		}
/* PRODUCT ROTATING LIST END */

/* CUSTOMER ROTATING LIST START */

var featureImages = new Array(
"<div style=\"width:225px; height:165px; background:url(images/CustomerBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:60px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateText\"><b>Hatch  and Open Text ECM&#8482;</b><br />Hatch looked to Open Text's Enterprise 2.0 to address two of their critical business concerns.</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:19px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/download/livelinkdownload.html?path=/corporate/customer/casestudy/hatch-ss.pdf\">MORE INFO &gt;&gt;</a></div></div>",
"<div style=\"width:225px; height:165px; background:url(images/CustomerBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:60px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateText\"><b>Santee Cooper</b><br />Santee Cooper automates business processes and improves productivity with Open Text Records Management</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:19px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/download/livelinkdownload.html?path=/corporate/customer/casestudy/SanteCooper_ss.pdf\">MORE INFO &gt;&gt;</a></div></div>",
"<div style=\"width:225px; height:165px; background:url(images/CustomerBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:60px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateText\"><b>CARE Canada</b><br />CARE Canada creates a knowledge repository using Open Text ECM to empower women globally</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:19px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/download/livelinkdownload.html?path=/corporate/customer/casestudy/care-canada-powerful-ss.pdf \">MORE INFO &gt;&gt;</a></div></div>",
"<div style=\"width:225px; height:165px; background:url(images/CustomerBG.gif);\"><div style=\"width:224px; height:61px;\"></div><div style=\"width:204px; height:60px; padding-left:10px; padding-top:10px; padding-right:10px;)\"><span class=\"RotateText\"><b>Buncombe County</b><br />Buncombe County selects Open Text to reduce storage requirements and improve efficiencies</span></div><div align=\"right\" class=\"RotateLinks\" style=\"width:219px; height:19px; padding-top:10px; padding-bottom:5px; padding-right:5px;)\"><a href=\"http://www.opentext.com/download/livelinkdownload.html?path=/corporate/customer/casestudy/MACU_Buncombe_County_ss.pdf\">MORE INFO &gt;&gt;</a></div></div>"
);
		var curPrvw = 0;
		function scrollPrvwCustomerDiv(divID, nextPrev) {
			var numPrvws = featureImages.length;
			if(nextPrev==-1) { //if showing previous
				if(curPrvw!=0) { //if not currently showing the first in the array, show the current minus one
					curPrvw=curPrvw-1;
					document.getElementById(divID).innerHTML=featureImages[curPrvw];			
				}
				else { //if currently showing the first, show the last 
					curPrvw=numPrvws-1;
					document.getElementById(divID).innerHTML=featureImages[curPrvw];
				}
			}
			else if(nextPrev==1) { //if showing next
				if(curPrvw==numPrvws-1) { //if showing the last, show the first
					curPrvw=0;
					document.getElementById(divID).innerHTML=featureImages[curPrvw];				
				}
				else { //if not showing the last, show the next
					curPrvw=curPrvw+1;				
					document.getElementById(divID).innerHTML=featureImages[curPrvw];				
				}
			}
		}
		function updatePrvwDiv(divID, rssImgNum) {
			curPrvw = rssImgNum;
			document.getElementById(divID).innerHTML=featureImages[rssImgNum];
		}
/* CUSTOMER ROTATING LIST END */

/* EVENT ROTATING LIST END */
		var eventImages = new Array('<div style="width:225px; height:197px;"><a href="http://opentext.com/contentworld/2010/"><img src="images/cw2010.jpg" width="225" height="197" alt="Content World 2010" /></a></div>',
									'<div style="width:225px; height:197px;"><a href="http://communities.opentext.com/go/ContentWorld365Series"><img src="images/cw365.jpg" width="225" height="197" alt="Content World 365 - Webinars" /></div>',
									'<div style="width:225px; height:197px;"><a href="http://www.opentext.com/2/global/events-contentdays"><img src="images/cd2010.jpg" width="225" height="197" alt="Content Days" /></div>'
);
		var curPrvw = 0;
		function scrollPrvwEventDiv(divID, nextPrev) {
			var numPrvws = eventImages.length;
			if(nextPrev==-1) { //if showing previous
				if(curPrvw!=0) { //if not currently showing the first in the array, show the current minus one
					curPrvw=curPrvw-1;
					document.getElementById(divID).innerHTML=eventImages[curPrvw];			
				}
				else { //if currently showing the first, show the last 
					curPrvw=numPrvws-1;
					document.getElementById(divID).innerHTML=eventImages[curPrvw];
				}
			}
			else if(nextPrev==1) { //if showing next
				if(curPrvw==numPrvws-1) { //if showing the last, show the first
					curPrvw=0;
					document.getElementById(divID).innerHTML=eventImages[curPrvw];				
				}
				else { //if not showing the last, show the next
					curPrvw=curPrvw+1;				
					document.getElementById(divID).innerHTML=eventImages[curPrvw];				
				}
			}
		}
		function updatePrvwDiv(divID, rssImgNum) {
			curPrvw = rssImgNum;
			document.getElementById(divID).innerHTML=eventImages[rssImgNum];
		}		
/* EVENT ROTATING LIST END */

document.observe("dom:loaded", function() {
	if (document.getElementById) {
		if (document.getElementById("FeatProduct")) {
			document.getElementById("FeatProduct").innerHTML=productImages[0];
		}
 		if (document.getElementById("FeatCustomer")) {
			document.getElementById("FeatCustomer").innerHTML=featureImages[0];
		}
 		if (document.getElementById("FeatEvent")) {
			document.getElementById("FeatEvent").innerHTML=eventImages[0];
		}
	}
});