/* * OptInOver(TM) code generated by PopUpMaster Pro from * http://popupmaster.com * Copyright (c)2003, Steve Shaw, takanomi.com */ var ns_oio = document.layers || navigator.userAgent.toLowerCase().indexOf("mac") != -1; var ns6_oio = (!document.all && document.getElementById) ? true : false; var debug = false; if (ns6_oio && !debug) { document.write('
'); } // grey table with rounded corners " var message_oio=''; // top message_oio+=''; message_oio+=' '; message_oio+=' '; message_oio+=' '; message_oio+=''; // middle message_oio+=''; message_oio+=''; message_oio+=' '; message_oio+=' '; message_oio+=''; // bottom message_oio+=''; message_oio+=' '; message_oio+=' '; message_oio+=' '; message_oio+=''; message_oio+='
'; message_oio+=''; // main content message_oio+=""; message_oio+='
'; // define string to be searched var text = '

\"Get

'+ ''; // define search pattern var pattern = /(<\/div>|<\/p>|]*>)\$/; // search and return result if(text.search(pattern) == -1) { text+='
'; } message_oio += '' + text + ''; if (debug) { message_oio += 'debug'; } message_oio+='
'; message_oio+='
'; message_oio+="
"; message_oio+=" Your name:

"; message_oio+=" Your email:

"; message_oio+="
"; message_oio+=" "; message_oio+=' '; message_oio+=' '; message_oio+=' '; message_oio+=" "; message_oio+=" "; message_oio+="

"; message_oio+="
"; message_oio+="
"; message_oio+="
"; message_oio+="Remember, your privacy is safe!
"; // end of main content message_oio+='
'; message_oio+='
'; message_oio+=' '; message_oio+=' '; message_oio+='
'; var title_oio = 'FREE: Get funny pics by e-mail!'; var responder_oio = 'funguppy_3_pics_a_week'; var confirmation_page_oio = ''; var IE_oio = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0; // IE hack if(IE_oio) { var WCH_Constructor = function() { // exit point for anything but IE5.0+/Win if ( !(document.all && document.getElementById && !window.opera && navigator.userAgent.toLowerCase().indexOf("mac") == -1) ) { this.Apply = function() {}; this.Discard = function() {}; return; } // private properties var _bIE55 = false; var _bIE6 = false; var _oRule = null; var _bSetup = true; var _oSelf = this; // public: hides windowed controls this.Apply = function(vLayer, vContainer, bResize) { if (_bSetup) _Setup(); if ( _bIE55 && (oIframe = _Hider(vLayer, vContainer, bResize)) ) { oIframe.style.visibility = "visible"; } else if(_oRule != null) { _oRule.style.visibility = "hidden"; } }; // public: shows windowed controls this.Discard = function(vLayer, vContainer) { if ( _bIE55 && (oIframe = _Hider(vLayer, vContainer, false)) ) { oIframe.style.visibility = "hidden"; } else if(_oRule != null) { _oRule.style.visibility = "visible"; } }; // private: returns iFrame reference for IE5.5+ function _Hider(vLayer, vContainer, bResize) { var oLayer = _GetObj(vLayer); var oContainer = ( (oTmp = _GetObj(vContainer)) ? oTmp : document.getElementsByTagName("body")[0] ); if (!oLayer || !oContainer) return; // is it there already? var oIframe = document.getElementById("WCHhider" + oLayer.id); // if not, create it if ( !oIframe ) { // IE 6 has this property, IE 5 not. IE 5.5(even SP2) crashes when filter is applied, hence the check var sFilter = (_bIE6) ? "filter:progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);" : ""; // get z-index of the object var zIndex = oLayer.style.zIndex; if ( zIndex == "" ) zIndex = oLayer.currentStyle.zIndex; zIndex = parseInt(zIndex); // if no z-index, do nothing if ( isNaN(zIndex) ) return null; // if z-index is below 2, do nothing (no room for Hider) if (zIndex < 2) return null; // go one step below for Hider zIndex--; var sHiderID = "WCHhider" + oLayer.id; oContainer.insertAdjacentHTML("afterBegin", ''); oIframe = document.getElementById(sHiderID); // then do calculation _SetPos(oIframe, oLayer); } else if (bResize) { // resize the iFrame if asked _SetPos(oIframe, oLayer); } return oIframe; }; // private: set size and position of the Hider function _SetPos(oIframe, oLayer) { // fetch and set size oIframe.style.width = oLayer.offsetWidth + "px"; oIframe.style.height = oLayer.offsetHeight + "px"; // move to specified position oIframe.style.left = oLayer.offsetLeft + "px"; oIframe.style.top = oLayer.offsetTop + "px"; }; // private: returns object reference function _GetObj(vObj) { var oObj = null; switch( typeof(vObj) ) { case "object": oObj = vObj; break; case "string": oObj = document.getElementById(vObj); break; } return oObj; }; // private: setup properties on first call to Apply function _Setup() { _bIE55 = (typeof(document.body.contentEditable) != "undefined"); _bIE6 = (typeof(document.compatMode) != "undefined"); if (!_bIE55) { if (document.styleSheets.length == 0) document.createStyleSheet(); var oSheet = document.styleSheets[0]; oSheet.addRule(".WCHhider", "visibility:visible"); _oRule = oSheet.rules(oSheet.rules.length-1); } _bSetup = false; }; }; //var WCH = new WCH_Constructor(); var WCH_Null = function() { this.Apply = function() {}; this.Discard = function() {}; return; } var WCH = new WCH_Null(); } var cookie_oio="GRpopupfunguppy3picsaweek18548"; var drag_oio= false, x_oio, y_oio, a_oio, b_oio; var old_event_handler = new Array; function move(e) { if (drag_oio) { left_oio = ns6_oio ? a_oio + e.clientX - x_oio : a_oio + event.clientX-x_oio; optinover.style.left = left_oio + "px"; top_oio = ns6_oio ? b_oio + e.clientY - y_oio : b_oio + event.clientY - y_oio - document.body.scrollTop; optinover.style.top = top_oio + (ns6_oio ? 0 : document.body.scrollTop) + "px"; shadow.style.left = left_oio + 0; shadow.style.top = top_oio+(ns6_oio ? 0 : document.body.scrollTop) + 0; if (IE_oio) WCH.Apply("optinover", null, true); return false; } } function drags_oio(e) { if (!document.all && !ns6_oio) { return; } var obj_oio = ns6_oio ? e.target : event.srcElement; var topelement = ns6_oio ? "HTML" : "BODY"; while (obj_oio.tagName != topelement && obj_oio.className != "draggable_oio") { obj_oio = ns6_oio ? obj_oio.parentNode : obj_oio.parentElement; } if (obj_oio.className == "draggable_oio") { drag_oio = true; a_oio = parseInt(optinover.style.left + 0); b_oio = parseInt(optinover.style.top + 0); x_oio = ns6_oio ? e.clientX : event.clientX; y_oio = ns6_oio ? e.clientY : event.clientY; document.onmousemove = move; return false; } } function stop_drag_oio() { drag_oio = false; document.onmousemove = old_event_handler["onmousemove"]; } if (!ns_oio) { old_event_handler["onmousemove"] = document.onmousemove; old_event_handler["onclick"] = document.onclick; old_event_handler["onmouseup"] = document.onmouseup; old_event_handler["onmousedown"] = document.onmousedown; document.onmousedown = drags_oio; document.onmouseup = stop_drag_oio; //document.onmouseup = new Function("drag_oio=false;"); } function create_oio(doc) { d_oio = (doc ? doc : document); d_oio.write(''); d_oio.write('
'); return true; } function create_ns_oio() { } if(getcookie_oio(cookie_oio) == "") { if(ns_oio) { create_ns_oio(); } else { //alert("oio:create"); create_oio(); } } var id_oio,d_oio,optinover,shadow,height_oio,left_oio,top_oio; var top_distance = 500; var left_distance = 500; function var_oio() { id_oio = "optinover"; d_oio = document; optinover = d_oio.getElementById ? d_oio.getElementById(id_oio) : d_oio.all[id_oio]; shadow = d_oio.getElementById ? d_oio.getElementById("shadow") : d_oio.all["shadow"]; b = (typeof(window.innerWidth) == 'number') ? window.innerWidth : (document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : (document.body && document.body.clientWidth ? document.body.clientWidth : 800)); left_oio = left_distance; top_oio = top_distance; } if(!ns_oio && getcookie_oio(cookie_oio) == "") { var_oio(); repos_oio(); } function repos_oio() { if(ns6_oio) { optinover.style.top = top_oio + window.pageYOffset + "px"; shadow.style.top = top_oio + window.pageYOffset + 0; optinover.style.height = document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("height"); shadow.style.height = document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("height"); shadow.style.width = document.defaultView.getComputedStyle(document.getElementById("optinoverTable"), "").getPropertyValue("width"); } else { optinover.style.top = top_oio + d_oio.body.scrollTop + "px"; shadow.style.height = optinover.offsetHeight; shadow.style.top = (top_oio * 1 + 0 * 1) + d_oio.body.scrollTop; shadow.style.width = optinover.style.width; } optinover.style.left = left_oio + "px"; shadow.style.left = left_oio + 0; } function hide_oio() { if(optinover.style.left.substring(0, optinover.style.left.length - 2) < screen.width && !ns6_oio) { optinover.style.left=optinover.style.left.substring(0, optinover.style.left.length - 2) * 1 + 20; shadow.style.left=shadow.style.left.substring(0 ,shadow.style.left.length - 2) * 1 + 20; setTimeout("hide_oio()", 10); } else { optinover.style.visibility = 'hidden'; shadow.style.visibility = 'hidden'; window.scrollBy(0,1); if (!ns6_oio) { setTimeout('window.document.body.onscroll=null;', 2000); } optinover.style.left = 0; } if (IE_oio) WCH.Apply("optinover", null, true); } function mail_oio() { if(ns_oio) { document.mailer.subscribe.click(); } else { window.location = "mailto:?body=N/A - to use, select 'Show email' below"; } } function show_ns_oio() { message_oios = message_oio.split("