
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=150; i++) 
	{
	if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}



function popup(url)
    {
    var w = window.open(url, "","toolbar=yes,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600");
    if (window.focus){w.focus();}
    }


function gallerypopup(theURL,winName,features)
    {
    window.open(theURL,winName,features);
    }

function gallery(url)
    {
    var w = window.location.href("gallery.php?folder=./upload/gallery/"+url+"/");
    if (window.focus){w.focus();}
    }

function expandcollapse (postid) 
   {
   whichpost = document.getElementById(postid); 
   if (whichpost.className=="postshown") 
      { 
      whichpost.className="posthidden"; 
      } 
      else {whichpost.className="postshown";} 
   } 
  
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
  	
  }
function MM_jumpMenu(selObj,restore) { //v2.0
    eval(selObj.options[selObj.selectedIndex].value);
     if (restore) selObj.selectedIndex=0;
}
