<!--
var secret="pryj748td";
var lang ="catalogue";
var nowLocation;
var loaded = false;
var targeted=false;
var nowContent="front.shtml"; 
var frontLoaded=false;
var buttonLoaded=false;
var ecmss2Loaded=false;
var goodBrowser=false;
var ecmss4Called=false;
var deptLoaded=false;
var appName=navigator.appName;
var appVersion=parseInt(navigator.appVersion);
if(appName=="Netscape") if(appVersion>=3) goodBrowser=true;
if(appName=="Microsoft Internet Explorer")
	if(appVersion<=2)
		appVersion=3;
	else
		goodBrowser=true;
if(appVersion<3){
	alert("We are sorry but your browser doesnt support this application.");
	history.go(-1);
}

// added from favourites
var prodName="";
var prodLoc="";
function getckInfo(ck) {
	var partCookie = splitStr(ck,"|");
	prodName=partCookie[1];
	prodLoc=partCookie[2];

}



function ecmss4Load() {
	if(!ecmss4Called) {
		ecmss3.ecmss4.location="ecmss4.html";

ecmss4Called=true;
	}
}
function load() {
	if(true&&true) {
		if(buttonLoaded && ecmss2Loaded && frontLoaded) {
			ecmss4Load();

		}
	}
	else if(true) {
		if(buttonLoaded && frontLoaded) {
			ecmss4Load();

}
	}
	else if(true) {
		if(ecmss2Loaded && frontLoaded) {
			ecmss4Load();

		}
	}
}


function splitStr(str,del) {
	if(goodBrowser){

return(str.split(del));

}
	else {
		var a=new Array();
		var i=0; var j=0; k=0;
		while(i!=-1) {
			j=str.indexOf(del,i);
			if(j!=-1) {
				a[k]=str.substring(i,j);
				k++;
				i=j+del.length;
				if(i==str.length) i=-1;
			} else {
				a[k]=str.substring(i,str.length);
				i=-1;
			}
		}
		return(a);
	}
}





var mainLoaded=false;
var initialized=false;
var totalLoaded=false;
var cookiePath="";
//alert("location :" + location.pathname);
//alert(" location Protocol :" + location.Protocol.toLowerCase().substring(0,4));
if(cookiePath=="" && location.pathname!="" && location.protocol.toLowerCase().substring(0,4)!="file"){
 cookiePath=location.pathname;
//alert("cookie1");
}
if(cookiePath!=""){
 cookiePath=cookiePath.substring(0,cookiePath.lastIndexOf("/")+1);
//alert("cookie2");
}
var cookieDomain="";


if(cookieDomain=="" && location.hostname!="" && location.protocol.toLowerCase().substring(0,4)!="file") {
cookieDomain=location.hostname;
//alert("cookie3");
}
var serverProtocol="";

if(serverProtocol=="" && cookieDomain!="") {
serverProtocol="default.htm";
//alert("cookie4");
}
function mArr(n) {
	this.count=n;
	return(this);
}
function parameter(name, value) {
	this.name=name;
	this.value=value;
	return(this);
}
var queryString=location.search;
var parameters=new mArr(0);
var clickThrough="";
var aid="";
var rid="";
var ofs="";
if(queryString!="") {
	queryString=queryString.substring(1,queryString.length);
	var pairs=splitStr(queryString,"&");
	for(var i=0; i<pairs.length; i++) {
		temp=splitStr(pairs[i],"=");
		parameters.count++;
		parameters[i+1]=new parameter(unescape(temp[0]),unescape(temp[1]));
		if(parameters[i+1].name.toLowerCase()=="mid") {
			if(parameters[i+1].value!="") {
				clickThrough=parameters[i+1].value;
			}
		}
		if(parameters[i+1].name.toLowerCase()=="rid") {
			if(parameters[i+1].value!="") {
				rid=parameters[i+1].value;
			}
		}
		if(parameters[i+1].name.toLowerCase()=="aid") {
			if(parameters[i+1].value!="") {
				aid=parameters[i+1].value;
			}
		}
		if(parameters[i+1].name.toLowerCase()=="target") {
			if(parameters[i+1].value!="") {
				targeted=true;
				nowContent=parameters[i+1].value;
			}
		}
		if(parameters[i+1].name.toLowerCase()=="ofs") {
			if(parameters[i+1].value!="") {
				ofs=parameters[i+1].value;
			}
		}
		if(parameters[i+1].name.toLowerCase()=="lang") {
			if(parameters[i+1].value!="") {
				lang=parameters[i+1].value;
			}
		}
	}
}
if(clickThrough=="") {
	clickThrough=getCookStr("CLICK_THROUGH");
} else {
	savCookStr("CLICK_THROUGH",clickThrough,90);
}
if(rid=="") {
	rid=getCookStr("RID");
} else {
	savCookStr("RID",rid,90);
}
if(aid=="") {
	aid=getCookStr("AID");
} else {
	savCookStr("AID",aid,90);
}
function savCookStr(name,str,exp) {
	var strPath=cookiePath;
	var strDomain=cookieDomain;
	if(location.protocol.toLowerCase().substring(0,4)=="file") {
		strPath="";
		strDomain="";
	}
	var cookieStr="0400"+str;
	var cookie=name+"="+escape(cookieStr);
	var expiration=new Date();
	if (exp==-1) {
		expiration.setYear(2010);
		expiration.setMonth(01);
		expiration.setDate(01);
	} else {
		var t=expiration.getTime();
		var msPerDay=24*60*60*1000;
		t+=(msPerDay*exp);
		expiration.setTime(t);
	}
	if(exp!=0) {
		cookie+="; expires="+expiration.toGMTString();
	} else {	// zero duration...  explicitly clear cookie
		cookie=name+"=";
	}
	if(strPath!="") {
	//alert("writing the path" + strPath);	
cookie+="; path="+strPath;
	}
	if(strDomain!="") {
		cookie+="; domain="+strDomain;
	}
	//alert("write cookie "+cookie);
document.cookie=cookie;
}
function getCookStr(name) {
	var allCookies=document.cookie;
	var start=allCookies.indexOf(name+"=");
	if(start==-1)
		return("");
	start+=name.length+1;
	var end=allCookies.indexOf(';',start);
	if(end==-1) end=allCookies.length;
	var cookieStr=unescape(allCookies.substring(start,end));
	if(cookieStr.length<4) return("");
	if(cookieStr.substring(0,4)!="0400") return("");	
	cookieStr=cookieStr.substring(4,cookieStr.length);
	//alert("returning cookie string "+ cookieStr);
return(cookieStr);
}


function csy(csy_name, iso, csyAbbrev, csy_multiplier, decimal_places) {
	this.index = 0;
	this.name = csy_name;
	this.iso = iso;
	this.abbrev = csyAbbrev;
	this.multiplier = csy_multiplier;
	this.decimal_places = decimal_places;
}
var baseCsy = new csy("", "", "", 1.0, 2);
var nowCsy = new csy("", "", "", 1.0, 2);
var shopCsy = new csy("", "", "", 1.0, 2);

var shopUrl	= serverProtocol + cookieDomain + cookiePath;
if(shopUrl != "") {
	shopUrl += "index.html";
}
//-->

