/*** @author hmmh multimediahaus ag.*/	function checkBrowserName(name){  		var agent = navigator.userAgent.toLowerCase();  		if (agent.indexOf(name.toLowerCase())>-1) {  			return true;  		}  		return false;  	}$(document).ready(function(){	$(".teaserText").css({opacity:0.8});/*	$(".homeTeaser").mouseover(function(){		alert('homeTeaser');	});*/	$(".teaserLink").mouseover(function(){		$(this).parent().find(".teaserText").fadeIn('slow');	});	$(".teaserLink").mouseout(function(){		$(this).parent().find(".teaserText").fadeOut('slow');	});	// Ränder um geklickte Links entfernen	$('a').focus(function(){		$(this).blur();	})	// Homepage texttoggle mouseover/mouseout untere Bildreihe	$('.toggle').bind('mouseover', function() {		$('.' + $(this).attr('id')).css('visibility', 'visible');	} ).bind('mouseout', function() {		$('.' + $(this).attr('id')).css('visibility', 'hidden');	});	$('.untoggle').bind('mouseover', function() {		$(this).css('visibility', 'visible');	} ).bind('mouseout', function() {		$(this).css('visibility', 'hidden');	});	// IE Verlinkung Homepageteaser	$('.homepageteaser').click( function () {		if (!($(this).attr('onclick'))) {			document.location.href = $(this).attr('href');				}	});	// Storelocator	// Variablen um ContentdivlÃ¤nge an die LÃ¤nge des Storecontents anzupassen	contentheight = parseInt(document.getElementById('maincont').offsetHeight);		realcontpos = 300;	avaiContentHeight = contentheight - realcontpos;	$('#vstore').change(function(){		virtid = '#vs_' + $(this).val();		$("#virtcont").html($(virtid).clone());	});	$('#rstore').change(function(){		id = 'rs_' + $(this).val();		realid = '#rs_' + $(this).val();		$("#realcont").html($(realid).clone());		if (checkBrowserName('MSIE')) {			divheight = parseInt(document.getElementById(id).offsetHeight + 100);		}		else {			divheight = parseInt(document.getElementById(id).offsetHeight);		}		if(id != 'rs_' && divheight > avaiContentHeight)			$('#maincont').css('height',contentheight + divheight - avaiContentHeight);		else			$('#maincont').css('height',contentheight);	});	$('#ordernewsletter').click(function(){		mail = $('newsreg_email').attr('value');		mail = encodeURIComponent(mail);		$('newsreg_email').attr('value', mail);		$('#ordernl').submit();		return false;	});	// workaround um trotz xhtml-strict links in neuem Fenster öffenen zu können	$("a.extern").click(function(){		externLink(this.href);		return false;	});	//popUpAufrufe	// Alle PopUps werden seitenweit im Initial-Array (höhe, weite, fenstername) 'popups' verwaltet.	// Im Quelltext wird das PopUp Fenster durch das class-Attribut 'popupOpener' identifiziert.	// Um das gewünschte PopUp zu öffenen muss ein zweites class-Attribut mit dem Objektnamen im Array eingesetzt werden.	// Beispiel: class='popupOpener popHilfe'	$('a.popupOpener').live('click' , function(){		for(var pops in popups){			 if($(this).hasClass(pops)) {			 	var p = eval("popups." + pops);				openPopUp(this.href,p.name,p.width,p.height);				break;			 }		}		return false;	});	$("a.opener").click(function(){		opener.location.href = $(this).attr('href');		return false;	});	});function querySt(ji) {	$(document).ready(function(){		qs = window.location.search.substring(1);		nv = qs.split("&");		for (i=0;i<nv.length;i++) {			ft = nv[i].split("=");			if (ft[0] == ji) {				$('#email').attr('value',decodeURIComponent(ft[1]));			}		}	});}function PopAb(url, width, height) {	newwindow=window.open(url,'name','height=' + height + ',width=' + width);	if (window.focus) {		newwindow.focus()	}	return false;}/** * externLink * @param {Object} url, web adresse die aufgerufen werden soll  */function externLink (url) {	var fenster = window.open(url);}/** * openPopUp * @param {string} url, web adresse die aufgerufen werden soll  * @param {string} name, Name des zu öffnenden Fensters  * @param {string} width, Breite des zu öffnenden Fensters  * @param {string} height, Höhe des zu öffnenden Fensters  * Dont use this function directly, return false is managed by jquery. */function openPopUp(url, name, width, height) {	var newwindow=window.open(url,name,'height=' + height + ',width=' + width);	if (window.focus) {		newwindow.focus();	}	return newwindow;}/**  *  Array zum Verwalten aller popups */var popups = {	"popApart":{		"width":782,		"height":552,		"name": 'Apart Standard Popup'	}};
