<!--
if (document.images) {

	fleetfirst_logobanner = new Image(410,67);
	fleetfirst_logobanner.src = "/images/fleetfirst_logo-banner.gif";
	standard_spec = new Image(250,20);
	standard_spec.src = "/images/standard_spec.gif";
	paint = new Image(250,20);
	paint.src = "/images/paint.gif";
	upholstery = new Image(250,20);
	upholstery.src = "/images/upholstery.gif";
	environmental = new Image(250,20);
	environmental.src = "/images/environmental.gif";
	tech_spec = new Image(250,20);
	tech_spec.src = "/images/tech_spec.gif";
	
}

function popupSwatch(imageName,section) {
	var newWin = null;
	newWin = open ("/popup.aspx?imageName="+imageName+"&section="+section,"Swatch","width=200,height=221,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=no");
}

function popupImage(imageName,section) {
	var newWin = null;
	newWin = open ("/popup.aspx?imageName="+imageName+"&section="+section,"Image","width=730,height=420,status=no,toolbar=no,menubar=no,resizable=yes,scrollbars=yes");
}

function showdisclaimer() {
	var newWin = null;
	newWin = open ("http://www.vw.co.uk/bottom/termsandconditionsbody","Disclaimer","width=600,height=450,status=no,toolbar=no,menubar=no,resizable=no,scrollbars=yes");
	newWin.focus();
}

var isBrowser;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
	if (navigator.appName == "Netscape") {
		isBrowser = "NET";
	} else if (navigator.appName.indexOf("Microsoft") != -1) {
		isBrowser = "IE";
	} else {
		isBrowser = "NO";
	}
}

function fitWindowSize() {
	if (isBrowser == "NET") {
		var win_height, win_width;
		win_width = document.layers[0].document.images[0].width;
		win_height = document.layers[0].document.images[0].height + 6;
		window.resizeTo(win_width, win_height);
	}
	if (isBrowser == "IE") {
		window.resizeTo(200, 221);
		width = 200 - (document.body.clientWidth - document.images[0].width);
		height = 221 - (document.body.clientHeight - document.images[0].height) + 0;
		window.resizeTo(width, height);
	}
	window.focus();
}

function swapImage(img,src) {
    img.src = src;
}

function showSample() {
	newWindow = window.open("/admin/sampleLetter.htm","sampleLetter", "width=600,height=720,scrollbars=yes,resizable=yes");
    newWindow.focus();
}
function toggleImage(img,src1,src2) {
		var oElement = document.getElementById(img);
		if (oElement.src == src1) {
	  		oElement.src = src2;
      	} else {
	  		oElement.src = src1;
      	}
	}
function toggle(img,src1,src2) {
		if (img.src == src1) {
	  		img.src = src2;
      	} else {
	  		img.src = src1;
      	}
	}
	
	function ShowDiv(sDiv) {
		var oElement = document.getElementById(sDiv);
		if (oElement != null)
			if (oElement.style.display == 'block')
				oElement.style.display = 'none';
			else
				oElement.style.display = 'block';
		return false;
    }
//-->
