﻿// JScript File

function disableButton(currentButton)
{
	currentButton.disabled=true;
}


function fade (newsrc)
// PER THUMBNAIL PhotoGalleriesThumbNails.ascx, spostare li
{
	if (document.all)
	{
		document.images.previewImage.style.filter="blendTrans(delay=1)";
		document.images.previewImage.filters.blendTrans.Apply();
		
		//document.images.SlideShowImage.style.filter="blendTrans(delay=1)";
		//document.images.SlideShowImage.filters.blendTrans.Apply();
	}
	
	
	
	document.images.previewImage.src = newsrc;
	//document.images.SlideShowImage.src = newsrc;
	
	if (document.all)
	{
		document.images.previewImage.filters.blendTrans.Play();
		//document.images.SlideShowImage.filters.blendTrans.Play();
			
	}
	return true;
}

function openWindow(url,windowName,w,h)
{
	var lt=(screen.width-w)/2;
	var tp=(screen.height-h)/2;
	if (navigator.platform.toLowerCase().indexOf("mac")==0)
	{
		LastWin=window.open(url,windowName,'width='+w+',height='+h+',left='+lt+',top='+tp+',scrollbars=yes,resizable=yes,status=yes');
	}
	else
	{
		LastWin=window.open(url,windowName,'width='+w+',height='+h+',left='+lt+',top='+tp+',scrollbars=yes,resizable=yes,status=yes');	
		LastWin.focus;
	}
	//window.reload;
}
