// JavaScript Document
function Popup(url,name,width,height,resize,scroll) {
 var dialogWin = new Object();
 dialogWin.width = width;
 dialogWin.height = height;
 if (navigator.appName == "Netscape") {
	 dialogWin.left = window.screenX + ((window.outerWidth - dialogWin.width) / 2);
	 dialogWin.top = window.screenY + ((window.outerHeight - dialogWin.height) / 2);
	 var attr = 'screenX=' + dialogWin.left + ',screenY=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
 } else if (document.all) {
	 dialogWin.left = (screen.width - dialogWin.width) / 2;
	 dialogWin.top = (screen.height - dialogWin.height) / 2;
	 var attr = 'left=' + dialogWin.left + ',top=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
 }
 window.open(url,name,attr);
}
var min=8;
var max=18;
function fuenteMas(texto) {
		var p = $(texto).getElements("p");
		var nested = null;
		for (var i=0; i<p.length; i++){	
			if(p[i].style.fontSize) {
				 var s = parseInt(p[i].style.fontSize.replace("px",""));
			  } else {
				 var s = 12;
			  }
			  if(s!=max) {
				 s += 1;
			  }
			  p[i].style.fontSize = s+"px"
		}


}
function fuenteMenos(texto) {
  var p = $(texto).getElements("p");
  var nested = null;
 for (var i=0; i<p.length; i++){	
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}
function sh(id,myId, myStyle){
	if($(id) && $(myId)){
		if($(id).getStyle('display')=='none'){
			$(myId).addClass( myStyle+'Down');
			$(id).setStyle('display','block');	
		}else{
			$(myId).removeClass( myStyle+'Down');
			$(id).setStyle('display','none');	
		}
	}	
}
function out(id){
	if($(id)){
			$(id).setStyle('display','none');
	}
}
