// JavaScript Document 
if (top.frames.length!=0) {
 if (window.location.href.replace) top.location.replace(self.location.href);
else
 top.location.href=self.document.href;
}
function setHomepage() {
  var url = 'http://www.hentaiportal.com/';
  if (document.all) {
    document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage(url);
  } else if (document.getElementById) {
    alert('Make this site your Home Page by dragging the link from the address bar onto your Home button.');
  } else if (document.layers) {
    alert('Make this site your Home Page by choosing Navigator from the list on the left in Options Menu.');
  } else {
    alert('Sorry, your browser do not support scripts to set the default Home Page.');
  }
}
function addBookmark() {
  var title = 'Hentai Portal.com - Free Hentai Images Videos Games';
  var url = 'http://www.hentaiportal.com/';
  if (window.sidebar) {
    window.sidebar.addPanel(title,url,'');
  } else if (window.external) {
    window.external.AddFavorite(url,title);
  } else if (window.opera && window.print) {
    alert('Sorry, your Opera browser do not support bookmark scripts. Please press Ctrl+D on keyboard.');
  } else {
    alert('Sorry, your browser do not support bookmark scripts. Please press Ctrl+K on keyboard.');
  }
}
function addSearch() {
  if (window.sidebar) {
    window.external.AddSearchProvider('http://www.hentaiportal.com/search/hpsearch.php');
  } else if (window.external) {
    window.external.AddSearchProvider('http://www.hentaiportal.com/search/hpsearch.php');
  } else if (window.opera && window.print) {
    window.external.AddSearchProvider('http://www.hentaiportal.com/search/hpsearch.php');
  } else {
    alert('Sorry, your browser do not search provider scripts. Please press Ctrl+K on keyboard.');
  }
}
function bookMark() {
 URL = "http://www.addthis.com/bookmark.php?username=function&amp;url=http%3A%2F%2Fwww.hentaiportal.com%2F&amp;title=Hentai+Portal";
 day = new Date();
 id = day.getTime();
 eval("page" + id + " = window.open(URL,'" + id + "','width=640,height=480,toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1');");
}
