/*
var GUI = {
	timer	: null,
	cycle	: 0,
	//menu	: new Array('Dielo', 'Biografia', 'O autorovi', 'Výstavy', 'Bibliografia a médiá', 'Organizačné aktivity', 'Kontakt', 'English'),
	menu	: new Array('Kontakt', 'Organizačné aktivity', 'Bibliografia a médiá', 'Výstavy','O autorovi', 'Biografia', 'Dielo','English'),
	lnk		: new Array('?cl=hul_work&amp;iid=1', '?cl=hul_biography&amp;iid=1', '?cl=hul_about&amp;iid=1', '?cl=hul_expositures&amp;iid=1', '?cl=hul_bibliography&amp;iid=1', '?cl=hul_organization&amp;iid=1', '?cl=hul_contact&amp;iid=1', '?cl=mainclass&amp;iid=1&amp;action=view&amp;lng=en&amp;pr=en'),
	menu_ul	: null,
	onload	: function(old_rnd) {
		if (this.cycle == 8) {
			clearTimeout(this.timer);
			return false;

		} else if (this.cycle == 0) {
			this.menu_ul = document.getElementById('menu').getElementsByTagName('ul')[0];
		}

		this.cycle++;

		for (;;) {
			var rnd = Math.floor(Math.random()*8);

			if (rnd == old_rnd || rnd == 0) {
				continue;
			} else {
				break;
			}
		}

		var li = document.createElement('li');
		li.innerHTML = '<a href="' + this.lnk[ (this.cycle - 1) ] + '" title="' + this.menu[ (this.cycle - 1) ] + '">' + this.menu[ (this.cycle - 1) ] + '</a>';
		if (this.cycle == 8) li.className = 'language';
		this.menu_ul.appendChild(li);

		if (this.cycle < 7) {
			var sep = document.createElement('li');
			sep.className = 'separator';
			sep.innerHTML = '|';

			this.menu_ul.appendChild(sep);

		}

		var logo = document.getElementById('logo');
		logo.setAttribute('src', './images/logo-'+rnd+'.gif');

		this.timer = setTimeout('GUI.onload('+rnd+')', 1000);

	}

};

window.onload = function() { GUI.onload(0); }
*/

window.onload = function() {
   var menuItems = $A($('menu').select("li"));
   menuItems.each(function(li){
		li.style.visibility = 'hidden';
	});

   $('menu').show();

	 showLeftLI(12,500,1);
	 showLeftLI(11,500,1);

	 showLeftLI(10,1000,2);
	 showLeftLI(9,1000,2);

	 showLeftLI(8,1500,3);
	 showLeftLI(7,1500,3);

	 showLeftLI(6,2000,4);
	 showLeftLI(5,2000,4);

	 showLeftLI(4,2500,5);
	 showLeftLI(3,2500,5);

	 showLeftLI(2,3000,6);
	 showLeftLI(1,3000,6);

	 showLeftLI(0,3500,7);

	 showLeftLI(13,4000,1);

 }

 /**
  *
  * @access public
  * @return void
  **/
 function showLeftLI(i,time,image){
 	setTimeout('$(\'menu\').select("li")['+i+'].style.visibility = \'visible\';', time);
   setTimeout('$(\'logo\').setAttribute(\'src\', \'./images/logo-'+image+'.gif\');', time);
 }



















