function myOnComplete()
	{}

	$(document).ready(function() {
	$("#contato").RSV({
	  onCompleteHandler: myOnComplete,
	  errorFieldClass: "errorFieldDemo5",
	  displayType: "display-html",
	  errorHTMLItemBullet: "- ",
	  	rules: [
			"required,nome_contato,Digite seu Nome Completo",
			"required,email_contato,Digite seu E-mail",
			"valid_email,email_contato,Digite um Endereço de E-mail Válido.",
			"required,mensagem_contato,Digite seu Endereço"
    ]
	});
});
	
function myOnComplete()
	{}

	$(document).ready(function() {
	$("#admin").RSV({
	  onCompleteHandler: myOnComplete,
	  errorFieldClass: "errorFieldDemo5",
	  displayType: "display-html",
	  errorHTMLItemBullet: "- ",
	  	rules: [
			"required,login,Digite seu Nome Completo",
			"required,senha,Digite seu E-mail"
    ]
	});
});
	
function ajaxLink(div,pag) {
	$.get(pag,{qazc:'1'}, function(retorno){ $("#"+div).html(retorno); });
}

// Script para abrir POP-UP
		function popWin(URL,NAME,WIDTH,HEIGHT,RESIZE,SCROLL)  // by yudi Kondo
		{
		winId = window.open(URL,NAME,'width='+WIDTH+',height='+HEIGHT+',resizable='+RESIZE+',scrollbars='+SCROLL+',menubar=no,toolbar=no,location=no,directories=no,status=no');
				var clientWidth = screen.availWidth;
				var clientHeight = screen.availHeight;
				var xPos = (clientWidth - WIDTH)/2;
				var yPos = (clientHeight - HEIGHT)/2;
				winId.moveTo(xPos,yPos);
		}
		
// Script para abrir POP-UP
function pagina(url, pagina) {
	location.href=''+url+'pagina='+pagina;
}

function abrir(url,name,width,height,returnwindow,res) {
	var options = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable="+res+",copyhistory=no";

	var new_window = window.open(url, name, options);
	window.self.name = "main";
	new_window.focus();
	if (returnwindow != null) {
	   return new_window;
	}
}

function div(div) {
	var objeto = document.getElementById(''+div+'');
	if(objeto.style.display == 'none') {
	   objeto.style.display = 'block';
       } else {
       objeto.style.display = 'none';
	}
}

function CheckAll() {
    for (i=0;i<document.form2.elements.length;i++) {
         document.form2.elements[i].checked = document.form2.selall.checked;
    }
}

// SLIDE SECO //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function Show(div,mais,menos){
if (document.getElementById(div).style.display=='none') {
document.getElementById(div).style.display='block';
document.getElementById(mais).style.display='none';
document.getElementById(menos).style.display='block';
} else {
document.getElementById(div).style.display='none';
document.getElementById(mais).style.display='block';
document.getElementById(menos).style.display='none';
}
}


function montaFlash(swf, vars, width, height, id, wmode, cache) {
	noCache = cache || cache == undefined ? "" : "?" + new Date();
	monta_swf = "";
	monta_swf += "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" id=\""+ id +"\" width=\""+ width +"\" height=\""+ height +"\" title=\"\">";
	monta_swf += "<param name=\"movie\" value=\""+ swf + noCache +"\" />";
	monta_swf += "<param NAME=FlashVars value=\""+ vars +"\" />";
	monta_swf += "<param name=\"quality\" value=\"high\" />";
	monta_swf += "<param name=\"menu\" value=\"false\" />";
	monta_swf += "<param name=\"wmode\" value=\""+ wmode +"\" />";
	monta_swf += "<embed src=\""+ swf + noCache +"\"  FlashVars=\""+ vars + "\" quality=\"high\" menu=\"false\" wmode=\""+ wmode +"\"  pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" id=\""+ id +"\" width=\""+ width +"\" height=\""+ height +"\"></embed>";
	monta_swf += "</object>";
	document.write(monta_swf);
}