startList = function() {
  if ( $('#adminmenu').length ) { prepareMenu('adminmenu'); }
  if ( $('#menu').length ) { prepareMenu('menu'); }
  if (!$.browser.msie){
    if ( $('#mycarousel').length) { $('#mycarousel').jcarousel({ scroll: 1 }); }
  }

  if ( $('#datawyjazdu').length ) {
    Calendar.setup({
        inputField     :    "datawyjazdu",   // id of the input field
        ifFormat       :    "%d-%m-%Y",       // format of the input field
        showsTime      :    true,
        timeFormat     :    "24"
    });
  }
  if ( $('#datapowrotu').length ) {
    Calendar.setup({
        inputField     :    "datapowrotu",   // id of the input field
        ifFormat       :    "%d-%m-%Y",       // format of the input field
        showsTime      :    true,
        timeFormat     :    "24"
    });
  }
  
//  if ( $('#ftrContainer').length ) { 
//    var so = new SWFObject("Firms/Interglobus/flash/skandynawia468x60.swf", "fMap", "468", "60", "8", "#ffffff");
//    so.write("ftrContainer");
//  }
  
  
}
window.onload = startList;

prepareMenu = function(id) {
  if (document.all && document.getElementById) {
  	var sfEls = document.getElementById(id).getElementsByTagName("LI");
  	for (var i = 0; i < sfEls.length; i++) {
  		sfEls[i].onmouseover = function() {
  			this.className += " over";
  		}
  		sfEls[i].onmouseout = function() {
  			this.className = this.className.replace(new RegExp(" over\\b"), "");
		  }
	  }
  }
}
