//JAVASCRIPT

function videoqa() //popup window
{
	var width = 460;
	var height = 800;

	var win = 'videoQAWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'videoqa/index.html';
	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 < 820)
	{
		features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width;
	}

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

function pressrelease() //popup window
{
	var width = 530;
	var height = 800;

	var win = 'videoQAWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'press/christmaslyrics.html';
	var features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+width+',height='+height+',left='+left+',top='+top;
	
	if (screen.height < 820)
	{
		features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width;
	}

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

function icon() //popup window
{
	var width = 600;
	var height = 600;

	var win = 'iconPopWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'downloads/icon.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();
}

function wallpaper(file) //popup window
{
	var width = 600;
	var height = 700;

	var win = 'wallpapersPopWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'downloads/wallpaper.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 < 720)
	{
		features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width;
	}

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

function ps3themes() //popup window
{
	var width = 590;
	var height = 900;

	var win = 'ps3themesPopWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'http://www.sonypictures.com/tv/shows/boondocks/downloads/ps3themes.html';
	var features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width+',height='+height+',left='+left+',top='+top;
	
	if (screen.height < 520)
	{
		features = 'toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width='+width;
	}

	newwindow = window.open(url, win, features);
	if (window.focus) newwindow.focus();
}

function pspwallpapers() //popup window
{
	var width = 600;
	var height = 700;

	var win = 'pspwallpapersPopWindow';
	var left = (screen.width - width) / 2;
	var top = (screen.height - height) / 2;

	var url = 'http://www.sonypictures.com/tv/shows/boondocks/downloads/pspwallpapers.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();
}