//Mikael 2008-03-31 13:07
//använder denna lokala eftersom deras som ligger på servern inte stöder multipla spelare
//kolla emellanåt så att det nite kommer ny kod hso dom
//http://ape.syndication.mtgnewmedia.se/code.js

<!-- // Detect Client Browser type
var isIEape  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

function makeFlashFull(flash_url, flash_w, flash_h, div_id, div_w, div_h, flash_query) {
//alert(flash_query);
	//var theh= (parseInt(h)+35);
	if(div_id==""){
		var div_id="container";
	}

document.write('<div id="'+div_id+'" style="float:left; width:'+div_w+'px; height:'+div_h+'px; margin: 0 0 0 0; top:0px; left:0px; overflow: hidden; visibility:visible;"></div>');

	if(isIEape) {
		var tempApe = document.createElement('object');
		document.getElementById(div_id).appendChild(tempApe);
		tempApe.width = flash_w;
		tempApe.height = flash_h;
		tempApe.id = div_id+"_swf";
		tempApe.codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0"
		tempApe.classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000";
		tempApe.allowFullScreen ="true";
		tempApe.allowScriptAccess = "always";
		tempApe.scale = "showAll";
		tempApe.movie = flash_url+"?"+flash_query;
	} else {
			var tagApe= '<OBJECT' +
			'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" CODEBASE="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,18,0"  align="middle" WIDTH="'+flash_w+'" HEIGHT="'+flash_h+'" ID="'+div_id+'">' +
			'<PARAM NAME="allowScriptAccess" VALUE="always" />' +
			'<PARAM NAME="movie" VALUE="'+flash_url+'?'+flash_query +'" />' +
			'<PARAM NAME="quality" VALUE="high" />' +
			'<PARAM NAME="scale" VALUE="showAll" />' +
			'<EMBED SRC="'+flash_url+'?'+flash_query+'" loop="false" menu="false" quality="high" scale="showAll" bgcolor="#000000" align="left" WIDTH="'+flash_w+'" HEIGHT="'+flash_h+'" NAME="'+div_id+'_swf" allowFullScreen="true" allowScriptAccess="always" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" />' +
			'</OBJECT>';
			document.getElementById(div_id).innerHTML = tagApe;
	}
	//alert(div_id);
	return(true);
}



