// Menu.js
// --------------------------------------------------------------
// <script language="JavaScript" src="menu.js"></script>
// --------------------------------------------------------------

// This object stors Pairs, labeled P for simplicity
function P(label, url) {
	this.label = label;
	this.url = url;
}

// This is the main function. To use it, just put the following where
// your menu should go:
//   <script language="JavaScript">
//     m();
//   </script>

i = new Array();
	x = 0;
	i[x++] = new P("Anal Galleries","anal.shtml");
	i[x++] = new P("Anime Galleries","anime.shtml");
	i[x++] = new P("Asian Galleries","asian.shtml");
	i[x++] = new P("BDSM/Fetish Galleries","bdsm.shtml");
	i[x++] = new P("Blowjob Galleries","blowjob.shtml");;
	i[x++] = new P("Gay/Mens Galleries","mens.shtml");
	i[x++] = new P("Hardcore Galleries","hardcore.shtml");
	i[x++] = new P("Lesbians Galleries","lesbians.shtml");
	i[x++] = new P("Live Webcams","http://www.livebycam.com/lk/p_10005/aff_26609/l_55/type_1/data_movie/");
	i[x++] = new P("Mature Grannies","mature.shtml");
	i[x++] = new P("Monster Cock","monstercock.shtml");
	i[x++] = new P("Other Galleries","other.shtml");
	i[x++] = new P("Shemale Galleries","shemales.shtml");
	i[x++] = new P("Teen Galleries","teen.shtml");
function m() {
	
//    ...
// Continue in this manner for all the pairs (P) that you need. As long as you enter
// them alphabetically, it will take care of all the labeling for you.
//	i[x++] = new P("","");
//    ...

// The HTML output is very basic. You may want to touch it up below.
	// The opening table tag
	document.write("<table width=\"149\"  border=\"0\" cellspacing=\"1\" cellpadding=\"3\" align=\"center\">");
	previousLetter = new String("");
	for (j = 0; j < i.length; j++) {
		letter = i[j].label.substring(0,1);
		if (letter != previousLetter) {
			// The letter heading
			document.write("<tr><td><B><font size=3>" + letter + "</font></b></td></tr>\n");
			previousLetter = letter;
		}
		// The menu item
		
		
		var is_url=i[j].url.indexOf('http://');
		if (is_url ==-1)
		{
		document.write("<tr><td><a href='thumbs/" + i[j].url + "'>" + i[j].label + "</a></td></tr>");
		}
		else
		{
			document.write("<tr><td><a href='" + i[j].url + "'>" + i[j].label + "</a></td></tr>");
		}

		
		
		
		document.write("<tr><td><a href='sections/" + i[j].url + "'>" + i[j].label + "</a></td></tr>");
	}
	// The closing table tag
	document.write("</table>\n");
}
function c(e){
	e.style.color = '#AA5555';
}

function text() {
	previousLetter = new String("");
	for (j = 0; j < i.length; j++) {
		letter = i[j].label.substring(0,1);
		if (letter != previousLetter) {
			previousLetter = letter;
		}
		// The menu item
		var is_url=i[j].url.indexOf('http://');
		if (is_url ==-1)
		{
		document.write("<option value='text/" + i[j].url + "'>" + i[j].label + "</option>");
		}
		else
		{
			document.write("<option value='" + i[j].url + "'>" + i[j].label + "</option>");
		}
	}
	// The closing table tag
}


function thumbs() {
	previousLetter = new String("");
	for (j = 0; j < i.length; j++) {
		letter = i[j].label.substring(0,1);
		if (letter != previousLetter) {
			previousLetter = letter;
		}
		// The menu item
		var is_url=i[j].url.indexOf('http://');
		if (is_url ==-1)
		{
		document.write("<option value='thumbs/" + i[j].url + "'>" + i[j].label + "</option>");
		}
		else
		{
			document.write("<option value='" + i[j].url + "'>" + i[j].label + "</option>");
		}
	}
	// The closing table tag
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}