function getPageScroll(){var yScroll;if(self.pageYOffset)yScroll=self.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)yScroll=document.documentElement.scrollTop;else if(document.body)yScroll=document.body.scrollTop;return yScroll}function getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=document.body.scrollWidth;yScroll=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight}var windowWidth,windowHeight;if(self.innerHeight){windowWidth=self.innerWidth;windowHeight=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight}if(yScroll<windowHeight){pageHeight=windowHeight}else{pageHeight=yScroll}if(xScroll<windowWidth){pageWidth=windowWidth}else{pageWidth=xScroll}arrayPageSize=new Array(pageWidth,pageHeight,windowHeight);return arrayPageSize}function showModal(obj){var arrayPageSize=getPageSize();var dimmerDiv=document.getElementById('dimmer');dimmerDiv.style.height=(arrayPageSize[1]+'px');obj=document.getElementById(obj);obj.style.zIndex=1000;width=obj.offsetWidth;height=obj.offsetHeight;obj.style.position='absolute';obj.style.top=(getPageScroll()+((arrayPageSize[2]-35-height)/2)+'px');obj.style.left=(((arrayPageSize[0]-20-width)/2)+'px');obj.style.visibility='visible';dimmerDiv.style.visibility='visible'}function initDimmer(){document.write('<div id="dimmer"><!--[if lte IE 6.5]><IFRAME src="about:blank" style="display:block;z-index:-1;filter:mask();left:0px;position:absolute;top:0px;width:100%;height:100%;"></IFRAME><![endif]--></div>')}initDimmer();