// JavaScript Document var FFN_NS = {}; // Global variables var gDivID = 'FFN_imBox'; var gDelay = 5; var ruta_link = "http://www.videochatxadultos.com/?usr=robertunno&track=Goce"; var swf_url = "http://www.videochatxadultos.com/"; var swf_usr = "robertunno"; var swf_track = "Goce"; // Css data var css = 'position:fixed;'; var html_code = ''; // Build banner if(document.all && window.XMLHttpRequest && !window.opera){ if( ( window.document.childNodes[0].text == undefined ) || ( window.document.childNodes[0].text.search(/DOCTYPE\s+HTML\s+PUBLIC.+\.dtd/i) == -1) ){ css = 'position:absolute; top:expression( eval( document.compatMode && document.compatMode == \'CSS1Compat\' ) ? documentElement.scrollTop + (documentElement.clientHeight-this.clientHeight) : document.body.scrollTop + ( document.body.clientHeight-this.clientHeight ) ); '; } } if(document.all && !window.XMLHttpRequest){ css = 'position:absolute; top:expression( eval( document.compatMode && document.compatMode == \'CSS1Compat\' ) ? documentElement.scrollTop + (documentElement.clientHeight-this.clientHeight) : document.body.scrollTop + ( document.body.clientHeight-this.clientHeight ) ); '; } // gcjk vars var ancho=280; var alto =160; html_code += '
'; // gcjk replace var country= 'Estados Unidos'; html_code=html_code.replace('{__pais__}', country); // do link do { html_code = html_code.replace('{link}',ruta_link); } while(html_code.indexOf('{link}') >= 0); // do url do { html_code = html_code.replace('{__swf_url__}',swf_url); } while(html_code.indexOf('{__swf_url__}') >= 0); // do usr do { html_code = html_code.replace('{__swf_usr__}',swf_usr); } while(html_code.indexOf('{__swf_usr__}') >= 0); // do track do { html_code = html_code.replace('{__swf_track__}',swf_track); } while(html_code.indexOf('{__swf_track__}') >= 0); document.write(html_code); phmg_delay(gDelay); //--[Functions]-----------------------------------------------------------------// var phmg_timer; var phmg_btn_elm = document.getElementById('FFN_btn_close'); phmg_btn_elm.onclick = function (){ phmg_move(gDivID,'down'); return false; } function phmg_delay(sec){ sec = sec || 0; phmg_timer = setTimeout('phmg_checkCookie()',1000 * sec); } function phmg_checkCookie(){ var ck=null; if(!ck){ phmg_move(gDivID); }else{ clearTimeout(phmg_timer); } } function phmg_move(elmID,direction){ var supported = (document.getElementById); if (!supported){ return; } var divPath = document.getElementById(elmID); var currPos = parseInt(divPath.style.top); var holderDisplay = document.getElementById('FFN_imBox_Container'); holderDisplay.style.display = ''; if(direction === 'down'){ x = divPath.offsetHeight; if(currPos <= x){ currPos += (currPos + 5) > x? ( (x - currPos) +1 ):5; divPath.style.top = currPos + 'px'; phmg_timer = setTimeout("phmg_move('" + elmID + "','down')",30); }else{ // Antimation completed clear timeout clearTimeout(phmg_timer); holderDisplay.style.display = 'none'; } }else{ x = 0; if(currPos > x){ currPos -= currPos < 5? currPos:5; divPath.style.top = currPos + 'px'; phmg_timer = setTimeout("phmg_move('" + elmID + "','')",30); }else{ // Antimation completed clear timeout clearTimeout(phmg_timer); } } } //--End--//