//scroller's width
var swidth=180;
//scroller's height
var sheight=60;
//scroller's speed 
var sspeed=1;
var restart=sspeed;
var rspeed=sspeed;
//scroller's background
sbcolor="";
//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array();
singletext[2]='<div align="left"><a target="_self" href="../news/dist_franch_agree_18_5_09.php" class="textsize"><b>Torrent Power signs distribution franchisee agreement for Kanpur & Agra <font color="#FE8907">click here..<img src="images/new.gif" width="29" height="11" border="0"></font></b></a></div>';
singletext[1]='<div align="left"><a target="_blank" href="../pdfs/GPCL_thermal_unit_pressrlse-2.pdf" class="textsize"><b>GPCL, Torrent Power to set up a 1000+ MW coal based power project at Amreli  <font color="#FE8907">click here..</font></b></a></div>';
singletext[0]='<div align="left"><a target="_blank" href="../pdfs/siemens_EPC_contract.pdf" class="textsize"><b>Torrent Power Awards EPC Contracts to Siemens  <font color="#FE8907">click here..</font></b></a></div>';//singletext[...]='...';
//singletext[...]='...';
//-- end Parameters and message -->
//-- begin: Scroller's Algorithm -->
if (singletext.length>1)ii=1;else ii=0;
function goup(){if(sspeed!=rspeed*8){sspeed=sspeed*2;restart=sspeed;}}
function godown(){if(sspeed>rspeed){sspeed=sspeed/2;restart=sspeed;}}
function start(){if (document.all){iens6div.style.top=sheight;iens6div.innerHTML=singletext[0];iescroll(iens6div);}else if (document.layers){document.ns4div.document.ns4div1.top=sheight;document.ns4div.document.ns4div1.visibility='show';document.ns4div.document.ns4div1.document.write(singletext[0]);document.ns4div.document.ns4div1.document.close();ns4scroll(document.ns4div.document.ns4div1);}else if (document.getElementById){document.getElementById('iens6div').style.top=sheight;document.getElementById('iens6div').innerHTML=singletext[0];ns6scroll(document.getElementById('iens6div'));}}
function iescroll(whichdiv){iediv=eval(whichdiv);sizeup=iediv.offsetHeight;if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll(iediv)",100);}if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed;setTimeout("iescroll(iediv)",100);}else{iediv.style.pixelTop=sheight;iediv.innerHTML=singletext[ii];if(ii==singletext.length-1)ii=0;else ii++;}}
function ns4scroll(whichlayer){ns4layer=eval(whichlayer);sizeup=ns4layer.document.height;if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll(ns4layer)",100);}if (ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll(ns4layer)",100);}else{ns4layer.top=sheight;ns4layer.document.write(singletext[ii]);ns4layer.document.close();if(ii==singletext.length-1)ii=0;else ii++;}}
function ns6scroll(whichdiv){ns6div=eval(whichdiv);sizeup=ns6div.offsetHeight;if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll(ns6div)",100);}if (parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed;setTimeout("ns6scroll(ns6div)",100);}else{ns6div.style.top=sheight;ns6div.innerHTML=singletext[ii];if(ii==singletext.length-1)ii=0;else ii++;}}
//-- end Algorithm -->
