var popupWin; /***************************************/ /* eZimageChange() */ /***************************************/ function eZimageChange(oImg, url, duration) { if(oImg && url) { if(document.all) { oImg.style.filter="blendTrans(duration="+duration+")"; oImg.filters.blendTrans.Apply(); } oImg.src = url; if(document.all) { oImg.filters.blendTrans.Play(); } } } /***************************************/ // eZclosePopup() /***************************************/ function eZclosePopup() { if(popupWin) popupWin.close(); } /***************************************/ // openEzImageViewer() /***************************************/ function openEzImageViewer(addr, alt) { eZclosePopup(); var winwidth = '600'; var winheight = '425'; var ststus = 'no'; var scrollbar = 'no'; var tool_bar = 'no'; var leftpos = 0; var toppos = 0; if(!leftpos) { var scrwidth = screen.availWidth leftpos= (scrwidth/2) -(winwidth/2); } if(!toppos) { var scrheight = screen.availHeight toppos = (scrheight/2)-(winheight/2); } var url = 'http://www.niagarawatersedgeinn.com/admin/eZeditor/' + 'dialog/imageviewer.php?addr=' + addr + '&alt=' + alt; popupWin = window.open( url , 'popupWin' , config='width='+winwidth +',height='+winheight +',left='+leftpos +',top='+ toppos +',modal=yes' +',toolbar='+tool_bar+', menubar=no, ' +',scrollbars='+scrollbar+', resizable=yes, ' +',location=no, directories=no, status=' + ststus ); popupWin.focus(); }