function openScreenshot(img, title, width, height) {
	window.open("http://www.electronicarts.se/support/pages.view_screenshot.asp?img="+img+"&title="+title+"&auto_close=1&utf8=1", "Screenshot", "width=" + width + ",height=" + height + ",toolbar=no,resizable=no,scrollbars=no");
	return false;
}

function openMovie(id, width, height, res) {
	window.open("view.movie.aspx?movieId="+id+"&res="+res, "Movie", "width="+(width+25)+",height="+(height+65)+",toolbar=no,resizable=no,scrollbars=no");
}

function MenuDropdownURL(obj) {
	if ( obj.selectedIndex>0 )
	{
		var splt = (obj.options[obj.selectedIndex].value+'').split('|');


		if ( splt[1]=="_blank" )
		{
			window.open(splt[0]);
		}
		else
		{
			document.location.href = splt[0];
		}
	}
}

function createCookie(name, value, days)
{
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

var FlashRenderer = {        
    RenderGenericFlash: function(strSrc, strWidth, strHeight,bgColor) {
        AC_FL_RunContent('codebase','http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width',strWidth,'height',strHeight,'align','middle','src',strSrc,'quality','highest','bgcolor',bgColor,'allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie', strSrc );    
    }
}