function InstallTools()
{
	if($('interests'))
	{
		var theInputs = $('interests').getElementsByTagName('input');
		programSwitch.init(theInputs
						   , Array( $('dropOnlineBa')
						   		  , $('dropOnlineMa')
						   		  , $('dropCampusBa')
						   		  , $('dropCampusAdult')
						   	 	  )
						   	);
	
		var onlineFlip = new InterestSwitch();
		var theOnlineBaSwing = {4: 'dropOnlineBaInterests', 5: 'none'};
		onlineFlip.init($('OnlineBa'), theOnlineBaSwing, Array( $('dropOnlineBaInterests') ) );
	
		var adultFlip = new InterestSwitch();
		var theAdultSwing = {3: 'none', 4: 'dropCampusAdultInterests'};
		adultFlip.init($('campusAdult'), theAdultSwing, Array( $('dropCampusAdultInterests') ) );
	
	
		var theForm = $('riform');
		var theFields = Array();
		theFields.push({name: 'fname', type: 'empty', msg: 'Please enter your first name.'});
		theFields.push({name: 'lname', type: 'empty', msg: 'Please enter your last name.'});
		theFields.push({name: 'address', type: 'empty', msg: 'Please enter your address'});
		theFields.push({name: 'city', type: 'empty', msg: 'Please enter your city.'});
		theFields.push({name: 'state', type: 'empty', msg: 'Please select your state from the list.'});
		theFields.push({name: 'zip', type: 'empty', msg: 'Please enter your zip/postal code.'});
		theFields.push({name: 'country', type: 'empty', msg: 'Please select your country from the list.'});
		theFields.push({name: 'busphone', type: 'empty', msg: 'Please enter your daytime phone number.'});
		theFields.push({name: 'homephone', type: 'empty', msg: 'Please enter your evening phone number.'});
		theFields.push({name: 'email', type: 'email', msg: 'Please enter your email.'});
		theFields.push({name: 'email2', type: 'email', msg: 'Please confirm your email address.'});
		//theFields.push({name: 'agerange', type: 'empty', msg: 'Please select your age range from the list.'});
		theFields.push({name: 'edlevel', type: 'empty', msg: 'Please select your education level from the list.'});
		theFields.push({name: 'military_affiliation', type: 'empty', msg: 'Please select your military affiliation from the list.'});
	
		FV.Install(theForm, theFields);
		
		//Open pre-selected element's concentrations
		for(var i=0; i<theInputs.length; i++)
		{
			if(theInputs[i].checked)
			{
				programSwitch.listProgram(theInputs[i].alt);
			}
		}
	}
}

// Add program switcher tools and form validation
addEvent(window, 'load', function(){ InstallTools(); });
