/*
Popup Window Script
By Website Abstraction (http://wsabstract.com)
Over 200+ free scripts here
*/

var onoff="on"
function openpopup(){
var popurl="http://www.conservativemonitor.com/popup.htm"
var newTop=125     //window.top + (window.height / 2)
var newLeft=225     //window.left + (window.width / 2)
winpops=window.open(popurl,"","width=700,height=90,top="+newTop+",left="+newLeft+",")
window.focus()
}

function get_cookie(Name) {
//this function is used only if you had selected popup to load ONCE per //session
//You may remove this function if variable "onoff" above is set to "off"
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadpopup(){
if (onoff=="on"){
if (get_cookie('alreadypopped')==''){
openpopup()
document.cookie="alreadypopped=yes"
}
}
else
openpopup()
}

loadpopup()