// JavaScript Document

/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/

//-- Begin Scroller's Parameters and message -->
//scroller width: change to your own;
var swidth=269;

//scroller height: change to your own;
var sheight=169;

//background color: change to your own; 
var sbcolor="#1e1d20";

//scroller's speed: change to your own;
var sspeed=2;
var restart=sspeed;
rspeed=sspeed;

//text: change to your own

wholemessage='<span class="latestNews-headingText"><a href="http://www.sunstateracing.com.au/news-general.asp">ASBK 2010 Season off to a thrilling start!</a></span><br><span class="latestNews-bodyText">The first round of ASBK 2010 has been eagerly awaited by Sunstate Racing. After spending most of 2009 on the sidelines we are very excited to have Brodie Waters of the famed Waters Racing family on board the Suzuki GSXR-600s we had great success on in 2008 and the beginning of 2009.</span><br><span class="latestNews-click"><a href="http://www.sunstateracing.com.au/news-general.asp">Click here for more</a></span>'+
'<br><br>'+
'<span class="latestNews-headingText"><a href="http://www.sunstateracing.com.au/news-general.asp">New bikes for Sunstate Racing!</a></span><br><span class="latestNews-bodyText">The team here at Sunstate Racing are excited by the purchase of our new Suzuki GSX-R600s. To view pictures of our new bikes in action <span class="latestNews-click"><a href="http://www.sunstateracing.com.au/gallery-GSXRs.asp">click here</a></span> to visit our photo gallery.</span><br><span class="latestNews-click"><a href="http://www.sunstateracing.com.au/news-general.asp">Click here for more</a></span>'+
'<br><br>'+
'<span class="latestNews-headingText"><a href="http://www.sunstateracing.com.au/Rd12009PhilipIsland.asp">Judd Greedy Equal Leader ASBK 2009</a></span><br><span class="latestNews-bodyText">Judd Greedy has finished the first round of the Australian Superbike Supersport Championship at the top of the table.  Judd arrived at Philip Island on Friday with only 1 day of riding since last season. With a lot of determination and a bit of luck, Judd with the help of Trinder Brothers Racing, One Stop Project Solutions, Sunstate Motorcycles and riding his Sunstate Racing bike has returned for the 2009 season. </span><br><span class="latestNews-click"><a href="http://www.sunstateracing.com.au/Rd12009PhilipIsland.asp">Click here for more</a></span>'+
'<br><br>'+
'<span class="latestNews-headingText"><a href="http://www.sunstateracing.com.au/WillowbankReport2008.asp">ASC R4 and 5 Willowbank</a></span><br><span class="latestNews-bodyText">Round 4 and 5 at Queensland Raceway saw Sunstate Racing unveil their all new PTR (Phil Tainton Racing) GSXR600s for the first time.<br><br>After only limited testing time both riders were thrown in at the deep end but with the team working hard on set up at the factory test both Judd and Tim were up to speed very quickly.</span><br><span class="latestNews-click"><a href="http://www.sunstateracing.com.au/WillowbankReport2008.asp">Click here for more</a></span>'
;

//Or you may do a slide show running up any number of images too!
//Preload is recommended (no downloading check) - otherwise you may skip this:
//preload1 = new Image();
//preload1.src = "http://...";
//preload2 = new Image();
//preload2.src = "http://...";
//preload3 = new Image();
//preload3.src = "http://...";
// ...

//if no preloading, replace below '+ preload... +' with the actual Images path "..."

//wholemessage='<img src='+preload1.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload2.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload3.src+' width=... height=... alt="..."><br>'+
//'<img ... >';

//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
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.getElementById)ns6marquee(document.getElementById('slider'));else if(document.all)iemarquee(slider);else if(document.layers)ns4marquee(document.slider1.document.slider2);}function iemarquee(whichdiv){iediv=eval(whichdiv);iediv.style.pixelTop=sheight+"px";iediv.innerHTML=wholemessage;sizeup=iediv.offsetHeight;ieslide();}function ieslide(){if(iediv.style.pixelTop>=sizeup*(-1)){iediv.style.pixelTop-=sspeed+"px";setTimeout("ieslide()",100);}else{iediv.style.pixelTop=sheight+"px";ieslide();}}function ns4marquee(whichlayer){ns4layer=eval(whichlayer);ns4layer.top=sheight;ns4layer.document.write(wholemessage);ns4layer.document.close();sizeup=ns4layer.document.height;ns4slide();}function ns4slide(){if(ns4layer.top>=sizeup*(-1)){ns4layer.top-=sspeed;setTimeout("ns4slide()",100);}else{ns4layer.top=sheight;ns4slide();}}function ns6marquee(whichdiv){ns6div=eval(whichdiv);ns6div.style.top=sheight+"px";ns6div.innerHTML=wholemessage;sizeup=ns6div.offsetHeight;ns6slide();}function ns6slide(){if(parseInt(ns6div.style.top)>=sizeup*(-1)){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6slide()",100);}else{ns6div.style.top=sheight+"px";ns6slide();}}
//-- end Algorithm -->
