<!--
//FUNCIONES GENERALES PARA MANEJO DE LAYERS
//Define global variables
window.onresize = reDo
var what = null
var newbrowser = true
var check = false
var styleSwitch=''

function reDo() {
window.location.reload()
}

function init() {
if(document.getElementById) {
  layerRef="document.getElementByID";
  styleSwitch=".style";
  what="dom1";
  }
else if(document.all) {
	layerRef="document.all";
	styleSwitch=".style";
	what ="ie4";
        }
     else if(document.layers) {
	    layerRef="document.layers";
	    styleSwitch="";
	    what ="ns4";
	    }
	  else {
	    what="none";
	    newbrowser = false;
	    }
check = true;
}

// Toggles the layer visibility on
function showLayer(layerName) {
if(check) {
  if(what =="none") {
    return;
    }
  else if(what == "dom1") {
	 document.getElementById(layerName).style.visibility="visible";
	 }
       else {
	 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
	 }
  }
else {
  return;
  }
}

// Toggles the layer visibility off
function hideLayer(layerName) {
if(check) {
  if(what =="none") {
    return;
    }
  else if(what == "dom1") {
	 document.getElementById(layerName).style.visibility="hidden";
	 }
       else {
	 eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
	 }
  }
else {
  return;
  }
}

function onLoad() {
init();
}

function irapag(form) {
i = form.combo.selectedIndex
if (i == 0) return
location.href = url[i]
}

function muestro() {
eq=x_inst_ini
if (!x_id=='') {eq=eq+' id="'+x_id+'"'}
eq+=' style="position:'+x_position+'; left:'+x_left+'; top:'+x_top+'; width:'+x_width+'; height:'+x_height
if (!x_backgroundcolor=='') {eq+='; background-color:'+x_backgroundcolor}
if (!x_backgroundimage=='') {eq+='; background-image:url('+x_backgroundimage+')'}
if (!x_backgroundrepeat=='') {eq+='; background-repeat:'+x_backgroundrepeat}
if (!x_borderright=='') {eq+='; border-right:'+x_borderright}
if (!x_borderbottom=='') {eq+='; border-bottom:'+x_borderbottom}
if (!x_border=='') {eq+='; border:'+x_border}
if (!x_cursor=='') {eq+='; cursor:'+x_cursor}
if (!x_zindex=='') {eq+='; z-index:'+x_zindex}
if (!x_oflow=='') {eq+='; overflow-y:'+x_oflow}
if (!x_visibility=='') {eq+='; visibility:'+x_visibility}
if (!x_font=='') {eq+='; font:'+x_font}
if (!x_textdecoration=='') {eq+='; text-decoration:'+x_textdecoration}
if (!x_padding=='') {eq+='; padding:'+x_padding}
eq+='"'
if (!x_vinculo=='') {
	if (x_vinculo.indexOf("http://")>=0)
		eq+=' onclick="window.open('+x_vinculo+')"'
	else
		eq+=' onclick="parent.location.href('+x_vinculo+')"'
}
if (!x_over=='') {eq+=' onmouseover="'+x_over+'"'}
if (!x_out=='') {eq+=' onmouseout="'+x_out+'"'}
eq+='>'+pq+x_inst_fin
//alert(eq);
document.write(eq)
}
//-->

