function prepareV(){if(dojo.isIE<7){photoviewerSWFDiv="PV_window";prepareViewerIE6()}else{photoviewerSWFDiv="photoviewer01";prepareViewer()}}function photoviewer(b,e,a,c){var d=Math.random();writeSwf(b,e,a,c+"?"+d)}function writeSwf(c,f,a,e){if(document.getElementById(photoviewerSWFDiv)!=null){if(typeof(dojo.isSafari)=="undefined"){document.getElementsByTagName("html")[0].style.overflow="hidden"}if(dojo.isIE<7){document.getElementById(photoviewerSWFDiv).style.display="block";document.getElementById(photoviewerSWFDiv).style.top=document.documentElement.scrollTop+"px"}else{document.getElementById(photoviewerSWFDiv).style.display=""}hidemenu();var b=(e);var d=new FlashObject(b,"zoom_image","100%","100%","9","");d.addParam("quality","high");d.addParam("wmode","transparent");d.addParam("allowScriptAccess","always");d.addParam("allowFullScreen","true");d.addParam("bgcolor","#000000");d.addVariable("photourl",escape(c));d.addVariable("photosmallurl",escape(f));d.addVariable("photodesc",a);d.addVariable("appointurl",escape(window.location));d.write(photoviewerSWFDiv)}}function prepareViewerIE6(){var a=document.createElement("div");a.id=photoviewerSWFDiv;a.style.height="100%";a.style.width="100%";a.style.top=document.documentElement.scrollTop+"px";a.style.display="block";a.style.zIndex="991699999";a.style.display="none";var b=document.getElementById("wrapper");b.parentNode.insertBefore(a,b)}function prepareViewer(){var a=document.createElement("div");a.id=photoviewerSWFDiv;a.style.position="fixed";a.style.height="100%";a.style.width="100%";a.style.zIndex="991699999";a.style.bottom="0px";a.style.left="0px";a.style.display="none";var b=document.getElementById("wrapper");b.parentNode.insertBefore(a,b)}function closePhotoZoom(){if(typeof(dojo.isSafari)=="undefined"){document.getElementsByTagName("html")[0].style.overflow="auto"}document.getElementById(photoviewerSWFDiv).style.display="none";showmenu()}function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){b();a()}}}function hidemenu(){var b=document.getElementsByTagName("select");for(i=0;i<b.length;i++){b[i].style.visibility="hidden"}}function showmenu(){var b=document.getElementsByTagName("select");for(i=0;i<b.length;i++){b[i].style.visibility="visible"}}var photoviewerSWFDiv=null;if(typeof(dojo)=="undefined"){addLoadEvent(function(){prepareV()})}else{dojo.addOnLoad(function(){prepareV()})};