// JavaScript Document
function jargonPopUp(jid) {
	var jwindow=window.open("itfx_jargon.php?jid="+jid,"jargon","width=320,height=280");
//	window.location.reload( false );
	jwindow.focus();
}

function jargonInfoPopUp(jid) {
	var jiwin=window.open("itfx_jargoninfo.php?jid="+jid,"jarinf","width=320,height=280");
	jiwin.focus();
//	window.location.reload( false );
}

function showImage(pid) {
	var iwindow=window.open("itfx_image.php?pid="+pid,"image","width=400,height=430");
	iwindow.focus();
//	window.location.reload( false );
}

function showFreeStuff(pid) {
	var fswin=window.open("itfx_freestuff.php?pid="+pid,"freest","width=400,height=400,scrollbars=1");
	fswin.focus();
//	window.location.reload( false );
}

function showPackage(pid) {
	var spwin=window.open("itfx_promo.php?pid="+pid,"package","width=400,height=400,scrollbars=1");
	spwin.focus();
//	window.location.reload( false );
}

function showPriceDisclaimer() {
	var spdwin=window.open("itfx_pricedisclaimer.php","pricedisc","width=400,height=420");
	spdwin.focus();
//	window.location.reload( false );
}

function showSalesPhone() {
	var sspwin=window.open("itfx_salesphone2007.php","salesphone","width=350,height=440");
	sspwin.focus();
//	window.location.reload( false );
}

function showDeliveryStuff() {
	var sdswin=window.open("itfx_delinfo.php","delinfo","width=360,height=300");
	sdswin.focus();
//	window.location.reload( false );
}

function showPostcodeDeliveryStuff(did) {
	if(document.product.postcode.value!='') {
		var pc=document.product.postcode.value;
		var spdswin=window.open("itfx_pcdelinfo.php?did="+did+"&pc="+pc,"pcdelinf","width=560,height=400");
		spdswin.focus();
//		window.location.reload( false );
	}
}

function showDeliveryLookup() {
	var spdswin=window.open("itfx_pcdellookup.php","pcdellku","width=400,height=400");
	spdswin.focus();
}

function showOutOfStock() {
	var ooswin=window.open("itfx_outofstock.php","outofst","width=360,height=300");
	ooswin.focus();
//	window.location.reload( false );
}

function showGuarantees() {
	var sgwin=window.open("itfx_guarantee_info.php","guarant","width=400,height=340");
	sgwin.focus();
	//window.location.reload( false );
}

function printDetails(pid) {
	var pdwin=window.open("itfx_print_details.php?pid="+pid,"print","width=580,height=400,scrollbars=1,menubar=1");
	pdwin.focus();
//	window.location.reload( false );
}

function addToWishlist(pid,rpid,man,code) {
	var wlwin=window.open("itfx_addtowishlist.php?pid="+pid+"&rpid="+rpid+"&man="+man+"&code="+code,"addtowl","width=320,height=240,scrollbars=0");
	wlwin.focus();
//	window.location.reload( false );
}

function emailFriend(pid,man,code) {
	var efwin=window.open("itfx_email_friend.php?pid="+pid+"&man="+man+"&code="+code,"email","width=460,height=460,scrollbars=1");
	efwin.focus();
//	window.location.reload( false );
}

function showOpening() {
	var opnwin=window.open("itfx_christmas_opening.php","opening","width=400,height=380");
	opnwin.focus();
//	window.location.reload( false );
}

function showMaytag() {
	var maytwin=window.open("itfx_maytag_del.php","maytag","width=400,height=380,scrollbars=1");
	maytwin.focus();
//	window.location.reload( false );
}

function doExtra(url,w,h) {
	var dextwin=window.open(url,"extra","width="+w+",height="+h+",scrollbars=1");
	dextwin.focus();
//	window.location.reload( false );
}

function showCreditApp() {
	var crdwin=window.open("itfx_credit.php","credit","width=400,height=380,scrollbars=no");
	crdwin.focus();
}

function showCreditAppFin(v,d) {
	var crdfwin=window.open("itfx_credit_fin.php?goods="+v,"credfin","width=520,height=460,scrollbars=no");
	crdfwin.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

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 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_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 P7_autoLayers() { //v1.5 by PVII
 var g,b,k,f,u,k,j,args=P7_autoLayers.arguments,a=parseInt(args[0]);if(isNaN(a))a=0;
 if(!document.p7setc){p7c=new Array();document.p7setc=true;for(u=0;u<10;u++){
 p7c[u]=new Array();}}for(k=0;k<p7c[a].length;k++){if((g=MM_findObj(p7c[a][k]))!=null){
 b=(document.layers)?g:g.style;b.visibility="hidden";}}for(k=1;k<args.length;k++){
 if((g=MM_findObj(args[k]))!=null){b=(document.layers)?g:g.style;b.visibility="visible";f=false;
 for(j=0;j<p7c[a].length;j++){if(args[k]==p7c[a][j]) {f=true;}}
 if(!f){p7c[a][p7c[a].length++]=args[k];}}}
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr) { for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) { 
	  if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) { img.MM_up = img.src; }
//      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up; 
      img.src = args[i+1]; 
      nbArr[nbArr.length] = img;
  } } }
//  alert(event+' '+args[3]);
}
