/*var w;
var h;

if (screen.availWidth<1024) {
	w = screen.availWidth;
} else if (screen.availWidth==1024) {
	w = 1024;
} else if (screen.availWidth>1024) {
	w = 1280;
}

if (screen.availHeight<800) {
	h = screen.availHeight;
} else if (screen.availHeight>=800) {
	h = 780;
}

window.resizeTo(w,h);

var px = (screen.availWidth-window.width)/2;
var py = (screen.availHeight-window.height)/2;


window.moveTo(px,py);*/


function abrir() { 
	wind=window.open("","","toolbar=no,location=no,status=no,resizable=no,scrollbars=no,menubar=no,fullscreen=no,left=0,top=0,width=1024,height=820");
	wind.focus()
	wind.location = "index.php";
	wind.name = "full";
} 

function getPath () {
	return "http://"+unescape(window.location.hostname)+"/";
}

function SetCookie(cookieName,cookieValue,nDays) {
 //window.alert ("Nome: " + cookieName+"  Valor: " + cookieValue+"  Dias: " + nDays)
 var today = new Date();
 var expire = new Date();
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString()+";path=/";
}


function getCookie(cookie_name)
{
  if (!document.cookie.match(eval("/" + escape(cookie_name) + "=/")))
  {
   return false;
  }

	return unescape(document.cookie.replace(eval("/^.*?" + escape(cookie_name) + "=([^\\s;]*).*$/"), "$1"));
}


function closeBanner() 
{
	window.location = "/site/";
}

function closeBanner2() 
{
	szDivID = "bannercontent";
	iState = 0;
	var obj = document.layers ? document.layers[szDivID] :
	document.getElementById ?  document.getElementById(szDivID).style :  document.all[szDivID].style;
	obj.visibility = document.layers ? (iState ? "show" : "hide") :   (iState ? "visible" : "hidden");
}



function openBanner() 
{
	window.location = "/site";
}