var $platform_showcase_articles,$platform_showcase_links,$platform_showcase_current_index,$platform_showcase_prev_index;
function initPlatformShowcase(){$platform_showcase_content=$("#platform_showcase_content");$platform_showcase_content_ui=$platform_showcase_content.tabs({show:function(){$("#platform_showcase_content article.hide").removeClass("hide")}});$platform_showcase_content_ui.tabs("rotate",5E3,true);$platform_showcase_content.click(function(){$platform_showcase_content_ui.tabs("rotate",0,true)});$platform_showcase_content.mouseover(function(){$platform_showcase_content_ui.tabs("rotate",0,true)})}
function initNav(){$("#main_header li:not(.current) img").each(function(){$(this).hover(function(){$img_src_parts=$(this).attr("src").split(".png");$(this).attr("src",$img_src_parts[0]+"_current.png")},function(){$(this).attr("src",$(this).attr("src").replace("_current",""))})})}function setNav(a){$platform_showcase_links.removeClass("current");$("#platform_showcase_link_"+a).addClass("current")}
function initBuddyFaces(){$("#buddy_faces").galleria({autoplay:true,height:510,show_info:true,show_imagenav:true,history:true,clicknext:true,insert:"#main_image",transition:"fade",data_type:"json",data_source:mydata,extend:function(){var a=this;$("#g_nav a").click(function(a){a.preventDefault()});$("#g_prev").click(function(){a.prev()});$("#g_next").click(function(){a.next()});$("#g_play").click(function(){a.play()});$("#g_pause").click(function(){a.pause()});$("#g_fullscreen").click(function(){a.enterFullscreen()})}}).delay(1E4).removeClass("loading")}
$(window).load(function(){initNav()});
