// JavaScript Document
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage2() {
  if (pr) // NS4, IE5
    window.print()
  else if (da && !mac) // IE4 (Windows)
    vbPrintPage()
  else // other browsers
    alert("No soportado por este navegador");
  return false;
}

if (da && !pr && !mac) with (document) {
  writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
  writeln('<' + 'SCRIPT LANGUAGE="VBScript">');
  writeln('Sub window_onunload');
  writeln('  On Error Resume Next');
  writeln('  Set WB = nothing');
  writeln('End Sub');
  writeln('Sub vbPrintPage');
  writeln('  OLECMDID_PRINT = 6');
  writeln('  OLECMDEXECOPT_DONTPROMPTUSER = 2');
  writeln('  OLECMDEXECOPT_PROMPTUSER = 1');
  writeln('  On Error Resume Next');
  writeln('  WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER');
  writeln('End Sub');
  writeln('<' + '/SCRIPT>');
}




function cerrarse(){
 window.close() 
}

function favoritos(){
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
var url="http://www.gamma.edu.py/";
var titulo="Instituto T&eacute;cnico Superior GAMMA";
window.external.AddFavorite(url,titulo);
}
else {
if(navigator.appName == "Netscape") 
alert ("Presione Crtl+D para agregar este sitio en sus Favoritos");
}
}
//*********************************/
//imagen agrandada
//*********************************/
var color_fondo_pop="#CCCCCC" 
var titulo="Imagen o foto agrandada" 

function detectar_existente(obj){
return (typeof obj !="undefined")
}

function pop_img(img_path, popwidth, popheight, descripcion_img){

function posicion(){
izquierda_=(detectar_existente(window.screenLeft))? 
screenLeft+document.body.clientWidth/2-popwidth/2 : 
detectar_existente(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
superior_=(detectar_existente(window.screenTop))? 
screenTop+document.body.clientHeight/2-popheight/2 : 
detectar_existente(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
	if (window.opera){
		izquierda_-=screenLeft
		superior_-=screenTop
	}
}

posicion()
var winattributes='width='+popwidth+',height='+popheight+',scrollbars=yes,resizable=yes,left='+izquierda_+',top='+superior_
var contenido=(color_fondo_pop.indexOf(".")!=-1)? 
'background="'+color_fondo_pop+'"' : 'bgcolor="'+ color_fondo_pop+'"'
	if (typeof pop_ventana=="undefined" || pop_ventana.closed)
		pop_ventana=window.open("","",winattributes)
	else{
		pop_ventana.resizeTo(popwidth, popheight+30)
	}
pop_ventana.document.open()
pop_ventana.document.write('<html><head><title>'+titulo+'</title><link href="http://www.gamma.edu.py/foto.css" rel="stylesheet" type="text/css" /> </head><body '+contenido+'><center> <div class="blurc"> <div class="shadow"> <div class="content"><img src="'+img_path+'"><br><center><span>'+descripcion_img+'</span></center></div> </div></div></center><form> <input type=button value="Cerrar" onclick="javascript:window.close()"> </form> </body></html>')
pop_ventana.document.close()
pop_ventana.focus()
}

function changeBackground(hexNumber) {
    if (document.layers)
        window.document.layers["contentcolumn"].bgColor = hexNumber;
    else if (document.all)
        window.document.all["contentcolumn"].style.background = hexNumber;
}
var backColor = new Array(); //
backColor[0] = '#E7ECF1';
backColor[1] = '#f0f0f0';
backColor[2] = '#FEF5F5';
backColor[3] = '#FFFFFF';

function changeBG(whichColor){
document.bgColor = backColor[whichColor];
}

var max = 20
var min = 10
var normal = 12
function upSize() {
size = parseInt(document.getElementById("innertube").style.fontSize)
if (size != max) {
size = size + 2
}
document.getElementById("innertube").style.fontSize = size + "px"
}

function downSize() {
size = parseInt(document.getElementById("innertube").style.fontSize)
if (size != min) {
size = size - 2
}
document.getElementById("innertube").style.fontSize = size + "px"
}

function restablecer() {
	document.getElementById("innertube").style.fontSize = normal +"px"
	changeBackground('#ffffff');
}
var sdsubmit=1

function pop_img2(img_path2,descripcion_img2){

var winattributes2='toolbar=no,location=no,menubar=no,fullscreen=yes,scrollbars=yes,resizable=yes';
var contenido2=(color_fondo_pop.indexOf(".")!=-1)? 
'background="'+color_fondo_pop+'"' : 'bgcolor="'+ color_fondo_pop+'"'
			pop_ventana2=window.open("","",winattributes2)

pop_ventana2.document.open()
pop_ventana2.document.write('<html><head><title>'+titulo+'</title><link href="http://www.gamma.edu.py/foto.css" rel="stylesheet" type="text/css" /> </head><body '+contenido2+'><center> <div class="blurc"> <div class="shadow"> <div class="content"><img src="'+img_path2+'"><br><center><span>'+descripcion_img2+'</span></center></div> </div></div></center><form> <input type=button value="Cerrar" onclick="javascript:window.close()"> </form> </body></html>')
pop_ventana2.document.close()
pop_ventana2.focus()
}
