<!--//

//      funciones de manejo de DHTMLPopUp            //
//////////////////////////////////////////////////////

var combowidth='';
var combowidthsmall='';


//drag drop, funcion para NS 4////
//////////////////////////////////


var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name,name2){
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
temp2=eval(name2)
temp2.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp2.onmousedown=gons
temp2.onmousemove=dragns
temp2.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
temp2.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
temp2.moveBy(e.x-nsx,e.y-nsy)
return false
}
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
temp2.releaseEvents(Event.MOUSEMOVE)
}


//drag drop, funcion para IE 4+////
///////////////////////////////////

var dragapproved=false

function drag_dropie(){
if (dragapproved==true){
document.all.popup.style.pixelLeft=tempx+event.clientX-iex
document.all.argh.style.pixelLeft=tempx2+event.clientX-iex
document.all.popup.style.pixelTop=tempy+event.clientY-iey
document.all.argh.style.pixelTop=tempy2+event.clientY-iey
return false
}
}

function initializedragie(){
iex=event.clientX
iey=event.clientY
tempx=popup.style.pixelLeft
tempy=popup.style.pixelTop
tempx2=argh.style.pixelLeft
tempy2=argh.style.pixelTop
dragapproved=true
document.onmousemove=drag_dropie
}


if (document.all){
document.onmouseup=new Function("dragapproved=false")
}

////drag drop fin//////



function initialize(){
if (document.all){
combowidth=popup.offsetWidth;
combowidthsmall=argh.offsetWidth;
//setInterval("staticit_ie()",50);
popup.style.visibility="visible";
argh.style.visibility="hidden";
}
else if (document.layers){
combowidth=document.popup.document.width;
combowidthsmall=document.argh.document.width;
//setInterval("staticit_ns()",50);
document.popup.visibility='show';
document.argh.visibility='hide';
}
else if (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko")){
setInterval("staticit_ns6()",50);
document.getElementById('popup').style.visibility = 'visible';
document.getElementById('argh').style.visibility = 'hidden';
}
}

function hide(){
if (document.all){
combowidth=popup.offsetWidth;
combowidthsmall=argh.offsetWidth;
//setInterval("staticit_ie()",50)
popup.style.visibility="hidden";
argh.style.visibility="visible";
}
else if (document.layers){
combowidth=document.popup.document.width;
combowidthsmall=document.argh.document.width;
//setInterval("staticit_ns()",50);
document.popup.visibility='hide';
document.argh.visibility='show';
}
else if (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko")){
setInterval("staticit_ns6()",50);
document.getElementById('popup').style.visibility='hidden';
document.getElementById('argh').style.visibility='visible';
}
}

function hideall(){
if (document.all){
popup.style.visibility="hidden";
argh.style.visibility="hidden";
}
else if (document.layers){
document.popup.visibility='hide';
document.argh.visibility='hide';
}
else if (navigator.vendor == ("Netscape6") || navigator.product == ("Gecko")){
document.getElementById('popup').style.visibility='hidden';
document.getElementById('argh').style.visibility='hidden';
}
}

function staticit_ie(){
popup.style.pixelLeft=document.body.scrollLeft+document.body.clientWidth-combowidth;
argh.style.pixelLeft=document.body.scrollLeft+document.body.clientWidth-combowidthsmall;
}

function staticit_ns(){
document.popup.left=pageXOffset+window.innerWidth-combowidth;
document.argh.left=pageXOffset+window.innerWidth-combowidthsmall;
}

function staticit_ns6(){
document.getElementById('popup').style.left=self.innerWidth+window.pageXOffset-document.getElementById('popup').offsetWidth-15;
document.getElementById('argh').style.left=self.innerWidth+window.pageXOffset-document.getElementById('argh').offsetWidth-15;
}

document.onload=hide();
//-->

//      document.onload=initialize();            //