$(document).ready(function() {
		
	//Se o lighbox foi carregado, inicia-o	
	if (lbcarregado){
		$('a.lb').lightBox()
	}
	
	if (hscarregado){
			
		$.each($('a.highslide'),function(){
			$(this).bind('click',function(){
				return hs.expand(this);
			});
		});
		
		hs.registerOverlay({
			overlayId: 'closebutton',
			position: 'top right',
			fade: 2
		});
		hs.graphicsDir = 'img/graphics/';
		hs.wrapperClassName = 'borderless';
		hs.captionEval = 'this.a.title';
	}
	
	$("#m_inicio").bind('mouseenter',function(){
		$("li.menu_inicio").css('background-position','bottom');
	}).bind('mouseout',function(){
		$("li.menu_inicio").css('background-position','top');
	});
	
	$("#m_fim").bind('mouseenter',function(){
		$("li.menu_fim").css('background-position','bottom');
	}).bind('mouseout',function(){
		$("li.menu_fim").css('background-position','top');
	});	
	
});
