$(document).ready(function() {
	$("a[rel=external]").attr('target','_blank');
	//Indicar Amigo
	$('div#menu ul.sf-menu li.atendimento').children("a").click(function() {
		return hs.htmlExpand( this, {objectType: 'iframe', outlineWhileAnimating: false, wrapperClassName: 'draggable-header no-footer', width: 200, height: 222});
		return false;
	});
	
	$("#bannerHome #fechar").click(function() {
		$("#bannerHome").hide();
	})
	
	$('ul.sf-menu').superfish({
		hoverClass:    'sfHover',
		pathClass:     'sfSelect',
		autoArrows: false,
		delay: 300,
		disableHI: true,
		speed: 'fast'
	});
	
/*	$("div#menu ul.sf-menu li.atendimento").children("a").click(function(){
		var width = screen.width ? (screen.width - 200)/2:0;
		var height = screen.height ? (screen.height - 200)/2:0;
			
		win = window.open('http://www.resortrecantodasaguas.com.br/atendimento.php','Atendimento',"width=200,height=200,scrollbars=yes,resizable=yes,left="+width+",top="+height);
		if (parseInt(navigator.appVersion) >= 4) {
			win.window.focus();
		} 
		return false;
	});
*/	
});