ASTurl    = new Array(13);
ASTurl[1] ="./ASTScreens/01-Loaded%20Requests-Map.gif";
ASTurl[2] ="./ASTScreens/02-Loaded%20Requests-Missions.gif";
ASTurl[3] ="./ASTScreens/03-Loaded%20Requests-Requests.gif";
ASTurl[4] ="./ASTScreens/04-Loaded%20Requests-Request%20Descriptions.gif";
ASTurl[5] ="./ASTScreens/05-Loaded%20Requests-Aircraft.gif";
ASTurl[6] ="./ASTScreens/06-Loaded%20Requests-ICAOs.gif";
ASTurl[7] ="./ASTScreens/07-Loaded%20Requests-ICAO%20Description.gif";
ASTurl[8] ="./ASTScreens/08-Processed-Map.gif";
ASTurl[9] ="./ASTScreens/09-Processed-Missions.gif";
ASTurl[10]="./ASTScreens/10-Processed-Mission%20Description.gif";
ASTurl[11]="./ASTScreens/11-Processed-Requests.gif";
ASTurl[12]="./ASTScreens/12-Processed-Aircraft.gif";

t300url    = new Array(13);
t300url[1] ="./ASTScreens/300wide/01-Loaded%20Requests-Map.gif";
t300url[2] ="./ASTScreens/300wide/02-Loaded%20Requests-Missions.gif";
t300url[3] ="./ASTScreens/300wide/03-Loaded%20Requests-Requests.gif";
t300url[4] ="./ASTScreens/300wide/04-Loaded%20Requests-Request%20Descriptions.gif";
t300url[5] ="./ASTScreens/300wide/05-Loaded%20Requests-Aircraft.gif";
t300url[6] ="./ASTScreens/300wide/06-Loaded%20Requests-ICAOs.gif";
t300url[7] ="./ASTScreens/300wide/07-Loaded%20Requests-ICAO%20Description.gif";
t300url[8] ="./ASTScreens/300wide/08-Processed-Map.gif";
t300url[9] ="./ASTScreens/300wide/09-Processed-Missions.gif";
t300url[10]="./ASTScreens/300wide/10-Processed-Mission%20Description.gif";
t300url[11]="./ASTScreens/300wide/11-Processed-Requests.gif";
t300url[12]="./ASTScreens/300wide/12-Processed-Aircraft.gif";

ASTtitleExt    = new Array(13);
ASTtitleExt[1] ="Map Tab After Loading Requests (01)";
ASTtitleExt[2] ="Missions Tab After Loading Requests (02)";
ASTtitleExt[3] ="Requests Tab After Loading Requests (03)";
ASTtitleExt[4] ="Request Descriptions, After Loading Requests (04)";
ASTtitleExt[5] ="Aircraft Tab After Loading Requests (05)";
ASTtitleExt[6] ="ICAOs Tab, After Loading Requests (06)";
ASTtitleExt[7] ="ICAO Description, After Loading Requests (07)";
ASTtitleExt[8] ="Map Tab After Processing Requests (08)";
ASTtitleExt[9] ="Missions Tab After Processing Requests (09)";
ASTtitleExt[10]="Mission Description After Processing Requests (10)";
ASTtitleExt[11]="Requests Tab After Processing Requests (11)";
ASTtitleExt[12]="Aircraft Tab After Processing Requests (12)";

ASTBigImgTip    = new Array(13);
ASTBigImgTip[1] ="AST displays transportation requests (blue lines) and relevant locations (black or red squares with standard code identifiers) on a map of the world. This image of the AST shows the appearance before planning missions, so the right-hand pane for scheduled missions is empty.";
ASTBigImgTip[2] ="The table of missions is initially empty. As the AST processes requests, the missions it proposes appear in the table below the Requests Satisfaction table.";
ASTBigImgTip[3] ="The table of requests shows both the specifications passed from JALIS to the AST and a summary of how the AST has dispatched each request to a mission.";
ASTBigImgTip[4] ="This window shows more detailed request descriptions, including preferred departure and arrival times, names of passengers, and the costing information used for optimizations by the AST. Once processing is complete, mission assignments also appear.";
ASTBigImgTip[5] ="This view shows the aircraft which are available for use by the scheduler. Typically the JALIS operator will make only a sensible subset of all working aircraft available to the AST, and only these selected aircraft appear in the table.";
ASTBigImgTip[6] ="The ICAOs view shows information about the airstrips relevant to the requests and missions under consideration.";
ASTBigImgTip[7] ="The ICAO Description shows more details like hours of operation, runway strength rating, time zone, and other information like distance and flying times to other airstrips.";
ASTBigImgTip[8] ="As the AST builds schedules, they are drawn on the map in a distinct color. Color coding also distinguishes satisfied and unsatisfiable requests from requests which are not yet processed. Note that the right hand pane now lists missions created and they are selectable.";
ASTBigImgTip[9] ="The Missions Tab now lists all of the missions assembled by the scheduler, along with summary statistics of the portion of requests satisfied (in this example, 100%).";
ASTBigImgTip[10]="These mission descriptions give the operator all the details necessary to determine whether each mission makes sense both logistically and economically.";
ASTBigImgTip[11]="The requests view will also reflect the disposition of each request, normally some assignment to a mission, but if not then reasons appear with the detailed request descriptions.";
ASTBigImgTip[12]="After processing, the aircraft view will show the assignment of aircraft to missions.";


var horizontalPadding = 40, defaultWidth=559;

fullwidth = new Array(13);
fullwidth[1]  = defaultWidth + horizontalPadding;
fullwidth[2]  = defaultWidth + horizontalPadding;
fullwidth[3]  = defaultWidth + horizontalPadding;
fullwidth[4]  = 542 + horizontalPadding;
fullwidth[5]  = defaultWidth + horizontalPadding;
fullwidth[6]  = defaultWidth + horizontalPadding;
fullwidth[7]  = 535 + horizontalPadding;
fullwidth[8]  = defaultWidth + horizontalPadding;
fullwidth[9]  = defaultWidth + horizontalPadding;
fullwidth[10] = 546 + horizontalPadding;
fullwidth[11] = defaultWidth + horizontalPadding;
fullwidth[12] = defaultWidth + horizontalPadding;


var maxHeight=500;
var gifIndex=1;

function showupdate(photoIndex)
{
	document.getElementById('bigPhoto').src = t300url[photoIndex];
	document.getElementById('bigPhoto').title = ASTtitleExt[photoIndex];
	document.getElementById('bigPhoto').alt = ASTtitleExt[photoIndex];
	gifIndex=photoIndex;	
	return;
}

function wopen() 
{
	if (window.image) 
	{
		if(!(image.closed)) 
		{
			image.close();
		}
	}
          var windowFeatures =  "resizable=yes, scrollbars=yes, dependent=yes, titlebar=no, height="
		 + maxHeight + " ,width=" + fullwidth[gifIndex];
	image = window.open("image.php?index="+gifIndex,"image", windowFeatures);
	image.focus();
}



function printImage() {
	var args = getArgs();
	if (args.index) index = parseInt(args.index);	
	document.write("<img src='");
	document.write(ASTurl[index]);
	document.write("', title='"); 
	document.write(ASTBigImgTip[index]);
	document.write("'>");	
	document.title="Model Software Corp - " + ASTtitleExt[index];
}

function getArgs() {
	var args = new Object();
	var query = location.search.substring(1);
	var pairs = query.split("&");
	for(var i = 0; i < pairs.length; i++) {
		var pos = pairs[i].indexOf('=');
		if (pos == -1) continue;
		var argname = pairs[i].substring(0,pos);
		var value = pairs[i].substring(pos+1);
		args[argname]=decodeURIComponent(value);
	}
	return args;
}




