var menu=function(){var D=15,F=50,E=6,C;function B(G){this.n=G;this.h=[];this.c=[]}B.prototype.init=function(L,M){C=M;var H=document.getElementById(L),K=H.getElementsByTagName("ul"),G=K.length,I=0;for(I;I<G;I++){var J=K[I].parentNode;this.h[I]=J;this.c[I]=K[I];J.onmouseover=new Function(this.n+".st("+I+",true)");J.onmouseout=new Function(this.n+".st("+I+")")}};B.prototype.st=function(G,I){var K=this.c[G],H=this.h[G],J=H.getElementsByTagName("a")[0];clearInterval(K.t);K.style.overflow="hidden";if(I){J.className+=" "+C;if(!K.mh){K.style.display="block";K.style.height="";K.mh=K.offsetHeight;K.style.height=0}if(K.mh==K.offsetHeight){K.style.overflow="visible"}else{K.style.zIndex=F;F++;K.t=setInterval(function(){A(K,1)},D)}}else{J.className=J.className.replace(C,"");K.t=setInterval(function(){A(K,-1)},D)}};function A(K,H){var G=K.offsetHeight;if((G<=0&&H!=1)||(G>=K.mh&&H==1)){if(H==1){K.style.filter="";K.style.opacity=1;K.style.overflow="visible"}clearInterval(K.t);return}var J=(H==1)?Math.ceil((K.mh-G)/E):Math.ceil(G/E),I=G/K.mh;K.style.opacity=I;K.style.filter="alpha(opacity="+(I*100)+")";K.style.height=G+(J*H)+"px"}return{dd:B}}();function scrollToTop(){window.scrollTo(0,0)}function EJEJC_lc(A){return false}function onAddClick(G){YAHOO.util.Event.preventDefault(G);var F;var E;var B;var H;var I;var J;var C=YAHOO.util.Dom.getAncestorByTagName(this,"div");var A=YAHOO.util.Dom.getElementsByClassName("select","select",C);var D=A[0];if(D.selectedIndex<1){F={backgroundColor:{to:"#ff0"}};E=new YAHOO.util.ColorAnim(A,{backgroundColor:{to:"#ff0"}});B=new YAHOO.util.ColorAnim(A,{backgroundColor:{to:"#fff"}});E.animate();H=new YAHOO.widget.SimpleDialog("dialog",{width:"300px",context:[A[0],"tr","bl"],visible:false,draggable:true,close:false,text:"Please choose product size first.",icon:YAHOO.widget.SimpleDialog.ICON_WARN,constraintoviewport:true,buttons:[{text:"OK",handler:function(){B.animate();this.hide()},isDefault:true}]});H.render("container");H.show()}else{J=D.options[D.selectedIndex].value;I=document.createElement("a");I.href="https://www.e-junkie.com/ecom/gb.php?c=cart&i="+J+"&cl=39974&ejc=2";EJEJC_lc(I)}return false}function initButtons(){var A=YAHOO.util.Dom.getElementsByClassName("button_add","a");YAHOO.util.Event.addListener(A,"click",onAddClick)}YAHOO.util.Event.onDOMReady(initButtons);