function cN(theId,theClass){
    document.getElementById(theId).className = theClass;
}

function link(url){
    window.location.href=url;
}

//window.onload = scroller;
var bgPos = 0; 
var scrollDelay = 50; 

function scroller(){ 
	if (document.getElementById){ 
		var test1 = document.getElementById("carDiv").style;
		test1.backgroundAttachment = "fixed"; 
		test1.backgroundPosition = bgPos + 'px 5px';

		bgPos == 150? bgPos = 0 : bgPos = bgPos - 2; 

		setTimeout("scroller()", scrollDelay);
	}
}


function $(id){
	return document.getElementById(id);
}
function addOnClick(){ 
	for(var i=1; i<=8; i++){
		if(document.getElementById('nav'+i)){
			var lnk = document.getElementById('a'+i).href;
			$('nav'+i).onclick = Function('link("'+lnk+'")'); 
			$('nav'+i).onmouseover = Function('cN("nav'+i+'","o")');
			$('nav'+i).onmouseout = Function('cN("nav'+i+'","")');
		}
	}
}
onload = addOnClick;

function CreateFlash(DivID, WIDTH, HEIGHT, URL, AUTOSTART){
	var d = document.getElementById(DivID);
	 d.innerHTML =
	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="' + WIDTH + '"'
	+ 'height="' + HEIGHT + '"'
	+ 'style="background-color:transparent;">'
	+ '<param name=movie value="' + URL + '">'
	+ '<param name="quality" value="high">'
	+ '<param name="SCALE" value="showall">'
	+ '<param name="wmode" value="transparent">'
	+ '<embed src="' + URL + '" quality="high"'
	+ 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash"'
	+ 'width="' + WIDTH +'"'
	+ 'height="' + HEIGHT + '"'
	+ 'wmode="transparent"'
	+ 'scale="showall" style="background-color:transparent;">'
	+ '</object>';
}