function img_over(bild,objekt)
{
if (document.images)
	{
	objekt.src = over_images["gewinnspiel"].src;
	}
}

function img_out(bild,objekt)
{
if (document.images)
	{
	objekt.src = out_images["gewinnspiel"].src;
	}
}


function openjobs ()
{
fenster_2 = window.open ("../karriere/jobboerse.php","fenster2","menubar=no,scrollbars=yes,resizable=yes,status=no,width=" + 690 +",height=" + 580);		
window.setTimeout("fenster_2.focus()",100);
}

function partner()
{
theurl = "../partnerprogramm/partner.php";

partnerfenster = window.open(theurl,'partner','width=644,height=590,resizable=yes,scrollbars=yes'); 
window.setTimeout("partnerfenster.focus()",100);
}

function kontakt_abschicken()
{
document.getElementById("senden").value = "1";
document.getElementById("kontakt_form").submit();
}

function club_wechseln (club)
{
document.getElementById("senden").value = "0";
document.getElementById("kontakt_form").submit();
}



function nl_senden()
{
document.getElementById("nlform").submit();
}

// *** flash

var flash = FlashInstalled();

function init_flash(movie)
{

if (flash)
	{
	flashpfad = "";
	flashname = "../swf/"+movie+".swf";
	flashwidth = "736";
	flashheight = "160";
	flashbgcolor = "#E20A16";
	vk_code = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH='+flashwidth+' HEIGHT='+flashheight+'><PARAM NAME=movie VALUE="'+flashname+'"><PARAM NAME=quality VALUE=high><EMBED src="'+flashname+'" quality=high WIDTH='+flashwidth+' HEIGHT='+flashheight+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>';
	}
else
	{
	vk_code = '<img src="../images/vk_'+movie+'.jpg" width="736" height="160" alt="">';
	}

document.open();document.write(vk_code);document.close();
}
	
function FlashInstalled()
{
	result = false;

	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	{
		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	}
	else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
	{
		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
	}
	return result;
}

