// This file is maintained as part of AIFP but is included in any location
// on the website linking to the flight planner. It is not called directly
// in AIFP.
// - BR

// Open AIFP in a new window with browser chrome disabled.
// Example use:
// <a href="javascript:launch_aifp('/aifp')">Internet Flight Planner</a>
function launch_aifp(url) {
	// This is no longer used but may be in the future. It retrieves the
	// usable width and height within the current browser window -BR
	/*var width, height;
	if(typeof(window.innerWidth) == 'number') {
		// non-IE
		width=window.innerWidth;
		height=window.innerHeight;
	} else {
		// IE
		width=document.documentElement.clientWidth;
		height=document.documentElement.clientHeight;
	} */

	window.open(url, 'aifp', 'menubar=0,status=0,location=0,scrollbars=0,toolbar=0,resizable=1');
}
