var cache_menu=",,,,,,".split(","),cache_x_width_nvm="0,0,-45px,-176px,-234px,-302px,-384px".split(","),current_view=1;function display_nvm(a){""!=cache_menu[a]?display_content_nvm(a):$.ajax({type:"GET",url:"ajax+api/nvm/"+a,success:function(b){cache_menu[a]=b;display_content_nvm(a)}})} function display_content_nvm(a){if(a!=current_view)document.getElementById("mvn_n"+current_view).style.backgroundPosition=cache_x_width_nvm[current_view]+" 0",document.getElementById("mvn_n"+a).style.backgroundPosition=cache_x_width_nvm[a]+" -64px",document.getElementById("slidev8t1").innerHTML=cache_menu[current_view],document.getElementById("slideInner8").style.marginLeft="-960px",a<current_view?(document.getElementById("slidev8t0").innerHTML=cache_menu[a],$("#slideInner8").stop().animate({marginLeft:"0px"})): (document.getElementById("slidev8t2").innerHTML=cache_menu[a],$("#slideInner8").stop().animate({marginLeft:"-1920px"})),current_view=a}function nav_mvn_ro(a){if(current_view!=a)document.getElementById("mvn_n"+a).style.backgroundPosition=cache_x_width_nvm[a]+" -32px"}function nav_mvn_ra(a){if(current_view!=a)document.getElementById("mvn_n"+a).style.backgroundPosition=cache_x_width_nvm[a]+" 0px"} $(window).load(function(){var a=$(".slide8");$("#slidesContainer8").css("overflow","hidden");a.wrapAll('<div id="slideInner8"></div>').css({"float":"left",width:"960px"});$("#slideInner8").css("width",2880);$("#mvn_n1").mouseover(function(){nav_mvn_ro(1)});$("#mvn_n1").mouseleave(function(){nav_mvn_ra(1)});$("#mvn_n2").mouseover(function(){nav_mvn_ro(2)});$("#mvn_n2").mouseleave(function(){nav_mvn_ra(2)});$("#mvn_n3").mouseover(function(){nav_mvn_ro(3)});$("#mvn_n3").mouseleave(function(){nav_mvn_ra(3)}); $("#mvn_n4").mouseover(function(){nav_mvn_ro(4)});$("#mvn_n4").mouseleave(function(){nav_mvn_ra(4)});$("#mvn_n5").mouseover(function(){nav_mvn_ro(5)});$("#mvn_n5").mouseleave(function(){nav_mvn_ra(5)});$("#mvn_n6").mouseover(function(){nav_mvn_ro(6)});$("#mvn_n6").mouseleave(function(){nav_mvn_ra(6)});$.ajax({type:"GET",url:"ajax+api/nvm/1",success:function(a){cache_menu[1]=a;document.getElementById("slidev8t0").innerHTML=cache_menu[1]}});$("#dnamea").click(function(){if("B&uuml;cher, H&ouml;rb&uuml;cher, eBooks"== document.getElementById("dnamea").value)document.getElementById("dnamea").value=""});$("#dnamea").blur(function(){if(""==document.getElementById("dnamea").value)document.getElementById("dnamea").value="B&uuml;cher, H&ouml;rb&uuml;cher, eBooks"})});var curr_search=0; function press_btn_suchen(){0==curr_search?window.open("http://buechermarx.shop-asp.de/shop/action/quickSearch?aUrl=90008267&facetNodeId=-1&searchString="+escape(document.getElementById("dnamea").value),"search"):document.location.href="Suchergebnisse/"+escape(document.getElementById("dnamea").value)} function chance_search(a){curr_search=a;0==curr_search?(document.getElementById("searchshopsuche").innerHTML="Im Shop",document.getElementById("curselt").innerHTML="Im Shop",document.getElementById("searchlast").style.color="#6c6c6c",document.getElementById("searchcurrent").style.color="#414141"):(document.getElementById("searchshopsuche").innerHTML="Website",document.getElementById("curselt").innerHTML="Website",document.getElementById("searchcurrent").style.color="#6c6c6c",document.getElementById("searchlast").style.color= "#414141");$(".shopsuchelarge").stop().fadeOut("slow")}function handlesubmit(a){13==(a.keyCode||a.which)&&press_btn_suchen()};
