	function Pop(url,intW,intH) {
		window.open(url,'complexPop','width=' + intW + ',height=' + intH + ',scrollbars=no,status=no,toolbar=no,menubar=no')
	}

	var flag = false;
	
	function imageLoad() {  
		if (document.images) {
			img1on = new Image(); img1on.src = "/img/top_bar/commercial_home_on.gif";
			img2on = new Image(); img2on.src = "/img/top_bar/products_on.gif";
			img3on = new Image(); img3on.src = "/img/top_bar/consultancy_on.gif";
			img4on = new Image(); img4on.src = "/img/top_bar/training_on.gif";
			img5on = new Image(); img5on.src = "/img/top_bar/home_customers_on.gif";
			img6on = new Image(); img6on.src = "/img/top_bar/home_customers_on.gif";
			img7on = new Image(); img7on.src = "/img/nav/about_on.gif";
			img8on = new Image(); img8on.src = "/img/nav/buying_on.gif";
			img9on = new Image(); img9on.src = "/img/nav/help_on.gif";
			img10on = new Image(); img10on.src = "/img/nav/contact_on.gif";
			img11on = new Image(); img11on.src = "/img/nav/training_on.gif";
			
			img12on = new Image(); img12on.src = "/img/top_bar/commercial_home_on.gif";
			img13on	= new Image(); img13on.src = "/img/top_bar/products_on.gif";
			img14on	= new Image(); img14on.src = "/img/top_bar/consultancy_on.gif";
			img15on	= new Image(); img15on.src = "/img/top_bar/training_on.gif";
			img16on	= new Image(); img16on.src = "/img/top_bar/home_customers_on.gif";
			//alert("contact");
			return (flag = true);
		}
	}

	if (document.images) {   

			img1off = new Image(); img1off.src = "/img/top_bar/commercial_home.gif";
			img2off = new Image(); img2off.src = "/img/top_bar/products.gif";
			img3off = new Image(); img3off.src = "/img/top_bar/consultancy.gif";
			img4off = new Image(); img4off.src = "/img/top_bar/training.gif";
			img5off = new Image(); img5off.src = "/img/top_bar/home_customers.gif";
			img6off = new Image(); img6off.src = "/img/top_bar/home_customers.gif";
			img7off = new Image(); img7off.src = "/img/nav/about.gif";
			img8off = new Image(); img8off.src = "/img/nav/buying.gif";
			img9off = new Image(); img9off.src = "/img/nav/help.gif";
			img10off = new Image(); img10off.src = "/img/nav/contact.gif";
			img11off = new Image(); img11off.src = "/img/nav/training.gif";
			
			img12off = new Image(); img12off.src = "/img/top_bar/commercial_home.gif";
			img13off = new Image(); img13off.src = "/img/top_bar/products.gif";
			img14off = new Image(); img14off.src = "/img/top_bar/consultancy.gif";
			img15off = new Image(); img15off.src = "/img/top_bar/training.gif";
			img16off = new Image(); img16off.src = "/img/top_bar/home_customers.gif";
	}


	function rollIn(imgName) {
		if (document.images && (flag == true)) {
			document[imgName].src = eval(imgName + "on.src");
		}
	}

	function rollOut(imgName) { 
		if (document.images){
			document[imgName].src = eval(imgName + "off.src");
		}
	}
	
	function windowOpener(item) {
	msgWindow = window.open("", "displayWindow", "menubar=no,scrollbars=yes,status=no,width=250,height=550")
	msgWindow.document.write ('<HEAD><TITLE>Product&nbsp;Information<\/TITLE>');
	msgWindow.document.write('<LINK rel="stylesheet" type="text/css" href="/easyshopmaker/easyshopmaker.css">');
	msgWindow.document.write ('<\/HEAD>');
	if (item.indexOf('http') != -1) {
	msgWindow.document.write('<body bgcolor=#FFFFFF>');
	} else {
	msgWindow.document.write('<body bgcolor=#FFFFFF onblur="window.close()" onclick="window.close()">');
	}msgWindow.document.write('<font face=arial size=2 color=#000000 class=esm_ip_font>'+item+'');
	msgWindow.document.write('<HR>Click&nbsp;to&nbsp;close&nbsp;this&nbsp;window<\/font>');
	msgWindow.document.write('<p><center><a href="Javascript:window.close()"><font face=arial size=2 color=#000000>Back</font></a>');
	msgWindow.document.write('<br><font face=arial size=1 color=#000000 class=esm_ip_font>Salveo: The UKs Leading Health, Safety &amp; Fitness Store<\/font><br>');
	msgWindow.document.write('<\/body><\/html>')
	msgWindow.document.close();
	msgWindow.focus();
	}
	
	function vat(amount) {
	
		amount = amount / 1.175;	
	
	// rounds number to X decimal places, defaults to 2
		var X = 2;
		amount = Math.round(amount*Math.pow(10,X))/Math.pow(10,X);
   // returns the amount in the .99 format
		return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
	}
	
    function vatb(amount) {
	
		amount = amount / 1.05;	
	
	// rounds number to X decimal places, defaults to 2
		var X = 2;
		amount = Math.round(amount*Math.pow(10,X))/Math.pow(10,X);
   // returns the amount in the .99 format
		return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
	}

	


