function HLM(){}HLM.prototype.getElementsByClass=function(g,e,a){var d=new Array();if(e==null){e=document}if(a==null){a="*"}var c=e.getElementsByTagName(a);var b=c.length;var f=new RegExp("(^|\\s)"+g+"(\\s|$)");for(i=0,j=0;i<b;i++){if(f.test(c[i].className)){d[j]=c[i];j++}}return d};HLM.prototype.getBody=function(){return document.getElementsByTagName("body")[0]};HLM.prototype.getWindowWidth=function(){try{if(document.body){return parseInt(document.getElementsByTagName("body")[0].clientWidth,10)}else{if(document.all){var a=HLM.getBody();return parseInt(a.clientWidth)}else{return parseInt(window.innerWidth)}}}catch(b){return 0}};HLM.prototype.getWindowHeight=function(){if(document.body){return parseInt(document.getElementsByTagName("body")[0].clientHeight)}else{return window.innerHeight}};HLM.prototype.getTopPos=function(a){var b=a.offsetTop;while((a=a.offsetParent)!=null){b+=a.offsetTop}return b};HLM.prototype.getLeftPos=function(a){var b=a.offsetLeft;while((a=a.offsetParent)!=null){b+=a.offsetLeft}return b};HLM.prototype.classSwap=function(a){if(a!=undefined){var b=Number(a.className.substr(a.className.length-1,1)==0);a.className=a.className.substr(0,a.className.length-1)+b}};HLM.prototype.detectScrollBar=function(a){if(a!=undefined){if(a.tagName=="body"){if(document.body.clientHeight<document.body.scrollHeight){return true}if(document.body.clientWidth<document.body.scrollWidth){return true}}else{if(a.scrollHeight>a.clientHeight){return true}if(a.scrollWidth>a.clientWidth){return true}}}return false};var HLM=new HLM();
