function hbSpawn(hblink, winName, width, height, pos) {
var newWindow=window.open(hblink, winName, 'width=' +width+ ',height=' +height+'status=no,statusbar=no,resizable=yes,top=' +pos+ ',left=' +pos+ ',scrollbars=yes');
newWindow.focus();
return false;
}
function doMail(sendTo, subj) {
	location.href = 'mailto:' + sendTo.replace(' ', '.') + '@heuga.com?Subject=' + subj.replace(' ', '%20');
}
function ShowImg(imgName, imgTitle, imgWidth, imgHeight) {
	windowOptions='toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,width=' + imgWidth + ',height=' + imgHeight;
	image_window = window.open('','',windowOptions);
	image_window.document.open();
	image_window.document.writeln('<HTML> <HEAD> <TITLE>' + imgTitle + '</TITLE> </HEAD>');
	image_window.document.writeln('<BODY topmargin="0" leftmargin="0" bgcolor="FFFFFF">');
	image_window.document.writeln('<CENTER>');
	image_window.document.writeln('<A HREF="javascript:window.close(); window.opener.focus()">');
	image_window.document.writeln('<IMG SRC="' + imgName + '" width="' + imgWidth + '" height="' + imgHeight + '" BORDER=0 ALT="' + imgTitle + '"></A>');
	image_window.document.writeln('</CENTER>');
	image_window.document.writeln('</BODY> </HTML>');
	image_window.document.close();
	image_window.focus();
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function PL_topNav(){
MM_preloadImages('/wcsstore/heuga/nl_NL/images/Sample_folder_f2.gif','/wcsstore/heuga/nl_NL/images/Nav_shopping_f2.gif','/wcsstore/heuga/nl_NL/images/Nav_advice_f2.gif','/wcsstore/heuga/nl_NL/images/Nav_Why_heuga_f2.gif','/wcsstore/heuga/nl_NL/images/Nav_search_f2.gif')}

function PL_CO_Nav(){
MM_preloadImages('/wcsstore/heuga/nl_NL/images/chkout/nav_sh1_f2.gif','/wcsstore/heuga/nl_NL/images/chkout/nav_sh2_f2.gif','/wcsstore/heuga/nl_NL/images/chkout/nav_sh3_f2.gif','/wcsstore/heuga/nl_NL/images/chkout/nav_sh4_f2.gif')}

AN=navigator.appName;AV=navigator.appVersion;NV=parseInt(AV)
N4=0;N6=0;IE=0;IEV=0
if(AN=="Netscape"&&NV>3){N4=(NV==4)?1:0;N6=(NV>=5)?1:0}
else{IE=1;IEV=parseInt(AV.substr((AV.indexOf("MSIE")+4),4))}
Mac=(AV.indexOf("Macintosh")==-1)?0:1

V1=IE?'document.all("':N4?'document.layers["':N6?'document.getElementById("':''
V6='").style.color='

function CO_TxtRO(N,W){col=(W!=0)?'"#21395F"':'"#666666"';eval(V1+'lnkCO'+N+V6+col)}

function CO_Over(N){
	if(IE||N6)eval("CO_TxtRO("+N+")")
	eval("MM_swapImage('navCO"+N+"','','/wcsstore/heuga/nl_NL/images/chkout/nav_sh"+N+"_f2.gif',1)")
}

function CO_Out(N){MM_swapImgRestore();if(IE||N6)eval("CO_TxtRO("+N+",0)")}

//Netscape 4 resize fix
onresize=Rl; function Rl(){if(N4){location.reload()}}

function getShoppingTrolleyContents(currency) {
	var contents = readCookie("heugaOrderContents");
	if(contents) {
		var x = contents.split("-");
		
		if(currency == 'GBP'){
 			document.write(x[0]);
			document.write(' items<br>Totaal &pound;');	
			document.write(x[1]);			
		} else {	
 			document.write(x[0]);
			document.write(' items<br>Totaal ');	
			document.write(x[1].replace(".", ","));			
			document.write(' &euro;');
		}

		
	} else {
		if(currency == 'GBP'){
			document.write('0 items<br>Tataal &pound;0.00');				
		} else {
			document.write('0 items<br>Totaal 0,00 &euro;');
		}
	

	}
}

