function xDeprecate(a){var b="DEPRECATED : "+a+"() is deprecated function.";if(typeof console=="object"&&typeof console.log=="function"){console.log(b);}}var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,xIE6,xNN4,xUA=navigator.userAgent.toLowerCase();if(window.opera){var i=xUA.indexOf("opera");if(i!=-1){var v=parseInt(xUA.charAt(i+6));xOp7Up=v>=7;xOp6Dn=v<7;}}else{if(navigator.vendor!="KDE"&&document.all&&xUA.indexOf("msie")!=-1){xIE4Up=parseFloat(navigator.appVersion)>=4;xIE4=xUA.indexOf("msie 4")!=-1;xIE5=xUA.indexOf("msie 5")!=-1;xIE6=xUA.indexOf("msie 6")!=-1;}else{if(document.layers){xNN4=true;}}}var xMac=xUA.indexOf("mac")!=-1;var xFF=xUA.indexOf("firefox")!=-1;function xAddEventListener(e,eT,eL,cap){xDeprecate("xAddEventListener");if(!(e=xGetElementById(e))){return;}eT=eT.toLowerCase();if((!xIE4Up&&!xOp7Up)&&e==window){if(eT=="resize"){window.xPCW=xClientWidth();window.xPCH=xClientHeight();window.xREL=eL;xResizeEvent();return;}if(eT=="scroll"){window.xPSL=xScrollLeft();window.xPST=xScrollTop();window.xSEL=eL;xScrollEvent();return;}}var eh="e.on"+eT+"=eL";if(e.addEventListener){e.addEventListener(eT,eL,cap);}else{if(e.attachEvent){e.attachEvent("on"+eT,eL);}else{eval(eh);}}}function xResizeEvent(){xDeprecate("xResizeEvent");if(window.xREL){setTimeout("xResizeEvent()",250);}var a=xClientWidth(),b=xClientHeight();if(window.xPCW!=a||window.xPCH!=b){window.xPCW=a;window.xPCH=b;if(window.xREL){window.xREL();}}}function xScrollEvent(){xDeprecate("xScrollEvent");if(window.xSEL){setTimeout("xScrollEvent()",250);}var a=xScrollLeft(),b=xScrollTop();if(window.xPSL!=a||window.xPST!=b){window.xPSL=a;window.xPST=b;if(window.xSEL){window.xSEL();}}}function xAppendChild(b,a){xDeprecate("xAppendChild");if(b.appendChild){return b.appendChild(a);}else{return null;}}function xClientHeight(){xDeprecate("xClientHeight");var a=0;if(xOp6Dn){a=window.innerHeight;}else{if(document.compatMode=="CSS1Compat"&&!window.opera&&document.documentElement&&document.documentElement.clientHeight){a=document.documentElement.clientHeight;}else{if(document.body&&document.body.clientHeight){a=document.body.clientHeight;}else{if(xDef(window.innerWidth,window.innerHeight,document.width)){a=window.innerHeight;if(document.width>window.innerWidth){a-=16;}}}}}return a;}function xClientWidth(){xDeprecate("xClientWidth");var a=0;if(xOp6Dn){a=window.innerWidth;}else{if(document.compatMode=="CSS1Compat"&&!window.opera&&document.documentElement&&document.documentElement.clientWidth){a=document.documentElement.clientWidth;}else{if(document.body&&document.body.clientWidth){a=document.body.clientWidth;}else{if(xDef(window.innerWidth,window.innerHeight,document.height)){a=window.innerWidth;if(document.height>window.innerHeight){a-=16;}}}}}return a;}function xCreateElement(a){xDeprecate("xCreateElement");if(document.createElement){return document.createElement(a);}else{return null;}}function xDef(){xDeprecate("xDef");for(var a=0;aa?b:a;}function xGetBodyHeight(){xDeprecate("xGetBodyHeight");var b=xClientHeight();var a=window.document.body.scrollHeight;return b>a?b:a;}function xGetComputedStyle(b,h,e){xDeprecate("xGetComputedStyle");var j,k="undefined";var g=document.defaultView;if(g&&g.getComputedStyle){j=g.getComputedStyle(b,"");if(j){k=j.getPropertyValue(h);}}else{if(b.currentStyle){var d=h.split("-");h=d[0];for(var f=1;f0){var f=document.cookie.indexOf(d);if(f!=-1){f+=d.length;var a=document.cookie.indexOf(";",f);if(a==-1){a=document.cookie.length;}e=unescape(document.cookie.substring(f,a));}}return e;}function xGetElementById(a){xDeprecate("xGetElementById");if(typeof(a)!="string"){return a;}if(document.getElementById){a=document.getElementById(a);}else{if(document.all){a=document.all[a];}else{a=null;}}return a;}function xGetElementsByAttribute(b,g,e,h){xDeprecate("xGetElementsByAttribute");var j,f,l=new Array(),k=new RegExp(e,"i");f=xGetElementsByTagName(b);for(var d=0;d=0){var j=0,d=0,b=0,l=0;if(document.compatMode=="CSS1Compat"){var a=xGetComputedStyle;j=a(k,"padding-top",1);if(j!==null){d=a(k,"padding-bottom",1);b=a(k,"border-top-width",1);l=a(k,"border-bottom-width",1);}else{if(xDef(k.offsetHeight,k.style.height)){k.style.height=g+"px";j=k.offsetHeight-g;}}}g-=(j+d+b+l);if(isNaN(g)||g<0){return null;}else{k.style.height=g+"px";}}g=k.offsetHeight;}else{if(f&&xDef(k.style.pixelHeight)){if(g>=0){k.style.pixelHeight=g;}g=k.style.pixelHeight;}}}return g;}function xHex(f,d,b){xDeprecate("xHex");var e="";var g=Math.ceil(f);if(b){e=b;}g=g.toString(16);for(var a=0;a=0){var g=0,k=0,j=0,d=0;if(document.compatMode=="CSS1Compat"){var a=xGetComputedStyle;g=a(h,"padding-left",1);if(g!==null){k=a(h,"padding-right",1);j=a(h,"border-left-width",1);d=a(h,"border-right-width",1);}else{if(xDef(h.offsetWidth,h.style.width)){h.style.width=b+"px";g=h.offsetWidth-b;}}}b-=(g+k+j+d);if(isNaN(b)||b<0){return null;}else{h.style.width=b+"px";}}b=h.offsetWidth;}else{if(f&&xDef(h.style.pixelWidth)){if(b>=0){h.style.pixelWidth=b;}b=h.style.pixelWidth;}}}return b;}function xZIndex(b,a){xDeprecate("xZIndex");if(!(b=xGetElementById(b))){return 0;}if(b.style&&xDef(b.style.zIndex)){if(xNum(a)){b.style.zIndex=a;}a=parseInt(b.style.zIndex);}return a;}function xStopPropagation(a){xDeprecate("xStopPropagation");if(a&&a.stopPropagation){a.stopPropagation();}else{if(window.event){window.event.cancelBubble=true;}}}