ie4 = (document.all) ? true:false; ns4 = (document.layers) ? true:false; if (!ie4) document.captureEvents(Event.MOUSEMOVE); // ################################## function sm_redirect (target,url) { if (url!="") eval("document."+target+".action='"+url+"'"); eval("document."+target+".submit()"); } // ################################## function sm_setvalue (target,value) { var frmField = document.getElementById (target); frmField.value = value; } // ################################## function sm_setranking (target,objects) { for ( var i=0; iGrote weergave"); win.document.write("" ); win.document.write(""); } // ################################## function sm_popupinfo (text,e) { var popup = ( ie4 ) ? document.all.popupinfo : document.getElementById("popupinfo"); var posx = ( ie4 ) ? e.clientX + document.body.scrollLeft : e.pageX; var posy = ( ie4 ) ? e.clientY + document.body.scrollTop : e.pageY; if ( posx < 0 ) posx = 0; if ( posy < 0 ) posy = 0; popup.innerHTML = text; popup.style.zindex = 3; popup.style.left = posx; popup.style.top = posy; popup.style.visibility = "visible"; } //################################### function sm_newwindow (url,width,height,scrollbars) { var w = width; var h = height; if ( ! w ) w = 1024; if ( ! h ) h = 768; if ( ! scrollbars ) scrollbars = "no"; var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; var winprops = "height=" + h + ",width=" + w + ",top=" + wint + ",left=" + winl + ",scrollbars=" + scrollbars +",noresize"; var win = window.open(url, "", winprops); } //################################### function menu_goto( menuform,baseurl ) { selecteditem = menuform.newurl.selectedIndex ; newurl = menuform.newurl.options[ selecteditem ].value ; if (newurl.length != 0) { location.href = baseurl + newurl ; } } // ################################## function reloader_code() { var curDateTime = new Date() return(curDateTime.getHours()*86400+curDateTime.getMinutes()*3600+curDateTime.getSeconds()*60); } // ################################## function sm_checkstock(product) { if (document.getElementById("stock")){ document.getElementById("stock").src="http://www.henzo.de//stockcheck.php/product/"+product+"/dummy/"+reloader_code(); } } // ################################## function sm_onoff(id) { if (document.getElementById(id)){ if (document.getElementById(id).style.display=="") document.getElementById(id).style.display="none"; else document.getElementById(id).style.display=""; } } // ################################## function sm_noenter(e) { if(e && e.which) var c=e.which; else var c=e.keyCode; if(c==13) return false; else return true; } // ################################## function sm_enter(e) { if(e && e.which) var c=e.which; else var c=e.keyCode; if(c==13) return true; else return false; } // ################################## function sm_caseonoff(id,rule,object) { if (document.getElementById(id)){ if (!object.value) return; var fields = ""; var rules = ""; rules = rule.split(";"); for(var i=0; i on // function sm_multionoff(name,current,count) { var state=""; var id=""; document.body.scrollTop=0; for(var i=1;i<=count;i++) { if (i==current) state=""; else state="none"; id=name+""+i; if(document.getElementById(id)) document.getElementById(id).style.display=state; } } // ################################## function sm_iframesize(id) { var the_height=document.getElementById(id).contentWindow.document.body.scrollHeight;//find the height of the internal page var the_width=document.getElementById(id).contentWindow.document.body.scrollWidth;//find the width of the internal page document.getElementById(id).style.height=the_height;//change the height of the iframe document.getElementById(id).style.width=the_width;//change the width of the iframe } // ################################## function getCookie(name) { var pos var token = name + "="; var tnlen = token.length; var cklen = document.cookie.length; var i = 0; var j; while (i < cklen) { j = i + tnlen; if (document.cookie.substring(i, j) == token) { pos = document.cookie.indexOf (";", j); if (pos == -1) pos = document.cookie.length; return unescape(document.cookie.substring(j, pos)); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } //End While return null; } // ################################## function setCookie(name, value) { document.cookie = name + "=" + escape(value) } // ################################## function deleteCookie(name) { var exp = new Date(); exp.setTime (exp.getTime() - 1); var cval = getCookie (name); document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString(); } function showFlash(name,width,height,scrollbars) { var w = width; var h = height; if ( ! w ) w = 1024; if ( ! h ) h = 768; if ( ! scrollbars ) scrollbars = "no"; var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; var winprops = "height=" + h + ",width=" + w + ",top=" + wint + ",left=" + winl + ",scrollbars=" + scrollbars +",noresize"; var win = window.open("",name,winprops); win.document.write("\r\n\r\n\r\n\r\n\r\n\r\n"); win.document.write("
You need to upgrade your Flash Player

This is replaced by the Flash content.
\r\n"); win.document.write("\r\n\r\n"); win.document.location.reload(); } // ################################## // rounded corners // ################################## function NiftyCheck(){ if(!document.getElementById || !document.createElement) return(false); isXHTML=/html\:/.test(document.getElementsByTagName('body')[0].nodeName); if(Array.prototype.push==null){Array.prototype.push=function(){ this[this.length]=arguments[0]; return(this.length);}} return(true); } function Rounded(selector,wich,bk,color,opt){ var i,prefixt,prefixb,cn="r",ecolor="",edges=false,eclass="",b=false,t=false; if(color=="transparent"){ cn=cn+"x"; ecolor=bk; bk="transparent"; } else if(opt && opt.indexOf("border")>=0){ var optar=opt.split(" "); for(i=0;i=0) ecolor=optar[i]; if(ecolor=="") ecolor="#666"; cn+="e"; edges=true; } else if(opt && opt.indexOf("smooth")>=0){ cn+="a"; ecolor=Mix(bk,color); } if(opt && opt.indexOf("small")>=0) cn+="s"; prefixt=cn; prefixb=cn; if(wich.indexOf("all")>=0){t=true;b=true;} else if(wich.indexOf("top")>=0) t="true"; else if(wich.indexOf("tl")>=0){ t="true"; if(wich.indexOf("tr")<0) prefixt+="l"; } else if(wich.indexOf("tr")>=0){ t="true"; prefixt+="r"; } if(wich.indexOf("bottom")>=0) b=true; else if(wich.indexOf("bl")>=0){ b="true"; if(wich.indexOf("br")<0) prefixb+="l"; } else if(wich.indexOf("br")>=0){ b="true"; prefixb+="r"; } var v=getElementsBySelector(selector); var l=v.length; for(i=0;i=0) lim=2; if(bc) d.className="artop"; else d.className="rtop"; d.style.backgroundColor=bk; for(i=1;i<=lim;i++){ var x=CreateEl("b"); x.className=cn + i; x.style.backgroundColor=color; if(bc) x.style.borderColor=bc; d.appendChild(x); } el.style.paddingTop=0; el.insertBefore(d,el.firstChild); } function AddBottom(el,bk,color,bc,cn){ var i,lim=4,d=CreateEl("b"); if(cn.indexOf("s")>=0) lim=2; if(bc) d.className="artop"; else d.className="rtop"; d.style.backgroundColor=bk; for(i=lim;i>0;i--){ var x=CreateEl("b"); x.className=cn + i; x.style.backgroundColor=color; if(bc) x.style.borderColor=bc; d.appendChild(x); } el.style.paddingBottom=0; el.appendChild(d); } function CreateEl(x){ if(isXHTML) return(document.createElementNS('http://www.w3.org/1999/xhtml',x)); else return(document.createElement(x)); } function getElementsBySelector(selector){ var i,selid="",selclass="",tag=selector,f,s=[],objlist=[]; if(selector.indexOf(" ")>0){ //descendant selector like "tag#id tag" s=selector.split(" "); var fs=s[0].split("#"); if(fs.length==1) return(objlist); f=document.getElementById(fs[1]); if(f) return(f.getElementsByTagName(s[1])); return(objlist); } if(selector.indexOf("#")>0){ //id selector like "tag#id" s=selector.split("#"); tag=s[0]; selid=s[1]; } if(selid!=""){ f=document.getElementById(selid); if(f) objlist.push(f); return(objlist); } if(selector.indexOf(".")>0){ //class selector like "tag.class" s=selector.split("."); tag=s[0]; selclass=s[1]; } var v=document.getElementsByTagName(tag); // tag selector like "tag" if(selclass=="") return(v); for(i=0;i=0){ objlist.push(v[i]); } } return(objlist); } function Mix(c1,c2){ var i,step1,step2,x,y,r=new Array(3); if(c1.length==4)step1=1; else step1=2; if(c2.length==4) step2=1; else step2=2; for(i=0;i<3;i++){ x=parseInt(c1.substr(1+step1*i,step1),16); if(step1==1) x=16*x+x; y=parseInt(c2.substr(1+step2*i,step2),16); if(step2==1) y=16*y+y; r[i]=Math.floor((x*50+y*50)/100); } return("#"+r[0].toString(16)+r[1].toString(16)+r[2].toString(16)); } /* ===================================================================================================== * FlashObject embed * * by Geoff Stearns (geoff@choppingblock.com, http://www.choppingblock.com/) * * v1.0.7 - 11-17-2004 * * Create and write a flash movie to the page, includes detection * * Usage: * * myFlash = new FlashObject("path/to/swf.swf", "swfid", "width", "height", flashversion, "backgroundcolor"); * myFlash.altTxt = "Upgrade your Flash Player!"; // optional * myFlash.addParam("wmode", "transparent"); // optional * myFlash.addVariable("varname1", "varvalue"); // optional * myFlash.addVariable("varname2", getQueryParamValue("myvar")); // optional * myFlash.write(); * */ FlashObject = function(swf, id, w, h, ver, c) { this.swf = swf; this.id = id; this.width = w; this.height = h; this.version = ver || 6; // default to 6 this.align = "middle"; // default to middle this.redirect = ""; this.sq = document.location.search.split("?")[1] || ""; this.altTxt = "Please upgrade your Flash Player."; this.bypassTxt = "

Already have Flash Player? Click here if you have Flash Player "+ this.version +" installed.

"; this.params = new Object(); this.variables = new Object(); if (c) this.color = this.addParam('bgcolor', c); this.addParam('quality', 'high'); // default to high this.doDetect = getQueryParamValue('detectflash'); } FlashObject.prototype.addParam = function(name, value) { this.params[name] = value; } FlashObject.prototype.getParams = function() { return this.params; } FlashObject.prototype.getParam = function(name) { return this.params[name]; } FlashObject.prototype.addVariable = function(name, value) { this.variables[name] = value; } FlashObject.prototype.getVariable = function(name) { return this.variables[name]; } FlashObject.prototype.getVariables = function() { return this.variables; } FlashObject.prototype.getParamTags = function() { var paramTags = ""; for (var param in this.getParams()) { paramTags += ''; } if (paramTags == "") { paramTags = null; } return paramTags; } FlashObject.prototype.getHTML = function() { var flashHTML = ""; if (window.ActiveXObject && navigator.userAgent.indexOf('Mac') == -1) { // PC IE flashHTML += ''; flashHTML += ''; if (this.getParamTags() != null) { flashHTML += this.getParamTags(); } if (this.getVariablePairs() != null) { flashHTML += ''; } flashHTML += ''; } else { // Everyone else flashHTML += '= 3 && result != true; i--){ execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript'); flashversion = i; } } return flashversion; } function detectFlash(ver) { if (getFlashVersion() >= ver) { return true; } else { return false; } } // get value of querystring param function getQueryParamValue(param) { var q = document.location.search; var detectIndex = q.indexOf(param); var endIndex = (q.indexOf("&", detectIndex) != -1) ? q.indexOf("&", detectIndex) : q.length; if(q.length > 1 && detectIndex != -1) { return q.substring(q.indexOf("=", detectIndex)+1, endIndex); } else { return ""; } } /* add Array.push if needed */ if(Array.prototype.push == null){ Array.prototype.push = function(item){ this[this.length] = item; return this.length; } }