/** PLUG-IN CHECK **/

var inflashptr = ptr.substr(0,(ptr.length-1));
var plug = new pluginDetection();
plug.setTargetPlugName("Shockwave Flash");
plug.setTargetPlugVersion(7);
var movie = new Array();
var now = new Date();

function showflash(loc,fname,fwidth,fheight,fbgcolor,fparameter,noflash)
{
	/*
	alert ("Location:"+loc);
	alert ("Name:"+fname);
	alert ("Width:"+fwidth);
	alert ("Height:"+fheight);
	alert ("BGcolor:"+fbgcolor);
	alert ("Parameter:"+fparameter);
	alert ("Dateiformat No-Flash:"+noflash);
	*/
	var cookieValue = cookieObj.getCookie('access');
	internflash = new swfObject();
	internflash.setObjectLocation(ptr+"swf/"+loc+fname+".swf?"+now.getTime()+"&"+fparameter);
	internflash.setObjectWidth(fwidth);
	internflash.setObjectHeight(fheight);
	internflash.setObjectBgcolor(fbgcolor);
	internflash.setObjectFlashvars("language=nl&resourceURL="+ptr+"swf/");
	
	if(fname=="menu_single"){
		
		tempflash	 = '<table cellpadding="0" cellspacing="0" border="0" width="760">';
		tempflash	+= '<tr><td valign="top"><img src="'+ptr+'/swf/'+loc+fname+'.'+noflash+'" border="0" width="300" height="210" usemap="#menue"></td>';

		tempflash	+= '<td valign="top"><a href="'+promotion_ziel+'" target="'+promotion_target+'"><img src="'+promotion_bild+'" border="0" width="460" height="210"></td>';
		tempflash	+= '</td></tr></table>';				

		internflash.setAltObject(tempflash);
	}else
		internflash.setAltObject('<a href="http://www.macromedia.com/go/getflashplayer/" target="_blank" class="none"><img 	src="'+ptr+'/swf/'+loc+fname+'.'+noflash+'" border="0" width="'+fwidth+'" height="'+fheight+'" alt="Get Macromedia FLASH PLAYER."></a>');

	if(cookieValue=='html'){
		internflash.setAltElements();		
	}else{
		if(plug.getAssessment()) { 	
			internflash.setElements();
			checkAccess(1); 
		}else{ 
			internflash.setAltElements();
			checkAccess(0); 
		}
	}
}
