// JAVASCRIPT

function wallpaper(file) //popup window
{
	var width = 600;
	var height = 600;

	var win = 'wallpapersPopWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'http://www.sonypictures.com/homevideo/closeencounters/site/downloads/wallpapers.php?wallpaper='+ file;
	//var url = 'wallpapers.php?wallpaper='+ file;
	var features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',left='+left+',top='+top;
	
	if (screen.height < 620)
	{
		features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+width+',height='+height+',left='+left+',top='+top;
	}

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

function icon(file) //popup window
{
	var width = 440;
	var height = 360;

	var win = 'iconPopWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'http://www.sonypictures.com/homevideo/closeencounters/site/downloads/icon.php?icon='+ file;
	//var url = 'icon.php?icon='+ file;
	var features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',left='+left+',top='+top;

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

function screensaver() //popup window
{
	var width = 600;
	var height = 600;

	var win = 'screensaverWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'http://www.sonypictures.com/homevideo/closeencounters/site/downloads/screensaver.html';
	//var url = 'screensaver.html';
	var features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height+',left='+left+',top='+top;

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

