$(document).ready(function() {	   
	$('.gallery').lightbox();  
 	    
 	$('#newsitem_body a').filter(function() { 
		return this.hostname && this.hostname !== location.hostname; 
	}).addClass('external').attr('target','_blank'); 	
	
	var $active;
	
	$("#menu_main li a").hover(function() {			
		if ($(this).parent().hasClass("active")) {
			$active = 1;
		} else {
			$active = 0;
		}
		
		$(this).parent().addClass("active");
	}, function() {
		if ($active == 0) {
			$(this).parent().removeClass("active");
		}
	});	
	
	$("#menu_partners li a").hover(function() {					
		$(this).parent().addClass("active");
	}, function() {		
		$(this).parent().removeClass("active");		
	});
	
		 				
});
