/*
********************************************************************
********************************************************************
*/
function player( src, target, name, id ){	//target and name do not recognize all browser
	// Check platform
	var myPlatform = navigator.platform.substring (0,3);
	//alert (myPlatform);
	if (myPlatform == 'Win')	{
		if (id == 'med')	{
			var width="345";	//window size
			var height="236";
			var p_width="336";	//plugin size
			var p_height="216"
		}
		if (id == 'big')	{
			var width="490";	//window size
			var height="295";
			var p_width="470";	//plugin size
			var p_height="276"
		}
	}
	if (myPlatform == 'Mac')	{
		if (id == 'med')	{
			var width="350";	//window size
			var height="220";
			var p_width="336";	//plugin size
			var p_height="196"
		}
		if (id == 'big')	{
			var width="500";	//window size
			var height="300";
			var p_width="480";	//plugin size
			var p_height="276"
		}
	}
	//var width=336;
	//var height=236;
	//var name;
	//var id;

	if(document.layers || window.opera){
		x=y=-8;
	} else{
		x=y=-0;
	}
	
	var html=
	'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">' + '\n' +
	'<html><head><title>' + target.toUpperCase() + '</title>' + '\n' +
	'<meta http-equiv="Content-Type" content="text/html; charset=utf-8">' + '\n' +
	'<script language="JavaScript" type="text/javascript">' + '\n' +
	'<!--' + '\n' +
	'function MM_reloadPage(init) {  //reloads the window if Nav4 resized' + '\n' +
	'	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {' + '\n' +
	'		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}' + '\n' +
	'	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();' + '\n' +
	'}' + '\n' +
	'//-->' + '\n' +
	'</script>' + '\n' +
	'</head>' + '\n' + '\n' +
	'<body bgcolor="#000000" topmargin="10" marginheight="10" leftmargin="0" marginwidth="0">' + '\n' +
	'<center>' + '\n' +
	'<table border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">' + '\n' +
 	'<tr>' + '\n' +
	'	<td bgcolor="#000000" valign="top">' + '\n' +
	'			<param name="src" value="trailers/WMD_Trailer_' + id + '.mpg">' + '\n' +
	'			<param name="cache" value="true">' + '\n' +
	'			<param name="autoplay" value="true">' + '\n' +
	'			<param name="controller" value="true">' + '\n' +
	'			<param name="bgcolor="#000000"" value="true">' + '\n' +
	'			<embed src="trailers/WMD_Trailer_' + id + '.mpg" width="' + p_width + '" height="' + p_height + '" align="middle" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" controller="true" autoplay="true" cache="true" bgcolor="#000000"=""></embed>' + '\n' +
	'		</object>' + '\n' +
	'	</td>' + '\n' +
	'</tr>' + '\n' +
	'</table>' + '\n' +
	'<center>' + '\n' +
	'</body></html>'; + '\n'

   child=window.open("",target,"width="+width+",height="+height+",scrollbars=0,resizable=0");

   child.document.open();
   child.document.write(html);
   child.document.close();
   child.focus();
}

