<!-- hide from JavaScript-challenged browsers
var popupWin = null; 
var CONTROLLEDPAGES = 8;
var controlledWin = new Array(CONTROLLEDPAGES);
var rice = "rice";
var corn = "corn";
var fuel = "fuel";
var diesel = "diesel";
var dirt = "dirt";
var newin = "newin";
var cotton = "cotton";
var door = "door";


function winAttributes(URL, name, featureString) {
	this.URL = URL;
	this.name = name;
	this.featureString = featureString; 
}

var riceWin = new winAttributes("", rice, "width=600,height=420,left=50,top=50");
controlledWin [0] = riceWin;
var cornWin = new winAttributes("", corn, "width=600,height=410,left=50,top=50");
controlledWin [1] = cornWin;
var fuelWin = new winAttributes("", fuel, "width=600,height=480,left=50,top=50");
controlledWin [2] = fuelWin;
var dieselWin = new winAttributes("", diesel, "width=600,height=480,left=50,top=50");
controlledWin [3] = dieselWin;
var dirtWin = new winAttributes("", dirt, "width=600,height=400,left=50,top=50");
controlledWin [4] = dirtWin;
var cottonWin = new winAttributes("", cotton, "width=600,height=430,left=50,top=50");
controlledWin [5] = cottonWin;
var newinWin = new winAttributes("", newin, "width=600,height=430,left=50,top=50");
controlledWin [6] = newinWin;
var doorWin = new winAttributes("", door, "width=600,height=410,left=50,top=50");
controlledWin [7] = doorWin;

function openWin(name, URL) {
	for (i = 0; i < controlledWin.length; i++) {
		var tempWin = controlledWin[i];
		if (name == tempWin.name) {
			popupWin = window.open(URL, tempWin.name, tempWin.featureString);
		}
	}
}

function winControl(name, url) {
	if (popupWin == null){
		openWin(name, url);
	} 
	else if (!popupWin.closed){
		popupWin.close();
		openWin(name, url);
	}
	else {
		openWin(name, url);
	}
	self.name = "nmfnParent";
}

function openLegal(targ) {
	if (window.opener && window.opener.location)
	{
		window.opener.location.href=targ;
	}
	else
	{
		window.open(targ, 'legal');
	}
}
// done hiding -->
