﻿// -----------------------------------------------------------------------------------------
//
// Diseñado por : Paul Goris Rodriguez
// Gerente de Desarrollo
// GC & Asociados, S.A. (Tel. 256-6752)
//
// Modificada por : ?
//
// -----------------------------------------------------------------------------------------
var csIncludeDir = "/acad11.net/include";
var csFallBackFile = "fallback.js";
var csIE4File = "ie4.js";
var csIE5File = "ie5.js";
var csIE6File = "ie6.js";
var csIE7File = "ie7.js";
var csIE8File = "ie8.js";
var csNN4File = "nn4.js";
var csNN6File = "nn6.js";
var csMoz1File = "moz1.js";
// -----------------------------------------------------------------------------------------
function csBrowserInfo()
{
	var csAppName = String(navigator.appName);
	var csAppVer = String(navigator.appVersion);
	var csPlatform = String(navigator.platform);
	var csUserAgent = String(navigator.userAgent);
	var csVendor = String(navigator.vendor);
	var csProduct = String(navigator.product);
	if(csUserAgent.indexOf("Opera") > -1)
		return 0;
	else if(csUserAgent.indexOf("MSIE 4") > -1 && csPlatform != "MacPPC")
		return 1;
	else if(csUserAgent.indexOf("MSIE 5") > -1)
		return 2;
	else if(csUserAgent.indexOf("MSIE 6") > -1)
		return 5;
	else if(csUserAgent.indexOf("MSIE 7") > -1)
		return 7;
	else if(csUserAgent.indexOf("MSIE 8") > -1)
		return 8;
	else if(csVendor == "Netscape6")
		return 4;
	else if(csProduct == "Gecko")
		return 6;
	else if(csAppName == "Netscape")
	{
		if(parseFloat(csAppVer) >= 4.06 && parseFloat(csAppVer) < 5)
			return 3;
		else
			return 0;
	}
	else
		return 0;
}
// -----------------------------------------------------------------------------------------
var csBrowserType = csBrowserInfo();
var dir = "<script type=\"text/javascript\" language=\"JavaScript\" type=\"text/javascript\" src=\"";
  if(csBrowserType == 0)
	dir += csIncludeDir + "/" + csFallBackFile;
  else if(csBrowserType == 1)
	dir += csIncludeDir + "/" + csIE4File;
  else if(csBrowserType == 2)
	dir += csIncludeDir + "/" + csIE5File;
  else if(csBrowserType == 3)
	dir += csIncludeDir + "/" + csNN4File;
  else if(csBrowserType == 4)
	dir += csIncludeDir + "/" + csNN6File;
  else if(csBrowserType == 5)
	dir += csIncludeDir + "/" + csIE6File;
  else if(csBrowserType == 6)
	dir += csIncludeDir + "/" + csMoz1File;
  else if(csBrowserType == 7)
	dir += csIncludeDir + "/" + csIE7File;
  else if(csBrowserType == 8)
	dir += csIncludeDir + "/" + csIE8File;
  else
	dir += csIncludeDir + "/" + csFallBackFile;
dir += "\"></script>";
document.write(dir);
// -----------------------------------------------------------------------------------------
function MakAyuda(titulo,nombre) {
  document.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\" height=\"10\"><tr>");
  document.write("<td valign=\"center\"  class=\"OpcTopMenu\" nowrap=\"nowrap\">"+titulo+"<td>");
  document.write("<td valign=\"center\" align=\"right\">");
  document.write("<img style=\"CURSOR: hand\" onclick=\"javascript:ScrAyuda('"+nombre+"')\" height=\"16\" alt=\"Ayuda/Informacin de la Pgina\" src=\"/acad11.net/images/help.gif\" border=\"0\"/>");
  document.write("</td></tr></table>");
}
function ScrAyuda(pagina) {
  pagina = pagina+'.htm';
  window.showModalDialog(pagina,pagina,'dialogHeight:480px;dialogWidth:640px;center');
}
// -----------------------------------------------------------------------------------------
function Popup(page) {
  OpenWin = this.open(page, 'PopupWindow', '');
}
// -----------------------------------------------------------------------------------------
function ZEdificioCodigo(tipo) {
  window.open('/acad11.net/zoom/ZoomEdificioCodigo.aspx?tipo=' + tipo,'EdificioCodigo','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------
function ZAulaCodigo(tipo) {
  window.open('/acad11.net/zoom/ZoomAulaCodigo.aspx?tipo=' + tipo,'AulaCodigo','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------
function ZEmpleadoCodigo(tipo) {
  window.open('/acad11.net/zoom/ZoomEmpleadoCodigo.aspx?tipo=' + tipo,'EmpleadoCodigo','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------
function ZAsignaturaCodigo(tipo) {
  window.open('/acad11.net/zoom/ZoomAsignaturaCodigo.aspx?tipo=' + tipo,'AsignaturaCodigo','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------
function ZEstudianteMatricula(tipo) {
  window.open('/acad11.net/zoom/ZoomEstudianteMatricula.aspx?tipo=' + tipo,'EstudianteMatricula','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------
function ZCargoCodigo(tipo) {
  window.open('/acad11.net/zoom/ZoomCargoCodigo.aspx?tipo=' + tipo,'CargoCodigo','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------
function ZDepeCodigo(tipo) {
  window.open('/acad11.net/zoom/ZoomDepeCodigo.aspx?tipo=' + tipo,'DepeCodigo','width=700px,height=500px,help=no,resizable=no,status=yes,scrollbars=yes');
}
// -----------------------------------------------------------------------------------------

