function MM_showHideLayers() { //v9.0 var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; } obj.visibility=v; } } 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; i0&&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= 0) localBrowser = 'Safari'; else if(navigator.userAgent.indexOf("Netscape") >= 0) localBrowser = 'Netscape'; else if(navigator.userAgent.indexOf("Firefox") >= 0) localBrowser = 'Firefox'; else localBrowser = 'Mozilla'; } if(navigator.userAgent.indexOf("MSMSGS") >= 0) localBrowser = "WMessenger"; else if(navigator.userAgent.indexOf("e2dk") >= 0) localBrowser = "Edonkey"; else if(navigator.userAgent.indexOf("Gnutella") + navigator.userAgent.indexOf("Gnucleus") >= 0) localBrowser = "Gnutella"; else if(navigator.userAgent.indexOf("KazaaClient") >= 0) localBrowser = "Kazaa"; if(localVersion == '0' && localBrowser != '') { var rg = new RegExp("^.*"+localBrowser+".([\\d.]+).*$"); localVersion = navigator.userAgent.replace(rg, "$1"); } var localIsCookie = ((localBrowser == 'Netscape' && localVersion == '4')?(document.cookie != ''):navigator.cookieEnabled); // // Opener/Closer HTML block // function visibleBox(id,skipOpenClose) { elm1 = document.getElementById("open"+id); elm2 = document.getElementById("close"+id); elm3 = document.getElementById("box"+id); if(!elm3) return false; if (skipOpenClose) { elm3.style.display = (elm3.style.display == "")?"none":""; } else if(elm1) { if (elm1.style.display == "") { elm1.style.display = "none"; if(elm2) elm2.style.display = ""; elm3.style.display = "none"; } else { elm1.style.display = ""; if(elm2) elm2.style.display = "none"; elm3.style.display = ""; } } } // // URL encode // function urlEncode(url) { return url.replace(/\s/g, "+").replace(/&/, "&").replace(/"/, """) } // // Substitute // function substitute(lbl) { var x, rg; for(x = 1; x < arguments.length; x+=2) { if(arguments[x] && arguments[x+1]) { rg = new RegExp("\\{\\{"+arguments[x]+"\\}\\}", "gi"); lbl = lbl.replace(rg, arguments[x+1]); rg = new RegExp('~~'+arguments[x]+'~~', "gi"); lbl = lbl.replace(rg, arguments[x+1]); } } return lbl; } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function JustSoPicWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) { if (bgcolor=="") { bgcolor="#FFFFFF"; } var adj=10 var w = screen.width; var h = screen.height; var byFactor=1; if(w<740){ var lift=0.90; } if(w>=740 & w<835){ var lift=0.91; } if(w>=835){ var lift=0.93; } if (imageWidth>w){ byFactor = w / imageWidth; imageWidth = w; imageHeight = imageHeight * byFactor; } if (imageHeight>h-adj){ byFactor = h / imageHeight; imageWidth = (imageWidth * byFactor); imageHeight = h; } var scrWidth = w-adj; var scrHeight = (h*lift)-adj; if (imageHeight>scrHeight){ imageHeight=imageHeight*lift; imageWidth=imageWidth*lift; } var posLeft=0; var posTop=0; if (hugger == "hug image"){ if (hugMargin == ""){ hugMargin = 0; } var scrHeightTemp = imageHeight - 0 + 2*hugMargin; if (scrHeightTemp < scrHeight) { scrHeight = scrHeightTemp; } var scrWidthTemp = imageWidth - 0 + 2*hugMargin; if (scrWidthTemp < scrWidth) { scrWidth = scrWidthTemp; } if (scrHeight<100){scrHeight=100;} if (scrWidth<100){scrWidth=100;} posTop = ((h-(scrHeight/lift)-adj)/2); posLeft = ((w-(scrWidth)-adj)/2); } if (imageHeight > (h*lift)-adj || imageWidth > w-adj){ imageHeight=imageHeight-adj; imageWidth=imageWidth-adj; } posTop = parseInt(posTop); posLeft = parseInt(posLeft); scrWidth = parseInt(scrWidth); scrHeight = parseInt(scrHeight); var agt=navigator.userAgent.toLowerCase(); if (agt.indexOf("opera") != -1){ var args= new Array(); args[0]='parent'; args[1]=imageName; var i ; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } else { newWindow = window.open("vwd_justso.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop); newWindow.document.open(); newWindow.document.write(''+alt+''); newWindow.document.write('
'); newWindow.document.write('Click screen to close'); newWindow.document.write('
'); newWindow.document.close(); newWindow.focus(); } } function CheckKeyCode(){if( (event.keyCode == 189 || event.keyCode == 109) ||(event.keyCode == 8 || event.keyCode == 32) || (event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) ) {return true; }else {return false;}} function PostCodeValidate(){if(document.form1.postcode.value > 9999 || document.form1.postcode.value < 200){alert("Invalid Postcode.");document.form1.postcode.focus();return false;}else{window.open('daisy_shipping.php','postcode','width=520px,height=320px');}} function clearText(field){ if (field.defaultValue == ' post code') field.value = ''; }