// General page init functions for HM Premium Pack 1.2 // Copyright (c) 2009 by Tim Green and EC Software. // All rights reserved. function addEvent(e,d,b,a){if(e.addEventListener){e.addEventListener(d,b,a); return true }else{if(e.attachEvent){var c=e.attachEvent("on"+d,b); return c }else{alert("Could not add event!") }}}function trim(a){return a.replace(/^\s+|\s+$/g,"") }function doResize(){var a,b; if(self.innerHeight){a=self.innerHeight }else{if(document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight }else{if(document.body){a=document.body.clientHeight }}}b=document.getElementById("idheader").clientHeight; if(a
") }); $("div#innerdiv table").each(function(){var b,f,e,a,c; var d=/WIDTH:\s+?\d{1,3}%/; var g=/WIDTH:\s+?(\d{1,3})%;/im; b=$(this).attr("style"); if(b.search(d)!=-1){c=g.exec(b); e=c[1]/100; a=$("div#innerdiv").innerWidth(); f=Math.round(a*e); b=b.replace(d,"width: "+f+"px"); $(this).attr("style",b); $(this).attr("IEmustDie",e) }}) }$(window).resize(function(){$("div#innerdiv table[IEmustDie]").each(function(){var f,c,a,b,g,d; var e=/width:\s+?\d{1,3}px;/i; f=$(this).attr("IEmustDie"); c=$(this).attr("style"); a=$("div#innerdiv").innerWidth(); b=e.exec(c); g="WIDTH: "+Math.round(a*f)+"px;"; c=c.replace(b,g); $(this).attr("style",c) }) }); function nsrInit(){if(self.innerHeight){document.getElementById("scriptNavHead").style.display="table-row" }else{document.getElementById("scriptNavHead").style.display="block" }document.getElementById("noScriptNavHead").style.display="none"; contentbody=document.getElementById("idcontent"); if(contentbody){contentbody.className="nonscroll"; document.getElementsByTagName("body")[0].className="nonscroll"; document.getElementsByTagName("html")[0].className="nonscroll" }}function getHref(b,a,d){var e; var c=document.location.href.replace(/\#.*$/,""); c=c.replace(/\?.*?$/,""); c=c.replace(/\/(?!.*?\/)/,"/"+b+"?"); e='
'+a+' '+c+"
"; return e }function mailFB(h){var f=unQuot(getMailParams("mailsubject")); var a=unQuot(getMailParams("mailpath")); var e=unQuot(getMailParams("mailbody")); var d=unQuot(getMailParams("mailid")); if(!h){var c="mailto:"+escape(window.recipient)+"?subject="+f; var b="&body=Ref:%20"+a+"%20ID:%20"+d+"%0A%0D%0A%0D"+e+"%0A%0D%0A%0D" }else{var c="mailto:"+escape(window.recipient)+"?subject="+window.subjectnojs; var b="&body=Ref%20ID:%20"+d+"%0A%0D" }var g=c+b; document.write('