/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder_buttons2 = "buttons2/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources_buttons2 = new Array("button1up_buttons2.png","button2up_buttons2.png","button3up_buttons2.png","button4up_buttons2.png","button5up_buttons2.png","button6up_buttons2.png","button7up_buttons2.png");

overSources_buttons2 = new Array("button1over_buttons2.png","button2over_buttons2.png","button3over_buttons2.png","button4over_buttons2.png","button5over_buttons2.png","button6over_buttons2.png","button7over_buttons2.png");

// SUB MENUS DECLARATION, YOU DONT NEED TO EDIT THIS
subInfo_buttons2 = new Array();
subInfo_buttons2[1] = new Array();
subInfo_buttons2[2] = new Array();
subInfo_buttons2[3] = new Array();
subInfo_buttons2[4] = new Array();
subInfo_buttons2[5] = new Array();
subInfo_buttons2[6] = new Array();
subInfo_buttons2[7] = new Array();


//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//
subInfo_buttons2[1][1] = new Array("About Us","aboutus.htm","");
subInfo_buttons2[1][2] = new Array("Frequently Asked Questions","faqs.htm","");
subInfo_buttons2[1][3] = new Array("Workforce Investment Board","wib.htm","");
subInfo_buttons2[1][4] = new Array("WIB Committees","committees.htm","");
subInfo_buttons2[1][5] = new Array("Governing Body","govbody.htm","");
subInfo_buttons2[1][6] = new Array("Administration","admin.htm","");
subInfo_buttons2[1][7] = new Array("Golden Sierra Staff Positions","employmentgs.htm","");
subInfo_buttons2[1][8] = new Array("RFP's/Public Notice","RFPs.html","");
subInfo_buttons2[1][9] = new Array("Policies & Procedures","subcontractors.html","");


subInfo_buttons2[2][1] = new Array("Partners","partners.htm","");
subInfo_buttons2[2][2] = new Array("Employment Development Department","partners.htm#EDD","");
subInfo_buttons2[2][3] = new Array("CalWORKS","partners.htm#cw","");
subInfo_buttons2[2][4] = new Array("Department of Rehabilitation","partners.htm#DOR","");
subInfo_buttons2[2][5] = new Array("Placer School for Adults","partners.htm#PAS","");
subInfo_buttons2[2][6] = new Array("Experience Works","partners.htm#EW","");
subInfo_buttons2[2][7] = new Array("JobONE","partners.htm#JO","");
subInfo_buttons2[2][8] = new Array("49er R.O.P.","partners.htm#49erROP","");
subInfo_buttons2[2][9] = new Array("Roseville Adult School","partners.htm#RAS","");
subInfo_buttons2[2][10] = new Array("National Runaway Switchboard","partners.htm#NRS","");
subInfo_buttons2[2][11] = new Array("El Dorado Co. Economic Development","partners.htm#eced","");
subInfo_buttons2[2][12] = new Array("Placer Co. Economic Development","partners.htm#pced","");
subInfo_buttons2[2][13] = new Array("SETA - Sacramento WORKS","partners.htm#SETA","");
subInfo_buttons2[2][14] = new Array("Tahoe Womens's Services","partners.htm#TWC","");



subInfo_buttons2[3][1] = new Array("Locations Page","locations.htm","");
subInfo_buttons2[3][2] = new Array("Roseville","roseville.htm","");
subInfo_buttons2[3][3] = new Array("Auburn","auburn.htm","");
subInfo_buttons2[3][4] = new Array("Truckee","truckee.htm","");
subInfo_buttons2[3][5] = new Array("Placerville","placerville.htm","");
subInfo_buttons2[3][6] = new Array("South Lake Tahoe","southtahoe.htm","");
subInfo_buttons2[3][7] = new Array("Administration","admin.htm","");


subInfo_buttons2[4][1] = new Array("Job Seekers Page","jobseekers.htm","");
subInfo_buttons2[4][2] = new Array("Local Job Opportunities","jobseekers.htm#LJO","");
subInfo_buttons2[4][3] = new Array("Regional Newspapers","jobseekers.htm#RN","");
subInfo_buttons2[4][4] = new Array("Job Boards","jobseekers.htm#JB","");
subInfo_buttons2[4][5] = new Array("Education and Training","jobseekers.htm#EAT","");
subInfo_buttons2[4][6] = new Array("Resume Information","jobseekers.htm#RI","");
subInfo_buttons2[4][7] = new Array("Career Planning","jobseekers.htm#CP","");
subInfo_buttons2[4][8] = new Array("Interviewing","jobseekers.htm#INT","");
subInfo_buttons2[4][9] = new Array("Golden Sierra's How-To Sessions","eventscalendar.htm","");

subInfo_buttons2[5][1] = new Array("EDD Employer Information","employers.htm#EDDEmpInfo","");
subInfo_buttons2[5][2] = new Array("No Fee Job Listings","employers.htm#NFJL","");
subInfo_buttons2[5][3] = new Array("Internet Access","employers.htm#IA","");
subInfo_buttons2[5][4] = new Array("Employer Resource Library","employers.htm#ERL","");
subInfo_buttons2[5][5] = new Array("Advertising & Pre-screening","employers.htm#APS","");
subInfo_buttons2[5][6] = new Array("Workshops & Seminars","employers.htm#WS","");
subInfo_buttons2[5][7] = new Array("Labor Market Information","employers.htm#LMI","");
subInfo_buttons2[5][8] = new Array("Downsizing/Lay-off Assistance","employers.htm#DSLOA","");
subInfo_buttons2[5][9] = new Array("Interview Facilities","employers.htm#IF","");
subInfo_buttons2[5][10] = new Array("Training Costs Reimbursements","employers.htm#TCR","");

subInfo_buttons2[6][1] = new Array("Youth Page","youth.htm","");
subInfo_buttons2[6][2] = new Array("Employment and Training Links","youth.htm#ETL","");
subInfo_buttons2[6][3] = new Array("Career Exploration Links","youth.htm#CEL","");
subInfo_buttons2[6][4] = new Array("Money Management and Financial Information","youth.htm#MMFI","");


//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//
var xSubOffset_buttons2 = 0;
var ySubOffset_buttons2 = 21;



//*** NO MORE SETTINGS BEYOND THIS POINT ***//
var overSub_buttons2 = false;
var delay_buttons2 = 1000;
totalButtons_buttons2 = upSources_buttons2.length;

// GENERATE SUB MENUS
for ( x=0; x<totalButtons_buttons2; x++) {
	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU
	if ( subInfo_buttons2[x+1].length < 1 ) { 
		document.write('<div id="submenu' + (x+1) + '_buttons2">');
	// SET DIV FOR BUTTONS WITH SUBMENU
	} else {
		document.write('<div id="submenu' + (x+1) + '_buttons2" class="dropmenu_buttons2" ');
		document.write('onMouseOver="overSub_buttons2=true;');
		document.write('setOverImg_buttons2(\'' + (x+1) + '\',\'_buttons2\');"');
		document.write('onMouseOut="overSub_buttons2=false;');
		document.write('setTimeout(\'hideSubMenu_buttons2(\\\'submenu' + (x+1) + '_buttons2\\\')\',delay_buttons2);');
		document.write('setOutImg_buttons2(\'' + (x+1) + '\',\'_buttons2\');">');


		document.write('<ul>');
		for ( k=0; k<subInfo_buttons2[x+1].length-1; k++ ) {
			document.write('<li>');
			document.write('<a href="' + subInfo_buttons2[x+1][k+1][1] + '" ');
			document.write('target="' + subInfo_buttons2[x+1][k+1][2] + '">');
			document.write( subInfo_buttons2[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_buttons2() {
	for ( x=0; x<totalButtons_buttons2; x++ ) {
		buttonUp_buttons2 = new Image();
		buttonUp_buttons2.src = buttonFolder_buttons2 + upSources_buttons2[x];
		buttonOver_buttons2 = new Image();
		buttonOver_buttons2.src = buttonFolder_buttons2 + overSources_buttons2[x];
	}
}

// SET MOUSEOVER BUTTON
function setOverImg_buttons2(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder_buttons2 + overSources_buttons2[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg_buttons2(But, ID) {
	document.getElementById('button' + But + ID).src = buttonFolder_buttons2 + upSources_buttons2[But-1];
}



//*** SUB MENU FUNCTIONS ***//
// GET ELEMENT ID MULTI BROWSER
function getElement_buttons2(id) {
	return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
}

// GET X COORDINATE
function getRealLeft_buttons2(id) { 
	var el = getElement_buttons2(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_buttons2(id) {
	var el = getElement_buttons2(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_buttons2(objectID,x,y) {
	var el = getElement_buttons2(objectID);
	el.style.left = x;
	el.style.top = y;
}

// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu_buttons2(subID, buttonID) {
	hideAllSubMenus_buttons2();
	butX = getRealLeft_buttons2(buttonID);
	butY = getRealTop_buttons2(buttonID);
	moveObjectTo_buttons2(subID,butX+xSubOffset_buttons2, butY+ySubOffset_buttons2);
}

// HIDE ALL SUB MENUS
function hideAllSubMenus_buttons2() {
	for ( x=0; x<totalButtons_buttons2; x++) {
		moveObjectTo_buttons2("submenu" + (x+1) + "_buttons2",-500, -500 );
	}
}

// HIDE ONE SUB MENU
function hideSubMenu_buttons2(subID) {
	if ( overSub_buttons2 == false ) {
		moveObjectTo_buttons2(subID,-500, -500);
	}
}



//preload_buttons2();

