var currSub={"top-rated":"all","top-played":"all"};function selectTopPanel(C){var A=document.getElementById(C);if(A){hideTopPanels();hideRatedSubPanels();selectRatedSub(C+"-"+currSub[C]);A.style.display="block";var B=document.getElementById("control-"+C);if(B){B.className="control selected"}}return false}function hideTopPanels(){document.getElementById("top-rated").style.display="none";document.getElementById("top-played").style.display="none";document.getElementById("top-recent").style.display="none";document.getElementById("control-top-rated").className="control";document.getElementById("control-top-played").className="control";document.getElementById("control-top-recent").className="control"}function selectRatedSub(D){var A=document.getElementById(D);var C=D.split("-");currSub[C[0]+"-"+C[1]]=C[2];if(A){hideRatedSubPanels();A.style.display="block";var B=document.getElementById("button-"+D);if(B){B.className="active"}}return false}function hideRatedSubPanels(){document.getElementById("top-rated-all").style.display="none";document.getElementById("top-rated-week").style.display="none";document.getElementById("top-rated-month").style.display="none";document.getElementById("top-played-all").style.display="none";document.getElementById("top-played-week").style.display="none";document.getElementById("top-played-month").style.display="none";document.getElementById("button-top-rated-week").className="";document.getElementById("button-top-rated-month").className="";document.getElementById("button-top-rated-all").className="";document.getElementById("button-top-played-week").className="";document.getElementById("button-top-played-month").className="";document.getElementById("button-top-played-all").className=""}function showFurtherInfoArray(A){for(id in A){toggleFurtherInfo(A[id],true)}return false}function hideFurtherInfoArray(A){for(id in A){toggleFurtherInfo(A[id],false,true)}return false}function toggleFurtherInfoArray(A){for(id in A){toggleFurtherInfo(A[id])}return false}function toggleFurtherInfo(D,A,C){if(element=document.getElementById("info_"+D)){if(A){element.style.display=""}else{if(C){element.style.display="none"}else{element.style.display=element.style.display=="none"?"":"none"}}var B=document.getElementById("toggle_"+D);if(B.src){B.src="/images/"+(element.style.display!="none"?"up.png":"down.png");B.alt=element.style.display=="none"?"&darr;":"&uarr;"}}return false};
