function scriptStart()
{
//find page that is calling function
	var sPath = window.location.pathname;
	var pagename = sPath.substring(sPath.lastIndexOf('/') + 1);
//document.write(pagename);
	switch(pagename)
	{
		case 'parttem.htm':
		var body1 = 'Declude integrated Commtouchs Zero-Hour virus protection solutions and real-time spam blocking capabilities into Interceptor, our leading Email gateway security product. Using core technologies, including Recurrent Pattern Detection (RPD), the Commtouch Detection Center analyzes billions of Email messages per month to identify new spam and malware outbreaks within minutes of their introduction into the Internet.';
		var body2 = 'The integration of AVGs anti-virus scanner into our security software makes Declude more robust by increasing speed of scanning and ease-of-use with built in AVG support. Grisoft, founded in 1991, is focused on developing software solutions that provide protection from computer viruses.';
		var body3 = 'MailProtector uses Decludes security solution as the backbone of their managed services offering. Together, Declude and MailProtector work together to offer Decludes MailProtector managed services solution to offer clients an alternative to our Interceptor software solution.';
		var body4 = 'Decludes Security Suite is one of the leading spam filtering solutions for Smartermail. SmarterTools, the maker of Smartermail, is an information technology (IT) management software company that builds applications to simplify and automate the day-to-day operation of business.';
		var body5 = 'Message Sniffer plugs right into Decludes Security Suite for added protection. Using advance pattern matching and artificial intelligence technologies from MicroNeil Research, Message Sniffer applies thousands of heuristic tests to each incoming message in just a fraction of a second.';

		imagea1 = new Image();
		imagea1.src = 'http://www.declude.com/site/img/Partner/commtouch.gif';
		imagea2 = new Image();
		imagea2.src = 'http://www.declude.com/site/img/Partner/avg.gif';
		imagea3 = new Image();
		imagea3.src = 'http://www.declude.com/site/img/Partner/mailprotector.gif';
		imagea4 = new Image();
		imagea4.src = 'http://www.declude.com/site/img/Partner/Smartertools.gif';
		imagea5 = new Image();
		imagea5.src = 'http://www.declude.com/site/img/Partner/MessageSniffer.gif';
		imagea6 = new Image();
		imagea6.src = 'http://www.declude.com/site/img/Service/GearHostLogo.gif';
		imagea7 = new Image();
		imagea7.src = 'http://www.declude.com/site/img/Service/bdu.gif';
		imagea8 = new Image();
		imagea8.src = 'http://www.declude.com/site/img/Service/ServerTasticLogo.gif';
		imagea9 = new Image();
		imagea9.src = 'http://www.declude.com/site/img/Service/GearHostLogo.gif';
		imagea10 = new Image();
		imagea10.src = 'http://www.declude.com/site/img/Service/bdu.gif';
		//start rotation
	var expdate = new Date ();
	FixCookieDate (expdate); // Correct for Mac date bug - call only once for given Date object!
	expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); // 24 hrs from now 
	SetCookie ("bannerNum", "1", expdate);
			rotateimages();
		//break;
	};
	
};

function rotateimages(cookiecount) {
/*if (++bannerNum >5)
	bannerNum= 1;*/
	var expdate = new Date ();
	FixCookieDate (expdate); // Correct for Mac date bug - call only once for given Date object!
	expdate.setTime (expdate.getTime() + (24 * 60 * 60 * 1000)); // 24 hrs from now 
	var bannerNum = GetCookie("bannerNum")
		var body1 = 'Declude integrated Commtouchs Zero-Hour virus protection solutions and real-time spam blocking capabilities into Interceptor, our leading Email gateway security product. Using core technologies, including Recurrent Pattern Detection (RPD), the Commtouch Detection Center analyzes billions of Email messages per month to identify new spam and malware outbreaks within minutes of their introduction into the Internet.';
		var body2 = 'The integration of AVGs anti-virus scanner into our security software makes Declude more robust by increasing speed of scanning and ease-of-use with built in AVG support. Grisoft, founded in 1991, is focused on developing software solutions that provide protection from computer viruses.';
		var body3 = 'MailProtector uses Decludes security solution as the backbone of their managed services offering. Together, Declude and MailProtector work together to offer Decludes MailProtector managed services solution to offer clients an alternative to our Interceptor software solution.';
		var body4 = 'Decludes Security Suite is one of the leading spam filtering solutions for Smartermail. SmarterTools, the maker of Smartermail, is an information technology (IT) management software company that builds applications to simplify and automate the day-to-day operation of business.';
		var body5 = 'Message Sniffer plugs right into Decludes Security Suite for added protection. Using advance pattern matching and artificial intelligence technologies from MicroNeil Research, Message Sniffer applies thousands of heuristic tests to each incoming message in just a fraction of a second.';
	switch(bannerNum)
	{
	case 1:
		document.images["rotimage"].src = imagea2.src;
		document.getElementById('rotbody').innerHTML = body2 + 'Case1';
		document.images["rotimage1"].src = imagea7.src;
		DeleteCookie("bannerNum")
		SetCookie("bannerNum", "2", expdate);

		break;
	case 2:
		document.images["rotimage"].src = imagea3.src;
		document.getElementById('rotbody').innerHTML = body3 + 'Case2';
		document.images["rotimage1"].src = imagea8.src;
		SetCookie ("bannerNum", "3", expdate);

		break;
	case 3:
		document.images["rotimage"].src = imagea4.src;
		document.getElementById('rotbody').innerHTML = body4 + 'Case3';
		document.images["rotimage1"].src = imagea9.src;
		SetCookie ("bannerNum", "4", expdate);

		break;
	case 4:
		document.images["rotimage"].src = imagea5.src;
		document.getElementById('rotbody').innerHTML = body5 + 'Case4';
		document.images["rotimage1"].src = imagea10.src;
		SetCookie ("bannerNum", "5", expdate);
	
		break;
	case 5:
		document.images["rotimage"].src = imagea1.src;
		document.getElementById('rotbody').innerHTML = body1 + 'Case5';
		document.images["rotimage1"].src = imagea6.src;
		SetCookie ("bannerNum", "1", expdate);

		break;
	};
	/*document.getElementById("rotbody").innerHTML = 'New Text';*/
	/*alert(bannerNum)*/
	window.setTimeout("rotateimages();", 3000);
};
function pausecomp(millis)
{
var date = new Date();
var curDate = null;

do { curDate = new Date(); }
while(curDate-date < millis);
};