var timervar=null;function printArticle(a){behind=window.open(a,"printwin","height=650,width=810,status=yes,toolbar=yes,directories=no,menubar=no,location=no,resizable=no,scrollbars=yes")}function getContentAreaHeight(){if(document.all){var a=document.all.menuheighholder.height}else{if(document.getElementById){var a=document.getElementById("menuheighholder").height}}return a}function getAbsolutePos(a){for(var c=0,b=0;a!=null;c+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent){}return{x:c,y:b}}function setActiveStyleSheet(e){var d,c,b;for(d=0;(c=document.getElementsByTagName("link")[d]);d++){if(c.getAttribute("rel").indexOf("style")!=-1&&c.getAttribute("title")){c.disabled=true;if(c.getAttribute("title")==e){c.disabled=false}}}}function getActiveStyleSheet(){var c,b;for(c=0;(b=document.getElementsByTagName("link")[c]);c++){if(b.getAttribute("rel").indexOf("style")!=-1&&b.getAttribute("title")&&!b.disabled){return b.getAttribute("title")}}return null}var debugwin;var debugwinopened=false;function debug(a){if(debugwinopened==false||!debugwin){debugwin=window.open("about:blank","debug_window","width=1000,height=700, toolbars=no,menu=no,scrollbars=yes");debugwin.document.write("<h3>CorePublish Javascript Debug</h3>");debugwinopened=true}debugwin.document.write(a);debugwin.focus();setTimeout("self.focus()",2000)}function jsdebug(b,g){var a="";var c="";if(g>5){return}if(b!=null){for(var d in b){if(b[d]==null){continue}a="<ul>"+typeof b[d];a+=" ["+d+"] => ";try{tmp=b[d].toString();a+=tmp.substring(0,90)+""}catch(f){a+=tmp+""}debug(a);if(typeof b[d]=="object"||typeof b[d]=="function"){jsdebug(b[d],g+1)}debug("</ul>")}}else{a="[null]"}};