
		var vers=0
		if ((window.navigator.appName.indexOf("Netscape")==0) & (window.navigator.appVersion.substring(0,1)>"3"))
		 vers=1;
		else { 
		if ((window.navigator.appName.indexOf("Microsoft")==0) & (window.navigator.appVersion.substring(0,1)>="3"))
		  vers=1; 
		else 
		     alert("  Para poder visualizar correctamente este sitio, se recomienda que actualice su navegador a una versión 4.0. o superior. \n  This site is better viewed with a higher browser version, Please update your browser to version 4.0 or higher.");
         }

	function checkIt(){
		window.open('http://www.banamexusa.com/leaving.html','newWin','width=550,height=150,toolbars=no,scrollbars=no,status=no,location=no,resizeable=no');
	}

	 function showWarning(url){
	//content creation
	var content = new Array();
        var index = 0;
	
	switch(url) {
		case "e_alert": //English alert
			//content[index++] = 'Beginning January 1, 2010 Banamex USA will no longer participate in the FDIC\'s Transaction Account Guarantee Program.   Thus, after December 31, 2009, funds held in noninterest-bearing transaction accounts will no longer be guaranteed in full under the Transaction Account Guarantee Program, but will be insured up to $250,000 under the FDIC\'s general deposit insurance rules.';
			content[index++] = '<em>Banamex USA has chosen not to participate in the FDIC’s Transaction Account Guarantee Program. Customers of Banamex USA with noninterest-bearing transaction accounts will continue to be insured for up to $250,000 under the FDIC’s general deposit insurance rules.</em>';
			content[index++] = '<br /><br /><br />';
			content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">close</a></div></div>';
			break;
		case "s_alert": //Spanish alert
			//content[index++] = '<em>A partir del 1 de enero de 2010, Banamex USA ya no participará en el Programa de Garantía de Cuentas de Operaciones de FDIC. Por ello, después del 31 de diciembre de 2009, los fondos que se encuentran en cuentas de operaciones que no devengan intereses, ya no estarán garantizados en su totalidad por el Programa de Garantía de Cuentas de Operaciones, sino que estarán asegurados hasta por $250,000 de conformidad con las reglas generales de seguros de depósitos.</em>';
			content[index++] = '<em>Banamex USA ha optado no participar en el Programa de Garantía de Operaciones de Cuenta del FDIC. Los clientes de Banamex USA con cuentas transaccionales  que no generan intereses continuarán asegurados hasta por $250,000 bajo las normas generales del FDIC que aseguran las cuentas de depósitos.</em>';
			content[index++] = '<br /><br /><br />';
			content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Cerrar</a></div></div>';
			break;
		case "es_alert": // English + Spanish alert
			content[index++] = '<em>Banamex USA has chosen not to participate in the FDIC’s Transaction Account Guarantee Program. Customers of Banamex USA with noninterest-bearing transaction accounts will continue to be insured for up to $250,000 under the FDIC’s general deposit insurance rules.</em>';
			content[index++] = '<br /><br /><br />';			
			content[index++] = '<em>Banamex USA ha optado no participar en el Programa de Garantía de Operaciones de Cuenta del FDIC. Los clientes de Banamex USA con cuentas transaccionales  que no generan intereses continuarán asegurados hasta por $250,000 bajo las normas generales del FDIC que aseguran las cuentas de depósitos.</em>';
			content[index++] = '<br /><br /><br />';
			content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Close / Cerrar</a></div></div>';
			break;					
		default: 
			content[index++] = '<span class="header">Third Party Site Disclaimer</span><br />By accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Your financial institution has not approved this as a reliable partner site.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of your financial institution\'s.';
			content[index++] = '<br /><br /><br />';
			content[index++] = '<div align="center"><a href="'+url+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';
			break;
	} // end switch
	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0); //used to make sure that the end user sees the disclaimer.

}

function checkSize()
{
    var width = 800; // Default window width is 800px

    if ( typeof(window.innerWidth) == 'number' ) { width = window.innerWidth; } //Non-IE
    else if ( document.documentElement && ( document.documentElement.clientWidth ) ) { width = document.documentElement.clientWidth; } //IE 6+ in 'standards compliant mode'
    else if ( document.body && ( document.body.clientWidth ) ) { width = document.body.clientWidth; } //IE 4 compatible

    return width;
}

document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:' + (parseInt(checkSize()/2)-175) + 'px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 100000; width:350px; overflow: hidden;"></div>');

function openVideo(file, width, height){
	vidpath = "https://www.banamexusa.com/secure/"+file;
	var newWin = window.open(vidpath,'vidwin','width='+width+',height='+height+',resizable=yes,scrollbars=no,status=yes');
}
