// BEGIN: This Script Discourages Right Click / Save Images

	var rtClickMessage = "Please ask permission before using our images.  ";

	if (document.layers)
	{
		document.captureEvents(Event.MOUSEDOWN);
	}

	function ppcrtclickcheck(keyp)
	{
		if (document.layers && keyp.which != 1) 
		{
			alert(rtClickMessage);
			return false;
		}

		if (document.all && event.button != 1) 
		{ 
			alert(rtClickMessage);
				
		}
	}

	document.onmousedown = ppcrtclickcheck

// END: This Script Discourages Right Click / Save Images


// BEGIN: Functions To Call Home Page Selected / Clicked Image

	// Home page: display large image IFF thumbnail is clicked
	function DisplayHomeImage(text, contentid)
	{
   		switch(text) 
    		{
        		case 'home1':
				image = 'graphics/Home_TheTestOfTime.gif';
            			break;
        		case 'home2':
				image = 'graphics/Home_Sandcastle.gif';
            			break;
        		case 'home3':
				image = 'graphics/Home_TheGildedEdge.gif';
            			break;
        		case 'home4':
				image = 'graphics/Home_SummerIdyll.gif';
            			break;
        		case 'home5':
				image = 'graphics/Home_ShallowCrossing.gif';
            			break;
        		case 'home6':
				image = 'graphics/Home_Rhapsody.gif';
            			break;
		}

		// Full Size image and text selected: load data to selected gallery page		
		x = document.all?document.all[contentid]:document.getElementById(contentid);
		x.innerHTML = '<img src='+image+'>'; 
	}


// END: Functions To Call Home Page Selected / Clicked Image


// BEGIN: Functions To Call Windows That Display The Linked Site

	// Publications Page
	function PubLink01()  // PDF File: PastelJournal ~ StateOfArt ~ June2010.pdf
	{
		Window = window.open("../articles/PastelJournal_StateOfArt_June2010.pdf");
	}
	function PubLink02()  // PDF File: SouthwestArt ~ OnLocation ~ June2010.pdf
	{
		Window = window.open("../articles/SouthwestArt_OnLocation_June2010.pdf");
	}
	function PubLink03()  // Link: ARC Press Release ~ June 2010
	{
		Window = window.open("../articles/PressReleaseMahlkeARCSalon.pdf")
	}
	function PubLink04()  // Link: ARC First Place Landscape
	{
		Window = window.open("http://www.artrenewal.org/pages/contest.php?contest=2009-2010%20Salon&page=main");
	}
	function PubLink05()  // PDF File: American Artist ~ Denise LaRue Mahlke: Art as a Calling ~ June 2008
	{
		Window = window.open("../articles/AmericanArtist_06-2008.pdf");
	}
	function PubLink06()  // PDF File: Southwest Art ~ Artists to Watch
	{
		Window = window.open("../articles/SouthwestArt-ArtistsToWatch.pdf");
	}
	function PubLink07()  // PDF File: Western Art Collector ~ Haworth & Mahlke A Vision of Texas ~ August 2008
	{
		Window = window.open("../articles/WesternArtsCollector_08-2008.pdf");
	}
	function PubLink08()  // PDF File: The Pastel Journal ~ 2009 10th Annual Pastel 100 Competition Winners
	{
		Window = window.open("../articles/PastelJournal_04-2009.pdf");
	}
	function PubLink09()  // PDF File: American Artist ~ Cover Competition Finalist ~ June 2009
	{
		Window = window.open("../articles/AmericanArtist_06-2009.pdf");
	}
	function PubLink10()  // PDF File: Western Art Collector ~ Founding Artists ~ October 2009
	{
		Window = window.open("../articles/WesternArtsCollector_10-2009.pdf");
	}
	function PubLink11()  // Link: Thunderbird Foundation for the Arts DLM
	{
		Window = window.open("http://www.thunderbirdfoundation.com/maynard-dixon-country.cfm?mode=details&id=26")
	}
	function PubLink12()  // Link: DLM at AskArt
	{
		Window = window.open("http://www.askart.com/askart/m/denise_larue_mahlke/denise_larue_mahlke.aspx")
	}
	function PubLink13()  // PDF File: PleinAir Magazine ~ Techniques in Response to Landscape ~ Winter 2011
	{
		Window = window.open("../articles/PleinAir_TechniquesInResponseToLandscape_Winter2011.pdf")
	}


	// Galleries Page
	function GalleryLink01()  // Rep: Insight Gallery DLM
	{
		Window = window.open("http://www.insightgallery.com/searchresults.php?artistId=1548&page=1&start=1")
	}
	function GalleryLink02()  // Rep: Thunderbird Foundation for the Arts
	{
		Window = window.open("http://www.thunderbirdfoundation.com/index.cfm")
	}
	function GalleryLink03()  // Rep: M Gallery of Fine Art
	{
		Window = window.open("http://www.mgalleryoffineart.com/searchresults.php?artistId=12147")
	}
	function GalleryLink04()  // 
	{
		Window = window.open("")
	}
	function EventsLink01()  // Event: Maynard Dixon Country 2012
	{
		Window = window.open("http://www.thunderbirdfoundation.com/maynard-dixon-country.cfm")
	}
	function EventsLink02()  // Event: Coors Western Art Exhibit and Sale 2012
	{
		Window = window.open("http://www.nationalwestern.com/coors-western-art/artists-silent-auction.aspx")
	}
	function EventsLink03()  // Event: InSight Gallery ~ Texas Masters 2012
	{
		Window = window.open("http://www.insightgallery.com/exhibitions.php")
	}
	function EventsLink04()  // Event: Artistic Horizons 2012
	{
		Window = window.open("http://artswithoutboundaries.org/archives/254")
	}



	// Workshop Page
	function WorkshopLink01()  // PSSC Workshop Flyer 2011
	{
		Window = window.open("PSSC_Workshop_Flyer_2011.pdf")
	}
	function WorkshopLink02()  // PSSC Website
	{
		Window = window.open("http://www.pastelsocal.com/main.html")
	}
	function WorkshopLink03()  // 
	{
		Window = window.open("")
	}

// END: Functions To Call Windows That Display The Linked Site


// BEGIN: Functions For Gallery Images

	// All Galleries: display large image and text IFF thumbnail is clicked
	function DisplayImage(text, imageid, textid, loadid)
	{
   		switch(text) 
    		{
		// Gallery Available
        		case 'ava1':
				page = 'ASoutheasterlyView.html';
            			break;
        		case 'ava2':
				page = 'AutumnCypress.html';
            			break;
        		case 'ava3':
				page = 'CloudProcession.html';
            			break;
        		case 'ava4':
				page = 'DustToDust.html';
            			break;
        		case 'ava5':
				page = 'EarlySpring.html';
            			break;
        		case 'ava6':
				page = 'EveningShift.html';
            			break;
        		case 'ava7':
				page = 'LivingWaters.html';
            			break;
        		case 'ava8':
				page = 'LuckenbachLookingBack.html';
            			break;
        		case 'ava9':
				page = 'NewGreen.html';
            			break;
        		case 'ava10':
				page = 'OutBack.html';
            			break;
        		case 'ava11':
				page = 'PariaRiverTrail.html';
            			break;
        		case 'ava12':
				page = 'QuietInlet.html';
            			break;
        		case 'ava13':
				page = 'RainOrShine.html';
            			break;
        		case 'ava14':
				page = 'RiverOasis.html';
            			break;
        		case 'ava15':
				page = 'SeptemberFields.html';
            			break;
        		case 'ava16':
				page = 'SoftLightOfDawn.html';
            			break;
        		case 'ava17':
				page = 'SpringReflection.html';
            			break;
        		case 'ava18':
				page = 'SummerIdyll.html';
            			break;
        		case 'ava19':
				page = 'SummerReverie.html';
            			break;
        		case 'ava20':
				page = 'TheGildedEdge.html';
            			break;
        		case 'ava21':
				page = 'TheTestOfTime.html';
            			break;
		// Gallery Archive
        		case 'arc1':
				page = '100pctChance.html';
            			break;
        		case 'arc2':
				page = 'AutumnVeil.html';
            			break;
        		case 'arc3':
				page = 'CanyonDrifters.html';
            			break;
        		case 'arc4':
				page = 'CominOrGoin.html';
            			break;
        		case 'arc5':
				page = 'CountryPeace.html';
            			break;
        		case 'arc6':
				page = 'DancingLight.html';
            			break;
   		case 'arc7':
				page = 'DaysEnd.html';
            			break;
        		case 'arc8':
				page = 'DistantRumble.html';
            			break;
        		case 'arc9':
				page = 'Fogbound.html';
            			break;
        		case 'arc10':
				page = 'FollowTheLeader.html';
            			break;
        		case 'arc11':
				page = 'InTheStillness.html';
            			break;
        		case 'arc12':
				page = 'LavenderTwilight.html';
            			break;
        		case 'arc13':
				page = 'LazyHazyDay.html';
            			break;
        		case 'arc14':
				page = 'LittleBluff.html';
            			break;
        		case 'arc15':
				page = 'Meandering.html';
            			break;
        		case 'arc16':
				page = 'MiddayGathering.html';
            			break;
        		case 'arc17':
				page = 'Moonrise.html';
            			break;
        		case 'arc18':
				page = 'MorningDrive.html';
            			break;
        		case 'arc19':
				page = 'MorningMist.html';
            			break;
       		case 'arc20':
				page = 'MorningPeace.html';
            			break;
       		case 'arc21':
				page = 'MorningSong.html';
            			break;
        		case 'arc22':
				page = 'MorningVisitors.html';
            			break;
        		case 'arc23':
				page = 'MuddyFeet.html';
            			break;
        		case 'arc24':
				page = 'October31st.html';
            			break;
        		case 'arc25':
				page = 'OutOfBounds.html';
            			break;
        		case 'arc26':
				page = 'Patchwork.html';
            			break;
        		case 'arc27':
				page = 'RedwingSanctuary.html';
            			break;
        		case 'arc28':
				page = 'Rhapsody.html';
            			break;
        		case 'arc29':
				page = 'SaltFlats.html';
            			break;
        		case 'arc30':
				page = 'Sandcastle.html';
            			break;
        		case 'arc31':
				page = 'ShallowCrossing.html';
            			break;
        		case 'arc32':
				page = 'SignsOfSpring.html';
            			break;
       		case 'arc33':
				page = 'SummerStorm.html';
            			break;
        		case 'arc34':
				page = 'Tapestry.html';
            			break;
        		case 'arc35':
				page = 'TheCrossing.html';
            			break;
        		case 'arc36':
				page = 'TheEveningShow.html';
            			break;
        		case 'arc37':
				page = 'TheHayBarn.html';
            			break;
        		case 'arc38':
				page = 'TheRedwingsSong.html';
            			break;
        		case 'arc39':
				page = 'TwilightGlimmer.html';
            			break;
        		case 'arc40':
				page = 'TwilightOnSpringCreek.html';
            			break;
        		case 'arc41':
				page = 'TwilightThunder.html';
            			break;        		
		case 'arc42':
				page = 'WelcomeSpring.html';
            			break;
        		case 'arc43':
				page = 'WinterHues.html';
            			break;
        		case 'arc44':
				page = 'WinterMood.html';
            			break;
        		case 'arc45':
				page = 'WinterStream.html';
            			break;
		}

		Window = window.open(page,"Frames", "height=600,width=800,status=no,toolbar=no,menubar=no,resize=no,directories=no,location=no,scrolling=no,scrollbars=no"); 
	}

// END: Functions For Gallery Images


// BEGIN: Functions For About Website
	function W3CLink01()  // W3C Website
	{
		Window = window.open("http://www.w3.org/")
	}
	function W3CLink02()  // W3C Validator
	{
		Window = window.open("http://validator.w3.org/")
	}
	function W3CLink03()  // W3C CSS Validator
	{
		Window = window.open("http://jigsaw.w3.org/css-validator/")
	}

	// variable to hold resolution and color depth text
	var webtext='';

	// find the current resolution for user's browser
	function resCheck(webtext, resid)
	{
		if (self.screen)
		// for IE 
		{     
       			width = screen.width
       			height = screen.height
		}
		// for NN w/Java
		else if (self.java) 
		{   
			var javakit = java.awt.Toolkit.getDefaultToolkit();
       			var scrsize = javakit.getScreenSize();       
       			width = scrsize.width; 
       			height = scrsize.height; 
		}
		// N2, E3, N3 w/o Java (Opera and WebTV)	
		else 
		{
			width = height = '?' 
		}

		webtext='Your current screen resolution is:&nbsp; ' + width + ' x ' + height + ' pixels.';
		x = document.all?document.all[resid]:document.getElementById(resid); 
		x.innerHTML = webtext; 
	}

	// find the viewer's current color depth
	function clrCheck(webtext, clrid)
	{
		if(self.screen) 
		{
			numbage = screen.pixelDepth
			? Math.pow(2, screen.pixelDepth) // in N4
			: Math.pow(2, screen.colorDepth) // in E4
		}
		else 
		{ 
			numbage = "color depth unknown" 
		}

		webtext='Your current color depth is:&nbsp; ' + numbage + ' colors.';
		x = document.all?document.all[clrid]:document.getElementById(clrid); 
		x.innerHTML = webtext+'<br /><br />'; 
	}

// END: Functions For About Website



