function mediaplayerloop(thefilename, thewidth, theheight){
	document.write('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+thewidth+'" HEIGHT="'+theheight+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">');
	document.write('<PARAM NAME="controller" VALUE="TRUE">');
	document.write('<PARAM NAME="type" VALUE="video/quicktime">');
	document.write('<PARAM NAME="autoplay" VALUE="true">');
	document.write('<PARAM NAME="scale" VALUE="aspect">');
	document.write('<PARAM NAME="BGCOLOR" VALUE="#000000">');
	document.write('<PARAM NAME="target" VALUE="myself">');
	document.write('<PARAM NAME="loop" VALUE="true">');
	document.write('<PARAM NAME="src" VALUE="'+thefilename+'">');
	document.write('<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">');
	document.write('<EMBED width='+thewidth+' height='+theheight+' CONTROLLER="TRUE" SCALE="aspect" TARGET="myself" SRC="'+thefilename+'" autoplay="true" loop="true" type="video/quicktime" BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html"></EMBED>');
	document.write('</OBJECT> ');
}

function mediaplayer(thefilename, thewidth, theheight){
	document.write('<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="'+thewidth+'" HEIGHT="'+theheight+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">');
	document.write('<PARAM NAME="controller" VALUE="TRUE">');
	document.write('<PARAM NAME="type" VALUE="video/quicktime">');
	document.write('<PARAM NAME="autoplay" VALUE="true">');
	document.write('<PARAM NAME="scale" VALUE="aspect">');
	document.write('<PARAM NAME="BGCOLOR" VALUE="#000000">');
	document.write('<PARAM NAME="target" VALUE="myself">');
	document.write('<PARAM NAME="src" VALUE="'+thefilename+'">');
	document.write('<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">');
	document.write('<EMBED width='+thewidth+' height='+theheight+' CONTROLLER="TRUE" SCALE="aspect" TARGET="myself" SRC="'+thefilename+'"  type="video/quicktime" BGCOLOR="#000000" BORDER="0" PLUGINSPAGE="http://www.apple.com/quicktime/download/indext.html"></EMBED>');
	document.write('</OBJECT> ');
}

// used within the movies section
function popMovie(filename, lang) {
	popup("view.asp?movie="+escape(filename)+"&lang="+lang,"",680,500,"");
}

// used within the movies section
function popMovElse(filename, lang) {
	popup("../media/view.asp?movie="+escape(filename)+"&lang="+lang,"",680,500,"");
}

// used within the movies section
function popCommHelp(lang) {
	//popup("helppopup.asp","",500,400,"scrollbars=1,resizable=1,status=1");
	window.open("http://support.electronicarts.co.uk");
}



// used to create the preorder window
function popPreorder() {
	popup(dotdotpath+"preorder.asp?lang="+jslang,"",750,500,"");
}

//Used to show full screenshots
function popScreenshot(filename,lang) {
	window.open("view_screen.asp?image="+escape(filename)+"&lang="+lang,"BurnoutParadise","scrollbars=1,resizable=1,status=1,left=0,top=0,width="+screen.width+",height="+screen.height);
}
//Used to show full screenshots
function popTeamUp(filename,lang) {
	window.open("../media/view_screen.asp?image="+escape(filename)+"&lang="+lang,"BurnoutParadise","scrollbars=1,resizable=1,status=1,left=0,top=0,width="+screen.width+",height="+screen.height);
}

// Popup Window (Centred)
function popup(url,winname,w,h,feat) {
	if (!(isNaN(w) || isNaN(h))) {
		var x=parseInt((screen.width-w)/2);
		var y=parseInt((screen.height-h)/2);
		if (x<0)	x=0;
		if (y<0)	y=0;
		
		if (feat!=null && feat!="") {
			feat=","+feat;
		} else {
			feat="";
		}
		feat="left="+x+",top="+y+",width="+w+",height="+h+feat;
	}
	window.open(url,winname,feat);
}

function submitfriends()
{
  document.f.submit();
}

function checkstafemail()
{
	var v=new v8();
	v.setlabel('stafe','Valid email address');
	v.addtest('stafe','required');
	v.addtest('stafe','email');
	

	v.alert();
	return v.valid();
}