version=navigator.appVersion; 
dom=document.getElementById?1:0; 

ie5=(version.indexOf("MSIE 5")>-1 &&  dom)?1:0; 
ie6=(version.indexOf("MSIE 6")>-1 &&  dom)?1:0; 
ie4=(document.all && !dom)?1:0; 
ns5=(dom && parseInt(version) >= 5) ?1:0; 
ns4=(document.layers && !dom)?1:0;


function mostrarContenidos(){
	if(ns5){
		document.getElementById("contenidos").style.visibility='visible';
	}
	else if(ns4){
		document.contenidos.visibility='show';
	}
	else{
		document.all["contenidos"].style.visibility='visible';
	}
}

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=5,0,0,0' width='" + width + "' height='" + height + "'><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 + "'></embed></object>");
}


function fixPNG(myImage){

	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])

	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	  
    }
}
