function setTopNav(id) { 
	var item = document.getElementById(id); 
		if (item != null) item.className = "topMenu_SelectedItem"; 
} 

function topMenuMouseOver(id) { 
	var item = document.getElementById(id); 
		if (item.className != "topMenu_SelectedItem") item.className = "topMenu_HoverItem";
} 

function topMenuMouseOut(id) { 
	var item = document.getElementById(id); 
		if (item.className != "topMenu_SelectedItem") item.className = "topMenu_DefaultItem"; 
} 

function setSideNav(id) { 
	var item = document.getElementById(id); 
		if (item != null) item.className = "sideMenu_SelectedItem"; } 

function sideMenuMouseOver(id) { 
	var item = document.getElementById(id); 
		if (item.className != "sideMenu_SelectedItem") item.className = "sideMenu_HoverItem"; } 

function sideMenuMouseOut(id) { 
	var item = document.getElementById(id); 
		if (item.className != "sideMenu_SelectedItem") item.className = "sideMenu_DefaultItem"; }

function show(imageSrc) {
    if (document.images) document.images['myImage'].src = imageSrc;
}

function pageLastUpdated() {
    document.writeln("Page last updated on: " +document.lastModified);
}

// by Paul Davis - http://www.kaosweaver.com
// breadCrumbs("www.atlantajet.com",">","index.htm","TextBread","TextBread","TextBread","0")
function breadCrumbs(base,delStr,defp,cStyle,tStyle,dStyle,nl) { 
	loc=window.location.toString();
	subs=loc.substr(loc.indexOf(base)+base.length+1).split("/");
 	document.write('<a href="'+getLoc(subs.length-1)+defp+'" class="'+cStyle+'">Atlanta Jet Home</a>  '+'<span class="'+dStyle+'">'+delStr+'</span> ');
 	a=(loc.indexOf(defp)==-1)?1:2;
 	for (i=1;i<(subs.length-a);i++) {
		subs[i]=makeCaps(unescape(subs[i]));
 		document.write('<a href="'+getLoc(subs.length-i-2)+defp+'" class="'+cStyle+'">'+subs[i]+'</a>  '+'<span class="'+dStyle+'">'+delStr+'</span> ');
	}
	if (nl==1) 
 		document.write("<br />");
 	document.write('<span class="'+tStyle+'">'+document.title+'</span>');
}

function makeCaps(a) {
  g=a.split(' ');
  for (l=0;l<g.length;l++) g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
  return g.join(" ");
}

function getLoc(c) {
  var d="";
  if (c>0) 
  	for (k=0;k<c;k++) 
		d=d+"../"; 
  return d;
}

// Kaosweaver Live Clock Start
function class_clock(h,d,m,g,z) { // Copyright 2002 by Kaosweaver, All rights reserved
	this.h=h;
	this.d=d;
	this.g=g;
	this.z=z;
	this.o="";

	if (m==1) 
		this.o+=doDate("| &nbsp; &nbsp; <span style='color:#7c6d63; font-weight:normal;'>Today's date: &nbsp; </span>","W0",", ","M1"," ","D1",", ","Y0"," &nbsp; &nbsp; | &nbsp; &nbsp; ");

}
var clock=new class_clock(1,1,1,1,+5) // Last value needs to be changed for DST (from +5 to +4)

function KW_doClock(a) { // Copyright 2003 by Kaosweaver, All rights reserved
	d=document;
	t=new Date();
	p="";
	dClock="";
	
	if (d.layers) d.wrapClock.visibility="show";
	
	tD=(t.getTimezoneOffset()-(clock.z*60))*clock.g;
	t.setMinutes(tD+t.getMinutes())
	h=t.getHours();
	m=t.getMinutes();
	s=t.getSeconds();
	if (clock.h) {
		p=(h>11)?"pm":"am";
		h=(h>12)?h-12:h;
		h=(h==0)?12:h;
		}
	if (clock.d) {
		m=(m<=9)?"0"+m:m;
		s=(s<=9)?"0"+s:s;
		}
	dClock = clock.o+"<span style='color:#7c6d63; font-weight:normal;'>Time in Atlanta: &nbsp; </span>"+h+':'+m+':'+s+' '+p+'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;';
	if (a) {
		d.write(dClock);
		}
	if (d.layers) {
		wc = document.wrapClock;
		lc = wc.document.activeClock;
		lc.document.write(dClock);
		lc.document.close();
	} 
	else if (d.all) {
		activeClock.innerHTML = dClock;
	}
	else if (d.getElementById) {
		d.getElementById("activeClock").innerHTML = dClock;
		}
	if (!a) setTimeout("KW_doClock()",1000);
}


function doDate() { // Copyright 2002 by Kaosweaver, All rights reserved.
	var t=new Date(),a=doDate.arguments,str="",i,a1,lang="1";
	var month=new Array('January','Jan', 'February','Feb', 'March','Mar', 'April','Apr', 'May','May', 'June','Jun', 'July','Jul', 'August','Aug', 'September','Sep', 'October','Oct', 'November','Nov', 'December','Dec');
	var tday= new Array('Sunday','Sun','Monday','Mon', 'Tuesday','Tue', 'Wednesday','Wed','Thursday','Thr','Friday','Fri','Saturday','Sat');
	
	for(i=0; i<a.length; i++) {
		a1=a[i].charAt(1);
		switch (a[i].charAt(0)) {
			case "M":
				if ((Number(a1)==3) && ((t.getMonth()+1)<10)) str+="0";
				str+=(Number(a1)>1)?t.getMonth()+1:month[t.getMonth()*2+Number(a1)];
				break;
			case "D":
				if ((Number(a1)==1) && (t.getDate()<10)) str+="0";str+=t.getDate();
				break;
			case "Y":
				str+=(a1=='0')?t.getFullYear():t.getFullYear().toString().substring(2);
				break;
			case "W":
				str+=tday[t.getDay()*2+Number(a1)];
				break; default: str+=unescape(a[i]);
			}
		}
	return str;
}// Kaosweaver Live Clock End

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

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();
}