var ZBox=window.ZBox={Class:"ZBox",show:function(A,B){var B=B||0;try{var C=$("#"+A);if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("Z_HideSelect")===null){$("body").append("<iframe id='Z_HideSelect'></iframe><div id='Z_overlay'></div><div id='Z_window'></div>")}}else{if(document.getElementById("Z_overlay")===null){$("body").append("<div id='Z_overlay'></div><div id='Z_window'></div>")}}if(B==1){$("#Z_overlay").unbind("click")}else{$("#Z_overlay").click(this.remove)}$("#Z_overlay").addClass("Z_overlayBG");$("#Z_window").html(C.html());this.position(C.width(),C.height());$("#Z_window").show()}catch(D){}},remove:function(A){if(jQuery.browser.msie||A==1){$("#Z_window,#Z_overlay,#Z_HideSelect").trigger("unload").unbind().remove()}else{$("#Z_window").fadeOut("slow",function(){$("#Z_window,#Z_overlay,#Z_HideSelect").trigger("unload").unbind().remove()})}if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";if(document.flashSceneId&&document.flashSceneId>0){callExternalInterface(document.flashSceneId)}return false},position:function(A,B){$("#Z_window").css({marginLeft:"-"+parseInt((A/2),10)+"px",width:A+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#Z_window").css({marginTop:"-"+parseInt((B/2),10)+"px"})}else{$("#Z_window").css("top",this.getPageScroll().yScroll+(this.getPageSize().wHeight/2)+"px");$("#Z_window").css({marginTop:"-"+parseInt((B/2),10)+"px"})}},getPageSize:function(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}return{pWidth:pageWidth,pHeight:pageHeight,wWidth:B,wHeight:D}},getPageScroll:function(){var A;if(self.pageYOffset){A=self.pageYOffset}else{if(document.documentElement&&document.documentElement.scrollTop){A=document.documentElement.scrollTop}else{if(document.body){A=document.body.scrollTop}}}return{xScroll:0,yScroll:A}}};
