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

	control the dropdown menu action

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




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


var IAmTestingFile;
var textFeatureContent;


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


IAmTestingFile = "_js/feature_image.js";


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


switch (theCurrentFeature)  // theCurrentFeature comes from the parse_url.js file
	{
	case "whatsnew":
		{
		textFeatureContent = ''
		// content comes from Publisher
		break;
		}
	case "projects":
		{
		textFeatureContent = '<h1></h1><hr size="2" width="80%"><p class="Subhead">Find current projects in your area</p>';
		textFeatureContent += '<p class="textGray">Click on the links to find information about power line projects, including open house information, status updates, why the projects are needed and more.  Information about generation projects also is available.</p>';
		break;
		}
	case "energysavings":
		{
		textFeatureContent = '<h1></h1><hr size="2" width="80%"><p class="Subhead">Energy Savings</p>';
		textFeatureContent += '<p class="textGray">Saving energy doesn’t have to mean going without. Simple steps around your home or business can add up to big savings. Great River Energy encourages the wise use energy through conservation, energy efficiency, demand response and price signals.</p>';
		textFeatureContent += '<a class="green" href="savingelectricity/">Learn More &#187;</a>';
		break;
		}
	case "membercoops":
		{
		textFeatureContent = '<h1></h1><hr size="2" width="80%"><p class="Subhead">Member Co-ops</p>';
		textFeatureContent += '<p class="textGray">As a cooperative, Great River Energy is owned and operated by the members it serves. Our 28 member cooperatives are an essential part of our organization. Those member cooperatives distribute electricity to more than 645,000 member consumers.</p>';
		textFeatureContent += '<a class="green" href="cooperativeway/membercooperatives/">Learn More &#187;</a>';
		break;
		}
	default:
		{
		textFeatureContent = ''
		// alert("hit the theCurrentFeature default")
		}
	}


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


document.write(textFeatureContent);


/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	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: textFeatureContent = " + textFeatureContent)};

