
function openReleasePopup(sURL)
{
	var sFeatures = "status=no,scrollbars=yes,resizable=no,width=484,height=500";
	var sReleaseWin = window.open(sURL, "Release", sFeatures);
	sReleaseWin.focus()
}

function isIE()
{
	var sBrow = navigator.appName;

	if(sBrow.indexOf("Microsoft") != -1)
	{
		return true;
	}
	else
	{
		return false;
	}
}

function SwitchImage(sImage, sNewImage) 
{
	document.images[sImage].src = sNewImage;
}

function isMac()
{
	if (navigator.appVersion.indexOf("Macintosh",1) > 0)
	{
		return true;
	}

	return false;
}
 
function MM_openStandardPopup(theURL, winName, features)
{
  //this function ignores features, allows the to be set here
	var newFeatures = "status=no,scrollbars=yes,resizable=no,width=700,height=600";
	if (isMac())
	{
		newFeatures = "toolbar=yes," + newFeatures
	}
	
	MM_openBrWindow(theURL, winName, newFeatures);
}

function openHelpWindow(theURL)
{
	var newFeatures = "status=no,scrollbars=yes,resizable=yes,width=570,height=450";
	var helpWin = window.open(theURL, "Help", newFeatures);
	helpWin.focus()
}

function MM_openBrWindow(theURL, winName, features) 
{
	iWindowCount = Date.parse(Date())
 // var newFeatures = "status=no,scrollbars=yes,resizable=no,width=700,height=600, top=0, left=0";
	var pWindow = window.open(theURL, "win" + iWindowCount, features );
	pWindow.focus()
}

function newwindow(url)
{
	var params;
	var agent = navigator.userAgent;
	var windowName = "CorbisWindow";
	
	params = "";
	params += "height=500,"
	params += "width=484,"
	params += "left=50,"
	params += "top=50,"
	params += "alwaysRaised=0,"
	params += "directories=0,"
	params += "fullscreen=0,"
	params += "location=0,"
	params += "menubar=b,"
	params += "resizable=1,"
	params += "scrollbars=1,"
	params += "status=0,"
	params += "toolbar=0"
	
	var win = window.open(url,windowName,params);	
	 
	if (agent.indexOf("Mozilla/2") != -1 && agent.indexOf("Win") == -1) 
	{
		win = window.open(url, windowName , params);
	}
	
	if (!win.opener) 
	{
		win.opener = window;
	}
}
