var PopWin=new Class({initialize:function(a){this.target=$(a);this.target.setStyle("right",0);this.target.setStyle("z-index","10000");this.min=this.target.getElement("#min");this.close=this.target.getElement("#close");this.min.addEvent("click",this.showHalf.bindWithEvent(this));this.close.addEvent("click",this.dispose.bindWithEvent(this));Browser.Engine.trident?this.doIeSix.periodical(2,this):this.w3cWay()},showHalf:function(a){this.target.setStyle("height","30px");a.target.removeEvents();a.target.set("id",
"max");a.target.addEvent("click",this.showFull.bindWithEvent(this))},showFull:function(a){this.target.setStyle("height","262px");a.target.set("id","min");a.target.removeEvents();a.target.addEvent("click",this.showHalf.bindWithEvent(this))},dispose:function(){this.target.dispose()},w3cWay:function(){this.target.setStyle("position","fixed");this.target.setStyle("bottom",0)},doIeSix:function(){this.target.setStyle("position","absolute");var a=getScroll().y+getCoordinates().height-this.target.getStyle("height").toInt();
this.target.setStyle("top",a)}}),Couplet=new Class({Implements:[Options],options:{targets:"class",screenY:getCoordinates().height*0.08,width:120,sWidth:960},initialize:function(a,b,c){this.setOptions(a);this.targets=$$(this.options.targets);this.btns=$$(".coupletBtn");this.tImgs=$$(".tImg");this.margin=5;this.targets.each(function(d,e){d.setStyles({position:"absolute",overflow:"hidden","z-index":"10000"});d.addEvent("mouseover",this.showFull.bindWithEvent(this));this.btns[e].setStyles({background:"#EEE",
width:"120px","text-align":"center",color:"#333",height:"25px","line-height":"25px",overflow:"hidden",display:"block"});this.btns[e].addEvent("click",this.close.bindWithEvent(this));e%2==0?d.setStyle("left",this.margin):d.setStyle("right",this.margin);this.tImgs[e].style.display="block"},this);c&&this.targets[c].setStyle("display","none");Browser.Engine.version==4?this.doIeSix.periodical(2,this):this.w3cWay()},showFull:function(a){a.stop();this.btns.each(function(b,c){b.setStyle("display","block");
this.tImgs[c].style.display="block"},this)},close:function(){this.targets.dispose()},w3cWay:function(){this.targets[0].setStyle("position","fixed");this.targets[1].setStyle("position","fixed");this.targets[0].setStyle("top",this.options.screenY);this.targets[1].setStyle("top",this.options.screenY)},doIeSix:function(){var a=getScroll().y+this.options.screenY;this.targets[0].setStyle("top",a);this.targets[1].setStyle("top",a)}}),VScroller=new Class({Implements:[Options],options:{heightOffset:-20,f:5,
amount:2,targetId:"id"},initialize:function(a){this.setOptions(a);this.content=$(this.options.targetId);this.content.getParent().setStyle("position","relative");this.content.getParent().setStyle("height","266px");this.content.setStyles({position:"absolute",top:"0",left:"0","z-index":"52525"});this.patch();this.myFx=new Fx.Tween(this.content,{duration:1000});this.acc=this.options.amount;this.pos=0;this.run();this.content.addEvent("mouseenter",this.stop.bindWithEvent(this));this.content.addEvent("mouseleave",
this.run.bindWithEvent(this))},patch:function(){var a=this.content.getChildren().clone();a.each(function(b,c){c<this.options.f&&this.content.grab(b,"bottom")},this)},doScroll:function(){this.myFx.start("top",this.pos,this.pos+this.options.heightOffset);this.acc--;if(this.acc==0)this.reset();else this.pos+=this.options.heightOffset},reset:function(){this.pos=0;this.acc=this.options.amount},stop:function(){$clear(this.running)},run:function(){this.running=this.doScroll.periodical(4000,this)}});
function cTab(a){var b=Math.random(10)+"";$(a)&&new TabSwitch(a)}window.addEvent("domready",function(){var a=$$("input[type=text]");a.each(function(b){b.store("dValue",b.get("value"));b.addEvent("focus",function(){var c=this.retrieve("dValue");this.value=this.value==c?"":this.value});b.addEvent("blur",function(){var c=this.retrieve("dValue");this.value=this.value==""?c:this.value})})});
function showProduct(a){$(a).addEvent("mouseover",function(b){b.stop();if(b.target.className=="stDiv")$(b.target).getElement(".productFloat").setStyle("display","block");else b.target.className=="sT"&&$(b.target).getNext().setStyle("display","block")});$$(".stDiv").each(function(b){b.addEvent("mouseleave",function(c){this.getElement(".productFloat").setStyle("display","none")})})};