// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
sUrl = "http://www.racingdevil.com";
newon = new Image();
newon.src = sUrl + "/pics/interface/link_newa.gif";
producton = new Image();
producton.src = sUrl + "/pics/interface/link_producta.gif";
carton = new Image();
carton.src = sUrl + "/pics/interface/link_carta.gif";
trackon = new Image();
trackon.src = sUrl + "/pics/interface/link_tracka.gif";
careerson = new Image();
careerson.src = sUrl + "/pics/interface/link_careersa.gif" ;
dealerloginon = new Image();
dealerloginon.src = sUrl + "/pics/interface/link_dealerlogina.gif" ;

newoff = new Image();
newoff.src = sUrl + "/pics/interface/link_new.gif";
productoff = new Image();
productoff.src = sUrl + "/pics/interface/link_product.gif";
cartoff = new Image();
cartoff.src = sUrl + "/pics/interface/link_cart.gif";
trackoff = new Image();
trackoff.src = sUrl + "/pics/interface/link_track.gif";
careersoff = new Image();
careersoff.src = sUrl + "/pics/interface/link_careers.gif" ;
dealerloginoff = new Image();
dealerloginoff.src = sUrl + "/pics/interface/link_dealerlogin.gif" ;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function Button_Active (hName) {
        imgOn = eval(hName + "on.src");
        document [hName].src = imgOn;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function Button_InActive (hName) {
        imgOff = eval(hName + "off.src");
        document [hName].src = imgOff;
}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function getCenterWindowParam(iWidth, iHeight)
{
	sExtraParam = "";
	if (screen) {
		iX = (screen.availWidth > iWidth) ? parseInt((screen.availWidth - iWidth) / 2) : 0;
		iY = (screen.availHeight > iHeight) ? parseInt((screen.availHeight - iHeight) / 2) : 0;
		sExtraParam = ",top=" + iY + ",left=" + iX + ",screenX=" + iX + ",screenY=" + iY;
	}
	return (sExtraParam);
}


// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
function	PopImage( picName ){
	var	newWin;
	newWin = window.open("/popupimage.php?picName=" + picName, "newWin", "width=20,height=20,scrollbars=no,menubar=no,resizable=yes" );
	newWin.focus();
}
		