
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=80; 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 diaporama(url)
    {
    var w = window.location.href("gallery.php?rub="+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 hlp_expandcollapse (postid) 
   {
   whichpost = document.getElementById(postid); 
   if (whichpost.className=="hlp_visible") 
      { 
      whichpost.className="hlp_hidden"; 
      } 
      else {whichpost.className="hlp_visible";} 
   }  
 
function MM_goToURL() 
   { 
   var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
   for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
   }
  
