function abrepop(url,nome,dados) {
  window.open(url,nome,dados);
}

function textOn(txt){ document.getElementById(txt).className="textboxOn"; }
function textNormal(txt){ document.getElementById(txt).className="textbox"; }
function clearText(e, txt) { if(e.value == txt) { e.value = ''; } }
function recoverText(e, txt) { if(e.value.length == 0) { e.value = txt; } }

jQuery(function($){
	$("#telefone").mask("(99)9999-9999");
});

$(document).ready(function(){
	$(".dropdownMenu")
	.menu({
		animation : { opacity:"show",height:"show"}
	})
	/*
	.find(">li:has(ul)")
	.mouseover(function(){
		$("ul", this).bgIframe({opacity:false});
	})
	.find("a")
	.focus(function(){
		$("ul", $(".dropdownMenu>li:has(ul)")).bgIframe({opacity:false});
	});
	*/
});
$(function() {
	$('a.lightbox').lightBox();
});
$(function() {
	$('a[@rel*=lightbox]').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.8,
		/*
		imageLoading: '../_imgs/loading.gif',
		imageBtnClose: '../_imgs/close.gif',
		imageBtnPrev: '../_imgs/prev.gif',
		imageBtnNext: '../_imgs/next.gif',
		*/
		containerResizeSpeed: 350,
		txtImage: 'Imagem',
		txtOf: 'de'
   });
});

$(function() {
	$('#SlideShow').cycle({
		fx:     'fade',
		speed:  'slow',
		timeout: 5000,
		pager:  '#nav'/*,
		next:   '#next2', 
		prev:   '#prev2'*/
	});
});
/*
$(function() {
	$('#iFotosDestaque').cycle({
		fx:     'fade',
		speed:  'slow',
		timeout: 3000,
		pager:  '#QtdImgs',
		next:   '#SlideAvanca', 
		prev:   '#SlideVolta'
	});
});
*/