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

	control the dropdown menu action

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




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


var IAmTestingFile;
var linksFeatureContent;


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


IAmTestingFile = "_js/feature_links.js";


/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    load the proper photo
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/


switch (theCurrentFeature)  // theCurrentFeature comes from the parse_url.js file
	{
	case "whatsnew":
		{
		// content comes from Publisher
		break;
		}
	case "projects":
		{
		linksFeatureContent = '<h1></h1><hr size="2" width="80%"><p class="Subhead">Links</p><p class="textGray">';
		linksFeatureContent += '<a class="green" href="deliveringelectricity/currentprojects/">Power line projects</a><br /><br />';
		linksFeatureContent += '<a class="green" href="makingelectricity/newprojects/spiritwoodstation.html">Spiritwood Station</a><br /><br />';
		linksFeatureContent += '<a class="green" href="makingelectricity/newprojects/dryfining.html">Coal refining</a></p>';
		break;
		}
	case "energysavings":
		{
		linksFeatureContent = '<h1></h1><hr size="2" width="80%"><p class="Subhead">More</p><p class="textGray">';
		linksFeatureContent += '<a class="green" href="savingelectricity/energyefficiency/">Energy efficiency</a><br /><br />';
		linksFeatureContent += '<a class="green" href="savingelectricity/energyconservation/">Energy conservation </a><br /><br />';
		linksFeatureContent += '<a class="green" href="aboutus/ourleedbuildings/">Our LEED buildings</a></p>';
		break;
		}
	case "membercoops":
		{
		linksFeatureContent = '<h1></h1><hr size="2" width="80%"><p class="Subhead">More</p><p class="textGray">';
		linksFeatureContent += '<a class="green" href="cooperativeway/community/">Community</a><br /><br />';
		linksFeatureContent += '<a class="green" href="cooperativeway/">Cooperative Way</a></p>';
		break;
		}
	default:
		{
		linksFeatureContent = '';
		// alert("hit the theCurrentFeature default")
		}
	}


/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    write out the proper photo
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/


document.write(linksFeatureContent);


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


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