function ShowAlternativeImage(imageName, clientID)    {
    
    document.getElementById(clientID).src = '/images/ecommerce/standard/' + imageName;
    //document['mainImage'].src = '/images/ecommerce/mini/' + imageName;
}

function zoomProductImage(productImage) {
    
	if (productImage) {
		window.open('/Ecommerce/zoom.aspx?image=' + productImage,'ZOOM','width=700,height=700,scrollbars=no,resize=no');
    }
    
    //[RK] 21/12/06 - triggered from ImageButton so MUST return false
    return false;
}

function fitPic() {
	if (window.innerWidth){
		iWidth = window.innerWidth;
		iHeight = window.innerHeight;
	}else{
		iWidth = document.body.clientWidth;
		iHeight = document.body.clientHeight;
	}
	
	iWidth = document.images[0].width - iWidth;
	iHeight = document.images[0].height - iHeight;

	window.resizeBy(iWidth, iHeight);
}

function zoomHostPhotoGalleryImage(productImage) {
    
	if (productImage) {
		window.open('/PhotoGalleryZoom.aspx?image=' + productImage,'ZOOM','width=500,height=450,scrollbars=no,resize=yes');
    }
    
    //[RK] 21/12/06 - triggered from ImageButton so MUST return false
    return false;
}

function ShowVenueDetail(id, divID, myclientID)    {
    var prefix = document.forms['aspnetForm'].elements['jsPrefix'].value;
    var oForm = document.forms['aspnetForm']

     //alert(id);
   //alert(divID);
    //alert('oForm' + oForm);
    //alert(myclientID);
    
    var control = myclientID + '_' + id
    document.getElementById(control).style.display = 'block'; 

}

function HideVenueDetail(id, divID, myclientID)    {
    var prefix = document.forms['aspnetForm'].elements['jsPrefix'].value;
    var oForm = document.forms['aspnetForm']

     //alert(id);
   //alert(divID);
    //alert('oForm' + oForm);
    //alert(myclientID);
    
    var control = myclientID + '_' + id
    document.getElementById(control).style.display = 'none'; 

}