<!--
var dragapproved=false
var minrestore=0
var nome=''
var n=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_drop(){
if (ie5&&dragapproved&&event.button==1){
document.getElementById(nome).style.left=tempx+event.clientX-offsetx+"px"
document.getElementById(nome).style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
document.getElementById(nome).style.left=tempx+e.clientX-offsetx+"px"
document.getElementById(nome).style.top=tempy+e.clientY-offsety+"px"
}
}

function initializedrag(e,nomeframe,conteudo){
n=n+1;
nome=nomeframe
offsetx=ie5? event.clientX : e.clientX
offsety=ie5? event.clientY : e.clientY
document.getElementById(conteudo).style.display="none" 
tempx=parseInt(document.getElementById(nome).style.left)
tempy=parseInt(document.getElementById(nome).style.top)
document.getElementById(nome).style.zIndex=n+1
dragapproved=true
document.getElementById(nome).onmousemove=drag_drop
}

function loadwindow(url,nome,endereco,width,height,dx,dy){
n=n+1;
if (!ie5&&!ns6)
window.open(url,"","width=width,height=height,scrollbars=1")
else{
document.getElementById(nome).style.display=''
document.getElementById(nome).style.width=initialwidth=width+"px"
document.getElementById(nome).style.height=initialheight=height+"px"
document.getElementById(nome).style.left=dx
document.getElementById(nome).style.top=ns6? window.pageYOffset*1+dy+"px" : iecompattest().scrollTop*1+dy+"px"
document.getElementById(endereco).src=url
document.getElementById(nome).style.zIndex=n
}
}

function closeit(nome){
document.getElementById(nome).style.display="none"
}

function stopdrag(nome,conteudo){
dragapproved=false;
document.getElementById(nome).onmousemove=null;
document.getElementById(conteudo).style.display="" 
}
-->
