		    // Note: On IE5, these return 4, so use is_ie5up to detect IE5.
    		var is_major = parseInt(navigator.appVersion);
    		var is_minor = parseFloat(navigator.appVersion);
			
			// convert all characters to lowercase to simplify testing
		    var agt=navigator.userAgent.toLowerCase();
					
		    var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
	            && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
                && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
			var is_nav2 = (is_nav && (is_major == 2));
		    var is_nav3 = (is_nav && (is_major == 3));
    		var is_nav4 = (is_nav && (is_major == 4));
    		var is_nav4up = (is_nav && (is_major >= 4));
		    var is_nav6 = (is_nav && (is_major == 5));
		    var is_nav6up = (is_nav && (is_major >= 5));
		    var is_gecko = (agt.indexOf('gecko') != -1);
					
			var is_ie    = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
			var is_ie5up = (is_ie && document.getElementsByTagName("div")) ? true : false;

			
		function hideLevel(divNum) {
			//handle the current browsers
			if(is_nav6up || is_ie5up){
				var div = document.getElementsByTagName("div");
					
				for(i=0; i < div.length; i++) {
					var el = div[i];
					
					if(el.id == "subnav"){
						var subnav = el;
						var position = subnav.getAttribute("position");
						
						if (position == divNum){
							subnav.style.display = "none";
							break;
						}//end if position == divNum
					}//end if el.id = subnav
				}//end div.length loop				
			}else{
				if(is_nav){
				
				}else{
					if(is_ie){
						var subnav = document.all.subnav;
					
						if (subnav.length > 1) {
							subnav[divNum].style.display = "none";
						}else{
							subnav.style.display = "none";
						}//end subnav.length
					}//end if is_ie
				}//end if is_nav
			}//end if is_nav6up || is_ie5up
		}//end function hideLevel()
			
			
			
		function showLevel(divNum) {
		//handle the current browsers
			if(is_nav6up || is_ie5up){
				var div = document.getElementsByTagName("div");
				for(i=0; i < div.length; i++) {
					var el = div[i];
					
					if(el.id == "subnav"){
						
						var subnav = el;
						var position = subnav.getAttribute("position");
						
						if (position == divNum){
							if (subnav.style.display == "none") {
								subnav.style.display = "block";
							}else{
								hideLevel(divNum);
							}
							break;
						}//end if position == divNum
					}//end if el.id = subnav
				}//end div.length loop
			}else{
			
				if(is_nav){
				}else{
					if(is_ie){
						var subnav = document.all.subnav;
					
						if (subnav.length > 1) {
							subnav = subnav[divNum]
						}
						
						if (subnav.style.display == "none") {
							subnav.style.display = "block";
						}else{
							hideLevel(divNum);
						}
					}//end if is_ie
				}//end if is_nav
			}//end if is_nav6up || is_ie5up
		}//end function showlevel()
		
		
		function hideAll (subNavShow1, subNavShow2) {
			//handle the current browsers
			if(is_nav6up || is_ie5up){
				var div = document.getElementsByTagName("div");
					
				for(i=0; i < div.length; i++) {
					var el = div[i];
					
					if(el.id == "subnav"){
						var subnav = el;
						var position = subnav.getAttribute("position");
						
						
						//alert(position + " : " + subNavShow1 + " , " + subNavShow2)		
						if ((position != subNavShow1) && (position !=subNavShow2)) {
							subnav.style.display = "none";					
						}else{
							if ( (position = subNavShow1) || (position = subNavShow2) ) {
								subnav.style.display = "block";	
							}
							//subnav.style.display = "none";
						}
						
						
						
					}//end if el.id = subnav
				}//end div.length loop
				
				
				//old code
				//if (subNavShow1 != null) {
				//	showLevel(subNavShow1);
				//}
				//if (subNavShow2 != null) {
				//	showLevel(subNavShow2);
				//}
				
				
			}else{
				if(is_nav){
				
				}else{
					if(is_ie){
						var subnav = document.all.subnav;
	
						if(subnav != null){
							if(subnav.length > 1) {
								for (i=0; i < subnav.length; i++) {
									subnav[i].style.display = "none";
								}
							}else {
								subnav.style.display = "none";
							}//end if subnav.length > 1
							
							if (subNavShow != null) {
								showLevel(subNavShow);
							}
						}//end if subnav not null
					}//end if is_ie
				}//end if is_nav
			}//end if is_nav6up || is_ie5up
		}//end function hideall
		
		
		
		function showMap(mapNo) {
			window.open('showmap.asp?m='+mapNo+'','maps','width=700, height=400,scrollbars=yes,resizable=yes, menubar=yes')
		}
		

//top nav and sidenav rollover arrays and functions
			// Some variables
			var topnavOn = new Array();
			var topnavOff = new Array();
			var imageNames = new Array ('plan_your_trip','insiders_guide','eventscal','hotel','visitors_kit');
			
			// Pre-load part.
			if (document.images)
			{
				//top nav
				
				topnavOff[0] = new Image;
				topnavOff[0].src = "/graphics/affiliates/260/topnav_plan_your_trip_off.gif";
				topnavOn[0] = new Image;
				topnavOn[0].src =  "/graphics/affiliates/260/topnav_plan_your_trip_on.gif";
				
				topnavOff[1] = new Image;
				topnavOff[1].src = "/graphics/affiliates/260/topnav_insiders_guide_off.gif";
				topnavOn[1] = new Image;
				topnavOn[1].src =  "/graphics/affiliates/260/topnav_insiders_guide_on.gif";
				
				topnavOff[2] = new Image;
				topnavOff[2].src = "/graphics/affiliates/260/topnav_eventscal_off.gif";
				topnavOn[2] = new Image;
				topnavOn[2].src =  "/graphics/affiliates/260/topnav_eventscal_on.gif";
				
				topnavOff[3] = new Image;
				topnavOff[3].src = "/graphics/affiliates/260/topnav_bookhotel_off.gif";
				topnavOn[3] = new Image;
				topnavOn[3].src =  "/graphics/affiliates/260/topnav_bookhotel_on.gif";
				
				topnavOff[4] = new Image;
				topnavOff[4].src = "/graphics/affiliates/260/topnav_visitorskit_off.gif";
				topnavOn[4] = new Image;
				topnavOn[4].src =  "/graphics/affiliates/260/topnav_visitorskit_on.gif";
}


// The functions: first mouseover, then mouseout
function navover(name, num)
{
	if (document.images)
	{
		document.images[name].src = topnavOn[num].src
	}
}

function navout(name,num)
{
	if (document.images)
	{
		document.images[name].src = topnavOff[num].src
	}
}

// The functions: first mouseover, then mouseout
function sideover(name, num)
{
	if (document.images)
	{
		document.images[name].src = sidenavOn[num].src
	}
}

function sideout(name,num)
{
	if (document.images)
	{
		document.images[name].src = sidenavOff[num].src
	}
}

function showDetails(sid) {
	window.open("details.asp?sid=" + sid,'details','width=300,height=300,scrollbars=yes');
	//window.details.focus();
}

function popGallery(){
	//alert("the flash specs have not been given to us yet")
	window.open('index.html','mswoo','width=624,height=392');
}


function showPackage(divID) {  
   if (is_nav) {
		if (is_nav4) {
			//do something with this browser
			
		}
	
		if (is_nav6up){
			var el = document.getElementById("popBoxParent");
			var popBoxes = el.getElementsByTagName("div");
		}
	}else{
		if (is_ie) {
			var popBoxes = document.all.popBox;
		}
	}

	for (i=0; i < popBoxes.length; i++) {
		popBoxes[i].style.display = "none";
	}

	popBoxes[divID].style.display = "block";
	
}

function popMyTrip() {
	window.open("../my_trip/my_trip_instructions.asp",'my_trip','width=400,height=485,scrollbars=yes,resizable=yes,status=no');
}