// JavaScript Document
function sistema()
{
//oldSIE	
//ven_sistema = window.open("https://sie.iest.edu.mx/app/Securelogv2.asp","sistema","scrollbars=yes,resizable=yes,width=1000,height=740");

// Descomentas y comentas para activar. Ignora la oldSIE


var agent=navigator.userAgent.toLowerCase();
var is_iphone = ((agent.indexOf('iphone')!=-1));
var is_ipod = ((agent.indexOf('ipod')!=-1));
var is_ipad = ((agent.indexOf('ipad')!=-1));
var is_bb   = ((agent.indexOf('blackberry')!=-1));
var is_android = ((agent.indexOf('android')!=-1));
var is_mobile   = ((agent.indexOf('mobile')!=-1));
    



     if(is_ipad){
		if(confirm("Deseas utilizar el modo escritorio del SIE?")){
 			location.href="https://sie.iest.edu.mx/sie/login/securelogv4.php";
 			return
 		}else{
 			window.location="https://sie.iest.edu.mx/iphone/";
 			return
 		}
 		
	}
	
     if (is_bb) { 
		window.open("http://www.iest.edu.mx/blackberry/");	
		
	 }else{
	 	//alert("No es iPhone.");
	 	if ((is_ipod || is_iphone) || (is_android && is_mobile)){
	 		window.location="https://sie.iest.edu.mx/iphone/";		 		
	 	}else{			
		
		// LA primera es la normal  y la segunda es la de mantenimiento.
		
			ven_sistema = window.open("https://sie.iest.edu.mx/sie/login/securelogv4.php","sistema","scrollbars=yes,resizable=yes,width=1150,height=740");
			//ven_sistema = window.open("http://www.iest.edu.mx/mantenimiento.php","sistema","scrollbars=yes,resizable=no,width=300,height=150");
			 }
	 }

ven_sistema.focus();

}

function weather()
{
	ven_weather = window.open("weather.php","subWind","scrollbars=no,width=300,height=205");
	ven_weather.focus();

}

 
