// JavaScript Document
//scroller's width
var swidth=200;
//scroller's height
var sheight=150;
//scroller's speed 
var sspeed=2;
var restart=sspeed;
var rspeed=sspeed;
//scroller's pause 
var spause=3000;
//scroller's background
var sbcolor="#FFF";

var singletext=new Array();
singletext[0]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0" class="_text"><tr><td align="left"><strong><a class="news" href="Jovenes en Accion 2010 Application.pdf">Jovenes en Accion</a></strong><br /><br />On behalf of SALEF you are invited to be one of the founding members of an exiting new student led organization Jovenes en Accion (Youth in Action).</td></tr><tr><td>Wednesdays Tile: 4:30 pm</td></tr></table><div>&nbsp;<br /><strong><a class="text" href="downloads/flyer.doc">Read More...</a></strong></div></td></tr></table>';

singletext[1]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0" class="_text"><tr><td align="left"><strong><a class="news" href="downloads/a_g.ppt">“A-G Requirements”</a></strong><br />Your route to success</td></tr></table><div>&nbsp;<strong><a class="text" href="downloads/a_g.ppt">Download now...</a></strong></div></td></tr><tr><td align="left"><br /><strong><a class="news" href="downloads/youth_in_action.doc">Youth in Action Goals</a></strong></td></tr><tr><td><strong><a class="text" href="downloads/youth_in_action.doc">Download now...</a></strong></td></tr></table>';

singletext[2]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0" class="_text"><tr><td align="left"><strong><a class="news" href="http://salefs.blogspot.com/">SALEFS BLOG</a></strong><br /><br />Feel free to let SALEF know what you think about us in our new shout out section.</td></tr></table><div>&nbsp;<br /><strong><a class="text" href="http://salefs.blogspot.com/">Blog</a></strong></div></td></tr></table>';

singletext[3]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0" class="_text"><tr><td align="left"><img src="images/8019.jpg" /><strong><a class="news" href="lider.html">Proceso Electoral Salvadoreño</a></strong><br /><br />Obten las Noticias de las</td></tr></table><div>&nbsp;<br />elecciones <strong><a href="http://www.isd.org.sv" target="_blank">Aqui</a></strong></div></td></tr></table>';

singletext[4]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0"><tr><td align="left"><strong><a class="news" href="fulfilling.html">Fulfilling Our Dreams Scholarship</a></strong><br /><br /></td></tr></table><div>Check the website for upcoming updates on the selection process</div></td></tr></table>';

singletext[5]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0" class="_text"><tr><td align="left"><strong><a class="text" href="downloads/Comm_letterhead07.pdf">SALEFs AB540 Committee</a></strong><br /><br />Everybody is Welcome<br />to join our AB540 NETWORK</td></tr><tr><td><br />FOR MORE INFOMATION<br /><strong><a class="text" href="contactus.php">CONTACT US</a></strong></div></td></tr></table>';


//singletext[4]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0"><tr><td align="left"><strong><a class="news" href="fulfilling.html">Fulfilling Our Dreams Scholarships</a></strong></td></tr></table><div>&nbsp;<br />Application ready for download <br /><br /><strong><a class="text" href="downloads/scholarship.pdf">Click Here.</a></strong><br />Deadline: June 30th 2008.</div></td></tr></table>';

//singletext[5]='<table cellspacing="0" cellpadding="0" align="left"><tr><td height="80px" valign="middle"><table cellspacing="0" cellpadding="0"><tr><td align="left"><strong><a class="news" href="lider.html">LIDER Program</a></strong></td></tr></table><div>&nbsp;<br />Application ready for download <br /><br /><strong><a class="text" href="downloads/LIDER_app.pdf">Click Here.</a></strong><br />Deadline: June 1st 2008</div></td></tr></table>';



var ii=0;
function goup() {
	if(sspeed!=rspeed*16) {
		sspeed=sspeed*2;
		restart=sspeed;
	}
}

function start(){
	if(document.getElementById) {
		ns6div=document.getElementById('iens6div');
		ns6div.style.top=sheight+"px";
		ns6div.innerHTML=singletext[0];
		sizeup=ns6div.offsetHeight;ns6scroll();
	} else if(document.layers) {
		ns4layer=document.ns4div.document.ns4div1;
		ns4layer.top=sheight;
		ns4layer.document.write(singletext[0]);
		ns4layer.document.close();
		sizeup=ns4layer.document.height;ns4scroll();
	} else if(document.all) {
		iediv=iens6div;iediv.style.pixelTop=sheight+"px";
		iediv.innerHTML=singletext[0];
		sizeup=iediv.offsetHeight;iescroll();
	}
}

function iescroll() { 
	if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed) {
		iediv.style.pixelTop=0;
		setTimeout("iescroll()",spause);
	} else if(iediv.style.pixelTop>=sizeup*-1) {
		iediv.style.pixelTop-=sspeed+"px";
		setTimeout("iescroll()",100);
	} else {
		if(ii==singletext.length-1)
			ii=0;
		else ii++;
	iediv.style.pixelTop=sheight+"px";
	iediv.innerHTML=singletext[ii];
	sizeup=iediv.offsetHeight;iescroll();
	}
}

function ns4scroll() {
	if(ns4layer.top>0&&ns4layer.top<=sspeed) { 
		ns4layer.top=0;
		setTimeout("ns4scroll()",spause);
	} else if(ns4layer.top>=sizeup*-1) {
		ns4layer.top-=sspeed;
		setTimeout("ns4scroll()",100);
	} else { 
		if(ii==singletext.length-1)
			ii=0;
		else ii++;
	ns4layer.top=sheight;
	ns4layer.document.write(singletext[ii]);
	ns4layer.document.close();
	sizeup=ns4layer.document.height;
	ns4scroll();
	}
}

function ns6scroll() {
	if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed) {
		ns6div.style.top=0;
		setTimeout("ns6scroll()",spause);
	} else if(parseInt(ns6div.style.top)>=sizeup*-1) {
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";
		setTimeout("ns6scroll()",100);
	} else {
		if(ii==singletext.length-1)
			ii=0;
		else 
			ii++;
	ns6div.style.top=sheight+"px";
	ns6div.innerHTML=singletext[ii];
	sizeup=ns6div.offsetHeight;ns6scroll();
	}
}
