(function(){var b=getTemplateMode()!="mixed"?Flavors.Global.namespace("Flavors.TemplateGroup"):Flavors.Global.namespace("Flavors.TemplateGroupSmall"),d=Flavors.Logger.getLogger(b.__name__);b.init=function(){f()};var f=function(){for(var a in accounts)if($("#userpage-layout-service-"+a).hasClass("panel-mini")){b.registerPanel(a);b.preparePanel(a)}};b.registerPanel=function(a){d("small register() serviceAnchor="+a);b.services[a]={initialized:false};b.services[a]=new Flavors.Panel(a)};b.preparePanel=
function(a){d("preparePanel() serviceAnchor="+a);if(a in b.services){a=b.services[a];if(a.initialized)return a;var e=a.element;$(e).find("DIV.section.audio, DIV.section.music-player").each(function(){$(this).find("DIV.progress-meter").remove();$(this).find("DIV.playback-status").remove();$(this).musicPlayer(".track")}).end().find("DIV.section.dynamic-music-player").each(function(){$(this).find("DIV.progress-meter").remove();$(this).find("DIV.playback-status").remove();$(this).dynamicMusicPlayer(".track")}).end().find("DIV.section.gallery").each(function(){if($(this).is(":visible"))$(this).hasClass("load_all_deferred")?
$(this).deferredImageLoad({loadNow:12,loadAll:true}):$(this).deferredImageLoad({loadNow:1,loadAll:false})}).end().find("DIV.section.video").each(function(){$(this).clickToEmbed()}).end().find("DIV.section.blog").each(function(){$(this).deferredImageLoad({batchSize:3,loadNow:1});$(this).embedResize("small")}).end().find(".panel-map-embed").each(function(){$(this).googleMap($(this).attr("rel"))}).end().find(".panel-custom-map-embed").each(function(){$(this).googleMapCustom()}).end().find(".panel-custom-bio-photo, .panel-custom-bio-body").each(function(){$(this).is(":visible")&&
$(this).parent().deferredImageLoad({loadNow:1,loadAll:true})}).end();if($(e).is(".formspring")){$("#formspring-submit").css({"text-decoration":"none"}).hover(function(){$(this).css("background-color",primary_font_color_holder)},function(){$(this).css("background-color",link_font_color_holder)});$("#formspring-form").ajaxForm({url:get_formspring_url(),dataType:"json",success:function(c){c&&c.success?$("#formspring-message").html('Your question has been sent. <a id="formspring-close" href="#">Ask another.</a>'):
$("#formspring-message").html('An error occured sending your question. <a id="formspring-close" href="#">Try again.</a>')},beforeSubmit:function(){if($.trim($("#formspring-form textarea").val())==""){$("#formspring-message").html("Please enter a question.");$("#formspring-message").show();return false}$("#formspring-form").fadeOut(100,function(){$("#formspring-message").html("Sending your question to Formspring...");$("#formspring-message").show()})}});$("#formspring-close").live("click",function(c){c.preventDefault();
$("#formspring-message").html("");$("#formspring-message").hide(0,function(){$("#formspring-form textarea").val("");$("#formspring-form").show()})})}a.initialized=true;return a}};b.services={}})();

