// JavaScript Document

<!--
 function abrir(nombre,ancho,alto,x,y,alt) {
  w = window.open("", "Foto", "width="+ancho+",height="+alto+",screenX="+x+",screenY="+y+",left="+x+",top="+y)

  w.document.write('<html\><head\><title\>'+alt+'<\/title\>')
  w.document.write('<style type="text/css"\>html, body, p, img { margin:0; padding:0 }<\/style\><\/head\>')
  w.document.write('<body\><p\><img src="'+nombre+'" width="'+ancho+'" height="'+alto+'" alt="'+alt+'"\><\/img\><\/p\><\/body\><\/html\>')
 }
// -->
 
<!--
function adjustIFrameSize (iframeWindow)
{
	if (iframeWindow.document.height)
	{
	 	var iframeElement = document.getElementById(iframeWindow.name);
		/*iframeElement.style.height = iframeWindow.document.height + 'px';*/
	}
	else if (document.all)
	{
		var iframeElement = document.all[iframeWindow.name];
		if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat')
		{
			iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
		}
		else
		{
			iframeElement.style.height = iframeWindow.document.body.scrollHeight + 5 + 'px';
		}
	}
}
function Ver(que)
{
	var HTML="";
	HTML="<iframe name=\"destino\" src=\"pags/"+que+"/inicio.html\" width=\"426\" height=\"1080\" scrolling=\"no\" frameborder=\"0\"></iframe>";
	document.getElementById('cuerpo').innerHTML=HTML;
	//HTML="<iframe name=\"destino\" src=\"pags/"+que+"/inicio.html?Alto="+Alto()+"&Ancho="+Ancho()+"\" width=\"400\" scrolling=\"no\" frameborder=\"0\"></iframe>";
	//document.getElementById('cuerpo').innerHTML=HTML;
}
//-->

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-->

<!--
function showMilitaryTime() {
if (document.form.showMilitary[0].checked) {
return true;
}
return false;
}
function showTheHours(theHour) {
if (showMilitaryTime() || (theHour > 0 && theHour < 13)) {
if (theHour == "0") theHour = 12;
return (theHour);
}
if (theHour == 0) {
return (12);
}
return (theHour-12);
}
function showZeroFilled(inValue) {
if (inValue > 9) {
return "" + inValue;
}
return "0" + inValue;
}
function showAmPm() {
if (showMilitaryTime()) {
return ("");
}
if (now.getHours() < 12) {
return (" am");
}
return (" pm");
}
function showTheTime() {
now = new Date
document.form.showTime.value = showTheHours(now.getHours()) + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()) + showAmPm()
setTimeout("showTheTime()",1000)
}
// -->

<!--
var ns6=document.getElementById&&!document.all?1:0
var head="display:''"
var folder=''
var marca=0
var objold=null
 
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }


function swap(obj){
	if (objold!=null && marca==1){
		objold.src = 'images/' + objold.name + '1.gif';
		marca=0;}
	obj.src = 'images/' + obj.name + '2.gif'}

function swap_org(obj){
	if (marca==0)
		obj.src = 'images/' + obj.name + '1.gif';
	else
		objold=obj;
	}
		
var months=new Array(13);
months[1]="Enero";
months[2]="Febrero";
months[3]="Marzo";
months[4]="Abril";
months[5]="Mayo";
months[6]="Junio";
months[7]="Julio";
months[8]="Agosto";
months[9]="Septiembre";
months[10]="Octubre";
months[11]="Noviembre";
months[12]="Diciembre";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell

//-->

<!--
function agregar(){ 
   if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) { 
      var url="http://www.rugbynaval.cl/"; 
      var titulo="Rugby Naval — OLD NAVY"; 
      window.external.AddFavorite(url,titulo); 
   } 
   else { 
      if(navigator.appName == "Netscape") 
         alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks"); 
   } 
}

//-->

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//-->

