/*********************************************************************************
 *		Function changemenubgcolor()
 *			
 *		By Ping Feng
 *      	Created Date: 1/20/05
 *			Revised Date: 8/29/07
 *
 *		This function is used to change the background color when viewers put mouse  
 *		out of the main menus. It's called in the onmouseout event handler of td tag
 *
 *		Inputs: TD object id name
 *		Outputs: change the background color of a td cell
 *
 *		Revision History: 
 *
 **********************************************************************************/
 
function changemenubgcolor1(MenuName)
	{
	var bgcolororg="#000080"
		var bgcolorhover="blue"
		switch (MenuName)
		{
		
		case "b1":
			b1.style.backgroundColor=bgcolorhover;
			b2.style.backgroundColor=bgcolororg;
			b3.style.backgroundColor=bgcolororg;
			b4.style.backgroundColor=bgcolororg;
			b5.style.backgroundColor=bgcolororg;
			b6.style.backgroundColor=bgcolororg;
			b7.style.backgroundColor=bgcolororg;
			break;
		case "b2":
			b1.style.backgroundColor=bgcolororg;
			b2.style.backgroundColor=bgcolorhover;
			b3.style.backgroundColor=bgcolororg;
			b4.style.backgroundColor=bgcolororg;
			b5.style.backgroundColor=bgcolororg;
			b6.style.backgroundColor=bgcolororg;
			b7.style.backgroundColor=bgcolororg;
			break;
		case "b3":
			b1.style.backgroundColor=bgcolororg;
			b2.style.backgroundColor=bgcolororg;
			b3.style.backgroundColor=bgcolorhover;
			b4.style.backgroundColor=bgcolororg;
			b5.style.backgroundColor=bgcolororg;
			b6.style.backgroundColor=bgcolororg;
			b7.style.backgroundColor=bgcolororg;
			break;
		case "b4":
			b1.style.backgroundColor=bgcolororg;
			b2.style.backgroundColor=bgcolororg;
			b3.style.backgroundColor=bgcolororg;
			b4.style.backgroundColor=bgcolorhover;
			b5.style.backgroundColor=bgcolororg;
			b6.style.backgroundColor=bgcolororg;
			b7.style.backgroundColor=bgcolororg;
			break;
		case "b5":
			b1.style.backgroundColor=bgcolororg;
			b2.style.backgroundColor=bgcolororg;
			b3.style.backgroundColor=bgcolororg;
			b4.style.backgroundColor=bgcolororg;
			b5.style.backgroundColor=bgcolorhover;
			b6.style.backgroundColor=bgcolororg;
			b7.style.backgroundColor=bgcolororg;
			break;
		case "b6":
			b1.style.backgroundColor=bgcolororg;
			b2.style.backgroundColor=bgcolororg;
			b3.style.backgroundColor=bgcolororg;
			b4.style.backgroundColor=bgcolororg;
			b5.style.backgroundColor=bgcolororg;
			b6.style.backgroundColor=bgcolorhover;
			b7.style.backgroundColor=bgcolororg;
			break;
		case "b7":
			b1.style.backgroundColor=bgcolororg;
			b2.style.backgroundColor=bgcolororg;
			b3.style.backgroundColor=bgcolororg;
			b4.style.backgroundColor=bgcolororg;
			b5.style.backgroundColor=bgcolororg;
			b6.style.backgroundColor=bgcolororg;
			b7.style.backgroundColor=bgcolorhover;
			break;
		}
	}

function changebuttonbgcolor(MenuName)
	{
	var bgcolororg="#000080"
		var bgcolorhover="#9FC3E5"
		switch (MenuName)
		{
		
		case "gotoparcel":
			gotoparcel.style.backgroundColor=bgcolorhover;
			orthoonly.style.backgroundColor=bgcolororg;
			parceldetail.style.backgroundColor=bgcolororg;
			refreshmap.style.backgroundColor=bgcolororg;
			basemap.style.backgroundColor=bgcolororg;
			layerlist.style.backgroundColor=bgcolororg;
			break;
		case "orthoonly":
			gotoparcel.style.backgroundColor=bgcolororg;
			orthoonly.style.backgroundColor=bgcolorhover;
			parceldetail.style.backgroundColor=bgcolororg;
			refreshmap.style.backgroundColor=bgcolororg;
			basemap.style.backgroundColor=bgcolororg;
			layerlist.style.backgroundColor=bgcolororg;
			break;
		case "parceldetail":
			gotoparcel.style.backgroundColor=bgcolororg;
			orthoonly.style.backgroundColor=bgcolororg;
			parceldetail.style.backgroundColor=bgcolorhover;
			refreshmap.style.backgroundColor=bgcolororg;
			basemap.style.backgroundColor=bgcolororg;
			layerlist.style.backgroundColor=bgcolororg;
			break;
		case "refreshmap":
			gotoparcel.style.backgroundColor=bgcolororg;
			orthoonly.style.backgroundColor=bgcolororg;
			parceldetail.style.backgroundColor=bgcolororg;
			refreshmap.style.backgroundColor=bgcolorhover;
			basemap.style.backgroundColor=bgcolororg;
			layerlist.style.backgroundColor=bgcolororg;
			break;
		case "basemap":
			gotoparcel.style.backgroundColor=bgcolororg;
			orthoonly.style.backgroundColor=bgcolororg;
			parceldetail.style.backgroundColor=bgcolororg;
			refreshmap.style.backgroundColor=bgcolororg;
			basemap.style.backgroundColor=bgcolorhover;
			layerlist.style.backgroundColor=bgcolororg;			
			break;
		case "layerlist":
			gotoparcel.style.backgroundColor=bgcolororg;
			orthoonly.style.backgroundColor=bgcolororg;
			parceldetail.style.backgroundColor=bgcolororg;
			refreshmap.style.backgroundColor=bgcolororg;
			basemap.style.backgroundColor=bgcolororg;
			layerlist.style.backgroundColor=bgcolorhover;			
			break;
			
		}
	}


function changemenubgcolor(MenuName)
	{
		var bgcolororg="#000080"
		var bgcolorhover="#9FC3E5"
		switch (MenuName)
		{
		
		case "menuzoomin":
			menuzoomin.style.backgroundColor=bgcolorhover;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuzoomout":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolorhover;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuzoomlast":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolorhover;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuzoomfull":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolorhover;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuzoomselect":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolorhover;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuzoomactive":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolorhover;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menupan":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolorhover;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuclearmap":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolorhover;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menulegend":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolorhover;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuhelp":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolorhover;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menumetadata":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolorhover;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuovmap":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolorhover;
			menuprint.style.backgroundColor=bgcolororg;
			break;
		case "menuprint":
			menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolorhover;
			break;
		
		}
	}

function changemenubgcolor2(){
		var bgcolororg="#000080";
		menuzoomin.style.backgroundColor=bgcolororg;
			menuzoomout.style.backgroundColor=bgcolororg;
			menuzoomlast.style.backgroundColor=bgcolororg;
			menuzoomfull.style.backgroundColor=bgcolororg;
			menuzoomselect.style.backgroundColor=bgcolororg;
			menuzoomactive.style.backgroundColor=bgcolororg;
			menupan.style.backgroundColor=bgcolororg;
			menuclearmap.style.backgroundColor=bgcolororg;
			menulegend.style.backgroundColor=bgcolororg;
			menuhelp.style.backgroundColor=bgcolororg;
			menumetadata.style.backgroundColor=bgcolororg;
			menuovmap.style.backgroundColor=bgcolororg;
			menuprint.style.backgroundColor=bgcolororg;
		return true;
		}

function changebuttonbgcolor2(){
		var bgcolororg="#000080";
			gotoparcel.style.backgroundColor=bgcolororg;
			orthoonly.style.backgroundColor=bgcolororg;
			parceldetail.style.backgroundColor=bgcolororg;
			refreshmap.style.backgroundColor=bgcolororg;
			basemap.style.backgroundColor=bgcolororg;
			layerlist.style.backgroundColor=bgcolororg;	
			
		return true;
		}




