//9a7f218745ce05fd0d8d8a790c58be28
var ProfilePage=new Class({Implements:[Options],initialize:function(A){this.setOptions(A);this.activateLinks();this.initGrapevine()},activateLinks:function(){var A=this;A._plenter={};A._plleave={};var B=function(D){var C=$(D);A._plleave[D]=true;new Fx.Morph(C,{duration:200}).start({"padding-left":0,"background-color":"#97304e"}).chain(function(){A._plleave[D]=false})};$$("#proflinks li").each(function(C){var D=new Fx.Morph(C,{duration:200});C.addEvent("mouseenter",function(){A._plenter[this.id]=true;D.start({"padding-left":6,"background-color":"#a44964"}).chain(function(){A._plenter[this.id]=false;if(A._plleave[this.id]){B(this.id)}})});C.addEvent("mouseleave",function(){B(this.id)})});if(Browser.Engine.trident){if($("social_details")){$("social_details").removeEvents("mouseover");$("social_details").removeEvents("mouseout");$("social_details").addEvents({mouseover:function(){this.addClass("over")},mouseout:function(){this.removeClass("over")}})}}},grapevineArray:["wine","message","note","all"],initGrapevine:function(){if(!this.current_gv){this.current_gv="all"}this.grapevineArray.each(function(C){if($(C)==null){return }if(C!=this.current_gv){$("grapevine-"+C).style.display="none"}var A=$(C).getFirst();$(A).removeEvents("click");var B=this;$(A).addEvent("click",function(E){var D=$(C);new Event(E).stop();B.viewGrapevine(D.id)})}.bind(this))},viewGrapevine:function(A){$(this.current_gv).removeClass("current");$(A).addClass("current");$("grapevine-"+this.current_gv).style.display="none";$("grapevine-"+A).style.display="";this.current_gv=A}});