/*
window.addEvent('domready',function()
{
	if (document.getElementById('SIETKA')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=SIETKA');
		$('SIETKA').addEvent('click',function(){ milkbox.showGallery({ gallery : 'SIETKA', autoplay:true, delay:5});});
	}
	if (document.getElementById('ROT_SIETOTLAC')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=ROT_SIETOTLAC');
		$('ROT_SIETOTLAC').addEvent('click',function(){ milkbox.showGallery({ gallery : 'ROT_SIETOTLAC', autoplay:true, delay:5});});
	}
	if (document.getElementById('TAMPO')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=TAMPO');
		$('TAMPO').addEvent('click',function(){ milkbox.showGallery({ gallery : 'TAMPO', autoplay:true, delay:5});});
	}
	if (document.getElementById('TRANSFER')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=TRANSFER');
		$('TRANSFER').addEvent('click',function(){ milkbox.showGallery({ gallery : 'TRANSFER', autoplay:true, delay:5});});
	}
	if (document.getElementById('VYSIVKA')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=VYSIVKA');
		$('VYSIVKA').addEvent('click',function(){ milkbox.showGallery({ gallery : 'VYSIVKA', autoplay:true, delay:5});});
	}
	if (document.getElementById('ZV')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=ZV');
		$('ZV').addEvent('click',function(){ milkbox.showGallery({ gallery : 'ZV', autoplay:true, delay:5});});
	}
	if (document.getElementById('ZV_tlacoviny')) {
		milkbox.addGalleries('http://www.lppromotion.sk/new/images/galleries/content_galleries/technologie_aplikacie_loga/xml_for_milkbox.php?dir_array=ZV_tlacoviny');
		$('ZV_tlacoviny').addEvent('click',function(){ milkbox.showGallery({ gallery : 'ZV_tlacoviny', autoplay:true, delay:5});});
	}
});
*/

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") && anchor.getAttribute("class") == "newWindow")
     anchor.target = "_blank";
 }
}

startList = function() {
	if (document.all&&document.getElementById) {
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
	node.onmouseover=function() {
	this.className+=" over";
	  }
	  node.onmouseout=function() {
	  this.className=this.className.replace(" over", "");
	   }
	   }
	  }
	 }        
	}
start_procedure = function() {
	startList();
	externalLinks();
}
window.onload=start_procedure;



