function presup_over(i) {

	obj1 = document.getElementById("preg_nav_" + i + "_1");
	obj1.className = "enlace_presupuestos fs36 negrita c_178_144_78";
		
	obj2 = document.getElementById("preg_nav_" + i + "_2");
	obj2.className = "enlace_presupuestos fs22 negrita c_178_144_78";

	obj3 = document.getElementById("preg_nav_" + i + "_3");
	obj3.className = "enlace_presupuestos fs12 negrita negro";

}


function presup_out(i) {

	obj1 = document.getElementById("preg_nav_" + i + "_1");
	obj1.className = "enlace_presupuestos fs36 negrita c_1_2_17_17";

	obj2 = document.getElementById("preg_nav_" + i + "_2");
	obj2.className = "enlace_presupuestos fs22 negrita c_1_2_17_17";

	obj3 = document.getElementById("preg_nav_" + i + "_3");
	obj3.className = "enlace_presupuestos fs12 negrita c_1_2_17_17";
}


function abrirFototeca(){ 

  var winFototeca;
  var opciones="";
  
  opciones="scrollbars=no,resizable=no,width=800,height=600,status=yes,location=no,toolbar=no";

  winFototeca=window.open("","fototeca",opciones);

  document.formulario.submit();

  winFototeca.focus();
  return;
}

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])


function fixPNG(myImage){
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}

function dibuja_flash(swf,width,height){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='" + width + "' height='" + height + "'><param name='wmode' value='transparent'><param name='movie' value='" + swf + "'/><param name='quality' value='high'/><embed src='" + swf + "' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='" + width + "' height='" + height + "' wmode='transparent'></embed></object>");
}