// JavaScript Document
function ventana(url,alto,ancho){ 
	if(alto == undefined || ancho == undefined )
		window.open(url,"Captura2","width=650,height=450,scrollbars=0");
	else
		window.open(url,"Captura2","width="+ancho+",height="+alto+",scrollbars=0,status=0,titlebar=0,toolbar=0");
} 
//*********************************************
function showpics(numPics,idAblum,fecha)
{	window.open("theimageBig.php?numPic="+numPics+"&idAlb="+idAblum+"&fecha="+fecha,"Galería","width=790,height=600,top=40,left=50,scrollbars=0"); 
}
function maximizar()
{	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight);
}
//*********************************************
/*function MM_openBrWindow(theURL,winName,features) { //v2.0 	window.open(theURL,winName,features); }*/
function derecha(e)
{	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
	{	alert('Botón derecho inhabilitado');
		return false;
	}
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2))
		alert("Captura2.com - déjate capturar  \r\rPortal web diseñado y administrado por CATmedia\r\rwww.catmedia.com.pe");
}
document.onmousedown=derecha

function paintcell(btn,donde)
{	if(donde=="so")	
		btn.style.backgroundColor = "#D1BA6B";
	else
		btn.style.backgroundColor = "#CBB056";
}
/*function paintcell(btn,color)
{	
	btn.style.backgroundColor = "#163145";	
}*/
//*******************************************************
function PNG_loader() { 
   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;"; 
         if (img.align == "right") imgStyle += "float:right;"; 
         if (img.parentElement.href) imgStyle += "cursor:hand;"; 
         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--; 
      } 
   } 
} 
window.attachEvent("onload", PNG_loader);
