document.onmousemove = getMousePosition;

var imgMenuPfeilOn = new Image(); imgMenuPfeilOn.src = "/img/misc/menu-pfeil-on.gif";

function tranq(f,u) {
	var m = new Array("&#105;","&#116;","&#111;","&#109;","&#97;","&#108;");
	document.write("<a href="+m[3]+m[4]+m[0]+m[5]+m[1]+m[2]+"&#58;"+u+"&#64;"+f+">");
	document.write(u+"&#64;"+f+"</a>");
}

function handleForm(id,display,proc) {
	if (proc == "empty") {
		if (document.nlform[id].value == display) document.nlform[id].value = "";
	}
	if (proc == "fill") {
		if (document.nlform[id].value == "") document.nlform[id].value = display;
	}
}
function win(url,name,feat) {
	name=window.open(url,name,feat); name.focus();
}
function totop() {
	window.scrollTo(0,0);
	return false;
}

function partner_display(p,s) {
	var d = document.getElementById('partner_'+p);
	var y_pos = mouse_y_pos + 50;

	var inner_size = get_inner_size();
	var x_pos = Math.round((inner_size[0]/2) - (300/2));

	d.style.top=y_pos+'px';
	d.style.left=x_pos+'px';
	d.style.display=s;
}

function fill_empty_input(elem,act,soll) {
	if (act == "empty") { if (elem.value == soll) { elem.value = ""; } }
	else { if (elem.value == "") { elem.value = soll; } }
}
function nl_formcheck() {
	e = document.nlform.email;
	v = e.value;
	if (v == "" || v == "E-Mail-Adresse") {
		alert("Bitte geben Sie Ihre E-Mail-Adresse ein."); e.focus(); return false;
	}
	var a = false;
	var res = false;
	if (typeof(RegExp) == 'function') {
		var b = new RegExp('abc');
		if (b.test('abc') == true) { a = true; }
	}
	if (a == true) {
		reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+ '(\\@)([a-zA-Z0-9\\-\\.]+)'+'(\\.)([a-zA-Z]{2,4})$');
		res = (reg.test(v));
	}
	else {
		res = (v.search('@') >= 1 && v.lastIndexOf('.') > v.search('@') && v.lastIndexOf('.') >= v.length-5)
	}
	if (res == true) {
		document.nlform.submit();
	}
	else {
		alert("Bitte überprüfen Sie Ihre E-Mail-Adresse."); e.focus(); return false;
	}
	return true;
}
var mouse_x_pos = 0;
var mouse_y_pos = 0;
function getMousePosition(e) {
	if (e == undefined) e = window.event;
	if (e.pageX || e.pageY) {
		mouse_x_pos = e.pageX;
		mouse_y_pos = e.pageY;
	}
	else if (e.clientX || e.clientY) {
		mouse_x_pos = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
		mouse_y_pos = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
	}
}


function get_inner_size() {
	var x,y;
	if (self.innerHeight) { x = self.innerWidth; y = self.innerHeight; } // all except Explorer
	else if (document.documentElement && document.documentElement.clientHeight) { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } // Explorer 6 Strict Mode
	else if (document.body) { x = document.body.clientWidth; y = document.body.clientHeight; } // other Explorers
	return arr = new Array(x,y);
}


var MM_contentVersion = 5;
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');
}
function flash_obj(ver,src,id,wmode,flashvars,bgcolor,w,h,img_src,img_alt,img_url) {
	var out='';
	if (MM_FlashCanPlay) {
		out = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ver+',0,0,0" width="'+w+'" height="'+h+'" id="'+id+'">';
		out += '<param name="movie" value="'+src+'">';
		out += '<param name="quality" value="high">';
		out += '<param name="wmode" value="'+wmode+'">';
		out += '<param name="flashvars" value="'+flashvars+'">';
		out += '<param name="bgcolor" value="'+bgcolor+'">';
		out += '<embed src="'+src+'" wmode="'+wmode+'" flashvars="'+flashvars+'" quality="high" bgcolor="'+bgcolor+'" width="'+w+'" height="'+h+'" name="'+id+'" id="'+id+'" type="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></embed>';
		out += '</object>';
	}
	else if (img_src) {
		out = '<a href="'+img_url+'"><img src="'+img_src+'" width="'+w+'" height="'+h+'" alt="'+img_alt+'" /></a>';
	}
	document.write(out);
}

var google_ad_client = "pub-0559260859514762";
/* 234x60, Erstellt 15.03.08 */
var google_ad_slot = "6786929469";
var google_ad_width = 234;
var google_ad_height = 60;
