$(document).ready(function() {
	$('#brochure_v9').attr('title', 'v9');
	$('#brochure_mPlanning').attr('title', 'Maintenance Planning')
	$('#brochure_mScheduling').attr('title', 'Maintenance Scheduling');
	$('#brochure_ahrm').attr('title', 'AHRM');
	$('#brochure_basemaintenance').attr('title', 'Base Maintenance');
	$('#brochure_capacitymodeling').attr('title', 'Capacity Modeling');
	$('#brochure_efbtechlogs').attr('title', 'efbTechLogs');
	$('#brochure_ereporting').attr('title', 'eReporting');
	$('#brochure_ecabin').attr('title', 'eCabin');
	$('#brochure_efbcontentmanager').attr('title', 'efbContentManager');
	$('#brochure_efbgroundsystem').attr('title', 'efbGroundSystem');
});


function getURLParam(param) {
	var urlParam = new String;							// Declare the return variable as a string
	urlParam = false;
	var url = window.location.href;						// Get the url
	if(url.indexOf("?") != -1) {						// Check if the url contains a '?'
		var str = new Array();
		str = url.split('?');							// Split the url...
		url = str[1];									// ...and store the stuff after the '?'
		
		if(url.indexOf(param) != -1) {					// Check if the new url contains the desired parameter
			if(url.indexOf("&") != -1) {				// Check if the url contains '&'...
				var str = new Array();
				str = url.split('&');					// ...then split it into an array...
				for(var i = 0; i < str.length; i++) {
					if(str[i].indexOf(param) != -1) {
						var str2 = new Array();			// Make a new array to test if the parameter is
						str2 = str[i].split('=');		// equal to variable param and not the value
						if(str2[0] == param) {
							url = str[i];				// ...and omit the rest
							break;
						}
					}
				}
			}
			var str = new Array();						// We now have only the parameter and its attribute
			str = url.split('=');						// Split the url at the '='...
			if(str[0] == param) {
				urlParam = str[1];						// ...and store just the attribute
			}
		}
	}
	return urlParam;									// Return: (bool)false | (string)attribute
}
