ie4up = ( document.all ) ? true:false;
ns4up = ( document.layers ) ? true:false;
ns6up = ( document.getElementById && !document.all ) ? true:false;

function preloadImages( image_array ){
	for( loop = 0 ; loop < image_array.length ; loop++ ){
   		var an_image = new Image();
		an_image.src = image_array[loop];
	};
}

function hoverOn( image, on_menu ){
	if( ie4up ){
		work_image = eval( image );
	} else if( ns6up ){
		work_image = eval( 'document.' + image );
	} else if( ns4up ){
		if( on_menu == 'true' ){
			work_image = eval( 'document.layers[ \'floating_menu\' ].document.' + image );
		} else {
			work_image = eval( 'document.' + image );
		}
	};
	work_image.src = 'media/' + image + '_on.gif';
	return false;
}

function preloadImages( image_array ){
	for( loop = 0 ; loop < image_array.length ; loop++ ){
   		var an_image = new Image();
		an_image.src = image_array[loop];
	};
}


function hoverOff( image, on_menu ){
	if( ie4up ){
		work_image = eval( image );
	} else if( ns6up ){
		work_image = eval( 'document.' + image );
	} else if( ns4up ){
		if( on_menu == 'true' ){
			work_image = eval( 'document.layers[ "floating_menu" ].document.' + image );
		} else {
			work_image = eval( 'document.' + image );
		}
	};
	work_image.src = 'media/' + image + '_off.gif';
	return false;
}

function init(){
	var img_1 = 'media/home_on.gif';
	var img_2 = 'media/aboutmary_on.gif';
	var img_3 = 'media/news_on.gif';
	var img_4 = 'media/onthejob_on.gif';
	var img_5 = 'media/recipes_on.gif';
	var img_6 = 'media/trainingservices_on.gif';
	var img_7 = 'media/resume_on.gif';
	var img_8 = 'media/contact_on.gif';
	var img_9 = 'media/links_on.gif';

	var hover_images = new Array( img_1, img_2, img_3, img_4, img_5, img_6, img_7, img_8, img_9 );
	preloadImages( hover_images );
	
	
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
