//-- Begin Scroller's Parameters and messages -->
//scroller's width
var swidth=160;

//scroller's height
var sheight=80;


//scroller's speed 
var sspeed=5;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=2000;

//scroller's background
var sbcolor="#ccffcc";

var singletext=new Array();


singletext[0]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex"><a style="color:white;" href="/balanceblog/1002-craa.php"><u>The Center&#39;s Research<br>and Action Agenda</u></a><br>February 2010</td></tr></table>';
singletext[1]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex"><a style="color:white;" href="/ecagreements/ec-klimaforum09.php"><u>The Center Signs<br>Peoples Declaration<br>from Klimaforum09</u></a><br>December 2009</td></tr></table>';
singletext[2]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex"><a style="color:white;" href="http://www.thegreenswitch.net" target=_link><u>The Center Launches Sustainability Newsletter<br>The Green Switch</u></a><br>November 2009</td></tr></table>';
singletext[3]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex"><a style="color:white;" href="http://www.imf.org/external/np/vc/2009/pdf/cso111109.pdf" target=_link><u>The Center Requests<br>Civil Society Participation<br>in IMF Study</u></a><br>November 2009</td></tr></table>';
singletext[4]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex"><a style="color:white;" href="http://www.thehumanfactor.in/01032009/storyd.asp?sid=197&pageno=1" target=_link><u>Center for a World in Balance Featured in The Human Factor</u></a><br>April 2009</td></tr></table>';
singletext[5]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex"><a style="color:white;" href="/balanceblog/0901-thepowerofexample.php"><u>The Power of Example: How America Can Lead the World Towards Balance and Prosperity</u></a><br>January 2009</td></tr></table>';
singletext[6]='<table CELLSPACING="0" CELLPADDING="0"><tr><td height="80px"><table><tr><td class="scrollindex">Official Founding of<br>the Center for a<br>World in Balance<br>October 2008</td></tr></table>';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}

function start(){
if(document.getElementById){ns6div=document.getElementById('scroller-index');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=scroller-index;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();}}
//-- end Algorithm -->
