function xBackground(C,D,B){if(!(C=xGetElementById(C))){return""}var A="";if(C.style){if(xStr(D)){C.style.backgroundColor=D}if(xStr(B)){C.style.backgroundImage=(B!="")?"url("+B+")":null}A=C.style.backgroundColor}return A}function xClientHeight(){var B=0,C=document,A=window;if(C.compatMode=="CSS1Compat"&&!A.opera&&C.documentElement&&C.documentElement.clientHeight){B=C.documentElement.clientHeight}else{if(C.body&&C.body.clientHeight){B=C.body.clientHeight}else{if(xDef(A.innerWidth,A.innerHeight,C.width)){B=A.innerHeight;if(C.width>A.innerWidth){B-=16}}}}return B}function xClientWidth(){var B=0,C=document,A=window;if(C.compatMode=="CSS1Compat"&&!A.opera&&C.documentElement&&C.documentElement.clientWidth){B=C.documentElement.clientWidth}else{if(C.body&&C.body.clientWidth){B=C.body.clientWidth}else{if(xDef(A.innerWidth,A.innerHeight,C.height)){B=A.innerWidth;if(C.height>A.innerHeight){B-=16}}}}return B}function xClip(E,C,D,A,B){if(!(E=xGetElementById(E))){return}if(E.style){if(xNum(B)){E.style.clip="rect("+C+"px "+D+"px "+A+"px "+B+"px)"}else{E.style.clip="rect(0 "+parseInt(E.style.width)+"px "+parseInt(E.style.height)+"px 0)"}}}function xColor(B,A){if(!(B=xGetElementById(B))){return""}var C="";if(B.style&&xDef(B.style.color)){if(xStr(A)){B.style.color=A}C=B.style.color}return C}function xDef(){for(var A=0;A<arguments.length;++A){if(typeof(arguments[A])=="undefined"){return false}}return true}function xDisplay(C,B){if((C=xGetElementById(C))&&C.style&&xDef(C.style.display)){if(xStr(B)){try{C.style.display=B}catch(A){C.style.display=""}}return C.style.display}return null}function xGetComputedStyle(B,D,I){var H,C="undefined";var A=document.defaultView;if(A&&A.getComputedStyle){H=A.getComputedStyle(B,"");if(H){C=H.getPropertyValue(D)}}else{if(B.currentStyle){var E,F,G=D.split("-");D=G[0];for(E=1;E<G.length;++E){F=G[E].charAt(0);D+=G[E].replace(F,F.toUpperCase())}C=B.currentStyle[D]}else{return null}}return I?(parseInt(C)||0):C}function xGetElementById(A){if(typeof(A)=="string"){if(document.getElementById){A=document.getElementById(A)}else{if(document.all){A=document.all[A]}else{A=null}}}return A}function xGetElementsByTagName(A,C){var B=null;A=A||"*";C=C||document;if(C.getElementsByTagName){B=C.getElementsByTagName(A);if(A=="*"&&(!B||!B.length)){B=C.all}}else{if(A=="*"){B=C.all}else{if(C.all&&C.all.tags){B=C.all.tags(A)}}}return B||new Array()}function xHasPoint(D,G,E,H,A,F,C){if(!xNum(H)){H=A=F=C=0}else{if(!xNum(A)){A=F=C=H}else{if(!xNum(F)){C=A;F=H}}}var B=xPageX(D),I=xPageY(D);return(G>=B+C&&G<=B+xWidth(D)-A&&E>=I+H&&E<=I+xHeight(D)-F)}function xHeight(G,E){if(!(G=xGetElementById(G))){return 0}if(xNum(E)){if(E<0){E=0}else{E=Math.round(E)}}else{E=-1}var D=xDef(G.style);if(G==document||G.tagName.toLowerCase()=="html"||G.tagName.toLowerCase()=="body"){E=xClientHeight()}else{if(D&&xDef(G.offsetHeight)&&xStr(G.style.height)){if(E>=0){var F=0,C=0,B=0,H=0;if(document.compatMode=="CSS1Compat"){var A=xGetComputedStyle;F=A(G,"padding-top",1);if(F!==null){C=A(G,"padding-bottom",1);B=A(G,"border-top-width",1);H=A(G,"border-bottom-width",1)}else{if(xDef(G.offsetHeight,G.style.height)){G.style.height=E+"px";F=G.offsetHeight-E}}}E-=(F+C+B+H);if(isNaN(E)||E<0){return}else{G.style.height=E+"px"}}E=G.offsetHeight}else{if(D&&xDef(G.style.pixelHeight)){if(E>=0){G.style.pixelHeight=E}E=G.style.pixelHeight}}}return E}function xHide(A){return xVisibility(A,0)}function xLeft(C,A){if(!(C=xGetElementById(C))){return 0}var B=xDef(C.style);if(B&&xStr(C.style.left)){if(xNum(A)){C.style.left=A+"px"}else{A=parseInt(C.style.left);if(isNaN(A)){A=xGetComputedStyle(C,"left",1)}if(isNaN(A)){A=0}}}else{if(B&&xDef(C.style.pixelLeft)){if(xNum(A)){C.style.pixelLeft=A}else{A=C.style.pixelLeft}}}return A}xLibrary={version:"4.06",license:"GNU LGPL",url:"http://cross-browser.com/"};function xMoveTo(B,A,C){xLeft(B,A);xTop(B,C)}function xNum(){for(var A=0;A<arguments.length;++A){if(isNaN(arguments[A])||typeof(arguments[A])!="number"){return false}}return true}function xOffsetLeft(A){if(!(A=xGetElementById(A))){return 0}if(xDef(A.offsetLeft)){return A.offsetLeft}else{return 0}}function xOffsetTop(A){if(!(A=xGetElementById(A))){return 0}if(xDef(A.offsetTop)){return A.offsetTop}else{return 0}}function xOpacity(A,B){var C=xDef(B);if(!(A=xGetElementById(A))){return 2}if(xStr(A.style.opacity)){if(C){A.style.opacity=B+""}else{B=parseFloat(A.style.opacity)}}else{if(xStr(A.style.filter)){if(C){A.style.filter="alpha(opacity="+(100*B)+")"}else{if(A.filters&&A.filters.alpha){B=A.filters.alpha.opacity/100}}}else{if(xStr(A.style.MozOpacity)){if(C){A.style.MozOpacity=B+""}else{B=parseFloat(A.style.MozOpacity)}}else{if(xStr(A.style.KhtmlOpacity)){if(C){A.style.KhtmlOpacity=B+""}else{B=parseFloat(A.style.KhtmlOpacity)}}}}}return isNaN(B)?1:B}function xPageX(B){if(!(B=xGetElementById(B))){return 0}var A=0;while(B){if(xDef(B.offsetLeft)){A+=B.offsetLeft}B=xDef(B.offsetParent)?B.offsetParent:null}return A}function xPageY(A){if(!(A=xGetElementById(A))){return 0}var B=0;while(A){if(xDef(A.offsetTop)){B+=A.offsetTop}A=xDef(A.offsetParent)?A.offsetParent:null}return B}function xParent(C,B){if(!(C=xGetElementById(C))){return null}var A=null;if(!B&&xDef(C.offsetParent)){A=C.offsetParent}else{if(xDef(C.parentNode)){A=C.parentNode}else{if(xDef(C.parentElement)){A=C.parentElement}}}return A}function xResizeTo(C,A,B){xWidth(C,A);xHeight(C,B)}function xScrollLeft(C,B){var D=0;if(!xDef(C)||B||C==document||C.tagName.toLowerCase()=="html"||C.tagName.toLowerCase()=="body"){var A=window;if(B&&C){A=C}if(A.document.documentElement&&A.document.documentElement.scrollLeft){D=A.document.documentElement.scrollLeft}else{if(A.document.body&&xDef(A.document.body.scrollLeft)){D=A.document.body.scrollLeft}}}else{C=xGetElementById(C);if(C&&xNum(C.scrollLeft)){D=C.scrollLeft}}return D}function xScrollTop(C,B){var D=0;if(!xDef(C)||B||C==document||C.tagName.toLowerCase()=="html"||C.tagName.toLowerCase()=="body"){var A=window;if(B&&C){A=C}if(A.document.documentElement&&A.document.documentElement.scrollTop){D=A.document.documentElement.scrollTop}else{if(A.document.body&&xDef(A.document.body.scrollTop)){D=A.document.body.scrollTop}}}else{C=xGetElementById(C);if(C&&xNum(C.scrollTop)){D=C.scrollTop}}return D}function xShow(A){return xVisibility(A,1)}function xStr(B){for(var A=0;A<arguments.length;++A){if(typeof(arguments[A])!="string"){return false}}return true}function xTop(B,C){if(!(B=xGetElementById(B))){return 0}var A=xDef(B.style);if(A&&xStr(B.style.top)){if(xNum(C)){B.style.top=C+"px"}else{C=parseInt(B.style.top);if(isNaN(C)){C=xGetComputedStyle(B,"top",1)}if(isNaN(C)){C=0}}}else{if(A&&xDef(B.style.pixelTop)){if(xNum(C)){B.style.pixelTop=C}else{C=B.style.pixelTop}}}return C}var xOp7Up,xOp6Dn,xIE4Up,xIE4,xIE5,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}else{if(document.layers){xNN4=true}}}xMac=xUA.indexOf("mac")!=-1;function xVisibility(B,A){if(!(B=xGetElementById(B))){return null}if(B.style&&xDef(B.style.visibility)){if(xDef(A)){B.style.visibility=A?"visible":"hidden"}return B.style.visibility}return null}function xWidth(F,B){if(!(F=xGetElementById(F))){return 0}if(xNum(B)){if(B<0){B=0}else{B=Math.round(B)}}else{B=-1}var D=xDef(F.style);if(F==document||F.tagName.toLowerCase()=="html"||F.tagName.toLowerCase()=="body"){B=xClientWidth()}else{if(D&&xDef(F.offsetWidth)&&xStr(F.style.width)){if(B>=0){var E=0,H=0,G=0,C=0;if(document.compatMode=="CSS1Compat"){var A=xGetComputedStyle;E=A(F,"padding-left",1);if(E!==null){H=A(F,"padding-right",1);G=A(F,"border-left-width",1);C=A(F,"border-right-width",1)}else{if(xDef(F.offsetWidth,F.style.width)){F.style.width=B+"px";E=F.offsetWidth-B}}}B-=(E+H+G+C);if(isNaN(B)||B<0){return}else{F.style.width=B+"px"}}B=F.offsetWidth}else{if(D&&xDef(F.style.pixelWidth)){if(B>=0){F.style.pixelWidth=B}B=F.style.pixelWidth}}}return B}function xZIndex(B,A){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};
