// Correccion de transparencia  para PNG  en Win IE 5.5 ++.
//JavaScript
/*-------------------------------------------------------------------------------------------------------------------------------
	Oz Virtual S.A. de C.V.
	Alvaro Obregon 1680 3er. Piso, CP 23000
	Tel. +52 (612) 1225620, Fax +52 (612) 122 7011
	www.oz.com.mx
	www.ladivinauva.com
	La Divina Uva o Uva Uva Restaurant   
	© Derechos Reservados 2005
	
	Diseñador: Kristian Meza Cota
	Ultima Actualización:  27/Septiembre/2005
	*Optimización de la carta menu en Flash Mx con Javascript
	*Preloading del Menu en Flash Mx, Musica, y Galeria
	*Cambio de Galeria implementada en CSS a Flash Mx 
	*Simplificación de codigo html, Css, de NavBar
	*Cambio de Archivos Externos el codigo Javascript
	*Información implementada en XML para Scuba
	*Preolading de imagenes
-------------------------------------------------------------------------------------------------------------------------------*/
function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }
window.attachEvent("onload", correctPNG);
   


function high(which2)
{
theobject=which2;
highlighting=setInterval("highlightit(theobject)",50);
}

function low(which2)
{
clearInterval(highlighting);
which2.filters.alpha.opacity=50;
}

function highlightit(cur2)
{
if(cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if(window.highlighting)
clearInterval(highlighting)
}
