if(typeof $=='undefined'){function $(element_id){return document.getElementById(element_id);}}var current_tab=null;var current_element=null;function switch_content(what,element){if(what=='new'||what=='most_liked'||what=='most_discussed'){if($('content_'+what)&&what!=current_tab){if(!element){if($(what+'_link')){element=$(what+'_link');}}if(current_tab!=null){$('content_'+current_tab).style.display='none';current_element.className='';}$('content_'+what).style.display='block';element.className='current_tab';current_tab=what;current_element=element;var headerText;if(what=='new'){headerText='What\'s new';}else if(what=='most_liked'){headerText='See what\'s most liked';}else{headerText='What are people discussing?';}$('content_header').innerHTML=headerText;}}}window.onload=function(){switch_content('new');if(location.hash.length>2){switch_content(location.hash.substring(1));}};