var keepstatic=1; //specify whether menu should stay static 0=non static (works only in IE4+)
var menucolor="#000000"; //specify menu color
var submenuwidth=150; //specify sub menus' color
var wm = '';
var HTMLstr = '';


var ie; var ns6; var opr6;
if (document.all)    {n=0;ie=1;ns6=0;fShow="visible";fHide="hidden";}
if (document.getElementById&&!document.all)    {n=0;ie=0;ns6=1;fShow="visible";fHide="hidden";}
if (document.layers) {n=1;ie=0;ns6=0;fShow="show";fHide="hide";}

//Top Nav bar script v2.1- http://www.dynamicdrive.com/dynamicindex1/sm/index.htm

opr6=ie&&navigator.userAgent.indexOf("Opera")!=-1

window.onerror=new Function("return true")
////////////////////////////////////////////////////////////////////////////
// Function Menu()                                                        //
////////////////////////////////////////////////////////////////////////////
rightX = 0;
function Menu()
{
  this.bgColor     = menucolor;
  if (ie) this.menuFont = "bold 12px Arial"; //default font settings. Don't change. Instead, modify stylesheet in sample.htm
  if (n)  this.menuFont = "bold 12px Verdana";
  this.fontColor   = "black";

  this.addItem    = addItem;
  this.addSubItem = addSubItem;
  this.showMenu   = showMenu;
  this.mainPaneBorder = 0;
  this.subMenuPaneBorder = 0;

  this.subMenuPaneWidth = submenuwidth;

  lastMenu = null;

  rightY = 0;
  leftY = 0;
  leftX = 0;

  HTMLstr = "";
  HTMLstr += "<!-- MENU PANE DECLARATION BEGINS -->\n";
  HTMLstr += "\n";
  if (ie||ns6) HTMLstr += "<div id='MainTable'  style='width:100%;position:absolute;top:0;left:0;'>\n";
//  if (n)  HTMLstr += "<layer name='MainTable'>\n";
  HTMLstr += "<table width='100%' bgcolor='"+this.bgColor+"' border='"+this.mainPaneBorder+"'>\n";
  HTMLstr += "<tr>";

  HTMLstr += "<td><font color=#FFFFFF><b>PAYSITES MENU:</b></font>";
  HTMLstr += "</td>";

  if (n) HTMLstr += "<td>&nbsp;";
  HTMLstr += "<!-- MAIN MENU STARTS -->\n";
  HTMLstr += "<!-- MAIN_MENU -->\n";
  HTMLstr += "<!-- MAIN MENU ENDS -->\n";
  if (n) HTMLstr += "</td>";
  HTMLstr += "</tr>\n";
  HTMLstr += "</table>\n";
  HTMLstr += "\n";
  HTMLstr += "<!-- SUB MENU STARTS -->\n";
  HTMLstr += "<!-- SUB_MENU -->\n";
  HTMLstr += "<!-- SUB MENU ENDS -->\n";
  HTMLstr += "\n";
  if (ie||ns6) HTMLstr+= "</div>\n";
//  if (n)  HTMLstr+= "</layer>\n";
  HTMLstr += "<!-- MENU PANE DECALARATION ENDS -->\n";
}

function addItem(idItem, text, hint, location, altLocation)
{
  var Lookup = "<!-- ITEM "+idItem+" -->";
  if (HTMLstr.indexOf(Lookup) != -1)
  {
    alert(idParent + " already exist");
    return;
  }
  var MENUitem = "";
  MENUitem += "\n<!-- ITEM "+idItem+" -->\n";
  if (n)
  {
    MENUitem += "<ilayer name="+idItem+">";
    MENUitem += "<a href='.' class=clsMenuItemNS onmouseover=\"displaySubMenu('"+idItem+"')\" onclick=\"return false;\">";
    MENUitem += "|&nbsp;";
    MENUitem += text;
    MENUitem += "</a>";
    MENUitem += "</ilayer>";
  }
  if (ie||ns6)
  {
    MENUitem += "<td>\n";
    MENUitem += "<div id='"+idItem+"' style='position:relative; font: "+this.menuFont+";'>\n";
    MENUitem += "<a ";
    MENUitem += "class=clsMenuItemIE ";
//    MENUitem += "style='text-decoration: none; font: "+this.menuFont+"; color: "+this.fontColor+"; cursor: hand;' ";
    if (hint != null)
      MENUitem += "title='"+hint+"' ";
    if (location != null)
    {
      MENUitem += "href='"+location+"' ";
      MENUitem += "onmouseover=\"hideAll()\" ";
    }
    else
    {
      if (altLocation != null)
        MENUitem += "href='"+altLocation+"' ";
      else
        MENUitem += "href='.' ";
      MENUitem += "onmouseover=\"displaySubMenu('"+idItem+"')\" ";
      MENUitem += "onclick=\"return false;\" "
    }
    MENUitem += ">";
    MENUitem += "|&nbsp;\n";
    MENUitem += text;
    MENUitem += "</a>\n";
    MENUitem += "</div>\n";
    MENUitem += "</td>\n";
  }
  MENUitem += "<!-- END OF ITEM "+idItem+" -->\n\n";
  MENUitem += "<!-- MAIN_MENU -->\n";

  HTMLstr = HTMLstr.replace("<!-- MAIN_MENU -->\n", MENUitem);
}

function addSubItem(idParent, text, hint, location, linktarget)
{
  var MENUitem = "";
  Lookup = "<!-- ITEM "+idParent+" -->";
  if (HTMLstr.indexOf(Lookup) == -1)
  {
    alert(idParent + " not found");
    return;
  }
  Lookup = "<!-- NEXT ITEM OF SUB MENU "+ idParent +" -->";
  if (HTMLstr.indexOf(Lookup) == -1)
  {
    if (n)
    {
      MENUitem += "\n";
      MENUitem += "<layer id='"+idParent+"submenu' visibility=hide bgcolor='"+this.bgColor+"'>\n";
      MENUitem += "<table border='"+this.subMenuPaneBorder+"' bgcolor='"+this.bgColor+"' width="+this.subMenuPaneWidth+">\n";
      MENUitem += "<!-- NEXT ITEM OF SUB MENU "+ idParent +" -->\n";
      MENUitem += "</table>\n";
      MENUitem += "</layer>\n";
      MENUitem += "\n";
    }
    if (ie||ns6)
    {
      MENUitem += "\n";
      MENUitem += "<div id='"+idParent+"submenu' onmouseout=operahide() style='position:absolute; visibility: hidden; z-index:100; width: "+this.subMenuPaneWidth+"; font: "+this.menuFont+"; top: -300;'>\n";
      MENUitem += "<table border='"+this.subMenuPaneBorder+"' bgcolor='"+this.bgColor+"' width="+this.subMenuPaneWidth+">\n";
      MENUitem += "<!-- NEXT ITEM OF SUB MENU "+ idParent +" -->\n";
      MENUitem += "</table>\n";
      MENUitem += "</div>\n";
      MENUitem += "\n";
    }
    MENUitem += "<!-- SUB_MENU -->\n";
    HTMLstr = HTMLstr.replace("<!-- SUB_MENU -->\n", MENUitem);
  }

  Lookup = "<!-- NEXT ITEM OF SUB MENU "+ idParent +" -->\n";
  if (n)  MENUitem = "<tr><td><a class=clsMenuItemNS title='"+hint+"' href='"+location+"' target='"+linktarget+"'>"+text+"</a><br></td></tr>\n";
  if (ie||ns6) MENUitem = "<tr><td><a class=clsMenuItemIE title='"+hint+"' href='"+location+"' target='"+linktarget+"'>"+text+"</a><br></td></tr>\n";
  MENUitem += Lookup;
  HTMLstr = HTMLstr.replace(Lookup, MENUitem);

}

function showMenu()
{
//  document.alert(HTMLstr);
  document.writeln(HTMLstr);
}

////////////////////////////////////////////////////////////////////////////
// Private declaration
function displaySubMenu(idMainMenu)
{
  var menu;
  var submenu;
  if (n)
  {
    submenu = document.layers[idMainMenu+"submenu"];
    if (lastMenu != null && lastMenu != submenu) hideAll();
    submenu.left = document.layers[idMainMenu].pageX;
    submenu.top  = document.layers[idMainMenu].pageY + 25;
    submenu.visibility = fShow;

    leftX  = document.layers[idMainMenu+"submenu"].left;
    rightX = leftX + document.layers[idMainMenu+"submenu"].clip.width;
    leftY  = document.layers[idMainMenu+"submenu"].top+
      document.layers[idMainMenu+"submenu"].clip.height;
    rightY = leftY;
  } else if (ie||ns6) {
//alert(document.getElementById(idMainMenu+"submenu").id)
    menu = ie? eval(idMainMenu) : document.getElementById(idMainMenu);
    submenu = ie? eval(idMainMenu+"submenu.style") : document.getElementById(idMainMenu+"submenu").style;
    submenu.left = calculateSumOffset(menu, 'offsetLeft');
//    submenu.top  = calculateSumOffset(menu, 'offsetTop') + 30;
    submenu.top  = menu.style.top+23;
    submenu.visibility = fShow;
    if (lastMenu != null && lastMenu != submenu) hideAll();

    leftX  = ie? document.all[idMainMenu+"submenu"].style.posLeft : parseInt(document.getElementById(idMainMenu+"submenu").style.left);
    rightX = ie? leftX + document.all[idMainMenu+"submenu"].offsetWidth : leftX+parseInt(document.getElementById(idMainMenu+"submenu").offsetWidth);

    leftY  = ie? document.all[idMainMenu+"submenu"].style.posTop+
      document.all[idMainMenu+"submenu"].offsetHeight : parseInt(document.getElementById(idMainMenu+"submenu").style.top)+parseInt(document.getElementById(idMainMenu+"submenu").offsetHeight);
    rightY = leftY;
  }
  lastMenu = submenu;
}

function hideAll()
{
  if (lastMenu != null) {lastMenu.visibility = fHide;lastMenu.left = 0;}
}

function calculateSumOffset(idItem, offsetName)
{
  var totalOffset = 0;
  var item = eval('idItem');
  do
  {
    totalOffset += eval('item.'+offsetName);
    item = eval('item.offsetParent');
  } while (item != null);
  return totalOffset;
}

function updateIt(e)
{
  if (ie&&!opr6)
  {
    var x = window.event.clientX;
    var y = window.event.clientY;

    if (x > rightX || x < leftX) hideAll();
    else if (y > rightY) hideAll();
  }
  if (n||ns6)
  {
    var x = e.pageX;
    var y = e.pageY;

    if (x > rightX || x < leftX) hideAll();
    else if (y > rightY) hideAll();
  }
}

function operahide(){
        if (opr6){
        if (!MainTable.contains(event.toElement))
        hideAll()
}
}

if (ie||ns6)
{
  document.body.onclick=hideAll;
  document.body.onscroll=hideAll;
  document.body.onmousemove=updateIt;
}
if (document.layers)
{
  window.captureEvents(Event.MOUSEMOVE);
  window.captureEvents(Event.CLICK);
  window.onmousemove=updateIt;
  window.onclick=hideAll;
}

function showToolbar()
{
// AddItem(id, text, hint, location, alternativeLocation);
// AddSubItem(idParent, text, hint, location, linktarget);

    reg = /wm==([a-zA-Z0-9_]+)/
    arr = reg.exec(document.location.href);
    if (arr) wm = arr[1];
    reg2 = /menu=off/
    if (reg2.test(document.location.href)) return false;

  menu = new Menu();
  menu.addItem("matureid", "Mature", "Best Mature Pay Sites",  null, null);
  menu.addItem("teensid", "Teens", "Best Teens Pay Sites",  null, null);
  menu.addItem("fetishid", "Fetish", "Best Fetish Pay Sites",  null, null);
  menu.addItem("gayid", "Gay", "Best Gay Pay Sites",  null, null);
  menu.addItem("lesbianid", "Lesbian", "Best Lesbian Pay Sites",  null, null);
  menu.addItem("otherid", "Special Offers", "Special Offers",  null, null);

  menu.addSubItem("matureid", "Parental Secrets", "ParentalSecrets.com lets you in the secret world of the family circle. Sex of moms and teenager guys, dads and younger babes - everything can be found on this site",  "http://www.parentalsecrets.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "Moms On Film", "Hardcore mature orgies site. Up to MomsonFilm is a very well-known mature site shoot by amateurs. This is a video site, but it also provides access to other paysite areas where you can find pictures and videos of amateur mature sex as well as pornstar movies. Exlusive content - some moms didn't have sex for years and some are filmed secretly from their husbands. Good models collection",  "http://www1.momsonfilm.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "Moms Hunters", "Reality site from two guys - Jake and Todd. As I was told by their fans, they've created 3 mature reality sites that are very popular now. Though I got some letters saying that the site is bad, but in total votes this site was ahead. They add a new video and photo set every 1-2 weeks",  "http://www.momshunters.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "Home Mature", "How do horny housewives behave when their husbands are away? An experienced housewife can make use of everything. Watch her do it with five dicks. Real mature hardcore",  "http://www.homemature.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "BJ Moms", "Blow Job Moms - a popular mature reality site with two guys hunting for mature ladies and talking them into a blowjob",  "http://www.bjmoms.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "More MILFs", "Hot Moms Id like to Fuck ARE actually fucked like bitches in all imaginable situations. Video members zone has over 200 hours of video. It means that you get 200 video tapes for the price of 1",  "http://www.moremilfs.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "Moms Uniform", "Love amateur mammas dressed in uniform? Thats your site. Hot amateur moms in uniform! Amazing reality site from Jake and Todd",  "http://www.momsuniform.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("matureid", "Milf In Ass", "Amateur moms that you meet everyday in the shops, offices and streets are gangbanged here in all holes! Exclusive content and regular updates guarantee.",  "http://www.milfinass.com/start.php?wm=="+wm, "_blank");



  menu.addSubItem("teensid", "Taste the Babes", "Great teen site with young teen girls. Over 200,000 teen pics will show all 18 y.o. babes from different countries and you ll find hardcore, softcore, fetish!",  "http://tastethebabes.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("teensid", "Teens Magic", "Beautiful young babes stripping, masturbating and doing all kinds of nasty things! Real 18 y.o. girls and real teen sex scenes! Memberszone includes more than 50 models and over 50,000 exlusive teens picture. Really great bonuses for members and good support section! The site rated first by models, support, members section",  "http://TeensMagic.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("teensid", "Dads and Babe", "This site takes the first place among hardcore sites for it's real hardcore content. The whole site is made by a group of men who have a camera a find teen girls to fuck. Members zone has around 40 girls that are mostly 18 - 25 years old and they are fucked by 2-6 guys at once. The site is 100% amateur",  "http://dadsandbabe.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("teensid", "18 Ager", "Hundreds of fresh teen models posing nude, playing with toys and making love. Watch cunte teelies start their adult life!",  "http://18ager.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("teensid", "Teeny Site", "Amazing barely legal teens explore the pleasures of lust and perversity at Teeny Site",  "http://teenysite.com/start.php?wm=="+wm, "_blank");


  menu.addSubItem("fetishid", "Nylon Dot", "Magnificent photo collection of cute girls in pantyhose & stockings. Gigs of quality downloadable videos. All girls are really young and extremely cute.  Frequently updates of members area. Great offers and bonuses for our members",  "http://nylondot.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("fetishid", "Active Toys", "100% exclusive material with fresh teens. watch these depraved girls all their holes with anything that they can find. they look for satisfaktion",  "http://active-toys.net/start.php?wm=="+wm, "_blank");
  menu.addSubItem("fetishid", "Salt Rain", "SaltRain.com - pee and being peed is the moto of this site! All watersports actions are shown here and girls go wild when they see pee",  "http://saltrain.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("fetishid", "Stocking Line", "Beautiful babe in silky stockings posing, making a lesby show or having sex! Ultimate collection for all stockings lovers. Visit this site if you like pantyhose - you won't be dissapointed",  "http://stockingsline.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("fetishid", "Real Dark Fetish", "Unique exclusive content shot just for this site. Large Femdom / BDSM memberszone.",  "http://realdarkfetish.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("fetishid", "Pee On Camera", "Thousands of never seen before photo sets and videos collected over 10 years to your satisfaction!",  "http://www.peeoncamera.com.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("fetishid", "Pee Point", "Pee-loving girls in the most extreme urine perversity action! Gigs of quality golden shower and pee drinking videos!",  "http://www.peepoint.com.com/start.php?wm=="+wm, "_blank");


  menu.addSubItem("gayid", "Guy Defloration", "GuyDefloration.com reveals the secrets of mens first time anal sex. 18 y.o. guys getting ass fucked in front of the camera! Why they do it? Just to get new experience! Exclusive photo and video collection + AMAZING bonuses",  "http://www.guydefloration.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("gayid", "Dads on Film", "Young-on-old gay porn - up to 8 guys fucking and jerking on old men",  "http://www.dadsonfilm.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("gayid", "Gays Army", "It's military men sex life that you always wanted to know something about",  "http://www.gaysarmy.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("gayid", "Gays Diary", "Life stories of teen guys dreaming of sex with men. Gaysdiary will show all their secrets and dreams!",  "http://www.gaysdiary.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("gayid", "Gays Lover", "Gay love is a time bomb and you have no idea when its gonna explode",  "http://www.gayslover.com/start.php?wm=="+wm, "_blank");


  menu.addSubItem("lesbianid", "Lesby Teens", "Big collection of lesbian pictures and videos. Hot lesbian teens licking pussies, masturbating, playing dildos and taking a shower together!",  "http://www.LesbyTeens.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("lesbianid", "Angelas Hunt", "Horny mature lesbian who loves young girl is out for hunt! She finds teen girls and seduces them. Hardcore sex and strap-on dildo action guarantees satisfaction",  "http://www.angelashunt.com/start.php?wm=="+wm, "_blank");

//  menu.addSubItem("otherid", "PornOverview.com", "Your guide in the world of porn",  "http://www.pornoverview.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("otherid", "Loverpass.com", "16+ sites for the price of one",  "http://www.loverpass.com/start.php?wm=="+wm, "_blank");
  menu.addSubItem("otherid", "9 Cents Porn", "9 cents for 1 month access to one paysite. It's as good as it gets!",  "http://www.9centsporn.com/start.php?wm=="+wm, "_blank");

  menu.showMenu();
}

showToolbar();

