function displaySealInfo(link) {link+='&l='+document.location;var wnd=window.open(link,"trustme","location=1,status=1,toolbar=0,width=800,height=600,resizable=1");} function leaveSealInfo() {overSeal=false;$('trustme_popup').hide();} function leaveSealImage() {overSeal=false;} function requestSealInfo() {overSeal=true;if(haveSealInfo) {showPopup('');} else if(!inSealRequest) {inSealRequest=true;showPopup(requestUrl+'seal_popup.php?d='+domainId+'&t='+sealType);}} function showPopup(contentLocation) {if(!$('trustme_popup')) {haveSealInfo=true;var sealElement=$('seal_link');var page=getPageSize();var elementPosition=sealElement.cumulativeOffset();var boxWidth=265;var boxHeight=220;var boxLeft=elementPosition.left;var boxTop=elementPosition.top+sealElement.getHeight();pageHeight=page.pageHeight;pageWidth=page.pageWidth;if((boxTop+boxHeight)>pageHeight) {boxTop-=((boxTop+boxHeight)-pageHeight);boxTop-=50;} if((boxLeft+boxWidth)>pageWidth) {boxLeft-=((boxLeft+boxWidth)-pageWidth);boxLeft-=50;} var trustmePopup=new Element('div',{'id':'trustme_popup'});trustmePopup.setStyle({margin:"0px",padding:"10px",border:"1px solid #ccc",width:boxWidth+"px",height:boxHeight+"px",fontFamily:"Verdana,Tahoma,Arial",fontSize:"11px",backgroundColor:"#FFF",position:"absolute",left:boxLeft+'px',zIndex:'1000',display:'none',top:boxTop+'px'});var n_iframe1=document.createElement('iframe');n_iframe1.setAttribute('width',boxWidth);n_iframe1.style.border="none";n_iframe1.setAttribute('scrolling','no');n_iframe1.setAttribute('id','trustme_popup_inner');n_iframe1.setAttribute('height',boxHeight);n_iframe1.setAttribute('frameBorder','0');n_iframe1.setAttribute('allowtransparency','true');n_iframe1.setAttribute('marginheight','0');n_iframe1.setAttribute('marginwidth','0');n_iframe1.setAttribute('src',contentLocation);trustmePopup.appendChild(n_iframe1);document.body.appendChild(trustmePopup);Event.observe('trustme_popup_inner','mouseout',leaveSealInfo);} new PeriodicalExecuter(onDisplay,1);} function getPageSize(parent) {parent=parent||document.body;var windowWidth,windowHeight;var pageHeight,pageWidth;if(parent!=document.body){windowWidth=parent.getWidth();windowHeight=parent.getHeight();pageWidth=parent.scrollWidth;pageHeight=parent.scrollHeight;} else{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;} 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