jQuery.noConflict();jQuery(document).ready(function(){if(jQuery('ul.nav li.nav-edition-aruzzi-taugo').hasClass('active')){jQuery('ul.nav li.nav-edition-aruzzi-taugo').addClass('eat_active');}
jQuery('#messages_product_view .success-msg, #messages_product_view .checkout-success-msg, .messages .notice-msg').css({opacity:0}).fadeTo("slow",0.70);if(!jQuery('body').hasClass('checkout-onepage-success')){window.setTimeout("jQuery('#messages_product_view .success-msg').fadeOut('slow')",5000);}
jQuery(".messages").css('cursor','default');jQuery(".messages").append('<div class="close-button"></div>');jQuery('.close-button').click(function(event){jQuery('.messages').fadeOut('fast');});if(jQuery('#checkoutSteps  ul.opc #opc-login').length==0){jQuery('#checkoutSteps ul.opc').addClass('loggedin');}});function setsidebarpos(){var ctop=150;var cbottom=60;var bh=jQuery('body').height();var ch=jQuery("#content").height();var wh=jQuery(window).height();var sp=getscrollpos();var sbh=0;var nt=0;sbh=jQuery("#sidebar-left").height();if(sbh!=null){nt=jQuery("#sidebar-left").css("top");if(nt=='auto'){nt=0;}
if(sp>ctop){if((wh<sbh)&&((sp-ctop)>(sbh-wh))){nt=sp-ctop-(sbh-wh)-5;}else if(wh>sbh){nt=sp-ctop;}else{nt=0;}
if(ch-40<(nt+sbh)){nt=ch-sbh-40;}}else{nt=0;}
if(nt<0){nt=0;}
jQuery("#sidebar-left").css("position","relative");jQuery("#sidebar-left").animate({top:nt},{duration:10,queue:false});}
sbh=jQuery("#sidebar-right").height();if(sbh!=null){nt=jQuery("#sidebar-right").css("top");if(nt=='auto'){nt=0;}
if(sp>ctop){if((wh<sbh)&&((sp-ctop)>(sbh-wh))){nt=sp-ctop-(sbh-wh)-5;}else if(wh>sbh){nt=sp-ctop;}else{nt=0;}
if(ch-40<(nt+sbh)){nt=ch-sbh-40;}}else{nt=0;}
if(nt<0){nt=0;}
jQuery("#sidebar-right").css("position","relative");jQuery("#sidebar-right").animate({top:nt},{duration:10,queue:false});}}
function getscrollpos()
{var scrollPos;if(typeof window.pageYOffset!='undefined'){scrollPos=window.pageYOffset;}
else if(typeof document.compatMode!='undefined'&&document.compatMode!='BackCompat'){scrollPos=document.documentElement.scrollTop;}
else if(typeof document.body!='undefined'){scrollPos=document.body.scrollTop;}
return scrollPos;}
function addBookmark()
{if(window.sidebar)
window.sidebar.addPanel(document.title||location.href,location.href,"");else if(window.external)
window.external.AddFavorite(window.location.href,document.title||location.href)
else
alert("Hinweis:\nLeider konnte kein Lesezeichen gesetzt werden...");return false;}
function toggleMenu(a,b)
{};var automatic=true;function slider(slider_id,width){var index=0;var sliderList=jQuery('#'+slider_id+' li');var nextButton=jQuery('#'+slider_id+' .slider-next');var prevButton=jQuery('#'+slider_id+' .slider-prev');var count=sliderList.length;jQuery(sliderList[index]).css('left','0');nextButton.click(function()
{automatic=false;next(slider_id,width);});prevButton.click(function()
{automatic=false;prev(slider_id,width);});next=function(slider_id,width)
{var sliderList=jQuery('#'+slider_id+' li');jQuery(sliderList[index]).animate({left:'-'+width+'px'},{queue:false,duration:800});jQuery(sliderList[index]).css('z-index','-5');index=(index+1)%count;jQuery(sliderList[index]).css('left',width+'px');jQuery(sliderList[index]).animate({left:'-5px'},{queue:false,duration:800});jQuery(sliderList[index]).css('z-index','10');}
prev=function(slider_id,width)
{var sliderList=jQuery('#'+slider_id+' li');jQuery(sliderList[index]).animate({left:width+'px'},{queue:false,duration:800});jQuery(sliderList[index]).css('z-index','-5');index=index-1;if(index<0)index=count-1;jQuery(sliderList[index]).css('left','-'+width+'px');jQuery(sliderList[index]).animate({left:'0'},{queue:false,duration:800})
jQuery(sliderList[index]).css('z-index','10');}
if(slider_id=='home-teaser')
{setInterval(function callFunc(){if(automatic)next(slider_id,width);},4000);}}
