//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
// XHTML Compat
// Version 2.0
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=250;

//scroller height
var sheight=200;

//background color 
var sbcolor="#FFFFFF";

//scroller's speed
var sspeed=3;

var msg='';

var iediv='';
//var iediv1='';

var ns6div='';
//var ns6div1='';

//Your messages go below:

				
msg='<img src="images/kerrmcgee.gif" width="153" height="59" vspace="4" /><br /><img src="images/nec.gif" width="153" height="59" vspace="4" /><br /><img src="images/client_MTGO.gif" width="153" height="59" vspace="4" /><br /><img src="images/client_Navina.gif" width="153" height="59" vspace="4" /><br /><img src="images/expert.gif" width="153" height="59" vspace="4" /><br /><img src="images/aura.gif" width="153" height="59" vspace="4" /><br /><img src="images/explan.gif" width="153" height="59" vspace="4" /><br /><img src="images/conscious.gif" width="153" height="59" vspace="4" /><br /><img src="images/eds.gif" width="153" height="59" vspace="4" /><br /><img src="images/ctl.gif" width="153" height="59" vspace="4" /><br /><img src="images/canon.gif" width="153" height="59" vspace="4" /><br /><img src="images/chdAdmin.gif" width="153" height="59" vspace="4" /><br /><img src="images/islamic.gif" width="153" height="59" vspace="4" /><br /><img src="images/chadX.gif" width="153" height="59" vspace="4" /><br /><img src="images/logo_gcg.gif" width="153" height="59" vspace="4" /><br /><img src="images/lsc.gif" width="153" height="59" vspace="4" /><br /><img src="images/logo_saber.gif" width="153" height="59" vspace="4" /><br /><img src="images/minofDefence.gif" width="153" height="59" vspace="4" /><br /><img src="images/hpg.gif" width="153" height="59" vspace="4" /><br /><img src="images/chdSchool.gif" width="153" height="59" vspace="4" /><img src="images/drFirst.gif" width="153" height="59" vspace="4" /><br /><img src="images/homereach.gif" width="153" height="59" vspace="4" /><br /><img src="images/jeanotFamily.gif" width="153" height="59" vspace="4" /><br />';


//msg='<a href="images/tarot.jpg" width="310" align="center" style="height: 105px;  rel="lightbox"><img src="images/iroulette.gif" width="205" height="76" vspace="7" /><br /><a href="images/tarot.jpg" width="310" align="center" style="height: 105px"  rel="lightbox"><img src="images/bionic.gif" width="205" height="76" vspace="7" /></a><br /><a href="images/tarot.jpg" width="310" align="center" style="height: 105px"  rel="lightbox"><img src="images/proveYourself.gif" width="205" height="76" vspace="7" /><br /><img src="images/AddressBook.gif" width="205" height="76" vspace="7" /><br /><img src="images/quiz.gif" width="205" height="76" vspace="4" /><br /><a href="images/tarot.jpg" width="310" align="center" style="height: 105px"  rel="lightbox"><img src="images/pocketTarot.gif" width="205" height="76" vspace="7" />';
//End of your messages


var resumesspeed=sspeed;
function start() {
		
	if (document.all)
	 {
//	 iemarquee1(document.getElementById('ticker1'));
	  iemarquee(document.getElementById('ticker'));
			
	}
	else if (document.getElementById)
	{	//ns6marquee1(document.getElementById('ticker1'));
	    ns6marquee(document.getElementById('ticker'));
	}
}


function iemarquee(whichdiv){
	iediv=eval(whichdiv);
	sheight += 50;
	iediv.style.pixelTop=sheight;
	iediv.innerHTML=msg; 
	sizeup=iediv.offsetHeight;
	ieslide();
}

//function iemarquee1(whichdiv){
//	
//	iediv1=eval(whichdiv);
//	sheight += 50;
//	iediv1.style.pixelTop=sheight;
//	iediv1.innerHTML=msg1; 
//	sizeup=iediv1.offsetHeight;
//	ieslide1();
//}

function ieslide(){
	if (iediv.style.pixelTop>=sizeup*(-1)){
		iediv.style.pixelTop-=sspeed;
		setTimeout("ieslide()",80);
	}
	else{
		iediv.style.pixelTop=sheight;
		ieslide();
	}
}

//function ieslide1(){
//	if (iediv1.style.pixelTop>=sizeup*(-1)){
//		iediv1.style.pixelTop-=sspeed;
//		setTimeout("ieslide1()",100);
//	}
//	else{
//		iediv1.style.pixelTop=sheight;
//		ieslide1();
//	}
//}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	sheight += 50;
	ns6div.style.top=sheight + "px";
	ns6div.innerHTML=msg
	sizeup=ns6div.offsetHeight
	ns6slide()
}

//function ns6marquee1(whichdiv){
//	ns6div1=eval(whichdiv)
//	sheight += 50;
//	ns6div1.style.top=sheight + "px";
//	ns6div1.innerHTML=msg1
//	sizeup=ns6div1.offsetHeight
//	ns6slide1()
//}
function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		theTop = parseInt(ns6div.style.top)-sspeed
		ns6div.style.top = theTop + "px";
		setTimeout("ns6slide()",80)
	}
	else {
		ns6div.style.top = sheight + "px";
		ns6slide()
	}
}

//function ns6slide1(){
//	if (parseInt(ns6div1.style.top)>=sizeup*(-1)){
//		theTop = parseInt(ns6div1.style.top)-sspeed
//		ns6div1.style.top = theTop + "px";
//		setTimeout("ns6slide1()",100)
//	}
//	else {
//		ns6div1.style.top = sheight + "px";
//		ns6slide1()
//	}
//}