if(!sjsl){var sjsl={}}sjsl.VERSION="1.0.0.1";sjsl.getClientWidth=function(){if(document.body.clientWidth){return document.body.clientWidth}else{return innerWidth}};sjsl.getClientHeight=function(A){if(!A){A=window}if(A.document.body.clientHeight){return A.document.body.clientHeight}else{return A.innerHeight}};sjsl.getMouseX=function(A){if(window.opera){return A.clientX}else{if(document.all){return event.clientX+document.body.scrollLeft}else{if(document.layers||document.getElementById){return A.pageX}}}};sjsl.getMouseY=function(A){if(window.opera){return A.clientY}else{if(document.all){return event.clientY+document.body.scrollTop}else{if(document.layers||document.getElementById){return A.pageY}}}};sjsl.getMouseXonSrcElement=function(A){if(document.all||window.opera){return event.offsetX}return A.layerX};sjsl.getMouseYonSrcElement=function(A){if(document.all||window.opera){return event.offsetY}return A.layerY};sjsl.getSrcElement=function(A){if(window.createPopup){return event.srcElement}return A.target};sjsl.getMouseButton=function(A){if(window.createPopup){return event.button}else{if(document.layers||document.getElementById){if(A.which==1){return 1}if(A.which==2){return 4}if(A.which==3){return 2}}}};sjsl.getKeyCode=function(A){if(document.all){return event.keyCode}else{if(document.getElementById){return(A.keyCode!=0)?A.keyCode:A.charCode}else{if(document.layers){return A.which}}}};sjsl.cancelBubble=function(A){if(document.all){event.cancelBubble=true}else{if(A&&A.stopPropagation){A.stopPropagation()}}};sjsl.isActiveXValid=function(){try{new ActiveXObject("Msxml2.XMLHTTP")}catch(A){try{new ActiveXObject("Microsoft.XMLHTTP")}catch(A){return false}}return true};sjsl.extend=function(A,C){for(var B in C){A[B]=C[B]}};sjsl.setCookie=function(C,A){var B=new Date();B.setDate(B.getDate()+30);document.cookie=C+"="+A+";expires="+B.toGMTString()+";"};sjsl.getCookie=function(D,A){var C=new RegExp(D+"=([^;]*);","i");var B=document.cookie+";";if(!B.match(C)){return A}return RegExp.$1};sjsl.delCookie=function(B){var A=new Date();A.setDate(A.getDate()-365);document.cookie=B+"=0;expires="+A.toGMTString()+";"};sjsl.bind=function(A,B){return function(){return B.apply(A,arguments)}};sjsl.addEventObserver=function(B,A){if(!this.listeners){this.listeners=new Array()}if(!this.listeners[B]){this.listeners[B]=new Array();this["on"+B]=function(){Array.prototype.push.apply(arguments,[this]);var C;for(var D=0;D<this.listeners[B].length;++D){if(this.listeners[B][D].apply(this,arguments)==false){C=false}}return C}}this.listeners[B].push(A);return[B,A]};sjsl.removeEventObserver=function(B){for(var A in this.listeners[B[0]]){if(this.listeners[B[0]][A]==B[1]){this.listeners[B[0]].splice(A--,1)}}};sjsl.eventObserver=function(A){A.addEventObserver=sjsl.addEventObserver;A.removeEventObserver=sjsl.removeEventObserver};sjsl.createXMLHttpRequest=function(){var A=null;try{A=new XMLHttpRequest()}catch(B){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){return null}}}return A};