// 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");

// LA primera es la normal  y la segunda es la de mantenimiento.
// 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));

    
   
if (is_bb) { 
		window.open("http://www.iest.edu.mx/blackberry/");	
		
	 }else{
	 	//alert("No es iPhone.");
	 	if(is_ipod || is_ipad || is_iphone){
	 		window.location="https://sie.iest.edu.mx/iphone/";		 		
	 	}else{			
			ven_sistema = window.open("https://sie.iest.edu.mx/sie/login/securelogv4.php","sistema","scrollbars=yes,resizable=yes,width=1000,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();

}

 