function GoToPD(iLookupNo){var hidFT4AgentProfileURL=document.getElementById("hidFT4AgentProfileURL");window.location.href=hidFT4AgentProfileURL.value+"propertydetail.aspx?ilookup_no="+iLookupNo+"&sorigin=agtprofile"}function showMorePhotos(sURL,event){var hidPhotoViewer=document.getElementById("hidPhotoViewer");hidPhotoViewer.value="Y";var width="600px";var height="535px";var ifra="ifraPhoto";var bvMPE="bvMPELargePhoto";changeIFRAMESource(sURL,ifra,bvMPE,width,height);if(event!=null){if(browser.indexOf("Firefox")!=-1||browser.indexOf("Safari")!=-1){event.preventDefault();event.stopPropagation();}else{event.cancel=true;event.returnValue=false}}}function PlayVideo(avFile,szTitle){var divVideo=document.getElementById("divVideo");var ScrollTop=document.body.scrollTop;if(window.pageYOffset){ScrollTop=window.pageYOffset}else{ScrollTop=(document.body.parentElement)?document.body.parentElement.scrollTop:0}var myTop=ScrollTop;var myLeft=(parseInt(screen.width/2)-parseInt(divVideo.clientWidth/2))-120;divVideo.style.top=myTop+"px";divVideo.style.left=myLeft+"px";divVideo.style.visibility="visible";var spnVideoTitle=document.getElementById("spnVideoTitle");if(szTitle!=''){szTitle=unescape(szTitle);szTitle=replaceAll(szTitle,'+',' ');spnVideoTitle.innerHTML="Now Playing: "+szTitle}else{spnVideoTitle.innerHTML="Now Playing"}var spnVideo=document.getElementById("spnVideo");if(avFile.indexOf('youtube')==-1){spnVideo.innerHTML="<embed  pluginspage='http://www.microsoft.com/Windows/MediaPlayer/download/default.asp' align='baseline'  src='"+avFile+"'  width ='425px'  height='344px' type='application/x-mplayer2'  autostart='1' showcontrols='1' allowfullscreen='true' ></embed>"}else{spnVideo.innerHTML="<embed src='"+avFile+"' type='application/x-shockwave-flash' allowfullscreen='true' width='425' height='344'></embed>"}var divGhost=document.getElementById("divGhost");divGhost.style.visibility="visible";MaximizeGhosting(divGhost,"#000000","alpha(opacity:50)","absolute","700",document.body.clientHeight);}function clickPageNumber(index){document.getElementById('hidPageNo').value=index;document.getElementById('btnClickMe').click();}
