//timedev.js

var doc = "document."
var dca = "document.all.";
var est = ".style";


function setCamada(camada, cond)
{
	var c = eval(dca + camada + est);
	
	if (c){
		if (cond){
			c.visibility = "visible";
		}else{
			c.visibility = "hidden";	
		}
	}
}


function setImagem(nome, end)
{
	var imagem = eval(doc + nome);
	imagem.src = end;
}


function setJanela(end, name, width, height)
{
	var	left = (screen.width / 2) - (width / 2) - 2.5;
	var top = (screen.height / 2) - (height / 2);
	var janela = window.open(end, name, "width=" + width + ", height=" + height + ", left=" + left + ", top=" + top + ", toolbar=0, menubar=0, scrollbars=0, location=0, directories=0, status=0, resisable=0");
	janela.focus();
}


function setJanelaRolagem(end, name, width, height)
{
	var	left = (screen.width / 2) - (width / 2) - 2.5;
	var top = (screen.height / 2) - (height / 2);
	var janela = window.open(end, name, "width=" + width + ", height=" + height + ", left=" + left + ", top=" + top + ", toolbar=0, menubar=0, scrollbars=1, location=0, directories=0, status=0, resisable=0");
	janela.focus();
}


function setJanelaPrecisa(end, name, width, height, left, top)
{
	var janela = window.open(end, name, "width=" + width + ", height=" + height + ", left=" + left + ", top=" + top + ", toolbar=0, menubar=0, scrollbars=0, location=0, directories=0, status=0, resisable=0");
	janela.focus();
}


function setJanelaTotal(end)
{
	var janela = window.open(end, "Total", "windowmode=fullwindow, fullscreen=yes");
	janela.focus();
}
