//Pop-under window II- By Website Abstraction
//Credit notice must stay intact for use
//Visit http://wsabstract.com for this script

//specify URLs to randomly select from and pop-under
var popunder=new Array()
popunder[0]="http://www.sex-devils.com"

//PopUp Fenster nur einmal pro Browser-Session? (0=nein, 1=ja)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=1

///No editing beyond here required/////

function get_cookie(Name) {
  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 loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))])
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()


<!--
function bild(img_url, img_title, img_width, img_height)
{


  wnd = open("",
             "Bildanzeige",
             "width=" + (img_width + 32) + ",height=" + (img_height + 80) +
             ",innerWidth=" + (img_width + 32) + ",innerHeight=" + (img_height + 80) +
             ",toolbar=0,location=0,directories=0,status=0,menubar=0" +
             ",scrollbars=auto,resizable=yes,dependent")

  var baseadr = location.href
  var lastsl  = location.href.lastIndexOf("\\")
  if(lastsl >= 0)
    baseadr = baseadr.substring(0, lastsl + 1)
  else
  {
    lastsl = location.href.lastIndexOf("")
    if(lastsl >= 0)
      baseadr = baseadr.substring(0, lastsl + 1)
  }
  with(wnd.document)
  {
    open("text/html")
    writeln("<HTML>")
    writeln("<HEAD><TITLE>" + img_title + "</TITLE>") 
    writeln("<BASE HREF=\"" + baseadr + "\"></HEAD>")
    writeln("<BODY BGCOLOR=white onload=\"clickIE()\" marginheight='0' topmargin='0' marginwidth='0'>")
    writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=4 WIDTH=\"100%\" HEIGHT=\"100%\">")
    writeln("<TR><TD ALIGN=CENTER VALIGN=MIDDLE><IMG SRC=\"" + img_url +
            "\" WIDTH=" + img_width +
            " HEIGHT=" + img_height +
            " HSPACE=0 VSPACE=0 ALT=\"" + img_title + "\"></TD></TR>")
    write("<TR><TD ALIGN=center VALIGN=BOTTOM><BIG><STRONG>")
    write("<A HREF=\"javascript:self.close()\"><font face='verdana' size='2' color='#000000'><center>Fenster schliessen</font></A></center>")
    writeln("</STRONG></BIG></TD></TR>")
    writeln("</TABLE>")
    writeln("</BODY></HTML>")
    close()
  }
  wnd.focus()
} 





