function XSJSUtilsClass(){var A=A;var B=B}XSJSUtilsClass.prototype.getWindowX=function(){if(window.screenLeft!=null){return window.screenLeft
}else{if(window.screenX!=null){return window.screenX}}};XSJSUtilsClass.prototype.getWindowY=function(){if(window.screenTop!=null){return window.screenTop
}else{if(window.screenY!=null){return window.screenY}}};XSJSUtilsClass.prototype.getViewportWidth=function(){if(window.innerWidth!=null){return window.innerWidth
}else{if(document.documentElement&&document.documentElement.clientWidth!=null){return document.documentElement.clientWidth
}else{if(document.body.clientWidth!=null){return document.body.clientWidth}}}};XSJSUtilsClass.prototype.getViewportHeight=function(){if(window.innerHeight!=null){return window.innerHeight
}else{if(document.documentElement&&document.documentElement.clientHeight!=null){return document.documentElement.clientHeight
}else{if(document.body.clientHeight!=null){return document.body.clientHeight}}}};
XSJSUtilsClass.prototype.getHorizontalScroll=function(){var A=null;if(window.pageXOffset!=null){A=window.pageXOffset
}else{if(document.documentElement&&document.documentElement.scrollLeft!=null){A=document.documentElement.scrollLeft
}else{if(document.body.scrollLeft!=null){A=document.body.scrollLeft}}}return A};XSJSUtilsClass.prototype.getVerticalScroll=function(){if(window.pageYOffset!=null){return window.pageYOffset
}else{if(document.documentElement&&document.documentElement.scrollTop!=null){return document.documentElement.scrollTop
}else{if(document.body.scrollTop!=null){return document.body.scrollTop}}}};XSJSUtilsClass.prototype.getDocumentWidth=function(){if(document.documentElement&&document.documentElement.scrollWidth!=null){return document.documentElement.scrollWidth
}else{if(document.body.scrollWidth!=null){return document.body.scrollWidth}}};XSJSUtilsClass.prototype.getDocumentHeight=function(){if(document.documentElement&&document.documentElement.scrollHeight!=null){return document.documentElement.scrollHeight
}else{if(document.body.scrollHeight!=null){return document.body.scrollHeight}}};XSJSUtilsClass.prototype.addEventListener=function(D,C,B,A){if(D.addEventListener){D.addEventListener(C,B,A)
}else{if(D.attachEvent){D.attachEvent("on"+C,B)}}};XSJSUtilsClass.prototype.removeEventListener=function(D,C,B,A){if(D.removeEventListener){D.removeEventListener(C,B,A)
}else{if(D.attachEvent){D.detachEvent("on"+C,B)}}};XSJSUtilsClass.prototype.isMouseInsideElement=function(F,A){var I=A.clientX+this.getHorizontalScroll();
var H=A.clientY+this.getVerticalScroll();var E=0;var C=0;var G=F.offsetWidth;var B=F.offsetHeight;
var D=F;do{E+=D.offsetLeft;C+=D.offsetTop}while(D=D.offsetParent);var J=I>=E&&I<=E+G&&H>=C&&H<=C+B;
return J};XSJSUtilsClass.prototype.rgb2HTMLColor=function(D,C,A){var B=Math.round(D)*65536+256*Math.round(C)+Math.round(A);
return B.toString(16)};XSJSUtilsClass.prototype.changeOpacityForElement=function(C,B){var A=C.style;
A.opacity=(B/100);A.MozOpacity=(B/100);A.KhtmlOpacity=(B/100);A.filter="alpha(opacity="+B+")";
if(B==0){A.visibility="hidden"}else{A.visibility="visible"}};XSJSUtilsClass.prototype.createCookie=function(B,L,M,I,J,C,A){var F=B;
var E=L;var D="; path="+M;var G="";var H=A!=null&&A?"; secure":"";if(I==null||I=="BQUIT"){G=""
}else{if(I=="TSECS"){var K=new Date();K.setTime(K.getTime()+(J*1000));G="; expires="+K.toGMTString()
}else{if(I=="DATETIME"){var K=new Date(C);G="; expires="+K.toGMTString()}}}document.cookie=F+"="+E+G+D+H
};XSJSUtilsClass.prototype.readCookie=function(B){var D=B+"=";var A=document.cookie.split(";");
for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)
}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null};XSJSUtilsClass.prototype.eraseCookie=function(A){this.createCookie(A,"","/","TSECS",-1,null,false)
};var XSJSUtils=new XSJSUtilsClass();