var mie7 = false; hizo_close = false; if( navigator.appVersion.indexOf('MSIE') != -1 ) { var cuptempVar = navigator.appVersion.split("MSIE"); if( parseFloat(cuptempVar[1]) < 7 ) mie7 = true; } function closeCupido() { document.getElementById('div_cupidored1').style.display = 'none'; hizo_close = true; } function openCupido() { if( !hizo_close) { window.open('http://www.cupidored.com/buscar/?buscador_contactos_tipo=h&buscador_busqueda_tipo=m&buscador_contactos_busqueda_paises_id=&buscador_contactos_busqueda_regiones_id=&buscador_contactos_busqueda_ciudades_id=&buscador_contactos_busqueda_edades=0&buscador_filtros_foto=1&buscar.x=51&buscar.y=17&aff_id=1836'); closeCupido(); } } function cupido_loadEasyWindow() { var cup_windowEasy = document.getElementById('div_cupidored1_window'); var cup_pos = parseInt( cup_windowEasy.style.top ); if( cup_pos > 0 ) { var cup_newpos = cup_pos - 5 > 0 ? cup_pos - 5 : 0; cup_windowEasy.style.top = cup_newpos + 'px'; if( cup_newpos > 0 ) setTimeout('cupido_loadEasyWindow()', 40); } cupidoAw.setAttribute('onclick', 'openCupido()'); cupidoAw.onclick = function() { openCupido(); }; } var cupidoAw = document.createElement('div'); var cupidoAwWindow = document.createElement('div'); with( cupidoAw ) { id = 'div_cupidored1'; style.fontFamily = 'Arial'; style.width = '330px'; style.height = '150px'; style.cursor = 'pointer'; style.position = 'fixed'; style.bottom = '0px'; style.right = '10px'; style.overflow = 'hidden'; style.zIndex = '1000'; } with( cupidoAwWindow ) { id = 'div_cupidored1_window'; style.position = 'relative'; style.top = '150px'; style.width = '330px'; style.height = '150px'; style.overflow = 'hidden'; style.backgroundImage = "url(http://www.cupidored.com/img/banner-flotante-2.png)"; } if( mie7) { cupidoAwWindow.style.backgroundImage = "none"; cupidoAwWindow.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://www.cupidored.com/img/banner-flotante-2.png', sizingMethod='image' )"; } function banner_msn() { document.body.appendChild(cupidoAw); cupidoAw.appendChild(cupidoAwWindow); document.getElementById('div_cupidored1_window').innerHTML = '
ARISZ
ARISZ
18 años
'; document.getElementById('cup_boton_aceptar_invitacion').onmouseover = function() { // document.getElementById('cup_boton_aceptar_invitacion').style.backgroundColor = '#666'; // document.getElementById('cup_boton_aceptar_invitacion').style.color = '#fff'; }; document.getElementById('cup_boton_aceptar_invitacion').onmouseout = function() { // document.getElementById('cup_boton_aceptar_invitacion').style.backgroundColor = '#ccc'; // document.getElementById('cup_boton_aceptar_invitacion').style.color = '#000'; }; if ( mie7 || ( ( document.firstChild.tagName != '!' || document.firstChild.nodeValue.match('4.01 Transitional') ) && !navigator.userAgent.match('(Safari|Firefox)') ) ) { document.getElementById('div_cupidored1').style.position = 'absolute'; var is_Netscape = navigator.appName.indexOf("Netscape")!= -1; function cup_positionEasyWindow() { var divBG = document.getElementById('div_cupidored1'); divBG.style.top = ( cup_getScrollTop() + cup_getWindowHeight() - 150 ) + 'px'; divBG.style.left = ( cup_getScrollLeft() + cup_getWindowWidth() - 330 - 10 ) + 'px'; } function cup_getScrollLeft() { var cup_posLeft = false; if( is_Netscape ) cup_posLeft = window.pageXOffset; else if( document.documentElement && document.documentElement.scrollTop ) cup_posLeft = document.documentElement.scrollLeft; else if( document.body ) cup_posLeft = document.body.scrollLeft; return typeof cup_posLeft == 'number' ? cup_posLeft : 0; } function cup_getScrollTop() { var cup_posTop = false; if (window.innerHeight) cup_posTop = window.pageYOffset; else if( document.documentElement && document.documentElement.scrollTop ) cup_posTop = document.documentElement.scrollTop; else if( document.body ) cup_posTop = document.body.scrollTop; return typeof cup_posTop == 'number' ? cup_posTop : 0; } function cup_getWindowHeight() { if( typeof window.innerHeight == 'number' ) { var cup_winH = window.innerHeight; if( window.scrollMaxX > 0 ) cup_winH -= 17; return cup_winH; } else if ( document.documentElement.clientHeight) { return document.documentElement.clientHeight; } else if( typeof document.body.clientHeight == 'number' ) { return document.body.clientHeight; }; } function cup_getWindowWidth() { if( typeof window.innerWidth == 'number' ) { var cup_winW = window.innerWidth; if( window.scrollMaxY > 0 ) cup_winW -= 17; return cup_winW; } else if ( document.documentElement.clientWidth ) { return document.documentElement.clientWidth; } else if( document.body && document.body.clientWidth ) { return document.body.clientWidth; }; } function cup_addOnResizeEvent( cup_func ) { if( typeof window.onresize != 'function' ) { window.onresize = cup_func; } else { var cup_temp = window.onresize; window.onresize = function() { cup_temp(); cup_func(); } } } function cup_addOnScrollEvent( cup_func ) { if( typeof window.onscroll != 'function' ) { window.onscroll = cup_func; } else { var cup_temp = window.onscroll; window.onscroll = function() { cup_temp(); cup_func(); } } } cup_addOnScrollEvent( cup_positionEasyWindow ); cup_addOnResizeEvent( cup_positionEasyWindow ); cup_positionEasyWindow(); }; cupido_loadEasyWindow(); } function addLoadListener(fn){ if(typeof window.addEventListener !='undefined') { window.addEventListener('load',fn,false); } else if(typeof document.addEventListener !='undefined') { document.addEventListener('load',fn,false); } else if(typeof window.attachEvent !='undefined') { window.attachEvent('onload',fn); } else { var oldfn=window.onload if(typeof window.onload !='function') { window.onload=fn; } else { window.onload=function(){oldfn();fn();} } } } addLoadListener(banner_msn);