// JavaScript Document
<!--
// PRELOADING IMAGES
if (document.images) {
 img0_on =new Image();  img0_on.src ="images/forex_nv_inicio_on.gif"; 
 img0_off=new Image();  img0_off.src="images/forex_nv_inicio_off.gif"; 

 img1_on =new Image(); img1_on.src ="images/forex_nv_educacion_on.gif"; 
 img1_off=new Image(); img1_off.src="images/forex_nv_educacion_off.gif"; 

 img2_on =new Image(); img2_on.src ="images/forex_nv_alianzas_on.gif"; 
 img2_off=new Image(); img2_off.src="images/forex_nv_alianzas_off.gif"; 

 img3_on =new Image(); img3_on.src ="images/forex_nv_cuentaforex_on.gif"; 
 img3_off=new Image(); img3_off.src="images/forex_nv_cuentaforex_off.gif"; 

 img4_on =new Image(); img4_on.src ="images/forex_nv_mti4_on.gif"; 
 img4_off=new Image(); img4_off.src="images/forex_nv_mti4_off.gif"; 

 img5_on =new Image(); img5_on.src ="images/forex_nv_sobremti_on.gif"; 
 img5_off=new Image(); img5_off.src="images/forex_nv_sobremti_off.gif"; 

 img6_on =new Image(); img6_on.src ="images/forex_nv_soporte_on.gif"; 
 img6_off=new Image(); img6_off.src="images/forex_nv_soporte_off.gif"; 
}

function movr(k) {
 if (document.images) 
  eval('document.img'+k+'.src=img'+k+'_on.src');
}

function mout(k) {
 if (document.images) 
  eval('document.img'+k+'.src=img'+k+'_off.src');
}

function handleOver() {
 if (document.images) 
  document.imgName.src=img_on.src;
}

function handleOut() {
 if (document.images) 
  document.imgName.src=img_off.src;
}

function client_login() {
	
	clientSideInclude("login_menu", "components/forms/login.html");
	//document.getElementById("webinar_menu").innerHTML = '<div id="webinar" style="width:200px; position:absolute; top:-10px; left:150px; z-index:2000; background:#ffffff; border:1px solid; border-color:#999999;"><span align="right" id="footer" width="100%"><a href="javascript:close_webinar();">[x]</a></span><br><span class="smalltext">Seminar Signup!</span></div>';
	document.getElementById("login_menu").style.visibility="visible";
	new Effect.Appear("login_menu",{duration:.9});
}
function close_client_login() {
	new Effect.Fade("login_menu",{duration:.9});
	//document.getElementById("login_menu").innerHTML = null;
	//document.getElementById("login_menu").style.visibility="hidden";
}
function clientSideInclude(id, url) {
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) {
  alert("Bad id " + id +
   "passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }
}