
img1= new Image();
img1.src = "http://www.med-media.com/images/paramedic_color.gif";
img2= new Image();
img2.src = "http://www.med-media.com/images/firemen_color.gif";
img3= new Image();
img3.src = "http://www.med-media.com/images/comtower_gray.gif";

function ems_over(){
document.ems.src="http://www.med-media.com/images/paramedic_color.gif";
}

function ems_out(){
document.ems.src="http://www.med-media.com/images/paramedic_gray.gif";
}


function fire_over(){
document.fire.src="http://www.med-media.com/images/firemen_color.gif";
}

function fire_out(){
document.fire.src="http://www.med-media.com/images/firemen_gray.gif";
}


function incmgt_over(){
document.incmgt.src="http://www.med-media.com/images/comtower_color.gif";
}

function incmgt_out(){
document.incmgt.src="http://www.med-media.com/images/comtower_gray.gif";
}


function MM_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#7BACD7';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#C8DCEE';//#C3C3C3
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function MM_TopnavBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#7BAED6';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = 'navy';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}

function MM_goTo( url ) {
	window.location.href = url;
}


function MM_navBarClick( tableCellRef, navStyle, url ) {
	MM_navBar( tableCellRef, 0, navStyle );
	MM_goTo( url );
}
