function itemFirstInHandler(carousel,li,idx,state){display("Item #"+idx+" is now the first item")}function itemFirstOutHandler(carousel,li,idx,state){display("Item #"+idx+" is no longer the first item")}function itemLastInHandler(carousel,li,idx,state){display("Item #"+idx+" is now the last item")}function itemLastOutHandler(carousel,li,idx,state){display("Item #"+idx+" is no longer the last item")}function itemVisibleInHandlerBeforeAnimation(carousel,li,idx,state){if(state=="init"){return}jQuery("img",li).hide();jQuery("img",li).show("slow")}function itemVisibleInHandlerAfterAnimation(carousel,li,idx,state){display("Item #"+idx+" is now visible")}function itemVisibleOutHandlerBeforeAnimation(carousel,li,idx,state){jQuery("img",li).hide("slow")}function itemVisibleOutHandlerAfterAnimation(carousel,li,idx,state){display("Item #"+idx+" is no longer visible")}function display(s){jQuery("#display").get(0).innerHTML+=s+"<br />";jQuery("#display").get(0).scrollTop+=10000}var nextOver=function(){jQuery(this).attr("src","/web/images/button/pfeil/next-over.gif")};var nextOut=function(){jQuery(this).attr("src","/web/images/button/pfeil/next.gif")};var nextDown=function(){jQuery(this).attr("src","/web/images/button/pfeil/next-down.gif")};function nextButtonStateHandler(carousel,button,enabling){if(enabling){jQuery(button).attr("src","/web/images/button/pfeil/next.gif").bind("mouseover",nextOver).bind("mouseout",nextOut).bind("mousedown",nextDown)}else{jQuery(button).attr("src","/web/images/button/pfeil/next-disabled.gif").unbind("unmouseover",nextOver).unbind("unmouseout",nextOut).unbind("unmousedown",nextDown)}}var prevOver=function(){jQuery(this).attr("src","/web/images/button/pfeil/prev-over.gif")};var prevOut=function(){jQuery(this).attr("src","/web/images/button/pfeil/prev.gif")};var prevDown=function(){jQuery(this).attr("src","/web/images/button/pfeil/prev-down.gif")};function prevButtonStateHandler(carousel,button,enabling){if(enabling){jQuery(button).attr("src","/web/images/button/pfeil/prev.gif").bind("mouseover",prevOver).bind("mouseout",prevOut).bind("mousedown",prevDown)}else{jQuery(button).attr("src","/web/images/button/pfeil/prev-disabled.gif").unbind("unmouseover",prevOver).unbind("unmouseout",prevOut).unbind("unmousedown",prevDown)}}function itemFirstInHandler2(carousel,li,idx,state){display2("Item #"+idx+" is now the first item")}function itemFirstOutHandler2(carousel,li,idx,state){display2("Item #"+idx+" is no longer the first item")}function itemLastInHandler2(carousel,li,idx,state){display2("Item #"+idx+" is now the last item")}function itemLastOutHandler2(carousel,li,idx,state){display2("Item #"+idx+" is no longer the last item")}function itemVisibleInHandlerBeforeAnimation2(carousel,li,idx,state){if(state=="init"){return}jQuery("img",li).hide();jQuery("img",li).show("slow")}function itemVisibleInHandlerAfterAnimation2(carousel,li,idx,state){display2("Item #"+idx+" is now visible")}function itemVisibleOutHandlerBeforeAnimation2(carousel,li,idx,state){jQuery("img",li).hide("slow")}function itemVisibleOutHandlerAfterAnimation2(carousel,li,idx,state){display2("Item #"+idx+" is no longer visible");if(state=="next"){relatedProductUp()}if(state=="prev"){relatedProductDown()}}function display2(s){jQuery("#display").get(0).innerHTML+=s+"<br />";jQuery("#display").get(0).scrollTop+=10000}var nextOver2=function(){jQuery(this).attr("src","/web/images/button/pfeil/next_produkt-over.gif")};var nextOut2=function(){jQuery(this).attr("src","/web/images/button/pfeil/next_produkt.gif")};var nextDown2=function(){jQuery(this).attr("src","/web/images/button/pfeil/next_produkt-down.gif")};function nextButtonStateHandler2(carousel,button,enabling){if(enabling){jQuery(button).attr("src","/web/images/button/pfeil/next_produkt.gif").bind("mouseover",nextOver2).bind("mouseout",nextOut2).bind("mousedown",nextDown2)}else{jQuery(button).attr("src","/web/images/button/pfeil/next_produkt-disabled.gif").unbind("unmouseover",nextOver2).unbind("unmouseout",nextOut2).unbind("unmousedown",nextDown2)}}var prevOver2=function(){jQuery(this).attr("src","/web/images/button/pfeil/prev_produkt-over.gif")};var prevOut2=function(){jQuery(this).attr("src","/web/images/button/pfeil/prev_produkt.gif")};var prevDown2=function(){jQuery(this).attr("src","/web/images/button/pfeil/prev_produkt-down.gif")};function prevButtonStateHandler2(carousel,button,enabling){if(enabling){jQuery(button).attr("src","/web/images/button/pfeil/prev_produkt.gif").bind("mouseover",prevOver2).bind("mouseout",prevOut2).bind("mousedown",prevDown2)}else{jQuery(button).attr("src","/web/images/button/pfeil/prev_produkt-disabled.gif").unbind("unmouseover",prevOver2).unbind("unmouseout",prevOut2).unbind("unmousedown",prevDown2)}}jQuery(document).ready(function(){jQuery("#mycarousel").jcarousel({itemScroll:1,itemVisible:6,scrollAnimation:"fast",itemFirstInHandler:itemFirstInHandler,itemFirstOutHandler:itemFirstOutHandler,itemLastInHandler:itemLastInHandler,itemLastOutHandler:itemLastOutHandler,itemVisibleInHandler:{onBeforeAnimation:itemVisibleInHandlerBeforeAnimation,onAfterAnimation:itemVisibleInHandlerAfterAnimation},itemVisibleOutHandler:{onBeforeAnimation:itemVisibleOutHandlerBeforeAnimation,onAfterAnimation:itemVisibleOutHandlerAfterAnimation},nextButtonStateHandler:nextButtonStateHandler,prevButtonStateHandler:prevButtonStateHandler});jQuery("#mycarousel2").jcarousel({itemScroll:1,itemVisible:3,scrollAnimation:"fast",itemFirstInHandler:itemFirstInHandler2,itemFirstOutHandler:itemFirstOutHandler2,itemLastInHandler:itemLastInHandler2,itemLastOutHandler:itemLastOutHandler2,itemVisibleInHandler:{onBeforeAnimation:itemVisibleInHandlerBeforeAnimation2,onAfterAnimation:itemVisibleInHandlerAfterAnimation2},itemVisibleOutHandler:{onBeforeAnimation:itemVisibleOutHandlerBeforeAnimation2,onAfterAnimation:itemVisibleOutHandlerAfterAnimation2},nextButtonStateHandler:nextButtonStateHandler2,prevButtonStateHandler:prevButtonStateHandler2})});