// JavaScript Document
var rootUrl = "/equipmentservices/assetintelligence";
//var rootURL = document.location.
//var rootUrl = "file:///C:/Documents%20and%20Settings/gibbitz/My%20Documents/hoosegow/www/LEC/GE/DEV";
function rootpage(obj){	
	with (document.rootpager){
		router(obj[obj.selectedIndex].value);
	}
}
function router(val){
	switch (val){
		case '1':
			window.location.href=rootUrl+"/solutions/segments/trucking/index.html";
		break;
		
		case '2':
			window.location.href=rootUrl+"/solutions/segments/rail/index.html";
		break;
		
		case '3':
			window.location.href=rootUrl+"/solutions/segments/marine/index.html";
		break;
		
		case '4':
			window.location.href=rootUrl+"/solutions/segments/intermodal/index.html";
		break;
		
		case '5':
			window.location.href=rootUrl+"/solutions/segments/index.html";
		break;
		
		case '6':
			window.location.href=rootUrl+"/solutions/capabilities/cold_chain/index.html";
		break;
		
		case '7':
			window.location.href=rootUrl+"/solutions/capabilities/security/index.html";
		break;
		
		case '8':
			window.location.href=rootUrl+"/solutions/capabilities/predictive_maintenance/index.html";
		break;
		
		case '9':
			window.location.href=rootUrl+"/solutions/capabilities/condition_monitoring/index.html";
		break;
		
		case '10':
			window.location.href=rootUrl+"/solutions/capabilities/fuel_management/index.html";
		break;
		
		case '10.5':
			window.location.href=rootUrl+"/solutions/capabilities/asset_utilization/index.html";
		break;
		
		case '11':
			window.location.href=rootUrl+"/solutions/capabilities/index.html";
		break;
		
		case '12':
			window.location.href=rootUrl+"/products/sensors/index.html";
		break;
		
		case '13':
			window.location.href=rootUrl+"/products/monitor_diagnostics/index.html";
		break;
		
		case '14':
			window.location.href=rootUrl+"/products/reports/index.html";
		break;
		
		case '15':
			window.location.href=rootUrl+"/products/trucking_AtoZ.html";
		break;
		
		case '16':
			window.location.href=rootUrl+"/products/rail_AtoZ.html";
		break;
		
		case '17':
			window.location.href=rootUrl+"/products/marine_AtoZ.html";
		break;
		
		case '18':
			window.location.href=rootUrl+"/products/intermodal_AtoZ.html";
		break;
		
		case '19':
			window.location.href=rootUrl+"/products/AtoZ.html";
		break;
		
		case '20':
			window.location.href=rootUrl+"/solutions/segments/trucking/cold_chain/index.html";
		break;
		
		case '21':
			window.location.href=rootUrl+"/solutions/segments/trucking/security/index.html";
		break;
		
		case '22':
			window.location.href=rootUrl+"/solutions/segments/trucking/predictive_maintenance/index.html";
		break;
		
		case '23':
			window.location.href=rootUrl+"/solutions/segments/trucking/condition_monitoring/index.html";
		break;
		
		case '24':
			window.location.href=rootUrl+"/solutions/segments/trucking/fuel_management/index.html";
		break;
		
		case '25':
			window.location.href=rootUrl+"/solutions/segments/rail/security/index.html";
		break;
		
		case '26':
			window.location.href=rootUrl+"/solutions/segments/rail/predictive_maintenance/index.html";
		break;
		
		case '27':
			window.location.href=rootUrl+"/solutions/segments/rail/condition_monitoring/index.html";
		break;
		
		case '28':
			window.location.href=rootUrl+"/solutions/segments/rail/fuel_management/index.html";
		break;
		
		case '29':
			window.location.href=rootUrl+"/solutions/segments/rail/asset_utilization/index.html";
		break;
		
		case '31':
			window.location.href=rootUrl+"/solutions/segments/trucking/security/index.html";
		break;
		
		case '37':
			window.location.href=rootUrl+"/solutions/segments/rail/predictive_maintenance/index.html";
		break;
		
		case '40':
			window.location.href=rootUrl+"/products/sensors/trucking/index.html";
		break;
		
		case '41':
			window.location.href=rootUrl+"/products/sensors/rail/index.html";
		break;
		
		
		
		case '42':
			window.location.href=rootUrl+"/products/sensors/marine/index.html";
		break;
		
		case '42.5':
			window.location.href=rootUrl+"/products/marine_AtoZ.html";
		break;
		
		case '43':
			window.location.href=rootUrl+"/products/sensors/intermodal/index.html";
		break;
		
		case '43.5':
			window.location.href=rootUrl+"/products/intermodal_AtoZ.html";
		break;
		
		case '44':
			window.location.href=rootUrl+"/products/monitor_diagnostics/trucking/index.html";
		break;
		
		case '45':
			window.location.href=rootUrl+"/products/monitor_diagnostics/rail/index.html";
		break;
		
		case '46':
			window.location.href=rootUrl+"/products/monitor_diagnostics/marine/index.html";
		break;
		
		case '46.5':
			window.location.href=rootUrl+"/products/marine_AtoZ.html";
		break;
		
		case '47':
			window.location.href=rootUrl+"/products/monitor_diagnostics/intermodal/index.html";
		break;
		
		case '47.5':
			window.location.href=rootUrl+"/products/intermodal_AtoZ.html";
		break;
		
		case '48':
			window.location.href=rootUrl+"/products/reports/trucking/index.html";
		break;
		
		case '49':
			window.location.href=rootUrl+"/products/reports/rail/index.html";
		break;
		
		case '50':
			window.location.href=rootUrl+"/products/reports/marine/index.html";
		break;
		
		case '50.5':
			window.location.href=rootUrl+"/products/marine_AtoZ.html";
		break;
		
		case '51':
			window.location.href=rootUrl+"/products/reports/intermodal/index.html";
		break;
		
		case '51.5':
			window.location.href=rootUrl+"/products/intermodal_AtoZ.html";
		break;
	}
}

function setFieldValue(fieldRef, str) {
	obj = eval(fieldRef);
	if (obj.value == str) {
		obj.value = "";
	}
	else if (obj.value == "") {
		obj.value = str;
	}
}

function jumpurl(obj){
	if (obj[obj.selectedIndex].value != '0') {
		window.location.href=obj[obj.selectedIndex].value
	}
}

function sendMail(passed){
	var email;
	switch(passed){
		case 'TRUCKING':
			email = "intelligencemail@ge.com";
			break;
		case 'RAIL':
			email = "intelligencemail@ge.com";
			break;
		case 'MARINE':
			email="Jorge.saenz1@ge.com";
			break;
		case 'INTERMODAL':
			email="kim.seiffert@ge.com";
			break;
		default:
			email="gautham.appaya@ge.com";
			break;
	}
	document.location = "mailto:"+ email +"?subject=web%20inquiry";	
}
