/*
 * FOXPopup - El mejor popup javascript
 * Copyright (C) 2007-2008 Romel Ramos
 *
 * Versión: 20080604015647
 * Web: http://www.foxrom.com/
 * Email: foxrom@foxrom.com
 *
 * == BEGIN LICENSE ==
 *
 * Licenciado bajo los términos de cualquiera de las siguientes licencias
 * a su elección:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
 *
 * Script que genera el popup
 *
 * Ejemplo de uso:
 *
 * <input name="boton" type="text" id="boton" onmouseover="if(typeof(FOXPopup_mostrar) ==
 * 'function'){FOXPopup_mostrar('http://www.foxrom.com/','boton');};" onmouseout="if(typeof
 * (FOXPopup_ocultar) == 'function'){FOXPopup_ocultar('about:blank','boton');};"">
 */
 
document.write("<iframe id='FOXPopup_contenedor' name='FOXPopup_contenedor' style='position:absolute; left:0px; top:0px; display:none; z-index: 9999;' height='1' width='1' src='about:blank' frameborder='0' vspace='0' hspace='0' marginwidth='0' marginheight='0' scrolling='no' allowtransparency='true'></iframe>");function FOXPopup_mostrar(pagina_url,elemento_id){var pagina_url = (pagina_url)?pagina_url:'';var elemento_id = (elemento_id)?elemento_id:'';if(document.getElementById("FOXPopup_contenedor")){FOXPopup_contenedor1 = document.getElementById("FOXPopup_contenedor");if(FOXPopup_contenedor1.style.display == ''){FOXPopup_contenedor1.style.display = '';}else{FOXPopup_contenedor1.style.display = '';}FOXPopup(pagina_url,elemento_id);}}function FOXPopup_ocultar(pagina_url,elemento_id){isIE=document.all;var pagina_url = (pagina_url)?pagina_url:'';var elemento_id = (elemento_id)?elemento_id:'';if(document.getElementById('FOXPopup_contenedor')){FOXPopup(pagina_url,elemento_id);FOXPopup_contenedor1 = document.getElementById("FOXPopup_contenedor");if(isIE){FOXPopup_contenedor1.width = 1;FOXPopup_contenedor1.height = 1;}else{FOXPopup_contenedor1.style.width = '1px';FOXPopup_contenedor1.style.height = '1px';}FOXPopup_contenedor1.style.left = '0px';FOXPopup_contenedor1.style.top = '0px';if(FOXPopup_contenedor1.style.display == ''){FOXPopup_contenedor1.style.display = 'none';}else{FOXPopup_contenedor1.style.display = 'none';}}}function FOXPopup(pagina_url,elemento_id){var pagina_url = (pagina_url)?pagina_url:'';var elemento_id = (elemento_id)?elemento_id:'';var elemento_ok = false;var elemento;var elemento_x = 0;var elemento_y = 0;if(document.getElementById(elemento_id)){elemento = document.getElementById(elemento_id);el = elemento;elemento_x = el.offsetLeft;el = el.offsetParent;while(el) {elemento_x += el.offsetLeft;el = el.offsetParent;}el = elemento;elemento_y = el.offsetTop;el = el.offsetParent;while(el) {elemento_y += el.offsetTop;el = el.offsetParent;}elemento_x = elemento_x;elemento_y = elemento_y + elemento.offsetHeight;elemento_ok = true;}if(document.getElementById("FOXPopup_contenedor")){FOXPopup_contenedor1 = document.getElementById("FOXPopup_contenedor");FOXPopup_contenedor1.style.left = elemento_x + 'px';FOXPopup_contenedor1.style.top = elemento_y + 'px';FOXPopup_contenedor1.src = pagina_url;}}
