
// allgemeines JavaScript zum Öffnen von Fenstern
function openWIN(site,w,h) {
	window.open(site,'','width='+w+',height='+h+',resizable');	
}
	
// Popup für das Gewinnspielformular - im neuen System wird nur noch die ID übergeben - genial, oder ?

function opengewinn(ID)	{
	window.open('/includes/gewinnformular/index.php?ID='+ID,'','width=405,height=560');	
}

// Popup für die Musikwünsche

function openWISH() {
	window.open("/popup/wunsch/index.php?w=" + screen.width + "&h=" + screen.height , "wunsch", "width=355,height=300,screenX=100,screenY=100,scrollbars=no");
}

// Funktion für die Roll-Over-Bilder

function imagechange(Bild,name) {
  if (document.images)
    document[Bild].src = name.src;
}

// allgemeines JavaScript zum Öffnen von Fenstern

function openCommunity(){
	window.open('/community/popup/index.html?<?=DD?>','cowindow','width=728,height=436,resizable=no,scrollbars=yes,toolbar=no');	
}

function openCommProfile(ID){
	window.open('/community/popup/profilshow.html?<?=DD?>&ID='+ID,'cowindow','width=728,height=436,resizable=no,scrollbars=yes,toolbar=no');	
}


function openForum(){
	window.open('/community/forum/index.php?<?=DD?>','cowindow','width=728,height=436,resizable=no,scrollbars=yes,toolbar=no');	
}

function openChat()	{
	window.open('/community/chat/index.php?<?=DD?>','chwindow','width=730,height=500,resizable=yes');
}

var MM_contentVersion = 6; // Flash Version
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
	var flashplugin = true;
} else{
	var flashplugin = false;
}

// Abfangen für Linux PPC

var platstr = navigator.platform;
var platflag = platstr.search(/ppc.+/);
var platflagb = platstr.search(/Linux.+/);

if ( platflag != -1 && platflagb != -1)
	{
	var flashplugin = FALSE;	
	}
