BrowserObject=Class.create();BrowserObject.prototype={initialize:function(){this.ie=false
/*@cc_on || true @*/
;this.ie7=this.ie
/*@cc_on && window.XMLHttpRequest != null @*/
;this.ie6=this.ie&&!this.ie7}};var bo=new BrowserObject();var Recommended=Class.create({Prefix:{slidesPrefix:"slide",recommendedPrefix:"slider",recRightArrowPrefix:"rec-right-arrow",recLeftArrowPrefix:"rec-left-arrow",productPrefix:"teaser",productSeparator:"_"},initialize:function(B){this.elementNumber=0;this.recommendedProducts=[];this.slides=[];this.pe=null;this.processEndTime=0;this.duration=[];this.defDuration=2;try{Event.observe($(this.Prefix.recommendedPrefix+B),"mouseover",this.stop.bindAsEventListener(this))}catch(A){}try{Event.observe($(this.Prefix.recommendedPrefix+B),"mouseout",this.start.bindAsEventListener(this))}catch(A){}try{Event.observe($(this.Prefix.recRightArrowPrefix+B),"click",this.next.bindAsEventListener(this))}catch(A){}try{Event.observe($(this.Prefix.recLeftArrowPrefix+B),"click",this.prev.bindAsEventListener(this))}catch(A){}try{$(this.Prefix.productPrefix+B+this.Prefix.productSeparator+1).style.display="block"}catch(A){}if(bo.ie6){try{Event.observe($(this.Prefix.recRightArrowPrefix+B),"mouseover",this.mouseOverRight.bindAsEventListener(this))}catch(A){}try{Event.observe($(this.Prefix.recLeftArrowPrefix+B),"mouseover",this.mouseOverLeft.bindAsEventListener(this))}catch(A){}try{Event.observe($(this.Prefix.recRightArrowPrefix+B),"mouseout",this.mouseOutRight.bindAsEventListener(this))}catch(A){}try{Event.observe($(this.Prefix.recLeftArrowPrefix+B),"mouseout",this.mouseOutLeft.bindAsEventListener(this))}catch(A){}}},start:function(A){if(this.recommendedProducts.length>1){this.pe=new PeriodicalExecuter(this.autoChange.bindAsEventListener(this),5)}},start2:function(A){if(this.recommendedProducts.length>1){this.pe=new PeriodicalExecuter(this.autoChange.bindAsEventListener(this),A)}},stop:function(A){if(this.recommendedProducts.length>1){this.pe.stop()}},loadProducts:function(C){var B=1;var A=$(C+B);while(A){this.recommendedProducts.push($(A));B++;A=$(C+B)}},loadSlides:function(C){var B=1;var A=$(C+B);while(A){Event.observe($(A),"click",this.change.bindAsEventListener(this));this.slides.push($(A));B++;A=$(C+B)}},loadDuration:function(A){for(i=0;i<this.slides.length;i++){if(A[i]==0||i>=A.length){this.duration[i]=this.defDuration}else{this.duration[i]=A[i]}}},setDefDuration:function(A){this.defDuration=dur},autoChange:function(){this.stop();this.recommendedProducts[this.elementNumber].style.display="none";this.elementNumber=this.recommendedProducts.length-this.elementNumber==1?-1:this.elementNumber;this.elementNumber++;this.setProduct2();this.setSlides();this.start2(this.getDuration(this.recommendedProducts[this.elementNumber],2)+this.duration[this.elementNumber])},next:function(A){this.stop();if(this.isProcesing()){return }this.recommendedProducts[this.elementNumber].style.display="none";this.elementNumber=this.recommendedProducts.length-this.elementNumber==1?-1:this.elementNumber;this.elementNumber++;this.setProduct(0.5);this.setSlides();this.start2(this.getDuration(this.recommendedProducts[this.elementNumber],0.5)+this.duration[this.elementNumber])},prev:function(A){this.stop();if(this.isProcesing()){return }this.recommendedProducts[this.elementNumber].style.display="none";this.elementNumber=this.recommendedProducts.length-this.elementNumber==this.recommendedProducts.length?this.recommendedProducts.length:this.elementNumber;this.elementNumber--;this.setProduct(0.5);this.setSlides();this.start2(this.getDuration(this.recommendedProducts[this.elementNumber],0.5)+this.duration[this.elementNumber])},change:function(B){var A=Event.element(B);if(A==null||this.slides==null){return }this.stop();if(this.isProcesing()){return }for(i=0;i<this.slides.length;i++){if(A==this.slides[i]){this.recommendedProducts[this.elementNumber].style.display="none";this.elementNumber=i;this.setProduct(0.5);this.setSlides();this.start2(this.getDuration(this.recommendedProducts[this.elementNumber],0.5)+this.duration[this.elementNumber]);break}}},setProduct2:function(){var A=this.duration[this.elementNumber];var B=this.getDuration(this.recommendedProducts[this.elementNumber],2);if(A>0){new Effect.Appear(this.recommendedProducts[this.elementNumber].id,{duration:B});this.processEndTime=(new Date().getTime())+(B*1000)}else{this.recommendedProducts[this.elementNumber].style.display="block"}},setProduct:function(C){var B=this.getDuration(this.recommendedProducts[this.elementNumber],C);var A=this.duration[this.elementNumber];if(A>0){new Effect.Appear(this.recommendedProducts[this.elementNumber].id,{duration:B});this.processEndTime=(new Date().getTime())+(B*1000)}else{this.recommendedProducts[this.elementNumber].style.display="block"}},isProcesing:function(){return((new Date().getTime())-this.processEndTime)<0},setSlides:function(){if(this.slides==null){return }for(i=0;i<this.slides.length;i++){if(i==this.elementNumber){this.slides[i].style.background="#bbb"}else{this.slides[i].style.background="none";this.recommendedProducts[i].style.display="none"}}},getDuration:function(A,C){if(navigator.appVersion.indexOf("MSIE")>0){return C}var B=A.innerHTML;if(B.indexOf('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"')>=0){return 0}else{return C}},mouseOverRight:function(A){A.element().className="right-arrow-hover"},mouseOutRight:function(A){A.element().className="right-arrow"},mouseOverLeft:function(A){A.element().className="left-arrow-hover"},mouseOutLeft:function(A){A.element().className="left-arrow"}});