/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder_3 = "buttons/";
/*** SET BUTTONS' FILENAMES HERE ***/
upSources_3 = new Array("button1up_3.png","button2up_3.png","button3up_3.png","button4up_3.png","button5up_3.png","button6up_3.png","button7up_3.png");
overSources_3 = new Array("button1over_3.png","button2over_3.png","button3over_3.png","button4over_3.png","button5over_3.png","button6over_3.png","button7over_3.png");
// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS
subInfo_3 = new Array();
subInfo_3[1] = new Array();
subInfo_3[2] = new Array();
subInfo_3[3] = new Array();
subInfo_3[4] = new Array();
subInfo_3[5] = new Array();
subInfo_3[6] = new Array();
subInfo_3[7] = new Array();
//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//
subInfo_3[1][1] = new Array("1853 Linden Road, Winter Park, FL 32792","Sub-Link 1","");
subInfo_3[1][2] = new Array("1-800-388-9793","Sub-Link 2","");
subInfo_3[1][3] = new Array("mail@presladies.com","mailto:mail@presladies.com","");
subInfo_3[2][1] = new Array("WE are actively seeking a business partner for an exciting new project.","DT.html","");
subInfo_3[3][1] = new Array("Please let us know you were here and give us feedback.","http://pub22.bravenet.com/guestbook/1819550151","");
subInfo_3[4][1] = new Array("See where we will be performing July and August..","PresLadiesCalendars/JulyAugustCal.html","");
subInfo_3[5][1] = new Array("See what we did for 20 years in Ocean City MD","Carousel.html","");
subInfo_3[6][1] = new Array("My insights into how Presidential history pertains to the present.","http://presladies.bravejournal.com","");
subInfo_3[7][1] = new Array("See us as 24 of our 32 Presidential Couples","slide.htm","");
//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//
var xSubOffset_3 = -10;
var ySubOffset_3 = -60;
//*** NO MORE SETTINGS BEYOND THIS POINT ***//
var overSub_3 = false;
var delay_3 = 1000;
totalButtons_3 = upSources_3.length;
// GENERATE SUB MENUS
for ( x=0; x<totalButtons_3; x++) {
	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU
	if ( subInfo_3[x+1].length < 1 ) { 
		document.write('<div id="submenu' + (x+1) + '_3">');
	// SET DIV FOR BUTTONS WITH SUBMENU
	} else {
		document.write('<div id="submenu' + (x+1) + '_3" class="dropmenu_3" ');
		document.write('onMouseOver="overSub_3=true;');
		document.write('setOverImg_3(\'' + (x+1) + '\',\'_3\');"');
		document.write('onMouseOut="overSub_3=false;');
		document.write('setTimeout(\'hideSubMenu_3(\\\'submenu' + (x+1) + '_3\\\')\',delay_3);');
		document.write('setOutImg_3(\'' + (x+1) + '\',\'_3\');">');
		document.write('<ul>');
		for ( k=0; k<subInfo_3[x+1].length-1; k++ ) {
			document.write('<li>');
			document.write('<a href="' + subInfo_3[x+1][k+1][1] + '" ');
			document.write('target="' + subInfo_3[x+1][k+1][2] + '">');
			document.write( subInfo_3[x+1][k+1][0] + '</a>');
			document.write('</li>');
		}
		document.write('</ul>');
	}
	document.write('</div>');
}
//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload_3() {
	for ( x=0; x<totalButtons_3; x++ ) {
		buttonUp_3 = new Image();
		buttonUp_3.src = buttonFolder_3 + upSources_3[x];
		buttonOver_3 = new Image();
		buttonOver_3.src = buttonFolder_3 + overSources_3[x];
	}
}
// SET MOUSEOVER BUTTON
function setOverImg_3(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder_3 + overSources_3[But-1];
}
// SET MOUSEOUT BUTTON
function setOutImg_3(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder_3 + upSources_3[But-1];
}
//*** SUB MENU FUNCTIONS ***//
// GET ELEMENT ID MULTI BROWSER
function getElement_3(id) {
	return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
}
// GET X COORDINATE
function getRealLeft_3(id) { 
	var el = getElement_3(id);
	if (el) { 
		xPos = el.offsetLeft;
		tempEl = el.offsetParent;
		while (tempEl != null) {
			xPos += tempEl.offsetLeft;
			tempEl = tempEl.offsetParent;
		} 
		return xPos;
	} 
} 
// GET Y COORDINATE
function getRealTop_3(id) {
	var el = getElement_3(id);
	if (el) { 
		yPos = el.offsetTop;
		tempEl = el.offsetParent;
		while (tempEl != null) {
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}
		return yPos;
	}
}
// MOVE OBJECT TO COORDINATE
function moveObjectTo_3(objectID,x,y) {
	var el = getElement_3(objectID);
	el.style.left = x;
	el.style.top = y;
}
// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu_3(subID, buttonID) {
	hideAllSubMenus_3();
	butX = getRealLeft_3(buttonID);
	butY = getRealTop_3(buttonID);
	moveObjectTo_3(subID,butX+xSubOffset_3, butY+ySubOffset_3);
}
// HIDE ALL SUB MENUS
function hideAllSubMenus_3() {
	for ( x=0; x<totalButtons_3; x++) {
		moveObjectTo_3("submenu" + (x+1) + "_3",-500, -500 );
	}
}
// HIDE ONE SUB MENU
function hideSubMenu_3(subID) {
	if ( overSub_3 == false ) {
		moveObjectTo_3(subID,-500, -500);
	}
}
//preload_3();
