window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=15; 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 webcam()
    {
    var w = window.open("./webcam/", "","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=600");
    if (window.focus){w.focus();}
    }
function diaporama()
    {
    var w = window.open("./diaporama/", "","toolbar=no,location=no,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";} 
   } 