<!--
    IE4 = (document.all) ? 1 : 0;
    NS4 = (document.layers) ? 1 : 0;
    ver4 = (IE4 || NS4 || (typeof(document.getElementById) != 'undefined')) ? 1 : 0;

    if (ver4) {
        secondIm = "<IMG SRC='/images/btn-leftnav(on).gif' USEMAP='#mpMenu' WIDTH=120 HEIGHT=234 BORDER=0>";
        arPopups = new Array()
    }
    else { secondIm = "" }

    function setBeginEnd(which,from,to) {
        arPopups[which] = new Array();
        arPopups[which][0] = from;
        arPopups[which][1] = to;
    }

    if (ver4) {
        setBeginEnd(1,6,27);
        setBeginEnd(2,126,152);
        setBeginEnd(3,166,192);
        setBeginEnd(4,207,230);
        setBeginEnd(5,28,38);
        setBeginEnd(6,41,52);
        setBeginEnd(7,54,65);
        setBeginEnd(8,67,77);
        setBeginEnd(9,80,92);
		setBeginEnd(10,93,105);
    }

    clLeft = 0;
    clRight = 120;

    function mapOver(which,on) {
        if (!ver4) { return }
        if (IE4) { whichEl = document.all.elMenuOver.style }
            else { whichEl = document.elMenu.document.elMenuOver };

        if (!on) { whichEl.visibility = "hidden"; return }

        clTop = arPopups[which][0];
        clBot = arPopups[which][1];

	if (NS4) {
            whichEl.clip.top = clTop;
            whichEl.clip.bottom = clBot;
	}
	else {
            whichEl.clip = "rect(" + clTop + " " + clRight + " " + clBot + " " + clLeft + ")";
	}

        whichEl.visibility = "visible" 
    }


function pviiObjbg(obj, new_color) { //v2.1 by Project VII
	obj.style.backgroundColor=new_color
}

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.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_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];}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized 
  if (location.href.indexOf("processing")==-1) { // will not reload if in processing section.
    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(true);
  }
}
MM_reloadPage(true);

function addbookmark(url){
if (document.all)
window.external.AddFavorite(url,'Travel Guard America\'s #1 Travel Insurance')
}

function getElement(whichElement) {
	if ((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion) >= 4) && (parseInt(navigator.appVersion) < 5) && (navigator.userAgent.indexOf("Opera") == -1)) {
		// proprietary Navigator 4.x code
		objPath = document.layers[whichElement];
	} 
	else if ((navigator.appName.indexOf("Microsoft") != -1) && (parseInt(navigator.appVersion) >= 4) && (typeof(document.getElementById) == 'undefined')) {
		// proprietary IE4+ and AOL? code
		objPath = eval('document.all.' + whichElement + '.style');
	} 
	else if (typeof(document.getElementById) != 'undefined') {
		// standards compliant code
		objPath = document.getElementById(whichElement).style;
	}
	return objPath;
}

function setPosition() {
	domPath = getElement('agenthint');
	if ((navigator.appName.indexOf("Microsoft") != -1) && (navigator.userAgent.indexOf("Opera") == -1)) {
		win_x = document.body.clientWidth;
		domPath.pixelLeft = (win_x - 260);
	} 
	else if ((navigator.appName.indexOf("Netscape") != -1) || (navigator.appName.indexOf("Mozilla") != -1) || (navigator.userAgent.indexOf("Opera") != -1)) {
		win_x = window.innerWidth;
		domPath.left = (win_x - 270);
	}
}

function showme(divId, state) {
	setPosition();
	domPath = getElement(divId);
	domPath.visibility = state;
}

function rollOver(img, state) {
	if (document.images) {
		document.images[img].src = document.images[img].src.substring(0,(document.images[img].src.lastIndexOf("/")+1)) + img + state + ".gif";
	}
}

function rollOver2(img, newimg) {
	if (document.images) {
		document.images[img].src = document.images[img].src.substring(0,(document.images[img].src.lastIndexOf("/")+1)) + newimg + ".gif";
	}
}

function outline(imgId, clr, state) {
	if ((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion) >= 4) && (parseInt(navigator.appVersion) < 5) && (navigator.userAgent.indexOf("Opera") == -1)) {
		//document.images[imgId].src = "/images/products/" + imgId + state + ".gif";
		//alert(document.images[imgId].width);
	} else {
		document.images[imgId].style.color = clr;
		document.images[imgId].style.borderColor = clr;
	}
}

function checkIEclient() {
// Will check for IE 5.00 on Windows by default, though a specific version can be passed through the function.
	var vers = 5.00;
	if ((checkIEclient.arguments.length != 0) && (!isNaN(checkIEclient.arguments[0]))) { // check for a passed version
		vers = checkIEclient.arguments[0];
	}
	if ((navigator.platform.indexOf("Win") != -1) && (navigator.appName.indexOf("Microsoft") != -1)) { // check for Windows OS and IE browser
	    arrVersion = navigator.appVersion.split(";");
		for (i=0;i<arrVersion.length;i++) {
			if (arrVersion[i].indexOf("MSIE") != -1) {
				if (arrVersion[i].substring((arrVersion[i].indexOf("E")+2),arrVersion[i].length) >= vers) { // compare specific client version with required version
					// All checks pass - return true
					return true
				} else {
					// Incorrect IE version - return false
					return false
				}
			}
		}
	} else {
		// Not on Windows or not using IE - return false
		return false
	}
}

function launchCal() {
	var calWin = window.open('/calendar.asp','Calendar','width=199,height=287,scrollbars=0,menubar=0');
	calWin.focus();
}
function compareDefWin(param) {
	var defWin = window.open(param,'Definition','width=275,height=250,scrollbars=1,menubar=0,resizable=1');
	defWin.focus();
}

// functions used by flash in info center to launch Office Locations - msherry
var resizeflag=0;

function officeLaunch(loc) {
	var fullloc = "officemap/officemap-"+loc+".asp";
	offWin = window.open(fullloc,'OfficeLoc','width=305,height=310,menubar=0,resizable=1,scrollbars=0');
	offWin.focus();
}
function showhide(obj) {
	var fullobj, vis, invis;
	if (NS4) {
		fullobj = document.layers[obj];
		vis = "show";
		invis = "hide";
	} else {
		if (IE4) {
		 	fullobj = eval('document.all.'+obj+'.style');
			vis = "visible";
			invis = "hidden";
		} else {
		fullobj = document.getElementById(obj).style;
		vis = "visible";
		invis = "hidden";
		}
	}
	
	if (fullobj.visibility == vis) {
		fullobj.visibility = invis;
	} else {
		fullobj.visibility = vis;
	}
}
function showDirections(page_h) {
	if ((resizeflag==0) || (page_h<0)) {
		window.resizeBy(0,page_h);
		if (page_h>0) {
			resizeflag=1;
		} else {
			resizeflag=0;
		}
		if (NS4) {
			location.reload();
		}
	}
}
// end flash functions - msherry

// function for launching the TG movies - msherry
function launchMovie(file) {
	var pop = window.open(file,'','width=220,height=250,scrollbars=0');
	pop.focus();
}

//-->
