var ISOCODE='ENG';
// Application Buttons //
//Service & Body Shop
var imgOnAppointment = new Image(253,48);
imgOnAppointment.src = '/images/image.php?file=buttons/'+ISOCODE+'/appointment2.gif';
var imgOffAppointment = new Image(253,48);
imgOffAppointment.src = '/images/image.php?file=buttons/'+ISOCODE+'/appointment1.gif';

//Parts
var imgOnPartsRequest = new Image(253,48);
imgOnPartsRequest.src = '/images/image.php?file=buttons/'+ISOCODE+'/parts_request2.gif';
var imgOffPartsRequest = new Image(253,48);
imgOffPartsRequest.src = '/images/image.php?file=buttons/'+ISOCODE+'/parts_request1.gif';

//Finance
var imgOnCreditApp = new Image(253,48);
imgOnCreditApp.src = '/images/image.php?file=buttons/'+ISOCODE+'/credit_app2.gif';
var imgOffCreditApp = new Image(253,48);
imgOffCreditApp.src = '/images/image.php?file=buttons/'+ISOCODE+'/credit_app1.gif';

//Finance SEO Page
var imgOnCreditAppSEO = new Image(253,48);
imgOnCreditAppSEO.src = '/images/image.php?file=buttons/'+ISOCODE+'/credit_app2.gif';
var imgOffCreditAppSEO = new Image(253,48);
imgOffCreditAppSEO.src = '/images/image.php?file=buttons/'+ISOCODE+'/credit_app1.gif';

//Trade In
var imgOnTradeIn = new Image(253,48);
imgOnTradeIn.src = 'images/image.php?did=websites&file=buttons/'+ISOCODE+'/trade_in2.gif';
var imgOffTradeIn = new Image(253,48);
imgOffTradeIn.src = 'images/image.php?did=websites&file=buttons/'+ISOCODE+'/trade_in1.gif';

//Test Drive
var imgOnTestDrive = new Image(253,48);
imgOnTestDrive.src = 'images/image.php?did=websites&file=buttons/'+ISOCODE+'/test_drive2.gif';
var imgOffTestDrive = new Image(253,48);
imgOffTestDrive.src = 'images/image.php?did=websites&file=buttons/'+ISOCODE+'/test_drive1.gif';

//Best Price
var imgOnBestPrice = new Image(253,48);
imgOnBestPrice.src = 'images/image.php?did=websites&file=buttons/'+ISOCODE+'/best_price2.gif';
var imgOffBestPrice = new Image(253,48);
imgOffBestPrice.src = 'images/image.php?did=websites&file=buttons/'+ISOCODE+'/best_price1.gif';

			
function openWindow(url,width,height){
	newWin = window.open(url, 'viewWin', 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,left='+(screen.width-width)/2+',top='+(screen.height-height)/2+',width=' + width + ',height=' + height + '');
}		

function changeImg(imgName,imgPre) {
	if(document.images){
		document.images[imgName].src = eval(imgPre + '.src');
	}
}

function changeStyle(obj, new_style) {
    obj.className = new_style;
}
//Usage example: <td class="featurebox" onmouseover="changeStyle(this,'featureboxover')" onmouseout="changeStyle(this,'featurebox')">

var sfHover = function() {
//function sfHover() {
	var sfEls = document.getElementById("topMenu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

function showStatus(sMsg) {
	//setTimeout("window.status = \'" + sMsg + "\';", 0);
    window.status = sMsg ;
    return true ;
}