// JavaScript Document

// Bottom banner to hold sponsor detaisl

var delay = 3000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=40; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: normal 14px Arial; padding: 5px; background-color:#FFFFFF; width:735px; height:90px;">'; //set opening tag, such as font declarations
fcontent[0]="<div style='width:345px; heght:99px; float:left'><a href='http://www.sussexenterprise.co.uk/viewPage.jsp?id=2054334'  target=_blank><img src='resources/banner_pics/ATOS.jpg' style='float:left;' border=0><b><br />Sussex Enterprise's food and drink network</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
fcontent[1]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.businesslink.gov.uk/southeast' target=_blank><img src='resources/banner_pics/businesslink.jpg' style='float:left;' border=0><b><br />Business support for your business</b><br></a></div>";
fcontent[2]="<div style='width:345px; heght:99px; float:left'><a href='http://www.stepaheadresearch.co.uk/'  target=_blank><img src='resources/banner_pics/step_ahead.jpg' style='float:left; margin-right:5px;' border=0><b><br />Providing user-friendly research and consultancy</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
fcontent[3]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.seeda.co.uk/' target=_blank><img src='resources/banner_pics/seeda.jpg' style='float:left;margin-top:12px;' border=0><b>Regional development agency for the South East</b><br></a></div>";
<!--09/02/2009-->
fcontent[4]="<div style='width:345px; heght:99px; float:left'><a href='http://www.bwiltd.co.uk/'  target=_blank><img src='resources/banner_pics/bwi.jpg' style='float:left; margin-right:5px;' border=0><b><br />BWI (Bordeaux Wine Investments) Limited<br />Your partner for wine...</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--09/02/2009-->
fcontent[5]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.3pbusiness.co.uk' target=_blank><img src='resources/banner_pics/3p.jpg' style='float:left;margin-top:2px; margin-right:4px;' border=0><b><br />Business Consultancy & Training for Hampshire based in Petersfield</b><br></a></div>";
<!--09/02/2009-->
fcontent[6]="<div style='width:345px; heght:99px; float:left'><a href='http://www.caburnhope.co.uk/'  target=_blank><img src='resources/banner_pics/caburn_hope.jpg' style='float:left; margin-right:5px;' border=0><b><br /><br /><br />An integrated design, marketing and digital services agency.</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></b><br></a></div>";
<!--09/02/2009-->
fcontent[7]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.kpmsl.co.uk/' target=_blank><img src='resources/banner_pics/kpms.jpg' style='float:left;margin-top:2px;' border=0><b><br />Keyprint & Mailing Solutions<br /> Dedicated print and direct mail</div>";
<!--09/02/2009-->
fcontent[8]="<div style='width:345px; heght:99px; float:left'><a href='http://www.dhc-limited.co.uk/'  target=_blank><img src='resources/banner_pics/dhc.jpg' style='float:left; margin-right:5px; margin-top:20px;' border=0><b><br /><br />Structured Dependable Solutions for your Success</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></b><br></a></div>";
<!--09/02/2009-->
fcontent[9]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.jagpresspublicity.co.uk/' target=_blank><img src='resources/banner_pics/jag.jpg' style='float:left;' border=0><b><br />PR and journalist services in London, West Sussex and Surrey</div>";
<!--09/02/2009-->
fcontent[10]="<div style='width:345px; heght:99px; float:left'><a href='http://www.e1business.com'  target=_blank><img src='resources/banner_pics/e1.jpg' style='float:left; margin-right:5px;' border=0><b><br />Project Management Software, Business Accounting, CRM Software</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></b><br></a></div>";
<!--09/02/2009-->
fcontent[11]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.markdawes.com/' target=_blank><img src='resources/banner_pics/markdawes.jpg' style='float:left;' border=0><b><br />NPL and Quantum Thinking Training & Resources</div>";
<!--24/02/2009-->
fcontent[12]="<div style='width:345px; heght:99px; float:left'><a href='http://www.medicsonthemove.co.uk'  target=_blank><img src='resources/banner_pics/medics.jpg' style='float:left; margin-right:5px;' border=0><b><br />Relocation, Homesearch & Property Management for all busy professionals</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></b><br></a></div>";
<!--24/02/2009-->
fcontent[13]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.onthespottax.co.uk/' target=_blank><img src='resources/banner_pics/onthespot.jpg' style='float:left;' border=0><b><br />Tax returns prepared on your premises</div>";
<!--24/02/2009-->
fcontent[14]="<div style='width:345px; heght:99px; float:left'><a href='http://www.tsl-training.co.uk'  target=_blank><img src='resources/banner_pics/tsl.jpg' style='float:left; margin-right:5px;' border=0><b><br /><strong>Teach. Skill. Learn.</strong>Bridge the skills gap</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></b><br></a></div>";
<!--24/02/2009-->
fcontent[15]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.teamskills.co.uk/' target=_blank><img src='resources/banner_pics/teamskills.jpg' style='float:left;' border=0><b><br />Team Building & Leadership Training, West Sussex UK</div>";
<!--24/02/2009-->
fcontent[16]="<div style='width:345px; heght:99px; float:left'><a href='http://www.focus-sb.co.uk/'  target=_blank><img src='resources/banner_pics/focus.jpg' style='float:left; margin-right:5px;' border=0><b><br />Electrical Accessories</b><br></a></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></b><br></a></div>";
<!--24/02/2009-->
fcontent[17]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.lilybud.co.uk/' target=_blank><img src='resources/banner_pics/lilybud.jpg' style='float:left;' border=0><b><br />Beautiful Brighton Gardens that don't cost the Earth</div>";
<!--09/03/2009-->
fcontent[18]="<div style='width:345px; heght:99px; float:left'><a href='http://www.sundialhouse.com/' target=_blank><img src='resources/banner_pics/sundial.jpg' style='float:left;' border=0><b><br />For Better Backs, Shoulders, Knees and Necks</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--09/03/2009-->
fcontent[19]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.fireflycreative.co.uk' target=_blank><img src='resources/banner_pics/firefly.jpg' style='float:left;margin-left:20px;' border=0><b></div>";
<!--09/03/2009-->
fcontent[20]="<div style='width:345px; heght:99px; float:left'><a href='http://www.capital-logistics.co.uk/' target=_blank><img src='resources/banner_pics/capitallogistics.jpg' style='float:left; margin-left:60px;' border=0><b></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--09/03/2009-->
fcontent[21]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.bookfhr.com' target=_blank><img src='resources/banner_pics/bookfhr.jpg' style='margin-top:5px; position:block' border=0><br /><br /><b>Airport Hotels & Airport Parking</div>";
<!--09/03/2009-->
fcontent[22]="<div style='width:345px; heght:99px; float:left'><a href='http://www.parmarstaffing.co.uk/' target=_blank><img src='resources/banner_pics/parmar.jpg' style='float:left;' border=0><b><br />Helping people find the right jobs</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--09/03/2009-->
fcontent[23]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.eversleybarnantiques.co.uk/' target=_blank><img src='resources/banner_pics/eversley.jpg' style='float:left; margin-top:15px;' border=0><b><br /> Church Lane, Eversley, <br />Hampshire</div>";
<!--09/03/2009-->
fcontent[24]="<div style='width:345px; heght:99px; float:left'><a href='http://www.icondesign.co.uk/' target=_blank><img src='resources/banner_pics/icon.jpg' style='float:left;' border=0><b><br />Brand communication and design consultancy</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--16/03/2009-->
fcontent[25]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.searchrecruitment.jobs' target=_blank><img src='resources/banner_pics/search.jpg' style='float:left; margin-top:8px; margin-right:10px' border=0><b><br /> Specialist recruitment agency </div>";
<!--16/03/2009-->
fcontent[26]="<div style='width:345px; heght:99px; float:left'><a href='http://www.cogsales.com/' target=_blank><img src='resources/banner_pics/cognitive.jpg' style='float:left;margin-top:10;;' border=0><b><br /></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--16/03/2009-->
fcontent[27]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.bluedoorinteriors.co.uk/' target=_blank><img src='resources/banner_pics/bluedoor.jpg' style='float:left; margin-left:10px' border=0><b><br />    A New Type of Building Company</div>";
<!--06/04/2009-->
fcontent[28]="<div style='width:345px; heght:99px; float:left'><a href='http://www.orcare.com/' target=_blank><img src='resources/banner_pics/orcare.jpg' style='float:left;' border=0><b><br />Providing IT Services to small and medium sized businesses and charities</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--06/04/2009-->
fcontent[29]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.tlrisksolutions.com/' target=_blank><img src='resources/banner_pics/tlrisk.jpg' style='float:left;' border=0><b><br />Providing risk consultancy and customised insurance solutions </div>";
<!--06/04/2009-->
fcontent[30]="<div style='width:345px; heght:99px; float:left'><a href='http://www.manorcreative.com/' target=_blank><img src='resources/banner_pics/manor.jpg' style='float:left;' border=0><b><br />Fine quality design, print and multimedia products</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--06/04/2009-->
fcontent[31]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.nitech.co.uk/' target=_blank><img src='resources/banner_pics/nitech.jpg' style='float:left;' border=0><b><br />Portable Lighting For Professionals Worldwide</div>";
<!--06/04/2009-->
fcontent[32]="<div style='width:345px; heght:99px; float:left'><a href='http://www.coalition-comms.com/' target=_blank><img src='resources/banner_pics/coalition.jpg' style='float:left;' border=0><b><br />Sharing trade secrets… Marketing, refreshed</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--15/06/2009-->
fcontent[33]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.rtas.org.uk/' target=_blank><img src='resources/banner_pics/rtas.jpg' style='float:left; margin-top:15px;' border=0><b></div>";
<!--10/07/2009-->
fcontent[34]="<div style='width:345px; heght:99px; float:left'><a href='http://www.udt-training.co.uk/' target=_blank><img src='resources/banner_pics/udt.jpg' style='float:left; margin-top:35px;' border=0><b></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--10/07/2009-->
fcontent[35]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.littletonevans.com' target=_blank><img src='resources/banner_pics/little_evans.jpg' style='float:left; margin-top:0px;' border=0><b></div>";
<!--10/07/2009-->
fcontent[36]="<div style='width:345px; heght:99px; float:left'><a href='http://www.calla-salon.co.uk/' target=_blank><img src='resources/banner_pics/calla.jpg' style='float:left; margin-right:2px;' border=0><b>Professional beauty salon offering many treatments including intimate waxing for men and women.</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--10/07/2009-->
fcontent[37]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.pauldixgardens.com/' target=_blank><img src='resources/banner_pics/paul_dix.jpg' style='float:left; margin-top:0px;' border=0><b></div>";
<!--10/07/2009-->
fcontent[38]="<div style='width:345px; heght:99px; float:left'><a href='http://www.ilovelogos.co.uk/' target=_blank><img src='resources/banner_pics/ilovelogos.jpg' style='float:left;' border=0><b></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--10/07/2009-->
fcontent[39]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.thevatconsultancy.com/' target=_blank><img src='resources/banner_pics/vat.jpg' style='float:left; margin-top:0px;' border=0><b></div>";
<!--10/07/2009-->
fcontent[40]="<div style='width:345px; heght:99px; float:left'><a href='http://www.a3communications.co.uk/' target=_blank><img src='resources/banner_pics/a3.jpg' style='float:left;' border=0><b>Implements effective communications programs that deliver first-class results</div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";
<!--10/07/2009-->
fcontent[41]="<div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div><div style='width:345px; heght:99px; float:left'><a href='http://www.mylittlewrapper.co.uk/' target=_blank><img src='resources/banner_pics/little_wrapper.jpg' style='float:left; margin-top:0px;' border=0><b></div>";
<!--10/07/2009-->
fcontent[42]="<div style='width:345px; heght:99px; float:left'><a href='http://www.alternativeroutefinance.com/' target=_blank><img src='resources/banner_pics/alternative_route.jpg' style='float:left;' border=0><b></div><div style='width:345px; heght:99px; float:left'><a href='advertisefree.asp' target=_blank><img src='resources/banner_pics/SE_hi_res_small.jpg' style='height:90px; float:left;' border=0><b><br />Advertise your company here for FREE</b><br>Click here to submit your details</a></div>";

closetag='</div>';

var fwidth='745px'; //set scroller width
var fheight='100px'; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;
var hasRun = 0; // Variable that is used to check if the banner has already started. If not then a random position is chosen.


/*Rafael Raposo edited function*/
//function to change content
function changecontent(move){
  if (hasRun == 0){// Variable that is used to check if the banner has already started. If not then a random position is chosen.
	  index = randomNum(fcontent.length-1);
  	  hasRun = 1;
	}
  else if (index>=fcontent.length)
    {index=0}
  if (move == "backward"){ index=index-2 }<!--Move backward if back button is pushed.-->
	  
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent


//function to get random number from 1 to n
function randomNum(maxVal,floatVal)
{
   var randVal = Math.random()*maxVal;
   return typeof floatVal=='undefined'?Math.round(randVal):randVal.toFixed(floatVal);
}