<html>

<head>
<title>C:\Documents and Settings\pamela meadows\Desktop\2008 Downloads\menu16494\temp2\</title>
</head>

<body>

<pre>/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = &quot;buttons/&quot;;</pre>

<pre>/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array(&quot;button1up.png&quot;,&quot;button2up.png&quot;,&quot;button3up.png&quot;,&quot;button4up.png&quot;,&quot;button5up.png&quot;,&quot;button6up.png&quot;);</pre>

<pre>overSources = new Array(&quot;button1over.png&quot;,&quot;button2over.png&quot;,&quot;button3over.png&quot;,&quot;button4over.png&quot;,&quot;button5over.png&quot;,&quot;button6over.png&quot;);</pre>

<pre>// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS
subInfo = new Array();
subInfo[1] = new Array();
subInfo[2] = new Array();
subInfo[3] = new Array();
subInfo[4] = new Array();
subInfo[5] = new Array();
subInfo[6] = new Array();
</pre>

<pre>//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//
subInfo[1][1] = new Array(&quot;Main EQ&quot;,&quot;http://www.prpletears.com/eq.html&quot;,&quot;&quot;);
subInfo[1][2] = new Array(&quot;Screenshots&quot;,&quot;http://www.prpletears.com/eqscreens.html&quot;,&quot;&quot;);
subInfo[1][3] = new Array(&quot;EQ Links&quot;,&quot;http://www.prpletears.com/eqlinks.html&quot;,&quot;&quot;);</pre>

<pre>subInfo[2][1] = new Array(&quot;My Spaces&quot;,&quot;http://www.prpletears.com/spaces.html&quot;,&quot;&quot;);
subInfo[2][2] = new Array(&quot; Traveler Screenshots&quot;,&quot;http://www.prpletears.com/album.html&quot;,&quot;&quot;);
subInfo[2][3] = new Array(&quot;Trav. help and links&quot;,&quot;http://www.prpletears.com/travelerhelp.html&quot;,&quot;&quot;);
subInfo[2][4] = new Array(&quot;Download Traveler&quot;,&quot;http://www.digitalspace.com/traveler/startpage.html&quot;,&quot;&quot;);</pre>

<pre>subInfo[3][1] = new Array(&quot;Main Poetry Page&quot;,&quot;http://www.prpletears.com/poetry.html&quot;,&quot;&quot;);
subInfo[3][2] = new Array(&quot;*Dream Master&quot;,&quot;http://www.prpletears.com/dreammaster.html&quot;,&quot;&quot;);
subInfo[3][3] = new Array(&quot;*Lost Butterfly&quot;,&quot;http://www.prpletears.com/lostbutterfly.html&quot;,&quot;&quot;);
subInfo[3][4] = new Array(&quot;*Desire&quot;,&quot;http://www.prpletears.com/desire.html&quot;,&quot;&quot;);
subInfo[3][5] = new Array(&quot;*The Welcoming&quot;,&quot;http://www.prpletears.com/welcoming.html&quot;,&quot;&quot;);
subInfo[3][6] = new Array(&quot;*Butterfly&quot;,&quot;http://www.prpletears.com/butterfly.html&quot;,&quot;&quot;);
subInfo[3][7] = new Array(&quot;*My Mind\'s Haven&quot;,&quot;http://www.prpletears.com/haven.html&quot;,&quot;&quot;);
subInfo[3][8] = new Array(&quot;*Dream of Me&quot;,&quot;http://www.prpletears.com/dreamofme.html&quot;,&quot;&quot;);
subInfo[3][9] = new Array(&quot;*Juanita&quot;,&quot;http://www.prpletears.com/juanita.html&quot;,&quot;&quot;);
subInfo[3][10] = new Array(&quot;*Where Are You?&quot;,&quot;http://www.prpletears.com/where.html&quot;,&quot;&quot;);
subInfo[3][11] = new Array(&quot;*No Better Friend&quot;,&quot;http://www.prpletears.com/perfectfriend.html&quot;,&quot;&quot;);
subInfo[3][12] = new Array(&quot;*Lasting Love&quot;,&quot;http://www.prpletears.com/wildheart.html&quot;,&quot;&quot;);
subInfo[3][13] = new Array(&quot;*Silent Screamer&quot;,&quot;http://www.prpletears.com/silentscreamer.html&quot;,&quot;&quot;);
subInfo[3][14] = new Array(&quot;*Tell Me&quot;,&quot;http://www.prpletears.com/tellme.html&quot;,&quot;&quot;);
subInfo[3][15] = new Array(&quot;*Soul Storm&quot;,&quot;http://www.prpletears.com/soulstorm.html&quot;,&quot;&quot;);
subInfo[3][16] = new Array(&quot;*The Doll&quot;,&quot;http://www.prpletears.com/thedoll.html&quot;,&quot;&quot;);
subInfo[3][17] = new Array(&quot;*Go Away!&quot;,&quot;http://www.prpletears.com/goaway.html&quot;,&quot;&quot;);
subInfo[3][18] = new Array(&quot;*You&quot;,&quot;http://www.prpletears.com/wolf.html&quot;,&quot;&quot;);
subInfo[3][19] = new Array(&quot;*Our Love&quot;,&quot;http://www.prpletears.com/ourlove.html&quot;,&quot;&quot;);
subInfo[3][20] = new Array(&quot;*Apart&quot;,&quot;http://www.prpletears.com/apart.html&quot;,&quot;&quot;);
subInfo[3][21] = new Array(&quot;*No More Feedings&quot;,&quot;http://www.prpletears.com/darkness.html&quot;,&quot;&quot;);</pre>

<pre>subInfo[4][1] = new Array(&quot;poem and space links&quot;,&quot;http://www.prpletears.com/tearsown.html&quot;,&quot;&quot;);
subInfo[4][2] = new Array(&quot;location of TearsOwn&quot;,&quot;http://www.prpletears.com/starmap.html&quot;,&quot;&quot;);</pre>

<pre>subInfo[5][1] = new Array(&quot;this and that&quot;,&quot;http://www.prpletears.com/justplayingaround.html&quot;,&quot;&quot;);
subInfo[5][2] = new Array(&quot;other cool links&quot;,&quot;http://www.prpletears.com/justplayingaround.html&quot;,&quot;&quot;);</pre>

<pre>subInfo[6][1] = new Array(&quot;Fun With Terragen&quot;,&quot;http://www.prpletears.com/landscapes.html&quot;,&quot;&quot;);
</pre>

<pre>//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//
var xSubOffset = 126;
var ySubOffset = 1;

</pre>

<pre>//*** NO MORE SETTINGS BEYOND THIS POINT ***//
var overSub = false;
var delay = 1000;
totalButtons = upSources.length;</pre>

<pre>// GENERATE SUB MENUS
for ( x=0; x&lt;totalButtons; x++) {
	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU
	if ( subInfo[x+1].length &lt; 1 ) { 
		document.write('&lt;div id=&quot;submenu' + (x+1) + '&quot;&gt;');
	// SET DIV FOR BUTTONS WITH SUBMENU
	} else {
		document.write('&lt;div id=&quot;submenu' + (x+1) + '&quot; class=&quot;dropmenu&quot; ');
		document.write('onMouseOver=&quot;overSub=true;');
		document.write('setOverImg(\'' + (x+1) + '\',\'\');&quot;');
		document.write('onMouseOut=&quot;overSub=false;');
		document.write('setTimeout(\'hideSubMenu(\\\'submenu' + (x+1) + '\\\')\',delay);');
		document.write('setOutImg(\'' + (x+1) + '\',\'\');&quot;&gt;');
</pre>

<pre>		document.write('&lt;ul&gt;');
		for ( k=0; k&lt;subInfo[x+1].length-1; k++ ) {
			document.write('&lt;li&gt;');
			document.write('&lt;a href=&quot;' + subInfo[x+1][k+1][1] + '&quot; ');
			document.write('target=&quot;' + subInfo[x+1][k+1][2] + '&quot;&gt;');
			document.write( subInfo[x+1][k+1][0] + '&lt;/a&gt;');
			document.write('&lt;/li&gt;');
		}
		document.write('&lt;/ul&gt;');
	}
	document.write('&lt;/div&gt;');
}



</pre>

<pre>//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload() {
	for ( x=0; x&lt;totalButtons; x++ ) {
		buttonUp = new Image();
		buttonUp.src = buttonFolder + upSources[x];
		buttonOver = new Image();
		buttonOver.src = buttonFolder + overSources[x];
	}
}</pre>

<pre>// SET MOUSEOVER BUTTON
function setOverImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}</pre>

<pre>// SET MOUSEOUT BUTTON
function setOutImg(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}

</pre>

<pre>//*** SUB MENU FUNCTIONS ***//
// GET ELEMENT ID MULTI BROWSER
function getElement(id) {
	return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
}</pre>

<pre>// GET X COORDINATE
function getRealLeft(id) { 
	var el = getElement(id);
	if (el) { 
		xPos = el.offsetLeft;
		tempEl = el.offsetParent;
		while (tempEl != null) {
			xPos += tempEl.offsetLeft;
			tempEl = tempEl.offsetParent;
		} 
		return xPos;
	} 
} </pre>

<pre>// GET Y COORDINATE
function getRealTop(id) {
	var el = getElement(id);
	if (el) { 
		yPos = el.offsetTop;
		tempEl = el.offsetParent;
		while (tempEl != null) {
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}
		return yPos;
	}
}</pre>

<pre>// MOVE OBJECT TO COORDINATE
function moveObjectTo(objectID,x,y) {
	var el = getElement(objectID);
	el.style.left = x;
	el.style.top = y;
}</pre>

<pre>// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu(subID, buttonID) {
	hideAllSubMenus();
	butX = getRealLeft(buttonID);
	butY = getRealTop(buttonID);
	moveObjectTo(subID,butX+xSubOffset, butY+ySubOffset);
}</pre>

<pre>// HIDE ALL SUB MENUS
function hideAllSubMenus() {
	for ( x=0; x&lt;totalButtons; x++) {
		moveObjectTo(&quot;submenu&quot; + (x+1) + &quot;&quot;,-500, -500 );
	}
}</pre>

<pre>// HIDE ONE SUB MENU
function hideSubMenu(subID) {
	if ( overSub == false ) {
		moveObjectTo(subID,-500, -500);
	}
}

</pre>

<pre>//preload();</pre>
</body>
</html>
