// Startseite Img-Hoverfunction indexHover() {	$(".index-view a").hover(function() {		$(this).append('<div class="ivh"></div>');	}, function() {		$(this).find("div.ivh").remove();	});}// Init Overlayfunction startWaiting() {	isIE6 = (navigator.userAgent.indexOf("MSIE 6.") != -1)	if (!isIE6) {		var background = $('<div id="overlayBackground"><img src="_media/_layout/loadingAnimation.gif" width="208" height="13" alt=""></div>');	    $(background).css({'width' : $(document).width(),'height' : $(document).height(),'background' : 'transparent url(_media/_layout/macFFBgHack.png) repeat scroll 0 0'});	    $('body').prepend(background);	}} // Remove Overlayfunction endWaiting() {$('#overlayBackground').remove();} // Resize Overlay/*function resize() {	$("#fancy_overlay").css({'width' : $(document).width(),'height' : $(document).height()});}window.onresize = resize; */function goSearch(elem) {	var tfield = document.getElementById('search_input').value;	if (tfield != "") {		if( isSignedInteger(tfield) == true ) {			elem.href = 'http://' + window.location.host +'/store/product/Default/'+tfield +'/detail.jsf';			window.location = elem.href;		}		else {			elem.href = 'http://' + window.location.host +'/store/searchResultPage.jsf?searchTerm='+tfield+'&pg=0';			window.location = elem.href;		}	}} // Button Hoverfunction btnOver(wb, imgrt_hh,imgrt,img_pos) {	$(wb).hover(function() {		$(this).addClass("bOver");		$(this).find("img").attr("src", "_media/_layout/"+imgrt_hh);		$(this).css("background-position", img_pos);	}, function() {		$(this).removeClass("bOver");		$(this).find("img").attr("src", "_media/_layout/"+imgrt);		$(this).css("background-position", "0 0");	});} // Einkaufstasche Hoverfunction mOver() {	if($("#bag-full").attr("src")=="_media/_layout/head_bag_full.jpg") {		$("#your-bag").show();	}	$("#meine-einkaufstasche li:eq(3) a").css("color","#930014");} function mOut() {	if($("#bag").attr("src")=="_media/_layout/head_bag_full.jpg") {		$("#your-bag").hide();	}	$("#meine-einkaufstasche li:eq(3) a").css("color","#2E2E2E");}/*function fclose() {    var ifr = parent.document.getElementById("fancy_overlay");    var ifr2 = parent.document.getElementById("fancy_outer");    $(ifr).hide();    $(ifr2).hide();} */function dOut() {return false;} /*function reload_parentWin() {	var ele = window.parent.document.getElementById('reloadForm');	if( ele ) {		ele.action = window.parent.location.href;		ele.submit();	} else {		$.fn.fancybox.close.apply(window.parent.location.reload());	}}*/function replaceProductImage(image_thumb,image_mid,image_big) {	$(".jqZoomWindow").remove();	$(".jqZoomPup").remove();	$(".jqzoom").remove();	// switch the image by removing the node and re-writing in the neccessary HTML	var image = $('#izoom a image').attr("src");	$(".jqzoom").remove();	$('#izoom').append('<a href="'+image_big+'" rel="'+image_thumb+'" class="jqzoom"><img src="'+image_mid+'" /></a>');	//reload jQZoom after switching	$(".jqzoom").jqzoom({		zoomWidth: 424,		zoomHeight: 425,		xOffset: 5,		title: false	});		}// FAQ/Helpfunction init_faq() {	/* hides answers */	$('.faq-answer, this').each(function() { $(this).hide() });	/* init question.click event */	$('.faq-question, this').click(function() {		answer = $(this.parentNode).find(".faq-answer")[0]		if ($(answer).css("display") == "none") {		      $(this).css("background-color","#CCC");		      $(answer).slideDown(100);		} else {		      $(this).css("background-color","");		      $(answer).slideUp(100);		}        return false;    });	$(".faq-question").hover(function() {		$(this).css("background-color","#CCC");	}, function() {        $(".suite-back").fadeOut(250);        $(this).css("background-color","");    });} // BACK FORTH IMAGE HOVERfunction init_shoppingWindow() {    $("#shopping_back").hover(function() {        $(".suite-back").fadeIn(250);    }, function() {        $(".suite-back").fadeOut(250);    });    $("#shopping_forth").hover(function() {        $(".suite-forth").fadeIn(250);    }, function() {        $(".suite-forth").fadeOut(250);    });} function init_sizePop() {	$("ul.size a").each(function() {		if($(this).attr("class") == "active") {			$(this).parents("li").find(".sbl").addClass("active");			$(this).parents("li").find(".sbr").addClass("active");		}	});		$("ul.size a").hover(function() {		$(this).parents("li").find(".sbl").addClass("over");		$(this).parents("li").find(".sbr").addClass("over");    }, function() {		if($(this).attr("class") != "active") {			$(this).parents("li").find(".sbl").removeClass("over");			$(this).parents("li").find(".sbr").removeClass("over");		}    });} function init_RGBpicker() {	$(".rgb-picker a").click(function() {		$(".rgb-picker").find("a").removeClass("selected-img");		$(this).addClass("selected-img");		$("img.color-active").remove();		$('<img src="_media/_layout/color.png" width="27" height="12" alt="" class="color-active" />').insertAfter(this);		$(".current-tone").css("background-color", $(this).css("background-color"));	});	$(".rgb-picker a").hover(function() {		if ($(this).attr("class") != "selected-img" && $(this).attr("class") != "color-active") {			$(this).css("border", "1px solid black");		}		$(".color-name").text($(this).attr("rel"));		$(".cp-img").css("background-color", $(this).css("background-color"));	}, function() {		if ($(this).attr("class") != "selected-img") {			$(this).css("border", "1px solid #ccc");		} else if ($(this).attr("class") == "selected-img") {			$(this).css("border", "1px solid #fff");		}	});} function init_colorPicker() { 	$(".colorpicker img").click(function() {		$(".colorpicker").find("img").removeClass("selected-img");		$(this).addClass("selected-img");		$("img.color-active").remove();		$('<img src="_media/_layout/color.png" width="27" height="12" alt="" class="color-active" />').insertAfter(this);		$(".color-name").text($(this).attr("alt")); 	}); 	$(".colorpicker img").hover(function() {		cl = $(".color-name").html();		ci = $(".cp-img").attr("src");		if ($(this).attr("class") == "selected-img" || $(this).attr("class") == "color-active") {			$(this).css("border", "none");		} else {			$(this).css("border", "1px solid black");		}		$(".cp-img").attr("src", $(this).attr("src"));		$(".color-name").text($(this).attr("alt")); 	}, function() {		if ($(this).attr("class") == "selected-img" || $(this).attr("class") == "color-active") {			$(this).css("border", "none");		} else {			$(this).css("border", "1px solid #ccc");		}		$(".color-name").text(cl);		$(".cp-img").attr("src", ci);	}); 	$(".colorpicker a").hover(function() {		$(".cp-img").css("background",$(this).css("background-color"));	}, function() {		$(".cp-img").css("background","transparent");	});		$(".colorlist.colorpicker img").each(function() {		if($(this).attr("src") == "_media/_de/_content/space.gif") {			$(this).css({"top":"-9999px","left":"-9999px"});		}	});}//function hScroller(e) { $(e).jScrollPane(); } // SELECT TABfunction setTab() {	if($('.wtab input').val()=="Kreditkarte") {	      $('.tabs > ul').tabs('select', 0);	} else if ($('.wtab input').val()=="Bankeinzug") {	      $('.tabs > ul').tabs('select', 1);	} else if ($('.wtab input').val()=="Breuninger Card") {	      if ($('.tabs > ul').tabs('length')==2) {	            $('.tabs > ul').tabs('select', 1);	      } else if ($('.tabs > ul').tabs('length')==1) {	                  $('.tabs > ul').tabs('select', 0);	      } else {	            $('.tabs > ul').tabs('select', 2);	      }	}	// FILL HIDDEN FIELD - SELECTED TABS	$(".shopping-cart-box.commit .ui-tabs-nav a").click(function() {	      $(".wtab input").val($(this).text());	      $("input[@type='checkbox']").attr("checked", false);	      return false;	});} // Schaufenster-Sortierungs-Panesfunction deselect(eParent,className) {	$(eParent).each(	      function() {	            $(this).removeClass(className);	      }	);} function init_bcDDs() {	$("#color-handle").click(function () {	      if($("#colorlist").css("display")=="none") {	            $("#colorlist").css("display", "block");	            $(this).addClass("active");	            $("#sizelist, #pricelist").css("display", "none");	            $("#brandlist").css("top", "-1000px");	      } else {	            $("#colorlist").css("display", "none");	            $(this).removeClass("active");	      }	      return false;	});	$("#brand-handle").click(function () {	      if($("#brandlist").css("top")=="-1000px") {	            $("#brandlist").css("top", "179px");	            $(this).addClass("active");	            $("#sizelist, #colorlist, #pricelist").css("display", "none");	      } else {	            $("#brandlist").css("top", "-1000px");	            $(this).removeClass("active");	      }	      return false;	});	$("#size-handle").click(function () {	      if($("#sizelist").css("display")=="none") {	            $("#sizelist").css("display", "block");	            $(this).addClass("active");	            $("#brandlist").css("top", "-1000px");	            $("#colorlist, #pricelist").css("display", "none");	      } else {	            $("#sizelist").css("display", "none");	            $(this).removeClass("active");	      }	      return false;	});	$("#price-handle").click(function () {	      if($("#pricelist").css("display")=="none") {	            $("#pricelist").css("display", "block");	            $(this).addClass("active");	            $("#brandlist").css("top", "-1000px");	            $("#colorlist, #sizelist").css("display", "none");	      } else {	            $("#pricelist").css("display", "none");	            $(this).removeClass("active");	      }	      return false;	});}function CheckLen(target) {	if (target.value.length > 540) {	      target.value = target.value.substring(0,540);	      //alert("Maximale Zeichenanzahl erreicht.");	}	var stmp = (target.value).length;	$("#str_count").text(540-stmp);} // PAYMENTPAGEfunction ncc_remove() {	if($(".newCreditCard input").val() == "false") {	      $(".newCreditCard").parents('table').find('ul').remove();	}} // DESELECT TABSfunction uncheckBox() {	$('.leftpad.change-order .ui-tabs-nav a').click(function() {	      $("input[@type='checkbox']").attr("checked", false);	});} function clearInput() { $("input").attr("value", ""); } function checkForEnter (event) {	lastInput = $(this).parents('form').find('input:password:last').attr('name');	if (lastInput == undefined) {	      lastInput = $(this).parents('form').find('input:text:last').attr('name');	}	if($(this).attr('name') == lastInput) {	      fReady = "last";	}	if (event.keyCode == 13) {	      currentBoxNumber = textboxes.index(this);	      if (textboxes[currentBoxNumber + 1] != null) {	            nextBox = textboxes[currentBoxNumber + 1];	            nextBox.focus();	            nextBox.select();	      }	event.preventDefault();	return false;	}} function formSubmit() {	/*	if ($.browser.mozilla) {	      $(textboxes).keypress(checkForEnter);	} else {	      $(textboxes).keydown(checkForEnter);	}	*/	$(function() {	fReady = "last";	    $('input').keydown(function(e) {	        if (e.keyCode == 13 && fReady == "last" && $(this).val() !="") {	                  startWaiting();	                  return oamSubmitForm($(this).parents("form").attr("name"),$(this).parents("form .button").find("a").attr("id"));	        }	    });	});} var popupdone = false; function Mail2User() {	var ieb = false;	$('input.email.benutzer').keyup(function(e){	      if($(this).val()=="") {	            ieb = false;	      } else {	            ieb = true;	      }	});	$("input.email.eingabe").focus(function() {	      $(function() {	          $('input.email.eingabe').keyup(function(e){	                  if(ieb !== true) {	                       $("input.email.benutzer").attr("value",$(this).val());	                  }	            });	      });	});	$("input.email.eingabe").blur(function() {	      $("input.email.benutzer").attr("value",$(this).val());	});}function MM_showHideLayers() { //v9.0  var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3)   with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }    obj.visibility=v; }}function openSize(){	$.fn.colorbox({transition:"none", close:"", inline:true, href:"#spp", opacity:"0.5",		onOpen:function(){			$("#spp").css({"position":"relative","top":"0"});		}	});	$(document).bind('cbox_cleanup', function() {	        $("#spp").css({"position":"absolute","top":"-999px"});	});}$(window).load(function() {	$("#navi-btv a").attr("href","/store/category/Default/btv/videos.jsf");	});function podScroller_init() {	if($(".pdtxt").text().length > 512) {		$(".pdtxt").css("height","150px");		$(".pdtxt").jScrollPane();	}	if($("div.pod.parfum").html()!=null) {		if($(".colorlist li").length > 4) {			$("#clist").css("height","100px");		}		$("#clist").jScrollPane();	} else {		if($(".colorlist li").length > 7) {			$("#clist").css("height","150px");		}		$("#clist").jScrollPane();	}} 	// ON DOCUMENT READY$(document).ready(function() {		popupdone = true;	textboxes = $("input");	fReady = "";		// OPEN OVERLAYS	$('a.history-pop').click(function() {		var link = $('a.history-pop').attr("href");		$.fn.colorbox({innerWidth:820, innerHeight:410, opacity: 0.6, close: "", transition: "none", iframe: true, scrolling: false, title: false, href: link,			onComplete:function() {				$("#cboxLoadedContent").css({"padding":"0","width":"834px", "height":"415px"});				$("#cboxContent").css({"width":"820px","height":"420px"});					$("#cboxLoadedContent iframe").css({"width":"818px", "height":"425px"});			}			});		return false;	});		$('a.send-friends').click(function() {		var link = $('a.send-friends').attr("href");		$.fn.colorbox({innerWidth:340, innerHeight:425, opacity: 0.6, close: "", transition: "none", iframe: true, scrolling: false, title: false, href: link,			onComplete:function() {				$("#cboxLoadedContent iframe").css({"width":"335px", "height":"420px"});				}		});		return false;	});	$('a.add-gift').click(function() {		var link = $('a.add-gift').attr("href");		$.fn.colorbox({innerWidth:510, innerHeight:550, opacity: 0.6, close: "", transition: "none", iframe: true, scrolling: false, title: false, href: link,			onComplete:function() {				$("#cboxLoadedContent iframe").css({"width":"500px", "height":"530px"});				}		});		return false;	});					$('a.podvideo').click(function() {		var link = $('a.podvideo').attr("href");		$.fn.colorbox({innerWidth:763, innerHeight:434, opacity: 0.6, close: "", transition: "none", iframe: true, scrolling: false, title: false, href: link,			onComplete:function() {				$("#cboxLoadedContent").css({"padding":"0"});				$("#cboxContent").css({"width":"753px","height":"424px","background":"#000"});					$("#cboxLoadedContent iframe").css({"width":"754px", "height":"425px"});				//$("body").css({"background":"#000"});			}				});		return false;	});	$('a.open-player').click(function() {		var link = $('a.open-player').attr("href");			$.fn.colorbox({width:1040, height:520, opacity: 0.6, close: "", transition: "none", iframe: true, scrolling: false, title: false, href: link,			onComplete:function() {				$("#cboxLoadedContent").css({"padding":"0","width":"1005px", "height":"450px"});				$("#cboxLoadedContent iframe").css({"width":"1005px", "height":"425px"});				$("ul.foo-nav.fbox").css("top","375px");			}		});		return false;	});			$('a.open-register').colorbox({innerWidth:540, innerHeight:480, opacity: 0.6, close: "", transition: "none"});					$('a.openFAQ').colorbox({innerWidth:680, height:800, opacity: 0.6, close: "", transition: "none",		onLoad:function() { $("#cboxClose").css("right","20px"); },		onComplete:function() { 			init_faq(); 			$("#cboxLoadedContent div.content-box-2").css({"width":"650px"});		}	});     // NAVIGATION    $("#navi a").hover(function() {        $(this).find(".navi-hover-on").fadeIn(250);    }, function() {        $(this).find(".navi-hover-on").fadeOut(250);    });			// TABS	$("#tabs").tabs();	$(".other-tones").click(function() {	      $('.tabs > ul').tabs('select', 1);	      return false;	});	$(".current-tone").click(function() {	      $('.tabs > ul').tabs('select', 1);	      return false;	});		$(".ui-tabs-nav span").mouseover(function() {	      $(this).css("cursor", "hand");	});		//$("#hidden-wrap").css("display", "block"); 	//SEARCH	$("#search_submit").click(function() { startWaiting(); });		$("#allResults").click(function() {	      startWaiting();	      $(this).attr("href","/store/searchResultPage.jsf?searchTerm="+$(".search-field.search_field").val()+"&pg=0")	});		$(function() {	    $('#search input.search_field').keydown(function(e) {	        if (e.keyCode == 13 && $(this).val() !="") {	                  startWaiting();	                  goSearch($('#search_submit'));	            }	      })	});	$(function() {			$('#anchorJump').bind("click", function(event) {				var ziel = $(this).attr("href");				if( ziel.indexOf(".jsf")<0 ){					if($(ziel).offset()!=null){						event.preventDefault();						$('html,body').animate({							scrollTop: $(ziel).offset().top						}, 2000 , function () { location.hash = ziel; });					}				}			});			return false;		});		      // OPEN SHOPPING-BAG      	  $("#bag-full").hoverIntent(mOver, dOut);      $("#meine-einkaufstasche").hoverIntent(mOver, dOut);      $("#clickbag").hoverIntent(mOver, dOut);      $("#clickbagL").mouseover(function() {mOut();});      $("#clickbagR").mouseover(function() {mOut();});      $("#clickbag").click(function() {            if($("#bag-full").attr("src") == "_media/_layout/head_bag_full.jpg") {                  startWaiting();                  window.location = "cartPage.jsf";            }      });      $("#your-bag").hover(function() {            $("#your-bag").show();      }, function() {            $("#your-bag").hide();      });     // TOOLTIPS    $('.question').cluetip({        local: true,        cursor: 'pointer',        width: '160',        cluezIndex: 201,        cluetipClass: 'jtip',        arrows: 'true',        dropShadowSteps: '3',        waitImage: false,        showTitle: false,        leftOffset: '-15'    });    $('.tooltip').cluetip({        local: true,        cursor: 'pointer',        width: '160',        cluezIndex: 201,        cluetipClass: 'jtip',        arrows: 'true',        dropShadowSteps: '3',        waitImage: false,        showTitle: false,        leftOffset: '-15'    });     $('#mein-verlauf .bubble').cluetip({        local: true,        cursor: 'pointer',        width: '320',        cluezIndex: 201,        cluetipClass: 'jtip',        arrows: 'true',        dropShadowSteps: '3',        waitImage: false,        showTitle: false,        closeText: "schlie&szlig;en",        sticky: true,        leftOffset: '-15'    });		// OTHERS	$("#cbl").click(function() {return false;});	if($("#address-scroll").html()!=null) {	      $("#address-scroll .jScrollPaneContainer").css("width","423px");	}	btnOver(".button","btn_red_right_hv.gif","btn_red_right.gif","-310px 0");	btnOver(".blacker","btn_black_right_hv.gif","btn_black_right.gif","-250px 0");	btnOver(".acrobat","btn_reader_right_hv.gif","btn_reader_right.gif","-300px 0");	btnOver(".bcc","btn_bg_card_hv.gif","btn_bg_card.gif","-310px 0");		// FOOTER INPUT NLetter	$("input#news, div#newsletter").focus(function () { $(this).val(""); });	$("a#news_request, div#newsletter").click(function() {		$(this).attr("href",$(this).attr("href") + "?mail=" + $("input#news").val());	});	$('input#news, div#newsletter').keyup(function(e) {		var str =  $("input#news").val();		if(e.keyCode == 13 && str != "") {			var url = $("a#news_request").attr("href");			var elem = url + "?mail=" + str;			window.location.href = "/store/"+elem;			//alert(window.location.href);			return false;					}		e.preventDefault();	});		/*	if (event.keyCode == 13) {	      currentBoxNumber = textboxes.index(this);	      if (textboxes[currentBoxNumber + 1] != null) {	            nextBox = textboxes[currentBoxNumber + 1];	            nextBox.focus();	            nextBox.select();	      }	event.preventDefault();	return false;	*/    //added by sgiers	$("#wkmain form fieldset input[type=hidden]").addClass("hidden");		// Initiales Highlighten wenn checked=checked	$("#wkmain input[checked]").each(function() {		$(this).parent().addClass("checked");	});		$("#wkmain input[type='text'], #wkmain input[type='password']").focus(function () {		$(".current").removeClass("current");		//$("#wkmain form fieldset p label").removeClass("current");		$(this).parent().find("label").addClass("current");			});		$("#wkmain input[type='radio']").focus(function () {		$(".current").removeClass("current");		if($(this).parent().parent().parent().parent().parent().prev().attr("class") != "pad15") {			$(this).parent().parent().parent().parent().parent().prev().addClass("current");		}	});		$("#wkmain form fieldset input[type=hidden]").addClass("hidden");    $(function () {          // And show each on click          $("#wkmain .payment_select .breuninger_card input").click(function(){                $("#wkmain fieldset.payment_details.breuninger_card").show();          });          $("#wkmain .payment_select .rechnung input").click(function(){                $("#wkmain fieldset.payment_details.rechnung").show();          });          $("#wkmain .payment_select .kreditkarte input").click(function(){                $("#wkmain fieldset.payment_details.kreditkarte").show();          });          $("#wkmain .payment_select .bankeinzug input").click(function(){                $("#wkmain fieldset.payment_details.bankeinzug").show();          });    }); 	$("#wkmain fieldset.newsletter input").click(function(){		if( $(this).parent().hasClass("checked") ){	             	$(this).parent().removeClass();	              } else {	                $(this).parent().addClass("checked");	             }	});    $("#wkmain div.white_bg input").click(          function(){                if( $(this).parent().hasClass("checked") ){                     $(this).parent().removeClass();         } else {                $(this).parent().addClass("checked");                }          }    );    $(function () {          $("#wkmain .prev_adress input").click(function(){                $("#wkmain div.additional_transport").css("display","none");                $("#wkmain .other_adress label").removeClass("checked");                $("#wkmain .other_adress label").removeClass("current");          });          $("#wkmain .other_adress input").click(function(){                $("#wkmain div.additional_transport").css("display","block");                $("#wkmain .prev_adress label").removeClass("checked");                $("#wkmain .prev_adress label").removeClass("current");          });          $("#wkmain fieldset.lieferoptionen input").click(function(){                $("#wkmain fieldset.lieferoptionen label").removeClass();                $(this).parent().addClass("current");          });          $("#wkmain .detail_adress input").click(function(){                $("#wkmain .dhl_packstation label").removeClass();                $("#wkmain .addAnschrift label").removeClass();                $("#wkmain .detail_adress label").removeClass();                $("#wkmain .neue_lieferadresse").css("display","none");                $("#wkmain .packstation").css("display","none");                $(this).parent().addClass("current");          });          $("#wkmain .dhl_packstation input").click(function(){                $("#wkmain .detail_adress label").removeClass();                $("#wkmain .addAnschrift label").removeClass();                $("#wkmain .neue_lieferadresse").css("display","none");                $("#wkmain .packstation").css("display","block");          });          $("#wkmain .addAnschrift input").click(function(){                $("#wkmain .detail_adress label").removeClass();                $("#wkmain .dhl_packstation label").removeClass();                $("#wkmain .packstation").css("display","none");                $("#wkmain .neue_lieferadresse").css("display","block");          });          var other_adress = $("#wkmain .other_adress input").attr("checked")          if(other_adress){                $("#wkmain div.additional_transport").css("display","block");          }          var other_adress = $("#wkmain .other_adress input").attr("checked")          if(other_adress){                $("#wkmain div.additional_transport").css("display","block");          }          var packstation = $("#wkmain .dhl_packstation input").attr("checked")          if(packstation){                $("#wkmain .packstation").css("display","block");          }          var neue_lieferadresse = $("#wkmain .addAnschrift input").attr("checked")          if(neue_lieferadresse){                $("#wkmain .neue_lieferadresse").css("display","block");                $("#wkmain .packstation").css("display","none");          }          //Zahlungsdetails          $("#wkmain fieldset.payment_select input").click(function(){                $("#wkmain fieldset.payment_select label").removeClass();                $(this).parent().addClass("current");          });          $("#wkmain .breuninger_card input").click(function(){                $("#wkmain fieldset.breuninger_card").css("display","block");                $("#wkmain fieldset.rechnung").css("display","none");                $("#wkmain fieldset.kreditkarte").css("display","none");                $("#wkmain fieldset.bankeinzug").css("display","none");          });          var breuninger_card = $("#wkmain .breuninger_card input").attr("checked")          if(breuninger_card){                $("#wkmain fieldset.breuninger_card").css("display","block");                $("#wkmain fieldset.rechnung").css("display","none");                $("#wkmain fieldset.kreditkarte").css("display","none");                $("#wkmain fieldset.bankeinzug").css("display","none");          }          $("#wkmain .rechnung input").click(function(){                $("#wkmain fieldset.rechnung").css("display","block");                $("#wkmain fieldset.breuninger_card").css("display","none");                $("#wkmain fieldset.kreditkarte").css("display","none");                $("#wkmain fieldset.bankeinzug").css("display","none");          });          var rechnung = $("#wkmain .rechnung input").attr("checked")          if(rechnung){                $("#wkmain fieldset.rechnung").css("display","block");                $("#wkmain fieldset.breuninger_card").css("display","none");                $("#wkmain fieldset.kreditkarte").css("display","none");                $("#wkmain fieldset.bankeinzug").css("display","none");          }          $("#wkmain .kreditkarte input").click(function(){                $("#wkmain fieldset.kreditkarte").css("display","block");                $("#wkmain fieldset.rechnung").css("display","none");                $("#wkmain fieldset.breuninger_card").css("display","none");                $("#wkmain fieldset.bankeinzug").css("display","none");          });          var kreditkarte = $("#wkmain .kreditkarte input").attr("checked")          if(kreditkarte){                $("#wkmain fieldset.kreditkarte").css("display","block");                $("#wkmain fieldset.rechnung").css("display","none");                $("#wkmain fieldset.breuninger_card").css("display","none");                $("#wkmain fieldset.bankeinzug").css("display","none");          }          $("#wkmain .bankeinzug input").click(function(){                $("#wkmain fieldset.bankeinzug").css("display","block");                $("#wkmain fieldset.kreditkarte").css("display","none");                $("#wkmain fieldset.rechnung").css("display","none");                $("#wkmain fieldset.breuninger_card").css("display","none");          });          var bankeinzug = $("#wkmain .bankeinzug input").attr("checked")          if(bankeinzug){                $("#wkmain fieldset.bankeinzug").css("display","block");                $("#wkmain fieldset.kreditkarte").css("display","none");                $("#wkmain fieldset.rechnung").css("display","none");                $("#wkmain fieldset.breuninger_card").css("display","none");          }    });	$("input.card3,input.card2").keydown(function(event) {	        // Allow only backspace and delete	        if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 16 ) {	                // let it happen, don't do anything	        } else {	                // Ensure that it is a number and stop the keypress	                //if (event.keyCode < 48 || event.keyCode > 57 ) {	                if (!(event.keyCode >= 48 && event.keyCode <= 57 ) && !(event.keyCode >= 96 && event.keyCode <= 105 )) {	                        event.preventDefault(); 	                }       	        }	    });/*	$("#wkmain input.card3").keyup(function(event) {		if($(this).val().length==8) {			$("input.card2").focus();		}	}); */   if($("#flashLanding").html()!=null) {         $.ajax({           type: 'GET',           url: '_js/jquery.cycle.lite.1.0.js',           success: function() {               $('.slides').cycle({                          fx: 'fade',                          speed: 800,                          timeout: 6000                    });           },           dataType: 'script',           cache: true       });   }	/* POD Zoom Neu */	if($("#zoom").html()!=null) {    	$.ajax({        	type: 'GET',            url: '_js/jquery.jqzoom.1.0.1.js',            success: function() {				var options = {			    	zoomWidth: 424,			    	zoomHeight: 425,					xOffset: 5,					title:false				}	            $(".jqzoom").jqzoom(options);				podScroller_init();           	},               dataType: 'script',               cache: true           });    }	/* Beauty Scroller */	if($("#zoom").html()==null && $(".scroll-pane").html()!=null) {		podScroller_init();	}		$("#accordion h3 a").click(function(){		setTimeout(function(){  			podScroller_init(); 		}, 500);	})				/* POD */	if($("#mainNeu div.pod").html()!=null) {		//Product Thumb Replacing;		$("div.col1 a.thumb").click(function() {			$(this).find("img").attr("src",$("#izoom a").attr("rel"));			var strings = $(this).attr("rel").split("|");			var imgs = $("#izoom a").attr("rel")+'|'+$("#izoom a img").attr("src")+'|'+$("#izoom a").attr("href");			$(this).attr("rel",imgs);			replaceProductImage(strings[0],strings[1],strings[2]);			return false;		});		init_shoppingWindow();    }	/* Caroussel*/	if($("#carousel").html()!=null) {	            $.ajax({	              type: 'GET',	              url: '_js/simple.carousel.0.2.js',	              success: function() {				$("div#carousel ul").simplecarousel({	                width:75,	                height:115,	                visible: 4,	                next: $('.next'),	                prev: $('.prev')	            });		              },	              dataType: 'script',	              cache: true	          });	}	if($("#accordion").html()!=null) {		$("#accordion").accordion({ header: "h3", active: false, collapsible: true });	}		if($(".pod.collection").html()!=null) {		$("div.sale").each(function() {			var tpos = $(this).parent().find("div.title").height()-39;			$(this).css("top",tpos);		});	}		isIE = (navigator.userAgent.indexOf("MSIE") != -1)	if (isIE) {		$("p.error").each(function(index, value) { 		  	if($(this).text()!="") {				$(this).css("line-height","15px");			}		});		$("p.form_error").each(function(index, value) { 		  	if($(this).text()!="") {				$(this).css("line-height","15px");			}		});	}		/* Browserdetection Client/OS */	isIE6 = (navigator.userAgent.indexOf("MSIE 6.") != -1)	if (isIE6) {	      $.ajax({	      type: 'GET',	      url: '_js/iepngfix_tilebg.js',	      dataType: 'script',	      cache: true		});		$('.navi-box li').hover(function(){			$(this).css("background-color","#F4F4F4");		}, function(){			if($(this).attr('class') != "navi-on")			$(this).css("background-color","transparent");			});	}		isIE8 = (navigator.userAgent.indexOf("MSIE 8.") != -1)	if (isIE8) {		$(".gutschein fieldset .smaller_input").css({"position":"relative","top":"-17px"});	}		var jQbrowser = navigator.userAgent.toLowerCase();	jQuery.os = {	  mac: /mac/.test(jQbrowser),	  win: /win/.test(jQbrowser),	  linux: /linux/.test(jQbrowser)	};	if($.os.win && $.browser.mozilla)  {		$("input.card3").css("width", "111px");	}   // !! LAST SCRIPT !!   if (typeof doneJSReady != "undefined") {         doneJSReady();   } });