/*
** Popup eines Bildes (Organigramm)
*/
function popupImgOrg(img){
	F1 = window.open(baseURL+"_pop_img.php?bild="+img,"popupImage","width=903,height=436");
	if(!F1){
		alert('Sie haben Ihren PopupBlocker aktiviert, deaktivieren\nSie diesen um das Popup anzuzeigen.');
	}else{
		F1.focus();
	}
}

/*
** Popup eines Bildes (Ablauforganisation)
*/
function popupImgAbl(img){
	F1 = window.open(baseURL+"_pop_img.php?bild="+img,"popupImage","width=450,height=716");
	if(!F1){
		alert('Sie haben Ihren PopupBlocker aktiviert, deaktivieren\nSie diesen um das Popup anzuzeigen.');
	}else{
		F1.focus();
	}
}

/*
** Maskierte e-mail
*/
function mask(n,d,txt) {
	if(txt == ''){ txt = n+"@"+d; }
	var string = "<a href='"+"ma"+"ilt"+"o:"+n+"@"+d+"'>"+txt+"</a>";
	document.write(string);
}

/*
** FLASH CHECK
*/
function flashChecker(){
	
	var FlashVersion = 7;
	document.getElementById('htmlTxt').style.display = 'none';
	
	//Netscape plugin detecting
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >=FlashVersion) { 
		//Flash 7 or up in Netscape
		doFlash();
	
	//MSIE plugin detecting
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0) {
		document.write('<SCRIPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('var FlashMode\n');
		document.write(' FlashMode = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+FlashVersion+'"))\n');
		document.write(' If FlashMode = True Then\n');
		document.write(' Call doFlash()\n');
		document.write(' Else\n');
		document.write(' Call noFlash()\n');
		document.write(' End If\n');
		document.write('</SCRIPT\> \n');
	} else {
		//Flash doesn't exist Netscape
		noFlash();
	}
	

}

function doFlash(){
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="459" height="860" id="loader" align="middle"> \n');
		document.write('<param name="allowScriptAccess" value="sameDomain" /> \n');
		document.write('<param name="movie" value="'+baseURL+'/data/cms/filme/loader.swf" /> \n');
		document.write('<param name="menu" value="false" /> \n');
		document.write('<param name="quality" value="high" /> \n');
		//document.write('<param name="wmode" value="transparent" /> \n');
		document.write('<param name="bgcolor" value="#9DBDDE" /> \n');
		document.write('<embed src="'+baseURL+'/data/cms/filme/loader.swf" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="459" height="860" name="loader" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n');
		document.write('</object> \n');
	}
	
function noFlash(){
		document.write('<img src="'+baseURL+'data/cms/filme/noFlash.jpg" width="459" height="924">\n');
	}