var count = 0;
var RotateTime;
var Feature = 1; // Feature to rotate 1 = Main  2 = Middle  3 = both

function MessageCycle(len){this.length=len;} 

MessageMain = new MessageCycle(3);
MessageMain[0] ="<a href='contest_winner.shtml' name='&lid=Spotlight_Link1'><img src='\/images\/banner_essaycontest2.jpg' alt='' width='542' height='192' border='0'><\/a>" ;
MessageMain[1] ="<a href='\/2005home\/product\/doccam\/portable\/v300p\/v300p.shtml' name='&lid=Spotlight_Link2'><img border='0' width='542' height='192' src='\/images\/banner_v300p.png' alt=''><\/a>";
MessageMain[2] ="<a href='\/2005home\/product\/dvr\/window\/window.shtml' name='&lid=Spotlight_Link3'><img border='0' width='542' height='192' src='\/images\/banner_hybrid.jpg' alt=''><\/a>";
MessageMain[3] ="<a href='\/2005home\/product\/tvtuner\/tvtuner.shtml' name='&lid=Spotlight_Link3'><img border='0' width='542' height='192' src='\/images\/banner_MCE.jpg' alt=''><\/a>";

//MessageMiddle = new MessageCycle(2);
//MessageMiddle[0] ="<A href='\/products\/security_nv7000.shtml' name='&lid=IMG-\/products\/security_nv7000.shtml'><IMG border='0' src='\/home\/images\/middle_4059.jpg' alt='CrossFire&trade; - Multiply &amp; Conquer -  Multi-GPU Power' width='284' height='174'><\/A>" ;
//MessageMiddle[1] ="<A href='\/products\/doccam_AVerVision300i.shtml' name='&lid=IMG-\/products\/doccam_AVerVision300i.shtml'><IMG src='\/home\/images\/middle_11039.jpg' alt='For This Father&#8217;s Day - Get Me What I Really Want!' width='284' height='174' border='0' usemap='#Map'><\/A>" ;


function RotateMessage(){
	if (count == 3) { count = 0; } else { count++; }
	if ((Feature == 1) || (Feature == 3)) {
		Spotlight.filters[0].apply();
		Spotlight.innerHTML = MessageMain[count];
		Spotlight.style.visibility="visible";
		Spotlight.filters[0].play();  
	}
//	if ((Feature == 2)  || (Feature == 3)) {
//		Middle1.filters[0].apply();
//		Middle1.innerHTML = MessageMiddle[count];       
//		Middle1.filters[0].play(); 
//	}       
	
	if ((Feature == 1) || (Feature == 2)  || (Feature == 3)) {
//			RotateTime = setTimeout('RotateMessage()',9000); 
			setTimeout('RotateMessage()',9000); 
	}                   
}

