var DOM;
var NS4;
var IE4;
var preloadFlag = false;

// PRELOAD FUNCTION
	function init() {
		DOM = (document.getElementById) ? true : false;		// is it a DOM-enabled browser?
		NS4 = (document.layers && !DOM) ? true : false;		// is it a Netscape (NON-DOM) browser?
		IE4 = (document.all && !DOM) ? true : false;		// is it an IE (NON-DOM) browser?
	}

//----------------------------------------------------------------------
//	PRELOAD FUNCTION
//	WORKS:	ie4+, ns4+, opera5
//	USAGE:	usually called on in the <body onload="preloadMe();> or window.onload
//	NOTES:	requires create object function; flag variable must be unique and globally initialized to false
//----------------------------------------------------------------------
	function preloadMe() {
		preloadFlag = false;

		createObject('nav_homeout','/images/nav_homeover.gif');
		createObject('nav_homeover','/images/nav_home.gif');
		
		createObject('nav_storeout','/images/nav_store.gif');
		createObject('nav_store_in','/images/nav_store_in.gif');
		createObject('nav_storeover','/images/nav_storeover.gif');
		
		createObject('nav_storeout_4home','/images/nav_store_4home.gif');
		createObject('nav_store_in_4home','/images/nav_store_in_4home.gif');
		createObject('nav_storeover_4home','/images/nav_storeover_4home.gif');
		
		//SubNav Begins
		createObject('SubNav_storeout_litho','/images/store/nav_store_litho.gif');
		createObject('SubNav_storeover_litho','/images/store/nav_store_lithoover.gif');
		createObject('SubNav_storein_litho','/images/store/nav_store_lithoin.gif');			

		createObject('SubNav_storeout_Book','/images/store/nav_store_book.gif');
		createObject('SubNav_storeover_Book','/images/store/nav_store_bookover.gif');
		createObject('SubNav_storein_Book','/images/store/nav_store_bookin');
		
		createObject('SubNav_storeout_paint','/images/store/nav_store_paint.gif');
		createObject('SubNav_storeover_paint','/images/store/nav_store_paintover.gif');
		createObject('SubNav_storein_paint','/images/store/nav_store_paintin.gif');
		
		createObject('SubNav_storeout_repro','/images/store/nav_store_repro.gif');
		createObject('SubNav_storeover_repro','/images/store/nav_store_reproover.gif');
		createObject('SubNav_storein_repro','/images/store/nav_store_reproin.gif');		

		createObject('SubNav_profileout','/images/about/nav_profile_profile.gif');
		createObject('SubNav_profileover','/images/about/nav_profile_profileover.gif');
		createObject('SubNav_profilein','/images/about/nav_profile_profile_in.gif');		
		
		createObject('SubNav_Resumeout','/images/about/nav_profile_resume.gif');
		createObject('SubNav_Resumeover','/images/about/nav_profile_resumeover.gif');
		createObject('SubNav_Resumein','/images/about/nav_profile_resume_in.gif');
		
		createObject('SubNav_theysayout','/images/about/nav_profile_when.gif');
		createObject('SubNav_theysayover','/images/about/nav_profile_whenover.gif');
		createObject('SubNav_theysayin','/images/about/nav_profile_when_in.gif');

		createObject('SubNav_heritageout','/images/about/nav_profile_heritage.gif');
		createObject('SubNav_heritageover','/images/about/nav_profile_heritageover.gif');
		createObject('SubNav_heritagein','/images/about/nav_profile_heritage_in.gif');

		createObject('SubNav_peculiarout','/images/about/nav_profile_peculiar.gif');
		createObject('SubNav_peculiarover','/images/about/nav_profile_peculiarover.gif');
		createObject('SubNav_peculiarin','/images/about/nav_profile_peculiar_in.gif');		

		//SubNav End

		createObject('nav_lithoout','/images/nav_litho.gif');
		createObject('nav_litho_in','/images/nav_litho_in.gif');
		createObject('nav_lithoover','/images/nav_lithoover.gif');

		createObject('nav_aboutout','/images/nav_about.gif');
		createObject('nav_about_in','/images/nav_about_in.gif');
		createObject('nav_aboutover','/images/nav_aboutover.gif');		

		createObject('nav_articlesout','/images/nav_articles.gif');
		createObject('nav_articles_in','/images/nav_articles_in.gif');
		createObject('nav_articlesover','/images/nav_articlesover.gif');

		createObject('nav_contactout','/images/nav_contact.gif');
		createObject('nav_contact_in','/images/nav_contact_in.gif');
		createObject('nav_contactover','/images/nav_contactover.gif');

		createObject('nav_main_parks_pictout','/images/home/main_parks_pict.gif');
		createObject('nav_main_parks_pictover','/images/home/main_parks_pictover.gif');

		createObject('nav_mainquote_out','/images/home/main_space_1.gif');
		createObject('nav_quote1_over','/images/home/quote_1.gif');
		createObject('nav_quote2_over','/images/home/quote_2.gif');
		createObject('nav_quote3_over','/images/home/quote_3.gif');
		createObject('nav_quote4_over','/images/home/quote_4.gif');
		
		createObject('nav_main_quotes_butout','/images/home/main_quotes_but.gif');
		createObject('nav_main_quotes_butover','/images/home/main_quotes_butover.gif');

		createObject('nav_main_quotes_but_1out','/images/home/main_quotes_but_1.gif');
		createObject('nav_main_quotes_but_1over','/images/home/main_quotes_but_1over.gif');

		createObject('nav_main_quotes_but_2out','/images/home/main_quotes_but_2.gif');
		createObject('nav_main_quotes_but_2over','/images/home/main_quotes_but_2over.gif');	

		createObject('nav_main_quotes_but_3out','/images/home/main_quotes_but_3.gif');
		createObject('nav_main_quotes_but_3over','/images/home/main_quotes_but_3over.gif');	

		createObject('nav_main_quotes_but_4out','/images/home/main_quotes_but_4.gif');
		createObject('nav_main_quotes_but_4over','/images/home/main_quotes_but_4over.gif');
		
		//quotesPaints Tim Steve Russel
		createObject('nav_selection_out','/images/paintings/nav_selection.gif');
		
		createObject('nav_top_1_off','/images/paintings/nav_top_1_off.gif');
		createObject('nav_top_1_on','/images/paintings/nav_top_1_on.gif');

		createObject('nav_top_2_off','/images/paintings/nav_top_2_off.gif');
		createObject('nav_top_2_on','/images/paintings/nav_top_2_on.gif');

		createObject('nav_top_3_off','/images/paintings/nav_top_3_off.gif');
		createObject('nav_top_3_on','/images/paintings/nav_top_3_on.gif');	

		createObject('nav_top_4_off','/images/paintings/nav_top_4_off.gif');
		createObject('nav_top_4_on','/images/paintings/nav_top_4_on.gif');	
		
		createObject('nav_top_5_off','/images/paintings/nav_top_5_off.gif');
		createObject('nav_top_5_on','/images/paintings/nav_top_5_on.gif');	
		
		createObject('nav_top_6_off','/images/paintings/nav_top_6_off.gif');
		createObject('nav_top_6_on','/images/paintings/nav_top_6_on.gif');	
		
		createObject('nav_top_7_off','/images/paintings/nav_top_7_off.gif');
		createObject('nav_top_7_on','/images/paintings/nav_top_7_on.gif');	
		
		createObject('nav_top_8_off','/images/paintings/nav_top_8_off.gif');
		createObject('nav_top_8_on','/images/paintings/nav_top_8_on.gif');	
		
		createObject('nav_top_9_off','/images/paintings/nav_top_9_off.gif');
		createObject('nav_top_9_on','/images/paintings/nav_top_9_on.gif');			

		createObject('nav_tim_out','/images/paintings/nav_top_1_off.gif');
		createObject('nav_tim_over','/images/paintings/nav_top_1_on.gif');

		createObject('nav_rusell_out','/images/paintings/nav_top_2_off.gif');
		createObject('nav_rusell_over','/images/paintings/nav_top_2_on.gif');

		createObject('nav_peter_out','/images/paintings/nav_top_3_off.gif');
		createObject('nav_peter_over','/images/paintings/nav_top_3_on.gif');	

		createObject('nav_steve_out','/images/paintings/nav_top_4_off.gif');
		createObject('nav_steve_over','/images/paintings/nav_top_4_on.gif');	
		
		createObject('nav_more_out','/images/more_off.gif');
		createObject('nav_more_over','/images/more_on.gif');	
		
		
		
		
		createObject('nav_view_out_new','/images/new_nav/view.gif');
		createObject('nav_view_in_new','/images/new_nav/viewf3.gif');
		createObject('nav_view_over_new','/images/new_nav/viewf2.gif');
		
		createObject('nav_litho_out_new','/images/new_nav/litho.gif');
		createObject('nav_litho_in_new','/images/new_nav/lithof3.gif');
		createObject('nav_litho_over_new','/images/new_nav/lithof2.gif');
		
		createObject('nav_about_out_new','/images/new_nav/about.gif');
		createObject('nav_about_in_new','/images/new_nav/aboutf3.gif');
		createObject('nav_about_over_new','/images/new_nav/aboutf2.gif');
		
		createObject('nav_articles_out_new','/images/new_nav/articles.gif');
		createObject('nav_articles_in_new','/images/new_nav/articlesf3.gif');
		createObject('nav_articles_over_new','/images/new_nav/articlesf2.gif');
		
		createObject('nav_links_out_new','/images/new_nav/links.gif');
		createObject('nav_links_in_new','/images/new_nav/linksf3.gif');
		createObject('nav_links_over_new','/images/new_nav/linksf2.gif');
		
		createObject('nav_contact_out_new','/images/new_nav/contac.gif');
		createObject('nav_contact_in_new','/images/new_nav/contac3.gif');
		createObject('nav_contact_over_new','/images/new_nav/contacf2.gif');	
		
		preloadFlag = true;
	}
//----------------------------------------------------------------------

//----------------------------------------------------------------------
//	CREATE IMAGE OBJECT
//	WORKS:	ie4+, ns4+, opera5
//	USAGE:	usually called from a preload function
//----------------------------------------------------------------------
	function createObject(imgName, imgSrc) {
	
			eval(imgName+' = new Image()');
			eval(imgName+'.src = "'+imgSrc+'"');
	}
//----------------------------------------------------------------------

//----------------------------------------------------------------------
//	IMAGE SWITCHING
//	WORKS:	ie4+, ns4+, opera5
//----------------------------------------------------------------------
function changeImage(imgDocID,ImgObjName){ 
	if (navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 3)
		document.images[imgDocID].src = eval(ImgObjName + ".src")
	else if (navigator.appName != "Netscape" && parseInt(navigator.appVersion) >= 4)
		document.images[imgDocID].src = eval(ImgObjName + ".src")
}