// JavaScript Document
function dl(set)
{
	var url='/dl.php';
	if(set)
		url+='?set='+set;
	/*
	if(window.screen.colorDepth==32)
		PopUp(url);
	else if(window.confirm('VirtuaGirl HD requires your screen to be configured in 32bits to function.\n 32bits color gives you more colors, and better color gradations.\n\nTo change your screen settings, right click on your desktop, select Properties then tab Parameters, there choose 32bits and confirm.'))
		PopUp(url);
	*/
	PopUp(url);
}

function dlNow2(file)
{
	var isIe=(window.navigator.userAgent.toUpperCase().indexOf('MSIE')!=-1);
	var isOpera=(window.navigator.userAgent.toUpperCase().indexOf('OPERA')!=-1);
    if(isIe && !isOpera)
	{
		window.opener.location='download.php?idl=n&mode=software';
		myDLWindow=window.open(file,'_blank','toolbar=0,location=no,directories=0,status=0, scrollbars=no,resizable=0,width=0,height=0,top=0,left=0');
		window.close();
	}
	else
	{
		window.opener.location='download.php?mode=software';
		window.close();
	}
	return false;
}
function dlNow(file,redUrl,extUrl)
{
	newDLNow(file,redUrl,extUrl);
	return false;
}
function newDLNow(file,redUrl,extUrl)
{
	var isIe=(window.navigator.userAgent.toUpperCase().indexOf('MSIE')!=-1);
	var isOpera=(window.navigator.userAgent.toUpperCase().indexOf('OPERA')!=-1);
    if(isIe && extUrl==0 && !isOpera)
	{
		myDLWindow=window.open(file,'_blank','toolbar=0,location=no,directories=0,status=0, scrollbars=no,resizable=0,width=0,height=0,top=0,left=0');
		location.href=redUrl+'?idl=n';
		//top.iframeMain.location.href = redUrl+'?idl=n';
	}
	else
	{
		//alert('this is not ie, is an ext url, or is Opera');
		//top.iframeMain.location.href = redUrl;
		location.href = redUrl;
	}
}