var gpCSS = document.createElement('link'); gpCSS.setAttribute('rel', 'stylesheet'); gpCSS.setAttribute('type', 'text/css'); gpCSS.setAttribute('href', '//promos.fling.com/geo/custom/css/toolbar_long.css'); var gpHtml = '
' + '' + '' + '
' + '' + '' + '
' + '
' + '
' + '' + '

Is looking for some Fun!

' + '_' + '
why r men pigs?
' + '' + '
' + '
' + '
_

Online Now (6)

' + '
' + '
' + '
' + '
' + '
' + '
' +'
' + '
' + '' + '' + '' + '
'; var gpScrollTop = 0; var gpClientHeight = 0; var gpPromo = null; var gpPromoHeight = 27; gpAddLoadEvent(gpInitPromo); // set our interval function gpInitPromo() { if (gp.cookies.readCookie("flc_2")) { return; } document.getElementsByTagName('head')[0].appendChild(gpCSS); var dom_dump = document.createElement('div'); document.body.appendChild(dom_dump); dom_dump.innerHTML = gpHtml; document.getElementById('gp_promo_background').style.display = 'none'; /* if (navigator.appName == 'Microsoft Internet Explorer') { gpPromo = document.getElementById('gp_promo_background'); gpPromo.style.position = "absolute"; setInterval("gpUpdatePosition()", 10); } */ setTimeout("gpShowPromo()", 500); setTimeout("gpToggleBox('gp_chat', 'gp_im_window')", 3000); setTimeout("gpShowNewMsg('gp_new_msg_0')", 6000); setTimeout("gpShowNewMsg('gp_new_msg_1')", 10000); setTimeout("gpShowNewMsg('gp_new_msg_2')", 14000); } function gpShowPromo() { document.getElementById('gp_promo_background').style.display = 'block'; } function gpHidePromo() { document.getElementById('gp_promo_background').style.display = 'none'; gp.cookies.createCookie("flc_2", "1", 1); } // Toggle box function to show/hide popups function gpToggleBox(toggleId, boxId) { clicked = document.getElementById(toggleId); clicked.parentNode.parentNode.style.display = 'block'; // toggle our box var box = document.getElementById(boxId); if (box.style.display == 'block') { box.style.display = 'none'; } else { box.style.display = 'block'; } // set our li format var clicked = document.getElementById(toggleId); if (clicked.style.backgroundColor == '' || clicked.style.backgroundColor == 'transparent') { clicked.style.backgroundColor = '#fff'; } else { clicked.style.backgroundColor = ''; clicked.style.background = "url('//promos.fling.com/geo/custom/images-toolbarlong/fl_toolbar_bg.jpg') repeat-x top"; } } function gpShowNewMsg(msgId) { var msg = document.getElementById(msgId); msg.parentNode.style.visibility = "visible"; setInterval(function() { gpBlinkMsg(msgId) }, 750); } function gpBlinkMsg(msgId) { var msg = document.getElementById(msgId); if (msg.style.backgroundColor == "rgb(255, 255, 255)") { msg.style.backgroundColor = '#ccc'; } else { msg.style.backgroundColor = '#fff'; } } // clear our form function gpClearForm(inputId) { inputId.value = ''; } // redirect to specified link function gpLink() { window.open('https://www.fling.com/enter.php?prg=&id=fbuddy&t=best&ad_id=fl_toolbar&cmp=misc&pg=', '_blank'); } // interval function to reposition ad in IE function gpUpdatePosition() { if (gpScrollTop == document.body.scrollTop && gpClientHeight == document.body.clientHeight) { return; } gpScrollTop = document.body.scrollTop; gpClientHeight = document.body.clientHeight; gpPromo.style.top = (gpClientHeight + gpScrollTop) - gpPromoHeight; } // util to extend existing onload function function gpAddLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } var gp = {}; gp.cookies = { expires: "", createCookie : function(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); gp.cookies.expires = "; expires=" + date.toGMTString(); } else { gp.cookies.expires = ""; } document.cookie = name + "=" + value + gp.cookies.expires + "; path=/"; }, readCookie : function(name) { var nameEQ = name + "="; var ca = document.cookie.split(";"); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while(c.charAt(0) === " ") { c = c.substring(1, c.length); } if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length, c.length); } } return null; }, eraseCookie : function(name) { this.createCookie(name, "", - 1); } };