function bookmarksite(title, url) {
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

function openPopup(file,height,width,toolbars) {
	window.open(file, '', 'height=' +height+', width=' +width+', toolbar=no, directories=no, status=no, menubar=no, scrollbars='+toolbars+', resizable=no');
}

function blurForm(id,text) {
	var box = document.getElementById(id).value;
	if(box == '')
		return document.getElementById(id).value = text;
}

function focusForm(id,text) {
	var box = document.getElementById(id).value;
	if(box == text)
		return document.getElementById(id).value = '';
}

/*
$(document).ready(function() {
	var height = $(document).height();
	$("body").css({'height' : height});
});
*/


$(document).ready(function() {
	// lightbox
	$('.galeriaEspecialidades').lightBox();
	$('.acordoFoto').lightBox();

	// Drop down	
	$(".showDropDown").hover(function() {
		var dropDown = $(this).children().next();
		$(dropDown).css({"visibility":""});
	}, function() { 
		var dropDown = $(this).children().next();
		$(dropDown).css({"visibility":"hidden"});
	});

	// Drop Down Acordos
	$(".showDropAcordos").hover(function() {
		$(".dropAcordos").css({"visibility":""});
	}, function() {
		$(".dropAcordos").css({"visibility":"hidden"});
	});
	
	// Faqs
	$(".faqMainCat").click(function() {
		$(this).next().toggle();
	});
	
	// Hovers no menu
	$(".image-hover").hover(function(){
		var file = $(this).attr('src');
		var hover = file.replace(".png","-hover.png");
		$(this).attr('src',hover);
	}, function() {
		var file = $(this).attr('src');
		var hover = file.replace("-hover.png",".png");
		$(this).attr('src',hover);
	});
});



