/* WSGC Copyright */
dojo.provide("stylehouse");if(!dojo._hasResource["wsgc.js.StylehouseUtils"]){dojo._hasResource["wsgc.js.StylehouseUtils"]=true;dojo.provide("wsgc.js.StylehouseUtils");dojo.declare("wsgc.js.StylehouseUtils",null,{constructor:function(){this._registerNavHoverEventsForIE();this._setLibraryHeight();this._registerSmallTalkEvents();},_registerNavHoverEventsForIE:function(){if(dojo.isIE==6){dojo.query("#nav-stylehouse-container li[class~=\"dropDown\"]").forEach(function(_1){dojo.connect(_1,"onmouseover",function(_2){dojo.addClass(_2.currentTarget,"dropDownHover");});dojo.connect(_1,"onmouseout",function(_3){dojo.removeClass(_3.currentTarget,"dropDownHover");});});}},_setLibraryHeight:function(){if(dojo.byId("stylehouse-library")){var _4=0;dojo.forEach(dojo.query(".library-shelf"),function(_5){_4=dojo.marginBox(_5).h>_4?dojo.marginBox(_5).h:_4;});dojo.forEach(dojo.query(".library-shelf"),function(_6){dojo.marginBox(_6,{h:_4});});}},_registerSmallTalkEvents:function(){dojo.query("#smallTalkNav a[imgindex]").onmouseover(function(_7){var _8=dojo.attr(_7.currentTarget,"imgindex");dojo.query(".justAThought","smallTalkHero").style("visibility","hidden");dojo.style(dojo.byId("smallTalkHero-"+_8),"visibility","visible");dojo.query("#smallTalkNav a[imgindex] img").forEach(function(_9,i){_9.src=(i==_8-1)?_9.src.replace("_off.","_on."):_9.src.replace("_on.","_off.");});}).onmouseout(function(_b){dojo.query("#smallTalkNav a[imgindex] img").forEach(function(_c){_c.src=_c.src.replace("_on.","_off.");});});dojo.query("#smalltalk area[imgindex]").onmouseover(function(_d){var _e=dojo.attr(_d.currentTarget,"imgindex");dojo.query(".justAThought","smallTalkHero").style("visibility","hidden").at(_e-1).style("visibility","visible");var _f=dojo.query("#smallTalkNav a[imgindex] img").at(_e-1)[0];_f.src=_f.src.replace("_off.","_on.");}).onmouseout(function(evt){dojo.query(".justAThought","smallTalkHero").style("visibility","hidden");dojo.query("#smallTalkNav a[imgindex] img").forEach(function(ele){ele.src=ele.src.replace("_on.","_off.");});});}});}
