
function listingMouseAction(){
 
}

var imgWin = false;
function showZoomImage(show, pNum){
 if(!show){
	 //document.getElementById('mainScreenOpacity').style.filter = 'alpha(opacity=100)';
	 document.getElementById('ImageZoomFrame').style.display='none';
		if(document.getElementById('state'))
			 document.getElementById('state').style.visibility = 'visible';	
	}
	else{	
	 if(frames.ImageZoomFrame.imgObject && document.getElementById('ImageZoomFrame').readyState == 'complete'){
		 //document.getElementById('mainScreenOpacity').style.filter = 'alpha(opacity=60)';	
			if(pNum)	
	   frames.ImageZoomFrame.resizeImage(pNum);
			else
			 frames.ImageZoomFrame.resizeImage();
			if(document.getElementById('state'))
			 document.getElementById('state').style.visibility = 'hidden';			
		 document.getElementById('ImageZoomFrame').style.display = 'inline';
		}
		else
		 window.setTimeout("showZoomImage(true, 1)", 1000);
		 //alert('Photo Gallery is still being loaded');
	}
}
function locateZoomFrame(ID){
 if(frames.ImageZoomFrame.location != '/user-applications/photoGallery/ImageZoom.cfm?parentID='+ID)
  frames.ImageZoomFrame.location = '/user-applications/photoGallery/ImageZoom.cfm?parentID='+ID;
}