/** PLUG-IN CHECK **/
var plug = new pluginDetection();
plug.setTargetPlugName("Shockwave Flash");
plug.setTargetPlugVersion(7);

/*var movie = new Array();
movie[0] = new swfObject();
movie[0].setObjectLocation("/cic/swf/menu_single.swf");
movie[0].setObjectWidth("760");
movie[0].setObjectHeight("210");
movie[0].setObjectBgcolor("#000000");
movie[0].setObjectFlashvars("resourceURL=./swf/");
movie[0].setAltObject('<a href="http://www.macromedia.com/go/getflashplayer/" target="_blank" class="none"><img src="/images/pict_dummy_flash.jpg" border="0" width="760" height="210" alt="Get Macromedia FLASH PLAYER."></a>');
*/

var inflashptr = ptr.substr(0,(ptr.length-1));
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"){
		
		promotion_ziel 	= "exilim/";
		promotion_target 	= "_self";
		promotion_bild		= "promotion_exilim.jpg";
		promotion_golink	= "hero_exilim";
		
		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 onclick="goLink(\''+promotion_golink+'\',\''+ptr+promotion_ziel+'\');" href="'+ptr+promotion_ziel+'" target="'+promotion_target+'"><img src="'+ptr+'/swf/home/'+promotion_bild+'" border="0" width="460" height="210"></td>';
		tempflash	+= '<tr><a href="http://www.macromedia.com/go/getflashplayer/" target="_blank" class="none"><img 	src="'+ptr+'images/pict_dummy_flash.'+noflash+'" border="0" width="'+fwidth+'" height="'+fheight+'" alt="Get Macromedia FLASH PLAYER."></a>';
		tempflash	+= '</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); 
		}
	}
}