function $tag(_1){
return document.getElementsByTagName(_1).item(0);
}
function $tags(_2){
return document.getElementsByTagName(_2);
}
var _w=0;
var _h=0;
var Win={ajaxPage:null,openAjax:function(){
var _3;
try{
_3=new XMLHttpRequest();
}
catch(ee){
try{
_3=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e){
try{
_3=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(E){
_3=false;
}
}
}
return _3;
},show:function(_4,w,h){
if(document.getElementById("divBg")!=null){
return;
}
this.ajaxPage=_4;
var _7=document.createElement("div");
var _8=this.getPageSize();
with(_7.style){
height=_8[1]+"px";
width=_8[0]+"px";
position="absolute";
top="0";
left="0";
backgroundColor="#000";
MozOpacity="0";
opacity="0";
filter="alpha(opacity=0)";
zIndex="98";
}
_7.setAttribute("id","divBg");
$tag("body").appendChild(_7);
_w=w;
_h=h;
combo(0);
this.setBackground(1);
},setBackground:function(n){
var _a=document.getElementById("divBg");
if(n>=70){
_a.onclick=this.remove;
this.createContent();
return;
}
_a.style.MozOpacity=n/100;
_a.style.opacity=n/100;
_a.style.filter="alpha(opacity="+n+")";
n=n+20;
setTimeout("Win.setBackground("+n+")",1);
},remove:function(){
combo(1);
if(document.getElementById("divBg")!=null){
$tag("body").removeChild(document.getElementById("divBg"));
}
if(document.getElementById("divContent")!=null){
$tag("body").removeChild(document.getElementById("divContent"));
}
if(document.getElementById("_loading")!=null){
$tag("body").removeChild(document.getElementById("_loading"));
}
},createContent:function(){
this.showLoading();
var _b=this.openAjax();
_b.open("get",this.ajaxPage,true);
_b.onreadystatechange=function(){
if(_b.readyState==4){
if(_b.status==200){
if(document.getElementById("divBg")==null){
return;
}
$tag("body").removeChild(document.getElementById("_loading"));
var _c=document.createElement("div");
_c.setAttribute("id","divContent");
var _d=_b.responseText;
_d=_d.replace(/\+/g," ");
_d=unescape(_d);
_c.innerHTML=_d;
with(_c.style){
width="0px";
height="5px";
position="absolute";
top="50%";
left="50%";
marginLeft="-"+(_w/2)+"px";
marginTop="-"+(_h/2)+"px";
overflow="hidden";
zIndex="99";
}
$tag("body").appendChild(_c);
Win.setSize(_w,_h);
}else{
this.remove();
}
}else{
if(document.getElementById("divBg")==null){
return;
}
}
};
_b.send(null);
},setSize:function(w,h){
if(!document.getElementById("divContent")){
return;
}
var div=document.getElementById("divContent");
var he=div.style.height.split("px")[0];
var wi=div.style.width.split("px")[0];
if((Math.abs((w)-wi)<2)&&(Math.abs((h)-he)<2)){
return;
}
if(Math.abs((w)-wi)>2){
div.style.width=(wi-(wi-(w))/3)+"px";
}else{
div.style.height=(he-(he-(h))/3)+"px";
}
setTimeout("Win.setSize("+w+", "+h+")",80);
},showLoading:function(){
var img=document.createElement("img");
img.setAttribute("id","_loading");
with(img.style){
position="absolute";
left="50%";
top="50%";
marginLeft="-30px";
marginTop="-30px";
zIndex=99;
}
img.src="imagens/loading-mac.gif";
$tag("body").appendChild(img);
},getPageSize:function(){
var _14,_15;
if(window.innerHeight&&window.scrollMaxY){
_14=document.body.scrollWidth;
_15=window.innerHeight+window.scrollMaxY;
}else{
if(document.body.scrollHeight>document.body.offsetHeight){
_14=document.body.scrollWidth;
_15=document.body.scrollHeight;
}else{
_14=document.body.offsetWidth;
_15=document.body.offsetHeight;
}
}
var _16,_17;
if(self.innerHeight){
_16=self.innerWidth;
_17=self.innerHeight;
}else{
if(document.documentElement&&document.documentElement.clientHeight){
_16=document.documentElement.clientWidth;
_17=document.documentElement.clientHeight;
}else{
if(document.body){
_16=document.body.clientWidth;
_17=document.body.clientHeight;
}
}
}
if(_15<_17){
pageHeight=_17;
}else{
pageHeight=_15;
}
if(_14<_16){
pageWidth=_16;
}else{
pageWidth=_14;
}
arrayPageSize=new Array(pageWidth,pageHeight,_16,_17);
return arrayPageSize;
}};

function combo(flag)
{
	var cb = document.getElementsByTagName('select');
	for(i=0;i<cb.length;i++)
		cb[i].style.visibility = (flag == 1)?'visible':'hidden';
}

