function isIE() { return (navigator.userAgent.indexOf("MSIE") != -1) && (navigator.userAgent.indexOf("Opera") == -1); } function isIE6() { return (navigator.userAgent.indexOf("MSIE 6.0") != -1) ; } if(typeof(floater_link)=="undefined"||!floater_link) { floater_link='http://enter.brazzersnetwork.com/track/Mzk5MTQ1Ojc6NDE/'; } if(typeof(floater_img)=="undefined"||!floater_img) { if(typeof(floater_nsfw)!="undefined"&&floater_nsfw) { var randProfile = (Math.round(Math.random() * 5 ) + 1); floater_img='http://static.brazzers.com/ads/flv_for_popup/tits/'+pic[randProfile]; var profiles = new Array() var profile_name = new Array(); profiles[1] = 1184613; profile_name[1] = "Brazzers"; profiles[2] = 1185090; profile_name[2] = "Brazzers"; profiles[3] = 1192092; profile_name[3] = "Brazzers"; profiles[4] = 1191679; profile_name[4] = "Brazzers"; profiles[5] = 1191700; profile_name[5] = "Brazzers"; profiles[6] = 1191762; profile_name[6] = "Brazzers"; floater_link = floater_link + '?id='+profiles[randProfile]; var floater_title = ' Now Playing At ' + profile_name[randProfile]; if(typeof(floater_content)=="undefined"||!floater_content) { var deftexts=[]; deftexts[0]='text here'; deftexts[1]='text here'; deftexts[2]='text here'; deftexts[3]='text here'; deftexts[4]='text here'; deftexts[5]='text here'; deftexts[6]='text here'; deftexts[7]='text here'; deftexts[8]='text here'; floater_content=deftexts[(Math.floor(Math.random()*deftexts.length))]; } } else { var randProfile = (Math.round(Math.random() * 5 ) + 1); var profiles = new Array() var profile_name = new Array(); var pic = new Array(); profiles[1] = 1185090; profile_name[1] = "Now Playing At Brazzers"; pic[1] = '1-100.swf'; profiles[2] = 1191891; profile_name[2] = "Now Playing At Brazzers"; pic[2] = '2-100.swf'; profiles[3] = 1191679; profile_name[3] = "Now Playing At Brazzers"; pic[3] = '3-100.swf'; profiles[4] = 1192011; profile_name[4] = "Now Playing At Brazzers"; pic[4] = '4-100.swf'; profiles[5] = 1191762; profile_name[5] = "Now Playing At Brazzers"; pic[5] = '5-100.swf'; profiles[6] = 1192092; profile_name[6] = "Now Playing At Brazzers"; pic[6] = '6-100.swf'; floater_img='http://static.brazzers.com/ads/flv_for_popup/tits/'+pic[randProfile]; floater_link = floater_link ; var floater_title = ' Now Playing At Brazzers' ; if(typeof(floater_content)=="undefined"||!floater_content) { var deftexts=[]; deftexts[0]='text here'; deftexts[1]='text here'; deftexts[2]='text here'; deftexts[3]='text here'; deftexts[4]='text here'; deftexts[5]='text here'; deftexts[6]='text here'; floater_content=deftexts[(Math.floor(Math.random()*deftexts.length))]; } } } if(typeof(floater_title)=="undefined"||!floater_title){floater_title='You have (1) new message...';} if(typeof(floater_layout)=="undefined"||!floater_layout){ floater_layout='media.sexinyourcity.com/ads/profiles/msnpopup'; } // start =================================== if (isIE6()) { document.write(''); } if (isIE()) { document.write(''); } else { document.write(''); } // end ===================================== var gp_popup = {}; gp_popup.cookies = {createCookie:function(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); } else { var expires = ""; } document.cookie = name + "=" + value + 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) { createCookie(name, "", -1); }}; gp_popup.createPopup = function() { var str = ''; if (isIE6()) { str += '
'; } else { str += '
'; } str += ' '; str += ' '; str += '
x
'; str += '
'; str += ' '; if (isIE()) { str += '
Click Here To View All!
'; } else { str += '
Click Here To View All!
'; } str += '
'; str += '
'; var popup = document.createElement('div'); popup.id = "im_popupDiv"; popup.name = "popupDiv"; popup.style.height = "115"; var newcontent = document.createElement('div'); newcontent.id = "im_popupFixed"; newcontent.appendChild(popup); popup.innerHTML = str; var scr = document.getElementById('popupJS'); scr.parentNode.insertBefore(newcontent, scr); }; gp_popup.animatePopup = function() { var pos = parseInt(this.myWin.style.top); this.myWin.style.display = "block"; if (pos > (0)) { var newpos = pos - 5 > 0 ? pos - 5 : 0; this.myWin.style.top = newpos + 'px'; if (newpos > 0) { var w1 = setTimeout('gp_popup.animatePopup()', 30); } } else { clearTimeout(w1); } }; // start =================================== gp_popup.animatePopupIE = function() { if (!this.alreadyStarted) { this.myWin.style.display = "block"; this.alreadyStarted = true; } var pos = parseInt(this.myWin.style.top); var viewHeight = 0; if (document.documentElement && document.documentElement.clientHeight) { viewHeight = document.documentElement.clientHeight; } else if (document.body && document.body.clientHeight) { viewHeight = document.body.clientHeight; } var scroll = 0; if (document.body && document.body.scrollTop) { scroll = document.body.scrollTop; } else if (document.documentElement && document.documentElement.scrollTop) { scroll = document.documentElement.scrollTop; } var popupObj = document.getElementById('im_popupFixed'); if (popupObj) { if (popupObj.offsetHeight + popupObj.offsetTop > viewHeight) { popupObj.style.top = (viewHeight - popupObj.offsetHeight) + 'px'; } } var step = Math.abs(pos - scroll) / 5; var newpos = pos; if (pos > scroll) { newpos = pos - step > scroll ? pos - step : scroll; } else { newpos = pos + step < scroll ? pos + step : scroll; } this.myWin.style.top = newpos + 'px'; setTimeout('gp_popup.animatePopupIE()', 30); } // end ===================================== gp_popup.closePopup = function() { var divBG = document.getElementById('im_popupDiv'); divBG.style.display = 'none'; gp_popup.cookies.createCookie('flc_1', '1', 1); return false; }; if (!gp_popup.cookies.readCookie('flc_1')) { gp_popup.createPopup(); gp_popup.myWin = document.getElementById('im_popupDiv'); gp_popup.myWin.style.top = gp_popup.myWin.style.height; // start =================================== if (isIE()) { gp_popup.animatePopupIE(); } else { gp_popup.animatePopup(); } // end ===================================== var x_close = document.getElementById('im_close'); x_close.onclick = function() { gp_popup.closePopup(); return false; }; }