var sponsor_links = new Array();
var sponsor_images = new Array();
var sponsor_return;

sponsor_links.push("http://www.rbmotoring.com");
sponsor_images.push("RBmotoring.jpg");

sponsor_links.push("http://www.modified.com");
sponsor_images.push("modified.gif");

sponsor_links.push("http://www.xs-engineering.com/");
sponsor_images.push("xsbanner.jpg");

sponsor_links.push("http://www.getjdmcars.com/catalog/index.php?main_page=document_general_info&cPath=75&products_id=435");
sponsor_images.push("tebanner1.jpeg");

sponsor_links.push("http://www.tunerlab.jp");
sponsor_images.push("tunerlab_gtrc_banner.jpg");

sponsor_links.push("http://www.amszstore.com/");
sponsor_images.push("AMS_Banner.jpg");

sponsor_links.push("http://www.ztune.ca/");
sponsor_images.push("ztune_Banner.jpg");

sponsor_links.push("http://www.rockymountainimports.net/");
sponsor_images.push("rockymontainimports.jpg");

sponsor_links.push("http://www.performance-wise.com");
sponsor_images.push("PERFORMANCE-WISE.jpg");

sponsor_links.push("");
sponsor_images.push("rhdjapan.swf");

sponsor_links.push("http://www.bvautosport.com/");
sponsor_images.push("bvautosport.jpg");

sponsor_links.push("http://www.vexperformance.com/");
sponsor_images.push("VEXBanner1.jpg");

sponsor_links.push("http://www.feastautoexport.com/");
sponsor_images.push("feast.jpg");

sponsor_links.push("http://www.purauto.com/");
sponsor_images.push("purauto.jpg");

sponsor_links.push("http://www.fraservalleyimports.ca");
sponsor_images.push("FVI.gif");

sponsor_links.push("http://www.lightspeedinnovations.com/");
sponsor_images.push("lightspeed.jpg");

sponsor_links.push("");
sponsor_images.push("federal.jpg");

sponsor_links.push("http://www.torontojdm.com");
sponsor_images.push("torontojdm.gif");

sponsor_links.push("http://www.braveautointernational.jp");
sponsor_images.push("braveauto.gif");

sponsor_links.push("http://www.rightdrive.ca/");
sponsor_images.push("rightdrive.gif");

//sponsor_links.push("");
//sponsor_images.push("cooldirect.swf");


//sponsor_links.push("http://www.tyeeimports.com/");
//sponsor_images.push("tyeeimports.jpg");

//sponsor_links.push("http://www.j-specimports.ca");
//sponsor_images.push("http://www.j-specimports.ca/banner/gtrc_740x100.gif");

//sponsor_links.push("http://www.theskylineshop.com");
//sponsor_images.push("skylineshop.jpg");

//sponsor_links.push("http://www.onijdm.com");
//sponsor_images.push("onijdm.jpg");

//sponsor_links.push("http://www.risejdm.com/");
//sponsor_images.push("rise_banne1.jpg");


today = new Date();
num = today.getTime();
sponsor_index = Math.round(Math.abs(Math.sin(num) * 1000000)) % sponsor_images.length;



//sponsor_index = Math.floor(Math.random() * sponsor_images.length);

if(sponsor_images[sponsor_index].substring(0,4) == "http" && sponsor_images[sponsor_index].substring(sponsor_images[sponsor_index].length-3,sponsor_images[sponsor_index].length) != "swf") {
 	document.getElementById("sponsor").innerHTML = "<a href='" + sponsor_links[sponsor_index] + "' target=_blank><img src='" + sponsor_images[sponsor_index] + "' border='0'></a>";	
 }
if(sponsor_images[sponsor_index].substring(0,4) == "http" && sponsor_images[sponsor_index].substring(sponsor_images[sponsor_index].length-3,sponsor_images[sponsor_index].length) == "swf") {
	document.getElementById("sponsor").innerHTML = "<a href='" + sponsor_links[sponsor_index] + "' target=_blank><object type='application/x-shockwave-flash' data='" + sponsor_images[sponsor_index] + "'><param name='movie' value='" + sponsor_images[sponsor_index] + "'><param name='quality' value='high'></object></a>";
}
if(sponsor_images[sponsor_index].substring(0,4) != "http" && sponsor_images[sponsor_index].substring(sponsor_images[sponsor_index].length-3,sponsor_images[sponsor_index].length) != "swf") {
	document.getElementById("sponsor").innerHTML = "<a href='" + sponsor_links[sponsor_index] + "' target=_blank><img src='http://www.gtrcanada.com/v3/images/sponsors/" + sponsor_images[sponsor_index] + "' border=0></a>";
}
if(sponsor_images[sponsor_index].substring(0,4) != "http" && sponsor_images[sponsor_index].substring(sponsor_images[sponsor_index].length-3,sponsor_images[sponsor_index].length) == "swf") {
	document.getElementById("sponsor").innerHTML = "<object type='application/x-shockwave-flash' data='" +  sponsor_images[sponsor_index] + "' width='640' height='120'><param name='movie' value='" +  sponsor_images[sponsor_index] + "'><param name='quality' value='high'></object>";
}