function RodarFlash(path,variaveis,_width,_height)
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+_width+'" height="'+_height+'">')
		document.write('<param name="movie" value="'+path+'?'+variaveis+'">')
		document.write('<param name="quality" value="high">')
		document.write('<param name="wmode" value="transparent">')
		document.write('<embed src="'+path+'?'+variaveis+'" width="'+_width+'" height="'+_height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>')
	document.write('</object>')
}

// HOTSITE MENU ////////////////////////////////////////////////////////
function overMenu() {
	document.getElementById("corpo").style.zIndex = 1;
	document.getElementById("hotsite_menu").style.zIndex = 2;
}

function overConteudo() {
	document.getElementById("corpo").style.zIndex = 2;
	document.getElementById("hotsite_menu").style.zIndex = 1;
}
///////////////////////////////////////////////////////////////////////////

// POPUP TERMOS DE USO /////////////////////////////////////////////////
function abreTermos(){  
	window.open('termosdeuso.aspx','TermosdeUso','toolbars=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=468,height=450');  
}

function abreInfo(){  
	window.open('info_gerais.aspx','TermosdeUso','toolbars=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=468,height=450');  
}  

////////////////////////////////////////////////////////////////////////


// Validar E-mail /////////////////////////////////////////////////////////
function isEmail (s)
{  
	if (isEmpty(s)) 
       if (isEmail.arguments.length == 1) return defaultEmptyOK;
       else return (isEmail.arguments[1] == true);
   
   // if (isWhitespace(s)) return false;
    var i = 1;
    var sLength = s.length;

    // look for @
    while ((i < sLength) && (s.charAt(i) != "@"))
    { i++
    }

    if ((i >= sLength) || (s.charAt(i) != "@")) return false;
    else i += 2;

    while ((i < sLength) && (s.charAt(i) != "."))
    { i++
    }

    if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false;
    else return true;
}
function isEmpty(s)
{
	return ((s == null) || (s.length == 0))
}
function isWhitespace(s)
{
	var i;

    // Is s empty?
    if (isEmpty(s)) return true;

    for (i = 0; i < s.length; i++)
    {   
        var c = s.charAt(i);

        if (whitespace.indexOf(c) == -1) return false;
    }

    return true;
}
///////////////////////////////////////////////////////////////////////////