function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// BrowserCheck --DG

	var bIsIE = navigator.appName == "Microsoft Internet Explorer";
	var bIsIE4 = bIsIE && navigator.appVersion.indexOf("4.") > -1;
	var bIsNS = navigator.appName != "Microsoft Internet Explorer";
	var bIsNS4 = bIsNS && navigator.appVersion.indexOf("4.") > -1;
	
// end BrowserCheck --DG
// Set Date --DG
// Array of month Names --DG
var monthNames = new Array(
"January","February","March","April","May","June","July","August","September","October","November","December");
var now = new Date();
  if (bIsIE4){
 var year = now.getYear()
 }else{
 var year = 1900 + (now.getYear())
 }
// Set myDate to the current date --DG
var myDate = (monthNames[now.getMonth()] + " " + now.getDate() + ", " + year);
// end Set Date --DG
// Set status bar greeting --DG
window.defaultStatus = "Welcome to Sabre";
// Launch Centered Window --BL
function launch(url, title, width, height, scrollbars, resizable, toolbar, status, location, menubar, directories)
	{
	if(!scrollbars){scrollbars=0}
	if(!resizable){resizable=0}
	if(!toolbar){toolbar=0}
	if(!status){status=0}
	if(!location){location=0}
	if(!menubar){menubar=0}
	if(!directories){directories=0}
	var w = screen.width;
	var h = screen.height;
	var l = (w-width)/2;
	var t = (h-height)/2;
	var settings = 'location='+location+',toolbar='+toolbar+',directories='+directories+',status='+status+',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
	var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
	var size = 'width=' + width + ',innerWidth=' + width +', height=' + height + ',innerHeight=' + height;
	var settings = settings + ',' + position + ',' + size
	window.open(url, title, settings);
	}
	
function launch2(url, title, width, height, scrollbars, resizable, toolbar, status, location, menubar, directories)
	{
	if(!scrollbars){scrollbars=0}
	if(!resizable){resizable=1}
	if(!toolbar){toolbar=0}
	if(!status){status=0}
	if(!location){location=0}
	if(!menubar){menubar=0}
	if(!directories){directories=0}
	var w = screen.width;
	var h = screen.height;
	var l = (w-width)/2;
	var t = (h-height)/2;
	var settings = 'location='+location+',toolbar='+toolbar+',directories='+directories+',status='+status+',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;
	var position =  'top=' + t + ',screenY=' + t + ',left=' + l + ',screenX=' + l;
	var size = 'width=' + width + ',innerWidth=' + width +', height=' + height + ',innerHeight=' + height;
	var settings = settings + ',' + position + ',' + size
	window.open(url, title, settings);
	}

function killCookies(){
	path="/"
	document.cookie = "level1=-1; path="+path
	document.cookie = "level2=-1; path="+path
	document.cookie = "level3=-1; path="+path
}

function careersJump(url){
window.opener.location = url;
window.self.close();
}

/////////////////////////////////////////////////////////////////////
// Printable Version | Brian Lewis
/////////////////////////////////////////////////////////////////////
function printablePage(){
	currentURL = window.location
	currentURL = currentURL.toString()
	lastSlash = currentURL.lastIndexOf('/')
	fileName = currentURL.substring((lastSlash+1), currentURL.length).toString()
	fileName = fileName.substring(0, fileName.lastIndexOf('.'))
	printPath = "/www/printable/" + fileName + ".htm"
	launch(printPath, '', 600, 400, 1, 1, 0, 0, 0, 0, 0)
}
MM_preloadImages('/www/assets/level0_nochild.gif','/www/assets/level0_nochild.gif','/www/assets/level0_regular.gif','/www/assets/level0_round.gif','/www/assets/level1_regular.gif','/www/assets/level1_sub.gif','/www/assets/level1_round2.gif','/www/assets/level2_regular.gif','/www/assets/wwwnav_01-over.gif','/www/assets/wwwnav_02-over.gif','/www/assets/wwwnav_03-over.gif','/www/assets/wwwnav_04-over.gif','/www/assets/wwwnav_05-over.gif')
window.defaultStatus = "Welcome to Sabre Holdings";

//Webcast Disclaimer --DG
function disclaimer(y)
{
	window.open(y,"Disclaimer",'height=400,width=500,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
}