function showLayerPopupSized(F,D,E,B){var G=document.getElementById("zsPopupDivZS");if(G){G.style.display=""}else{G=document.createElement("DIV");G.id="zsPopupDivZS";G.style.position="absolute";G.style.border="1px solid #717173";G.style.backgroundColor="#E9E9E9";document.getElementsByTagName("body")[0].appendChild(G)}if(E){G.style.width=E+"px"}if(B){G.style.height=B+"px"}var C=getPageSize();var A=getPageScroll();G.style.left=(C[2]/2-E/2)+"px";G.style.top=(C[3]/2-B/2+A[1])+"px";document.onkeypress=getKey;G.innerHTML="<div style='padding-bottom:3px;background-color:#717173;height:15px;width:100%;'><span style='float:left;color:white;font-weight:bold'>&nbsp;"+F+"</span> <a href='#' style='float:right;color:#FFFFFF;margin-top:3px' onclick='document.getElementById(\"zsPopupDivZS\").style.display=\"none\";document.onkeypress = null;return false;' ><img src='images/clous.gif' width='15' height='13' alt='[close]' border='0'/></a>&nbsp;</div><div  style='padding:3px;clear:both;margin-bottom:2px;'>"+D+"</div>"}function showLayerPopup(B,A){showLayerPopupSized(B,A,300,0)}function hidePopup(){document.getElementById("zsPopupDivZS").style.display="none";document.onkeypress=null}function getPageScroll(){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}}}arrayPageScroll=new Array("",A);return arrayPageScroll}function getPageSize(){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}arrayPageSize=new Array(pageWidth,pageHeight,B,D);return arrayPageSize}function getKey(A){if(A==null){keycode=event.keyCode}else{keycode=A.which}if(keycode==27){document.getElementById("zsPopupDivZS").style.display="none";document.onkeypress=null}}function getMousePos(B){var A=0;var C=0;if(!B){var B=window.event}if(B.pageX||B.pageY){A=B.pageX;C=B.pageY}else{if(B.clientX||B.clientY){A=B.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;C=B.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return new Array(A,C)}function formatPrice(A){A=A.toString().replace(/\$|\,/g,"");if(isNaN(A)){A="0"}sign=(A==(A=Math.abs(A)));A=Math.floor(A*100+0.50000000001);cents=A%100;A=Math.floor(A/100).toString();if(cents<10){cents="0"+cents}for(var B=0;B<Math.floor((A.length-(1+B))/3);B++){A=A.substring(0,A.length-(4*B+3))+","+A.substring(A.length-(4*B+3))}return(((sign)?"":"-")+A+"."+cents)};