/*  Start /_templates/menu/menu.js */

var MenuClass = Class.create({
	
	init: function() {
		
		this.menu();
		
	},
	
	menu: function() {
		
		$$('.li_menu').each( function(menu) {
			
			if(menu.down(0).innerHTML != '') {
				
				menu.observe('mouseover', function(){
					menu.down(0).setStyle({ display : 'block' });
			 	});
				menu.observe('mouseout', function(){
					menu.down(0).setStyle({ display : 'none' });
			 	});
				
			}
			
		})
		
	}
	

});

var Menu = new MenuClass();

// Dom loaded
document.observe("dom:loaded", function() {
	Menu.init();				
});

/*  End /_templates/menu/menu.js */

/*  Start /_templates/roottemplate/roottemplate.js */

function showTafSend() {
	Effect.BlindUp('taf_form', { duration: 0.4 });
	Effect.BlindDown('taf_send', { duration: 0.4 });
}

// Submit Search
function submitSearch(url) {
	location = PGX.Path + url + '?search=' + $('Search').value;
}

document.observe("dom:loaded", function() {
																				
	nodes = $$('div#fotopopup');
	nodes.each(function(node) {
		node = node.down(0);		
		node.rel = 'lightbox';
		node.title = '';
	});
	
});

/*  End /_templates/roottemplate/roottemplate.js */

