var abre = "0";
function entrasite(){
	if(abre == "0000"){
		window.open("home.asp","site", "toolbar=no,resizable=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,top=100,left=200");
		abre = "1";
	}
}

function openpop(url){
	window.open(url,"pop", "toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,width=690,height=510,top=35,left=80");
}

//** esta funcao tb esta no bisppomenu.asp
function openfoto(url){
	window.open(url,"foto", "toolbar=no,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,width=690,height=510,top=30,left=70");
}

function high(which2){
	which2.filters.alpha.opacity = 100;
}

function low(which2){
	which2.filters.alpha.opacity = 80;
}



function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}





//** esconde itens para o banner expandable
function adtechhideElement(){
	for (i = 0; i < document.all.tags('SELECT').length; i++){
		obj = document.all.tags('SELECT')[i];
		if (!obj || !obj.offsetParent){
			continue;
			obj.style.visibility = "hidden";
		}
	}

	for (i = 0; i < document.all.tags('APPLET').length; i++){
		obj = document.all.tags('APPLET')[i];
		if (!obj || !obj.offsetParent){
			continue;
			obj.style.visibility = "hidden";
		}
	}
}

function adtechshowElement() {
	for (i = 0; i < document.all.tags('SELECT').length; i++){
		obj = document.all.tags('SELECT')[i];
		if (!obj || !obj.offsetParent){
			continue;
			obj.style.visibility = "";
		}
	}

	for (i = 0; i < document.all.tags('APPLET').length; i++){
		obj = document.all.tags('APPLET')[i];
		if (!obj || !obj.offsetParent){
			continue;
			obj.style.visibility = "";
		}
	}
}
//** fim do esconde itens para o banner expandable







//** envia variaveis

var agt = navigator.userAgent.toLowerCase();
var is_ie = (agt.indexOf('msie') != -1);
var is_ie5 = (agt.indexOf('msie 5') != -1);

function CreateXmlHttpReq(handler) {
	var xmlhttp = null;
	if (is_ie) {
		var control = (is_ie5) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP";
		try {
			xmlhttp = new ActiveXObject(control);
			xmlhttp.onreadystatechange = handler;
		} catch(e) {
			alert("You need to enable active scripting and activeX controls");
		}
	} else {
		xmlhttp = new XMLHttpRequest();
		xmlhttp.onload = handler;
		xmlhttp.onerror = handler;
	}
	return xmlhttp;
}

function DummyHandler() { }

var uniqnum_counter = (new Date).getTime();

function XmlHttpGET(xmlhttp, url) {
	xmlhttp.open('GET', url, true);
	xmlhttp.send(null);
}
function SendRequest(url) {
		var xmlhttp = CreateXmlHttpReq(DummyHandler);
		++uniqnum_counter;
		XmlHttpGET(xmlhttp, url + "&rand=" + uniqnum_counter);
}

//** fim envia variaveis