/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

	create left navigation

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/




/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    declare variables
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/


var IAmTestingFile;
var leftNavContentCW01;
var leftNavContentCW02;
var leftNavContentCW03;
var leftNavContentCW04;
var leftNavContentCW05;
var leftNavContentME01;
var leftNavContentME02;
var leftNavContentME03;
var leftNavContentME04;
var leftNavContentME05;
var leftNavContentME06;
var leftNavContentME07;
var leftNavContentDE01;
var leftNavContentDE02;
var leftNavContentDE03;
var leftNavContentDE04;
var leftNavContentDE05;
var leftNavContentDE06;
var leftNavContentDE07;
var leftNavContentDE08;
var leftNavContentSE01;
var leftNavContentSE02;
var leftNavContentSE03;
var leftNavContentSE04;
var leftNavContentLA01;
var leftNavContentLA02;
var leftNavContentLA03;
var leftNavContentLA04;
var leftNavContentLA05;
var leftNavContentLA06;
var leftNavContentLA07;
var leftNavContentLA08;
var leftNavContentAU01;
var leftNavContentAU02;
var leftNavContentAU03;
var leftNavContentAU04;
var leftNavContentAU05;
var leftNavContentAU06;
var leftNavContentAU07;
var leftNavContentAU08;
var leftNavContentAU09;

/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    declare testing file
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/


IAmTestingFile = "_js/dc_js_left_nav.js";


/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    load the proper navigation scheme
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/



switch (theCurrentDirectory)
	{

	// alert("theCurrentSubDirectory = " + theCurrentSubDirectory);

	/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
		The Cooperative Way
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

	case "cooperativeway":

		var leftNavContentCW01 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'cooperativeway/membercooperatives/">Member Cooperatives</a><br />';
		var leftNavContentCW02 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'cooperativeway/cooperativeprinciples/">Cooperative Principles</a><br />';
		var leftNavContentCW03 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/careers/culture.html">Our Culture</a><br />';
		var leftNavContentCW04 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'cooperativeway/community/">Community</a><br />';
		var leftNavContentCW05 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'cooperativeway/legislativeactivity/">Legislative Activity</a><br />';
		
		switch (theCurrentSubDirectory)
			{
			case "membercooperatives":
				leftNavContentCW01 = '<a class="navBlueNav" href="' + theRelativeWebLocation + 'cooperativeway/membercooperatives/">Member Cooperatives</a><br /><br />';
			break;

			case "cooperativeprinciples":
				leftNavContentCW02 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'cooperativeway/cooperativeprinciples/">Cooperative Principles</a><br /><br />';
			break;

			case "ourculture":
				leftNavContentCW03 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/careers/culture.html">Our Culture</a><br /><br />';
			break;

			case "community":
				leftNavContentCW04 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'cooperativeway/community/">Community</a><br /><br />';
			break;

			case "legislativeactivity":
				leftNavContentCW05 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'cooperativeway/legislativeactivity/">Legislative Activity</a><br /><br />';
			break;

			default:
				// alert('ERROR: hit the default case in the cooperativeway switch statement - contact website administrator');
			break;
			}

		document.write(leftNavContentCW01 + leftNavContentCW02 + leftNavContentCW03 + leftNavContentCW04 + leftNavContentCW05);

	break;

	/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
		Making Electricity
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

	case "makingelectricity":

		var leftNavContentME01 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/coal/">Coal</a><br />';
		var leftNavContentME02 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/naturalgasoil/">Natural Gas&#47;Oil</a><br />';
		var leftNavContentME03 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/biomass/">Biomass</a><br />';
		var leftNavContentME04 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/renewables/">Renewables</a><br />';
		var leftNavContentME05 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/resourceplan/">Resource Plan</a><br />';
		var leftNavContentME06 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/newprojects/">New Projects</a><br />';
		var leftNavContentME07 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/distributedgeneration/">Distributed Generation</a><br />';

		switch (theCurrentSubDirectory)
			{
			case "coal":
				leftNavContentME01 = '<a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/coal/">Coal</a><br /><br />';
			break;

			case "naturalgasoil":
				leftNavContentME02 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/naturalgasoil/">Natural Gas&#47;Oil</a><br /><br />';
			break;

			case "biomass":
				leftNavContentME03 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/biomass/">Biomass</a><br /><br />';
			break;

			case "renewables":
				leftNavContentME04 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/renewables/">Renewables</a><br /><br />';
			break;

			case "resourceplan":
				leftNavContentME05 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/resourceplan/">Resource Plan</a><br /><br />';
			break;

			case "newprojects":
				leftNavContentME06 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/newprojects/">New Projects</a><br /><br />';
			break;

			case "distributedgeneration":
				leftNavContentME07 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'makingelectricity/distributedgeneration/">Distributed Generation</a><br /><br />';
			break;

			default:
				// alert('ERROR: hit the default case in the makingelectricity switch statement - contact website administrator');
			break;
			}

		document.write(leftNavContentME01 + leftNavContentME02 + leftNavContentME03 + leftNavContentME04 + leftNavContentME05 + leftNavContentME06 + leftNavContentME07);

	break;

	/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
		Delivering Electricity
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

	case "deliveringelectricity":

		var leftNavContentDE01 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/howpowergetstoyou/">How Power Gets to You</a><br />';
		var leftNavContentDE02 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/ourpowerlinesystem/">Our Power Line System</a><br />';
		var leftNavContentDE03 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/planningforthefuture/">Planning For The Future</a><br />';
		var leftNavContentDE04 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/energymarketing/">Energy Marketing</a><br />';
		var leftNavContentDE05 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/currentprojects/">Current Projects</a><br />';
		var leftNavContentDE06 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/faqs/">Frequently Asked Questions</a><br />';
		var leftNavContentDE07 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/safety/">Safety</a><br />';
		var leftNavContentDE08 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/connectingtooursystem/">Connecting To Our System</a><br />';

		switch (theCurrentSubDirectory)
			{
			case "howpowergetstoyou":
				leftNavContentDE01 = '<a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/howpowergetstoyou/">How Power Gets to You</a><br /><br />';
			break;

			case "ourpowerlinesystem":
				leftNavContentDE02 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/ourpowerlinesystem/">Our Power Line System</a><br /><br />';
			break;

			case "planningforthefuture":
				leftNavContentDE03 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/planningforthefuture/">Planning For The Future</a><br /><br />';
			break;

			case "energymarketing":
				leftNavContentDE04 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/energymarketing/">Energy Marketing</a><br /><br />';
			break;

			case "currentprojects":
				leftNavContentDE05 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/currentprojects/">Current Projects</a><br /><br />';
			break;

			case "faqs":
				leftNavContentDE06 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/faqs/">Frequently Asked Questions</a><br /><br />';
			break;

			case "safety":
				leftNavContentDE07 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/safety/">Safety</a><br /><br />';
			break;

			case "connectingtooursystem":
				leftNavContentDE08 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'deliveringelectricity/connectingtooursystem/">Connecting To Our System</a><br />';
			break;

			default:
				// alert('ERROR: hit the default case in the deliveringelectricity switch statement - contact website administrator');
			break;
			}

		document.write(leftNavContentDE01 + leftNavContentDE02 + leftNavContentDE03 + leftNavContentDE04 + leftNavContentDE05 + leftNavContentDE06 + leftNavContentDE07 + leftNavContentDE08);

	break;

	/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
		Saving Electricity
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

	case "savingelectricity":

		var leftNavContentSE01 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'savingelectricity/energyefficiency/">Energy Efficiency</a><br />';
		var leftNavContentSE02 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'savingelectricity/energyconservation/">Energy Conservation</a><br />';
		var leftNavContentSE03 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'savingelectricity/loadmanagement/">Load Management</a><br />';
		var leftNavContentSE04 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'savingelectricity/ratedesign/">Rate Design</a><br />';

		switch (theCurrentSubDirectory)
			{
			case "energyefficiency":
				leftNavContentSE01 = '<a class="navBlueNav" href="' + theRelativeWebLocation + 'savingelectricity/energyefficiency/">Energy Efficiency</a><br /><br />';
			break;

			case "energyconservation":
				leftNavContentSE02 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'savingelectricity/energyconservation/">Energy Conservation</a><br /><br />';
			break;

			case "loadmanagement":
				leftNavContentSE03 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'savingelectricity/loadmanagement/">Load Management</a><br /><br />';
			break;

			case "ratedesign":
				leftNavContentSE04 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'savingelectricity/ratedesign/">Rate Design</a><br />';
			break;

			default:
				// alert('ERROR: hit the default case in the savingelectricity switch statement - contact website administrator');
			break;
			}

		document.write(leftNavContentSE01 + leftNavContentSE02 + leftNavContentSE03 + leftNavContentSE04);

	break;

	/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
		Learn About
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

	case "learnabout":

		var leftNavContentLA01 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/currentprojects/">Current Projects</a><br />';
		var leftNavContentLA02 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/ourleedbuildings/">Our LEED Buildings</a><br />';
		var leftNavContentLA03 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/howpowergetstoyou/">How Power Gets To You</a><br />';
		var leftNavContentLA04 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'makingelectricity/">How Electricity is Made</a><br />';
		var leftNavContentLA05 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/environmental/">Our Environmental Impact</a><br />';
		var leftNavContentLA06 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'learnabout/valueofelectricity/">The Value of Electricity</a><br />';
		var leftNavContentLA07 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'deliveringelectricity/safety/">Safety</a><br />';
		var leftNavContentLA08 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'cooperativeway/community/">Community Support</a><br />';

		switch (theCurrentSubDirectory)
			{
			case "valueofelectricity":
				leftNavContentLA06 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'learnabout/valueofelectricity/">The Value of Electricity</a><br /><br />';
			break;

			default:
				// alert('ERROR: hit the default case in the savingelectricity switch statement - contact website administrator');
			break;
			}

		document.write(leftNavContentLA01 + leftNavContentLA02 + leftNavContentLA03 + leftNavContentLA04 + leftNavContentLA05 + leftNavContentLA06 + leftNavContentLA07 + leftNavContentLA08);
	break;

	/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
		About Us
	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

	case "aboutus":

		var leftNavContentAU01 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/whoweare/">Who We Are</a><br />';
		var leftNavContentAU02 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/financial/">Financial</a><br />';
		var leftNavContentAU03 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/ourleedbuildings/">Our LEED Buildings</a><br />';
		var leftNavContentAU04 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/socialresponsibility/">Social Responsibility</a><br />';
		var leftNavContentAU05 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/environmental/">Environmental</a><br />';
		var leftNavContentAU06 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'cooperativeway/community/">Community</a><br />';
		var leftNavContentAU07 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/otherservices/">Other Services</a><br />';
		var leftNavContentAU08 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/careers/">Careers</a><br />';
		var leftNavContentAU09 = '<a class="greenSmall" href="' + theRelativeWebLocation + 'aboutus/pressroom/">Press Room</a><br />';

		switch (theCurrentSubDirectory)
			{
			case "whoweare":
				leftNavContentAU01 = '<a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/whoweare/">Who We Are</a><br /><br />';
			break;

			case "financial":
				leftNavContentAU02 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/financial/">Financial</a><br /><br />';
			break;

			case "ourleedbuildings":
				leftNavContentAU03 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/ourleedbuildings/">Our LEED Buildings</a><br /><br />';
			break;

			case "socialresponsibility":
				leftNavContentAU04 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/socialresponsibility/">Social Responsibility</a><br /><br />';
			break;
			
			case "environmental":
				leftNavContentAU05 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/environmental/">Environmental</a><br /><br />';
			break;

			case "otherservices":
				leftNavContentAU07 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/otherservices/">Other Services</a><br /><br />';
			break;

			case "careers":
				leftNavContentAU08 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/careers/">Careers</a><br /><br />';
			break;

			case "pressroom":
				leftNavContentAU09 = '<br /><a class="navBlueNav" href="' + theRelativeWebLocation + 'aboutus/pressroom/">Press Room</a><br />';
			break;

			//default:
				// alert('ERROR: hit the default case in the aboutus switch statement - contact website administrator');
			//break;
			}

		document.write(leftNavContentAU01 + leftNavContentAU02 + leftNavContentAU03 + leftNavContentAU04 + leftNavContentAU05 + leftNavContentAU06 + leftNavContentAU07 + leftNavContentAU08 + leftNavContentAU09);

	break;
	
	default:
		// alert('ERROR: hit the default case in the main left nav switch statement - contact website administrator');
	break;
	}


/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	testing messages
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/


if (IAmTesting) {alert("=====\nTESTING\n=====\nFile: " + IAmTestingFile + "\n\nMESSAGE: theUrl = " + theUrl)};