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


/*
** Maskierte e-mail
*/
decodeMailLink = function (obj,name,domain,params)
{
	if(params == null || params == 'undefined'){
		params = '';
	}
	obj.href = unescape('%6D%61%69%6C%74%6F%3A')+name+unescape('%40')+domain+params;
}

/*
** 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');
	}