
//Pop-under window- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script

pops = new Array()
var n = 0

//tentacle-themed movie galleries on hentaiKey

n++ ; pops[n] = "http://hentaikey.com/matrix/199/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/199/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/199/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/199/720/gallery.html"

n++ ; pops[n] = "http://hentaikey.com/matrix/198/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/198/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/198/720/gallery.html"

n++ ; pops[n] = "http://hentaikey.com/matrix/132/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/126/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/114/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/101/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/95/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/94/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/93/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/88/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/82/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/80/720/gallery.html"




//Yuri movie galleries on HentaiKey
n++ ; pops[n] = "http://hentaikey.com/matrix/197/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/197/720/gallery.html"

n++ ; pops[n] = "http://hentaikey.com/matrix/196/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/102/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/197/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/197/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/197/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/197/720/gallery.html"

// Misc movie galleries

n++ ; pops[n] = "http://hentaikey.com/matrix/188/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/187/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/175/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/173/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/170/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/165/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/164/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/163/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/162/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/156/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/147/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/138/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/120/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/118/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/104/720/gallery.html"





// Movie galleries on HentaiKey



n++ ; pops[n] = "http://hentaikey.com/matrix/74/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/75/720/gallery.html"

n++ ; pops[n] = "http://hentaikey.com/matrix/80/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/81/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/82/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/86/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/88/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/89/720/gallery.html"

n++ ; pops[n] = "http://hentaikey.com/matrix/90/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/91/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/92/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/94/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/96/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/97/720/gallery.html"


n++ ; pops[n] = "http://hentaikey.com/matrix/107/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/109/720/gallery.html"

n++ ; pops[n] = "http://hentaikey.com/matrix/112/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/113/720/gallery.html"
n++ ; pops[n] = "http://hentaikey.com/matrix/115/720/gallery.html"


var k = Math.ceil(Math.random()*n)


//specify page to pop-under
//var popunder="http://hentaikey.com/matrix/" + pops[k] + "/720/gallery.html"
var popunder=pops[k]

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=960,height=1044,scrollbars=1,resizable=1,toolbar=0,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//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,"",winfeatures)
win2.blur()
window.focus()
}

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


