var theNewHTML="";var theTimeout=null;function ShowRecentBlog(toShow)
{if(theTimeout!=null)
{return false;}
var theListItems=document.getElementById('BlogTypesList').getElementsByTagName("li");var theTabs=["Featured","Insider","Members"];var parentDiv=document.getElementById("RecentBlogPosts");parentDiv.style.height=parentDiv.scrollHeight;var theLoadingArea=document.createElement("img");theLoadingArea.src="http://www.whydowork.com/images/ajax-loader.gif";theLoadingArea.style.paddingTop="30px";theLoadingArea.style.paddingLeft="270px";for(i=0;i<theTabs.length;i++)
{var theDiv=document.getElementById(theTabs[i]);theDiv.style.display="none";theListItems[i].className=(toShow==theTabs[i])?"Selected":"";parentDiv.appendChild(theLoadingArea);}
var fakeLoadingTimeWeb20sucks=(Math.random()*(900-75))+75;theTimeout=setTimeout(function(){theTimeout=null;parentDiv.style.height="";theLoadingArea.parentNode.removeChild(theLoadingArea);document.getElementById(toShow).style.display="block";},fakeLoadingTimeWeb20sucks);return false;};var theNewHTML="";var theTimeout=null;function ShowRecentKarma(toShow)
{if(theTimeout!=null)
{return false;}
var theListItems=document.getElementById('KarmaTypesList').getElementsByTagName("li");var theTabs=["users-day","users-week","users-month"];var parentDiv=document.getElementById("RecentKarma");parentDiv.style.height=parentDiv.scrollHeight;var theLoadingArea=document.createElement("img");theLoadingArea.src="http://www.whydowork.com/images/ajax-loader.gif";theLoadingArea.style.paddingTop="0px";theLoadingArea.style.paddingLeft="110px";for(i=0;i<theTabs.length;i++)
{var theDiv=document.getElementById(theTabs[i]);theDiv.style.display="none";theListItems[i].className=(toShow==theTabs[i])?"Selected":"";parentDiv.appendChild(theLoadingArea);}
var fakeLoadingTimeWeb20sucks=(Math.random()*(900-75))+75;theTimeout=setTimeout(function(){theTimeout=null;parentDiv.style.height="";theLoadingArea.parentNode.removeChild(theLoadingArea);document.getElementById(toShow).style.display="block";},fakeLoadingTimeWeb20sucks);return false;}