function open_icon_pop(img)
{
	var pop = window.open('icons_instructions.html?img=' + img, 'icon', 'scrollbars=no, status=no, location=no, toolbar=no, width=600, height=350');
  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function open_wallpaper_pop(img)
{
  var pop = window.open('wallpaper_instructions.html?img=' + img, 'wallpaper', 'scrollbars=no, status=no, location=no, toolbar=no, width=970, height=550');
  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function open_twitter_pop(img)
{
	var pop = window.open('twitter_instructions.html?img=' + img, 'twitter', 'scrollbars=no, status=no, location=no, toolbar=no, width=970, height=570');
  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function open_register_pop()
{
	var pop = window.open('http://www.sonypictures.com/movies/takers/registration/', 'register', 'scrollbars=no, status=no, location=no, toolbar=no, width=450, height=520');
  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function open_twibbon_pop()
{
	alert('open_twibbon_pop');
	var pop = window.open('http://www.whoarethetakers.com/twitter', 'twibbon', 'scrollbars=no, status=no, location=no, toolbar=yes');
  !pop ? alert('Please disable your popup blocker and try again.') : '';
}


function open_share(link)
{
	var pop = window.open( link, 'share', '' );
	  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function game_share( url, title )
{
		var pop = window.open( "http://facebook.com/share.php?u=" + url + "&t=" + title, 'share', '' );
	  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function open_rating(link)
{
		var pop = window.open( link, 'open_rating', '' );
	  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

function open_page(link)
{
	alert('open_page: '+link);
		var pop = window.open( link, 'open_rating', '' );
	  !pop ? alert('Please disable your popup blocker and try again.') : '';
}

window.onfocus  = function()
{
	if ($("#overlayPlayer").is(":hidden"))
	{
		var theSwf = document.getElementById(parentSwf);
		theSwf.HandleWindowFocus();
	}
}
