    function menu_hide()
     {
	   document.getElementById('almenu1').style.display='none';
	   //document.getElementById('almenu2').style.display='none';
	   //document.getElementById('almenu3').style.display='none';
	   //document.getElementById('almenu4').style.display='none';
	   //document.getElementById('almenu5').style.display='none';
	   //document.getElementById('almenu6').style.display='none';
     }

    function menu_show(id)
     {
	   document.getElementById(id).style.display='';
     }

    function changePic(id,mire)
     {
      document.getElementById(id).src=mire;
     }


     function changeBg(id,kep)
       {
         document.getElementById(id).background=kep;
       }

    function popup(target_url,id,scrollbar,xsize,ysize)
     {
       popwin=window.open(target_url,id, "toolbar=0,location=0,resizable=0,status=0,scrollbars=" + scrollbar + ",menubar=0,width=" + xsize + ",height=" + ysize + ",left=" + ((screen.width/2)- xsize/2) + ",top=" + ((screen.height/2)- ysize/2));
       popwin.focus();
     }
	 
function slideSwitch() {
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
    var $next =  $active.next().length ? $active.next() : $('#slideshow IMG:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});	 
