
// menu animowane        
window.onload = montre;
function montre(id){
    var d = document.getElementById(id);
    /*for (var i = 1; i <= 10; i++) {
        if (document.getElementById('smenu' + i)) {
            document.getElementById('smenu' + i).style.display = 'none';
        }
    }*/
	$(".smenu").hide();
    if (d) {
        $(d).show();
    }

}

function unmontre(id){
	$("#"+id).hide();

}

//animacja logotypów
$(document).ready(function(){
   $("#all_menu").mouseleave(function() {
      $(".smenu").hide();
		 
   });
 ilosc_obrazkow = $("p.logotypy").size();
    aktualny_obrazek = 0;
    stary_obrazek = 0;
    time_interval = setInterval(pokaz_nastepny, 4000);
    function pokaz_nastepny(){
        aktualny_obrazek = (stary_obrazek + 1) % ilosc_obrazkow;
        $("p.logotypy:eq(" + aktualny_obrazek + ")").fadeIn(1000);
        setTimeout('$("p.logotypy:eq(' + aktualny_obrazek + ')").fadeOut(1000);', 2500);
        stary_obrazek = aktualny_obrazek;
    }
});


<!-- W3e JAVAScript Preset/Date
var DDMMYY =0
var MMDDYY =1

function getdate(mode)
{
var now = new Date();
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
if (mode==DDMMYY)
var MonthDayYear =(dayNr+"/"+(now.getMonth()+1)+"/"+now.getYear());
else
var MonthDayYear =((now.getMonth()+1)+"/"+dayNr+"/"+now.getYear());

return MonthDayYear;
}

function gettime()
{
var now = new Date();

var ampm = (now.getHours() >= 12) ? " P.M." : " A.M."
var hours = now.getHours();
hours = ((hours > 12) ? hours - 12 : hours);

var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes();
var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds();
var TimeValue =(" " + hours + minutes + seconds + " " + ampm);

return TimeValue;
}
//-->




