
//These functions should be considered deprecated, and will be phased out.

function openPromoWin(url) {
	win=window.open(url, "promo", "scrollbars,status,resizable");
}

function openPromoWindow(url,params) {
	win=window.open(url, "promo", params);
}

function openPrivacyWin(url) {
	win=window.open(url, "privacy", "scrollbars,status,resizable,width=360,height=450");
}

function openTandCWin(url) {
	win=window.open(url, "tandc", "scrollbars,status,resizable,width=360,height=450");
}

function openToolWin(url) {
	win=window.open(url, "toolwin", "scrollbars,status,resizable,width=550,height=500");
}

function newWin(url) {
	win=window.open(url, "newwin", "scrollbars,status,resizable");
}

function openDealerLocWin(url) {
	win=window.open(url, "dealerloc", "scrollbars,status,resizable,width=600,height=500");
}

function goAbsolute(url) {
	location.href = url;
}

function goRelative(url) {
	location.href = url;
}

function WM_imageSwap(myImage, mySrc){
	if (typeof(myImage) == 'string') {
		document.images[myImage].src = mySrc;
	} else if ((typeof(myImage) == 'object') && myImage && myImage.src) {
		myImage.src = mySrc;
	}
}
function WM_preloadImages() {
	if (typeof(document.WM) == 'undefined') document.WM = new Object();
	document.WM.loadedImages = new Array();
	var argLength = WM_preloadImages.arguments.length;
	for(arg=0;arg<argLength;arg++) {
		document.WM.loadedImages[arg] = new Image();
		document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
	}
}
