function ChangeReputationBarColor(n,t,i){jQuery(i).html('<div class="ui-progressbar-value ui-widget-header ui-corner-left ReputationBarValue" style="width: '+n+'%; "><\/div>'),jQuery(i).attr("aria-valuenow",n);var r=jQuery(i).children(".ReputationBarValue");n==0?(r.addClass("BarDarkRed"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<20?(r.addClass("BarRed"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<30?(r.addClass("BarOrangeRed"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<40?(r.addClass("BarDarkOrange"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<50?(r.addClass("BarOrange"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<60?(r.addClass("BarYellow"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<80?(r.addClass("BarLightGreen"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):n<90?(r.addClass("BarGreen"),r.prepend('<p class="ReputationBarText">'+t+"<\/p>")):jQuery(i).html('<div class="ui-progressbar-value ui-widget-header ui-corner-left ui-corner-right ReputationBarValue BarDarkGreen" style="width: '+n+'%; "><p class="ReputationBarText">'+t+"<\/p><\/div>")}function ScrollToTop(){return jQuery("body,html").animate({scrollTop:0},820),!1}function toggleContainer(n,t,i,r){var f=jQuery("#"+n),u=jQuery("#"+t);f.toggle(function(){u.attr("title",r),u.html(r),u.addClass("hide")},function(){u.attr("title",i),u.html(i),u.addClass("show")})}function getEvent(n){return n.stopPropagation?(n.stopPropagation(),n.preventDefault(),n):(window.event.returnValue=!1,window.event.cancelBubble=!0,window.event)}function yaf_mouseover(){var n=getEvent(window.event);n.srcElement?n.srcElement.style.cursor="hand":n.target&&(n.target.style.cursor="pointer")}function yaf_left(n){return jQuery(n).position().left}function yaf_top(n){return jQuery(n).position().top+jQuery(n).outerHeight()+1}function yaf_popit(n){var t=getEvent(window.event),i,u,r;if(!document.getElementById)throw"ERROR: missing getElementById";if(t.srcElement)i=t.srcElement;else if(t.target)i=t.target;else throw"ERROR: missing event target";if(u=document.getElementById(n),window.themenu&&window.themenu.id!=u.id&&yaf_hidemenu(),window.themenu=u,!window.themenu.style)throw"ERROR: missing style";return jQuery(themenu).is(":visible")?yaf_hidemenu():(r=yaf_left(i),r+jQuery(themenu).outerWidth()+2>jQuery(document).width()&&(r=jQuery(document).width()-jQuery(themenu).outerWidth()-2),themenu.style.left=r+"px",themenu.style.top=yaf_top(i)+"px",themenu.style.zIndex=100,jQuery(themenu).fadeIn()),!1}function yaf_hidemenu(){window.themenu&&(jQuery(window.themenu).fadeOut(),window.themenu=null)}function mouseHover(n,t){if(t){n.className="popupitemhover";try{n.style.cursor="pointer"}catch(i){n.style.cursor="hand"}}else n.className="popupitem"}jQuery(document).ready(function(){jQuery(".postContainer .UserPostedImage,.postContainer_Alt .UserPostedImage").each(function(){var n=jQuery(this);n.parents("a").length||n.wrap('<a href="'+n.attr("src")+'" class="ceebox" title="'+n.attr("alt")+'"/>')})}),document.onclick=yaf_hidemenu,document.addEventListener&&document.addEventListener("click",function(n){window.event=n},!0),document.addEventListener&&document.addEventListener("mouseover",function(n){window.event=n},!0);