var YAHOO=window.YAHOO||{};YAHOO.namespace=function(D){if(!D||!D.length){return null}var C=D.split(".");var B=YAHOO;for(var A=(C[0]=="YAHOO")?1:0;A<C.length;++A){B[C[A]]=B[C[A]]||{};B=B[C[A]]}return B};YAHOO.namespace("util");YAHOO.namespace("widget");YAHOO.namespace("example");YAHOO.util.CustomEvent=function(B,A){this.type=B;this.scope=A||window;this.subscribers=[];if(YAHOO.util.Event){YAHOO.util.Event.regCE(this)}};YAHOO.util.CustomEvent.prototype={subscribe:function(C,B,A){this.subscribers.push(new YAHOO.util.Subscriber(C,B,A))},unsubscribe:function(F,C){var B=false;for(var D=0,A=this.subscribers.length;D<A;++D){var E=this.subscribers[D];if(E&&E.contains(F,C)){this._delete(D);B=true}}return B},fire:function(){for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C){var D=(C.override)?C.obj:this.scope;C.fn.call(D,this.type,arguments,C.obj)}}},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(B)}},_delete:function(B){var A=this.subscribers[B];if(A){delete A.fn;delete A.obj}delete this.subscribers[B]}};YAHOO.util.Subscriber=function(A,C,B){this.fn=A;this.obj=C||null;this.override=(B)};YAHOO.util.Subscriber.prototype.contains=function(A,B){return(this.fn==A&&this.obj==B)};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var J=false;var I=[];var H=[];var G=[];var E=[];var C=[];var F=[];var D=[];var B=0;var A=[];var L=0;var K={};return{POLL_RETRYS:200,POLL_INTERVAL:50,EL:0,TYPE:1,FN:2,WFN:3,SCOPE:3,ADJ_SCOPE:4,isSafari:(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent),isIE:(!this.isSafari&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),addDelayedListener:function(Q,P,O,N,M){H[H.length]=[Q,P,O,N,M];if(J){B=this.POLL_RETRYS;this.startTimeout(0)}},startTimeout:function(O){var N=this;var M=function(){N._tryPreloadAttach()};this.timeout=setTimeout(M,O)},onAvailable:function(M,P,O,N){A.push({id:M,fn:P,obj:O,override:N});B=this.POLL_RETRYS;this.startTimeout(0)},addListener:function(N,V,X,U,S){if(!X||!X.call){return false}if(this._isValidCollection(N)){var Y=true;for(var T=0,W=N.length;T<W;++T){Y=(this.on(N[T],V,X,U,S)&&Y)}return Y}else{if(typeof N=="string"){var R=this.getEl(N);if(J&&R){N=R}else{this.addDelayedListener(N,V,X,U,S);return true}}}if(!N){return false}if("unload"==V&&U!==this){G[G.length]=[N,V,X,U,S];return true}var Q=(S)?U:N;var P=function(a){return X.call(Q,YAHOO.util.Event.getEvent(a),U)};var Z=[N,V,X,P,Q];var O=I.length;I[O]=Z;this.mapListener(N,V,X,O);if(this.useLegacyEvent(N,V)){var M=this.getLegacyIndex(N,V);if(M==-1){M=C.length;D[N.id+V]=M;C[M]=[N,V,N["on"+V]];F[M]=[];N["on"+V]=function(a){return YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(a),M)}}F[M].push(O)}else{if(N.addEventListener){N.addEventListener(V,P,false)}else{if(N.attachEvent){N.attachEvent("on"+V,P)}}}return true},fireLegacyEvent:function(T,O){var U=true;var M=F[O];for(var Q=0,R=M.length;Q<R;++Q){var P=M[Q];if(P){var V=I[P];if(V&&V[this.WFN]){var N=V[this.ADJ_SCOPE];var S=V[this.WFN].call(N,T);U=(U&&S)}else{delete M[Q]}}}return U},getLegacyIndex:function(O,N){var M=this.generateId(O)+N;if(typeof D[M]=="undefined"){return -1}else{return D[M]}},useLegacyEvent:function(N,M){return((!N.addEventListener&&!N.attachEvent)||(M=="click"&&this.isSafari))},removeListener:function(M,T,P,S){if(!P||!P.call){return false}if(typeof M=="string"){M=this.getEl(M)}else{if(this._isValidCollection(M)){var Q=true;for(var N=0,O=M.length;N<O;++N){Q=(this.removeListener(M[N],T,P)&&Q)}return Q}}if("unload"==T){for(N=0,O=G.length;N<O;N++){var U=G[N];if(U&&U[0]==M&&U[1]==T&&U[2]==P){delete G[N];return true}}return false}var R=null;if("undefined"==typeof S){S=this._getCacheIndex(M,T,P)}if(S>=0){R=I[S]}if(!M||!R){return false}if(M.removeEventListener){M.removeEventListener(T,R[this.WFN],false)}else{if(M.detachEvent){M.detachEvent("on"+T,R[this.WFN])}}delete I[S][this.WFN];delete I[S][this.FN];delete I[S];return true},getTarget:function(N,O){var M=N.target||N.srcElement;if(O&&M&&"#text"==M.nodeName){return M.parentNode}else{return M}},getPageX:function(N){var M=N.pageX;if(!M&&0!==M){M=N.clientX||0;if(this.isIE){M+=this._getScrollLeft()}}return M},getPageY:function(M){var N=M.pageY;if(!N&&0!==N){N=M.clientY||0;if(this.isIE){N+=this._getScrollTop()}}return N},getXY:function(M){return[this.getPageX(M),this.getPageY(M)]},getRelatedTarget:function(N){var M=N.relatedTarget;if(!M){if(N.type=="mouseout"){M=N.toElement}else{if(N.type=="mouseover"){M=N.fromElement}}}return M},getTime:function(N){if(!N.time){var M=new Date().getTime();try{N.time=M}catch(O){return M}}return N.time},stopEvent:function(M){this.stopPropagation(M);this.preventDefault(M)},stopPropagation:function(M){if(M.stopPropagation){M.stopPropagation()}else{M.cancelBubble=true}},preventDefault:function(M){if(M.preventDefault){M.preventDefault()}else{M.returnValue=false}},getEvent:function(N){var M=N||window.event;if(!M){var O=this.getEvent.caller;while(O){M=O.arguments[0];if(M&&Event==M.constructor){break}O=O.caller}}return M},getCharCode:function(M){return M.charCode||((M.type=="keypress")?M.keyCode:0)},_getCacheIndex:function(S,Q,R){var P=S.id+Q;if(!K[P]){return -1}else{for(var O=0,M=K[P].length;O<M;++O){var N=K[P][O];if(N.fn==R){return N.index}}}return -1},generateId:function(M){var N=M.id;if(!N){N="yui-event-auto-id-"+(L++);M.id=N}return N},mapListener:function(O,N,M,Q){var P=this.generateId(O)+N;if(!K[P]){K[P]=[]}K[P].push({fn:M,index:Q})},_isValidCollection:function(M){return(M&&M.length&&typeof M!="string"&&!M.tagName&&!M.alert&&typeof M[0]!="undefined")},getEl:function(M){return document.getElementById(M)},clearCache:function(){},regCE:function(M){E.push(M)},_load:function(M){J=true},_tryPreloadAttach:function(){if(this.locked){return false}this.locked=true;var S=!J;if(!S){S=(B>0)}var R=[];for(var P=0,M=H.length;P<M;++P){var T=H[P];if(T){var Q=this.getEl(T[this.EL]);if(Q){this.on(Q,T[this.TYPE],T[this.FN],T[this.SCOPE],T[this.ADJ_SCOPE]);delete H[P]}else{R.push(T)}}}H=R;notAvail=[];for(P=0,M=A.length;P<M;++P){var O=A[P];if(O){Q=this.getEl(O.id);if(Q){var N=(O.override)?O.obj:Q;O.fn.call(N,O.obj);delete A[P]}else{notAvail.push(O)}}}B=(R.length===0&&notAvail.length===0)?0:B-1;if(S){this.startTimeout(this.POLL_INTERVAL)}this.locked=false},_unload:function(S,R,P){for(var Q=0,N=G.length;Q<N;++Q){var O=G[Q];if(O){var M=(O[this.ADJ_SCOPE])?O[this.SCOPE]:window;O[this.FN].call(M,this.getEvent(S),O[this.SCOPE])}}N=I.length;if(N){for(Q=0;Q<N;++Q){O=I[Q];if(O){this.removeListener(O[this.EL],O[this.TYPE],O[this.FN],Q)}}this.clearCache()}for(Q=0,N=E.length;Q<N;++Q){E[Q].unsubscribeAll();delete E[Q]}for(Q=0,N=C.length;Q<N;++Q){delete C[Q]}},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var M=document.documentElement;db=document.body;if(M&&M.scrollTop){return[M.scrollTop,M.scrollLeft]}else{if(db){return[db.scrollTop,db.scrollLeft]}else{return[0,0]}}}}}();YAHOO.util.Event.on=YAHOO.util.Event.addListener;if(document&&document.body){YAHOO.util.Event._load()}else{YAHOO.util.Event.on(window,"load",YAHOO.util.Event._load,YAHOO.util.Event,true)}YAHOO.util.Event.on(window,"unload",YAHOO.util.Event._unload,YAHOO.util.Event,true);YAHOO.util.Event._tryPreloadAttach()}YAHOO.util.Dom=function(){var B=navigator.userAgent.toLowerCase();var A=0;return{get:function(E){if(typeof E!="string"&&!(E instanceof Array)){return E}if(typeof E=="string"){return document.getElementById(E)}else{var F=[];for(var D=0,C=E.length;D<C;++D){F[F.length]=this.get(E[D])}return F}return null},getStyle:function(C,E){var D=function(J,G){var K=null;var I=document.defaultView;if(E=="opacity"&&J.filters){K=1;try{K=J.filters.item("DXImageTransform.Microsoft.Alpha").opacity/100}catch(M){try{K=J.filters.item("alpha").opacity/100}catch(M){}}}else{if(J.style[E]){K=J.style[E]}else{if(J.currentStyle&&J.currentStyle[E]){K=J.currentStyle[E]}else{if(I&&I.getComputedStyle){var L="";for(var H=0,F=E.length;H<F;++H){if(E.charAt(H)==E.charAt(H).toUpperCase()){L=L+"-"+E.charAt(H).toLowerCase()}else{L=L+E.charAt(H)}}if(I.getComputedStyle(J,"")&&I.getComputedStyle(J,"").getPropertyValue(L)){K=I.getComputedStyle(J,"").getPropertyValue(L)}}}}}return K};return this.batch(C,D,this)},setStyle:function(C,E,F){var D=function(H,G){switch(E){case"opacity":if(H.filters){H.style.filter="alpha(opacity="+F*100+")";if(!H.currentStyle.hasLayout){H.style.zoom=1}}else{H.style.opacity=F;H.style["-moz-opacity"]=F;H.style["-khtml-opacity"]=F}break;default:H.style[E]=F}};this.batch(C,D,this)},getXY:function(C){var D=function(G,E){if(G.parentNode===null||E.getStyle(G,"display")=="none"){return false}var F=null;var K=[];var H;if(G.getBoundingClientRect){H=G.getBoundingClientRect();Math.max(document.documentElement.scrollTop,document.body.scrollTop);var I=Math.max(document.documentElement.scrollTop,document.body.scrollTop);var J=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);return[H.left+J,H.top+I]}else{if(document.getBoxObjectFor){H=document.getBoxObjectFor(G);K=[H.x,H.y]}else{K=[G.offsetLeft,G.offsetTop];F=G.offsetParent;if(F!=G){while(F){K[0]+=F.offsetLeft;K[1]+=F.offsetTop;F=F.offsetParent}}if(B.indexOf("opera")!=-1||(B.indexOf("safari")!=-1&&E.getStyle(G,"position")=="absolute")){K[0]-=document.body.offsetLeft;K[1]-=document.body.offsetTop}}}if(G.parentNode){F=G.parentNode}else{F=null}while(F&&F.tagName!="BODY"&&F.tagName!="HTML"){K[0]-=F.scrollLeft;K[1]-=F.scrollTop;if(F.parentNode){F=F.parentNode}else{F=null}}return K};return this.batch(C,D,this)},getX:function(C){return this.getXY(C)[0]},getY:function(C){return this.getXY(C)[1]},setXY:function(C,F,E){var D=function(K,I){var J=I.getStyle(K,"position");if(J=="static"){I.setStyle(K,"position","relative");J="relative"}var M=YAHOO.util.Dom.getXY(K);if(M===false){return false}var L=[parseInt(YAHOO.util.Dom.getStyle(K,"left"),10),parseInt(YAHOO.util.Dom.getStyle(K,"top"),10)];if(isNaN(L[0])){L[0]=(J=="relative")?0:K.offsetLeft}if(isNaN(L[1])){L[1]=(J=="relative")?0:K.offsetTop}if(F[0]!==null){K.style.left=F[0]-M[0]+L[0]+"px"}if(F[1]!==null){K.style.top=F[1]-M[1]+L[1]+"px"}var G=I.getXY(K);if(!E&&(G[0]!=F[0]||G[1]!=F[1])){var H=function(){YAHOO.util.Dom.setXY(K,F,true)};setTimeout(H,0)}};this.batch(C,D,this)},setX:function(D,C){this.setXY(D,[C,null])},setY:function(C,D){this.setXY(C,[null,D])},getRegion:function(C){var D=function(F,E){return new YAHOO.util.Region.getRegion(F)};return this.batch(C,D,this)},getClientWidth:function(){return(document.documentElement.offsetWidth||document.body.offsetWidth)},getClientHeight:function(){return(self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)},getElementsByClassName:function(F,C,D){var E=new RegExp("(?:^|\\s+)"+F+"(?:\\s+|$)");var G=function(H){return E.test(H.className)};return this.getElementsBy(G,C,D)},hasClass:function(D,C){var E=function(H,F){var G=new RegExp("(?:^|\\s+)"+C+"(?:\\s+|$)");return G.test(H.className)};return this.batch(D,E,this)},addClass:function(D,C){var E=function(G,F){if(F.hasClass(G,C)){return }G.className=[G.className,C].join(" ")};this.batch(D,E,this)},removeClass:function(D,C){var E=function(H,F){if(!F.hasClass(H,C)){return }var G=new RegExp("(?:^|\\s+)"+C+"(?:\\s+|$)","g");var I=H.className;H.className=I.replace(G," ")};this.batch(D,E,this)},replaceClass:function(E,D,C){var F=function(H,G){G.removeClass(H,D);G.addClass(H,C)};this.batch(E,F,this)},generateId:function(C,E){E=E||"yui-gen";var D=function(G,F){G=G||{};if(!G.id){G.id=E+A++}return G.id};return this.batch(C,D,this)},isAncestor:function(D,E){D=this.get(D);if(!D||!E){return false}var C=function(H,F){if(D.contains&&B.indexOf("safari")<0){return D.contains(H)}else{if(D.compareDocumentPosition){return !!(D.compareDocumentPosition(H)&16)}else{var G=H.parentNode;while(G){if(G==D){return true}else{if(G.tagName=="HTML"){return false}}G=G.parentNode}return false}}};return this.batch(E,C,this)},inDocument:function(C){var D=function(F,E){return E.isAncestor(document.documentElement,F)};return this.batch(C,D,this)},getElementsBy:function(I,D,E){D=D||"*";E=this.get(E)||document;var F=[];var H=E.getElementsByTagName(D);for(var G=0,C=H.length;G<C;++G){if(I(H[G])){F[F.length]=H[G]}}return F},batch:function(E,H,G){E=this.get(E);if(!E||!E.length){return H(E,G)}var F=[];for(var D=0,C=E.length;D<C;++D){F[F.length]=H(E[D],G)}return F}}}();YAHOO.util.Region=function(C,D,A,B){this.top=C;this.right=D;this.bottom=A;this.left=B};YAHOO.util.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var B=Math.max(this.left,E.left);if(A>=C&&D>=B){return new YAHOO.util.Region(C,D,A,B)}else{return null}};YAHOO.util.Region.prototype.union=function(E){var C=Math.min(this.top,E.top);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B)};YAHOO.util.Region.prototype.toString=function(){return("Region {  t: "+this.top+", r: "+this.right+", b: "+this.bottom+", l: "+this.left+"}")};YAHOO.util.Region.getRegion=function(D){var F=YAHOO.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var B=F[0];return new YAHOO.util.Region(C,E,A,B)};YAHOO.util.Point=function(A,B){this.x=A;this.y=B;this.top=B;this.right=A;this.bottom=B;this.left=A};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.namespace("YAHOO.Hack").FixIESelectWidth=new function(){var G=this;var I=YAHOO.util.Event;var J=YAHOO.util.Dom;var M={};var A={};var D=0;var K;var E=!!(document.uniqueID&&typeof (XMLHttpRequest)!="undefined");function L(P){P=P||this;if(P.tagName.toLowerCase()!="select"){throw Error("element ["+P.id+"] is not <select>");return }if(!J.hasClass(P.parentNode,"select-box")){throw Error("className select-box is not included for element ["+P.id+"]");return }var O=P.runtimeStyle;var N=P.parentNode.runtimeStyle;N.fonSize=0;var Q=P.parentNode.currentStyle.display.toLowerCase();if(Q==""||Q=="inline"||Q=="inline-block"){N.display="inline-block";N.width=P.offsetWidth+"px";N.height=P.offsetHeight+"px";N.position="relative";O.position="absolute";O.top=0;O.left=0}P._timerId=(D+=1);P.selectedIndex=Math.max(0,P.selectedIndex);M["_"+P._timerId]=setTimeout("void(0)",0);A["A"+P._timerId]=setTimeout("void(0)",0);I.on(P,"mouseover",F);I.on(document,"mousedown",H,P,true);I.on(P,"change",B,P,true)}function B(N){status++;this.runtimeStyle.width=""}function F(R){var P=this;if(K&&K!=P){H.call(K,R)}var S="_"+P._timerId;var N="A"+P._timerId;clearTimeout(M[S]);var Q=function(){clearTimeout(A[N]);if(Math.abs(O-T)>3){T+=(O-T)/3;P.runtimeStyle.width=T+"px";A[N]=setTimeout(Q,0)}else{P.runtimeStyle.width="auto";P.selectedIndex=Math.max(0,P.selectedIndex)}};var T=P.offsetWidth;P.runtimeStyle.width="auto";var O=P.offsetWidth;clearTimeout(A[N]);Q();P.focus();K=P}function H(P,O){O=(P.srcElement||P.target);if(O==this&&P.type!="mouseover"){status++;I.stopEvent(P);return false}O=this;clearTimeout(A["A"+O._timerId]);var Q="_"+O._timerId;var N=function(){O.runtimeStyle.width=""};if(P.type=="mouseover"){N()}else{M[Q]=setTimeout(N,100)}}function C(N){N=[N,""].join("");if(document.uniqueID&&window.createPopup){I.onAvailable(N,L);return true}else{return false}}return C};function ProductSize(B,A){this.code=B;this.description=A}function addProductSize(A){this.productSizes[this.productSizes.length]=A}function ProductColour(B,A){this.code=B;this.description=A;this.productSizes=new Array();this.addSize=addProductSize}function changeCombo(B){var A=B.selectedIndex;addSizeCombo(A)}function addSizeCombo(B){var E=document.BasketForm.sizeCode;clearSize(E);var D=productColours[B];for(var C=0;C<D.productSizes.length;C++){var A=D.productSizes[C];E.options[C]=new Option(A.description,A.code)}}function clearSize(A){A.options.length=0}function getFormQuantity(B){var A=B.Quantity;return A.options[A.selectedIndex].value}var curTab=1;function showTab(A){document.getElementById("Tab"+A).style.display="block";document.getElementById("TabHeader"+A).className="activeTab";if(curTab!=A){document.getElementById("Tab"+curTab).style.display="none";document.getElementById("TabHeader"+curTab).className=""}curTab=A}var gallery_restarea=50;var gallery_restareaVerticle=100;var gallery_maxspeed=3;var gallery_maxwidth=320;var gallery_startpos=0;var gallery_endofgallerymsg="";var gallery_iedom=document.all||document.getElementById,gallery_scrollspeed=0,gallery_movestate="",gallery_actualwidth="",gallery_cross_scroll,gallery_verticle_scroll,gallery_ns_scroll,gallery_statusdiv,gallery_loadedyes=0,gallery_lefttime,gallery_righttime,gallery_crossmain;function gallery_ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function gallery_showhidediv(A){}function gallery_getposOffset(D,B){var A=(B=="left")?D.offsetLeft:D.offsetTop;var C=D.offsetParent;while(C!=null){A=(B=="left")?A+C.offsetLeft:A+C.offsetTop;C=C.offsetParent}return A}function gallery_moveleft(){if(gallery_loadedyes){gallery_movestate="left";if(gallery_iedom&&parseInt(gallery_cross_scroll.style.left)>(gallery_menuwidth-gallery_actualwidth)){gallery_cross_scroll.style.left=parseInt(gallery_cross_scroll.style.left)-gallery_scrollspeed+"px";gallery_showhidediv("hidden")}else{gallery_showhidediv("visible")}}gallery_lefttime=setTimeout("gallery_moveleft()",10)}function gallery_moveright(){if(gallery_loadedyes){gallery_movestate="right";if(gallery_iedom&&parseInt(gallery_cross_scroll.style.left)<0){gallery_cross_scroll.style.left=parseInt(gallery_cross_scroll.style.left)+gallery_scrollspeed+"px";gallery_showhidediv("hidden")}else{gallery_showhidediv("visible")}}gallery_righttime=setTimeout("gallery_moveright()",10)}function gallery_motionengine(F){var D=gallery_getposOffset(gallery_crossmain,"left"),E=(window.pageXOffset)?pageXOffset:gallery_ietruebody().scrollLeft,C=(window.pageYOffset)?pageYOffset:gallery_ietruebody().scrollTop,B=window.event?event.clientX:F.clientX?F.clientX:"";B-=D-E;var A=(gallery_menuwidth-gallery_restarea)/2;var G=(gallery_menuwidth+gallery_restarea)/2;if(B>G){gallery_scrollspeed=(B-G)/((gallery_menuwidth-gallery_restarea)/2)*gallery_maxspeed;clearTimeout(gallery_righttime);if(gallery_movestate!="left"){gallery_moveleft()}}else{if(B<A){gallery_scrollspeed=(A-B)/((gallery_menuwidth-gallery_restarea)/2)*gallery_maxspeed;clearTimeout(gallery_lefttime);if(gallery_movestate!="right"){gallery_moveright()}}else{gallery_scrollspeed=0}}}function gallery_contains_ns6(B,A){if(A!==null){while(A.parentNode){if((A=A.parentNode)==B){return true}}}return false}function gallery_stopmotion(A){if(!window.opera||(window.opera&&A.relatedTarget!==null)){if((window.event&&!gallery_crossmain.contains(event.toElement))||(A&&A.currentTarget&&A.currentTarget!=A.relatedTarget&&!gallery_contains_ns6(A.currentTarget,A.relatedTarget))){clearTimeout(gallery_lefttime);clearTimeout(gallery_righttime);gallery_movestate=""}}}function gallery_stopmotionVerticle(A){if((window.event&&!gallery_verticlemain.contains(event.toElement))||(A&&A.currentTarget&&A.currentTarget!=A.relatedTarget&&!gallery_contains_ns6(A.currentTarget,A.relatedTarget))){if(window.downtime){clearTimeout(gallery_downtime)}if(window.uptime){clearTimeout(gallery_uptime)}gallery_movestate=""}}function gallery_fillup(){if(gallery_iedom){gallery_crossmain=document.getElementById?document.getElementById("prodcontainer"):document.all.motioncontainer;if(typeof gallery_crossmain.style.maxWidth!=="undefined"){gallery_crossmain.style.maxWidth=gallery_maxwidth+"px"}gallery_menuwidth=gallery_crossmain.offsetWidth;gallery_cross_scroll=document.getElementById?document.getElementById("prodgallery"):document.all.motiongallery;gallery_actualwidth=document.getElementById?document.getElementById("trueContainer").offsetWidth:document.all.trueContainer.offsetWidth;if(gallery_startpos){gallery_cross_scroll.style.left=(gallery_menuwidth-gallery_actualwidth)/gallery_startpos+"px"}gallery_crossmain.onmousemove=function(A){gallery_motionengine(A)};gallery_crossmain.onmouseout=function(A){gallery_stopmotion(A)}}gallery_loadedyes=1}gallery_onresize=function(){if(typeof gallery_motioncontainer!=="undefined"&&gallery_motioncontainer.filters){gallery_motioncontainer.style.width="0";gallery_motioncontainer.style.width="";gallery_motioncontainer.style.width=Math.min(gallery_motioncontainer.offsetWidth,gallery_maxwidth)+"px"}gallery_menuwidth=gallery_crossmain.offsetWidth;gallery_cross_scroll.style.left=gallery_startpos?(gallery_menuwidth-gallery_actualwidth)/gallery_startpos+"px":0};function loadMotionProductGallery(){setTimeout("gallery_fillup()",5000)}var restarea=200;var restareaVerticle=100;var maxspeed=7;var maxwidth=1000;var startpos=0;var endofgallerymsg="";var iedom=document.all||document.getElementById,scrollspeed=0,movestate="",actualwidth="",cross_scroll,verticle_scroll,ns_scroll,statusdiv,loadedyes=0,lefttime,righttime;function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function showhidediv(A){}function getposOffset(D,C){var B=(C=="left")?D.offsetLeft:D.offsetTop;var A=D.offsetParent;while(A!=null){B=(C=="left")?B+A.offsetLeft:B+A.offsetTop;A=A.offsetParent}return B}function moveleft(){if(loadedyes){movestate="left";if(iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px";showhidediv("hidden")}else{showhidediv("visible")}}lefttime=setTimeout("moveleft()",10)}function moveright(){if(loadedyes){movestate="right";if(iedom&&parseInt(cross_scroll.style.left)<0){cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px";showhidediv("hidden")}else{showhidediv("visible")}}righttime=setTimeout("moveright()",10)}function moveup(){if(loadedyes){movestate="up";if(iedom&&parseInt(verticle_scroll.style.top)>(menu_height-actualheight)){verticle_scroll.style.top=parseInt(verticle_scroll.style.top)-scrollspeed+"px"}else{showhidediv("visible")}}uptime=setTimeout("moveup()",20)}function movedown(){if(loadedyes){movestate="down";if(iedom&&parseInt(verticle_scroll.style.top)<0){verticle_scroll.style.top=parseInt(verticle_scroll.style.top)+scrollspeed+"px"}else{showhidediv("visible")}}downtime=setTimeout("movedown()",20)}function motionengine(F){var E=getposOffset(crossmain,"left"),G=(window.pageXOffset)?pageXOffset:ietruebody().scrollLeft,D=(window.pageYOffset)?pageYOffset:ietruebody().scrollTop,B=window.event?event.clientX:F.clientX?F.clientX:"";B-=E-G;var A=(menuwidth-restarea)/2;var C=(menuwidth+restarea)/2;if(B>C){scrollspeed=(B-C)/((menuwidth-restarea)/2)*maxspeed;clearTimeout(righttime);if(movestate!="left"){moveleft()}}else{if(B<A){scrollspeed=(A-B)/((menuwidth-restarea)/2)*maxspeed;clearTimeout(lefttime);if(movestate!="right"){moveright()}}else{scrollspeed=0}}}function motionengineVerticle(F){var E=getposOffset(verticlemain,"top");var G=(window.pageXOffset)?pageXOffset:ietruebody().scrollLeft;var D=(window.pageYOffset)?pageYOffset:ietruebody().scrollTop;var B=window.event?event.clientY:F.clientY?F.clientY:"";B-=E-D;var A=(menu_height-restareaVerticle)/2;var C=(menu_height+restareaVerticle)/2;if(B>C){scrollspeed=(B-C)/((menu_height-restareaVerticle)/2)*maxspeed;if(window.downtime){clearTimeout(downtime)}if(movestate!="up"){moveup()}}else{if(B<A){scrollspeed=(A-B)/((menu_height-restareaVerticle)/2)*maxspeed;if(window.uptime){clearTimeout(uptime)}if(movestate!="down"){movedown()}}else{scrollspeed=0}}}function contains_ns6(B,A){if(A!==null){while(A.parentNode){if((A=A.parentNode)==B){return true}}}return false}function stopmotion(A){if(!window.opera||(window.opera&&A.relatedTarget!==null)){if((window.event&&!crossmain.contains(event.toElement))||(A&&A.currentTarget&&A.currentTarget!=A.relatedTarget&&!contains_ns6(A.currentTarget,A.relatedTarget))){clearTimeout(lefttime);clearTimeout(righttime);movestate=""}}}function stopmotionVerticle(A){if((window.event&&!verticlemain.contains(event.toElement))||(A&&A.currentTarget&&A.currentTarget!=A.relatedTarget&&!contains_ns6(A.currentTarget,A.relatedTarget))){if(window.downtime){clearTimeout(downtime)}if(window.uptime){clearTimeout(uptime)}movestate=""}}function fillup(){if(iedom){verticlemain=document.getElementById?document.getElementById("motioncontainerVerticle"):document.all.motioncontainerVerticle;if(verticlemain!=null){menu_height=parseInt(verticlemain.style.height);verticle_scroll=document.getElementById?document.getElementById("motiongalleryVerticle"):document.all.motiongalleryVerticle;actualheight=verticle_scroll.offsetHeight;verticlemain.onmousemove=function(A){motionengineVerticle(A)};verticlemain.onmouseout=function(A){stopmotionVerticle(A)}}}if(window.opera){verticle_scroll.style.top=menu_height-actualheight+"px";setTimeout("verticle_scroll.style.top=0",10)}loadedyes=1}window.onload=fillup;