/*INICIO LAYERS*/
	function top(e) {
		if (e == document.body)
			return e.offsetTop;
		else 
			if ((e.tagName == 'CENTER') || (e.tagName == 'TR') || (e.tagName == 'DIV') || (e.tagName == 'TBODY') || (e.tagName == 'FORM'))
				return top(e.parentElement);
			else
				return e.offsetTop + top(e.parentElement);
	}

	function left(e) {
		if (e == document.body)
			return e.offsetLeft;
		else
			if ((e.tagName == 'CENTER') || (e.tagName == 'TR') || (e.tagName == 'DIV') || (e.tagName == 'TBODY') || (e.tagName == 'FORM'))
				return left(e.parentElement);
			else
				return e.offsetLeft + left(e.parentElement);
	}
	
	function tv1Refresh(){
		divUm.style.top = top(document.all.refUm);
		divUm.style.left = left(document.all.refUm);
	}
	
	function tv1RefreshHome(){
		divHome.style.left = left(document.all.refUm);
	}
	
	function tv1Refresh2(){
		divDois.style.top = top(document.all.refDois);
		divDois.style.left = left(document.all.refDois);
	}
	
	

/*FIM LAYERS*/

	function tv1mouseOver() {
		divFlash.style.visibility = 'visible';
	}

	function tv1mouseOut() {
		divFlash.style.visibility = 'hidden';
	}

	function tv1mouseOver2() {
		divFlash2.style.visibility = 'visible';
	}

	function tv1mouseOut2() {
		divFlash2.style.visibility = 'hidden';
	}
	
	function tv1mouseOver3() {
		divFlash3.style.visibility = 'visible';
	}

	function tv1mouseOut3() {
		divFlash3.style.visibility = 'hidden';
	}

/*BG MENU*/
function findTag(eItem) {
	var objATag = new Object();
	objATag = eItem.all.tags("A").item(0)
	return objATag;
}
function NavMOver(eItem){
	eItem.DefaultBgColor = eItem.style.backgroundColor;
	eItem.DefaultTxtColor = eItem.style.color;
	eItem.style.backgroundColor = bgMenuOn;
	eItem.style.cursor="hand";
}
function NavMOut(eItem){
	eItem.style.backgroundColor = eItem.DefaultBgColor;
}

function NavMOver2(eItem){
	eItem.DefaultBgColor = eItem.style.backgroundColor;
	eItem.DefaultTxtColor = eItem.style.color;
	eItem.style.backgroundColor = bgMenuOn2;
	eItem.style.cursor="hand";
}
function NavMOut2(eItem){
	eItem.style.backgroundColor = eItem.DefaultBgColor;
}
/*BG MENU*/



function gotourl() { //v3.0
  var i, args=gotourl.arguments; document.tv1_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

var alturaTabela = 10
var larguraTabela = 0
var bgMenuOn = "#F6F9FC"
var bgMenuOn2 = "#00C206"

/*Layers*/

function mostra(item){
if (item.style.display=='none'){
item.style.display='';
}
else{
item.style.display='none'}
}

function popup(URL) {
	var width = 427;
	var height = 460;
	var left = 100
	var top = 100
	window.open(URL,'popup', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, fullscreen=no');
}

function popupS(URL) {
	var width = 429;
	var height = 450;
	var left = 100
	var top = 100
	window.open(URL,'popup', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, fullscreen=no');
}

function popupF(URL) {
	var width = 800;
	var height = 600;
	var left = 100
	var top = 100
	window.open(URL,'popup', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, fullscreen=no');
}
function popupplayer(URL) {
	var width = 287;
	var height = 86;
	var left = 20
	var top = 20
	window.open(URL,'popup', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, fullscreen=no');
}

function imprimir() {
	window.print();
}

function ajuda(URL) {
	var width = 447;
	var height = 460;
	var left = 100
	var top = 100
	window.open('ajuda.asp','popupajuda', 'width='+width+', height='+height+', top='+top+', left='+left+', toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, fullscreen=no');
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

