function throwUnrecognizedBrowser(){
	alert("You are using an unrecognized browser!");
	//location = 'browserUpgradeNeeded.html';
}

browserType = "";
if (document.getElementById) //dom supported object
	browserType = "isDOMCompatible";
else if (document.all) //ie 4 supported object (non-standard)
	browserType = "isIE4Compatible";
else if (document.layers) //netscape 4 supported object (non-standard)	
	browserType = "isNav4Compatible";
//alert(browserType)
//ensure that we have a recognized browser
if (browserType.length == 0)
	throwUnrecognizedBrowser();

function loadCueSheet(params){
	temp = window.open('tours_cueSheet.cfm?'+params,'_blank','scrollbars=yes,height=500,width=520,menubar=no');
	temp.focus();
}

function getMap(id,map)
	{
		switch (map){
			case 1:
				map_field = 'map'
				break;
			case 2: 
				map_field = 'map_day_one';
				break;
			case 3: 
				map_field = 'map_day_two';
				break;				
			default:
				map_field = '';
		}
		if (map_field.length > 0){
			temp = window.open("tours_map.cfm?tourlink="+escape(document.location)+"&id="+id+"&mapfield="+map_field,null,"scrollbars=yes,resizable=yes,width=690,height=490,screenX=100,screenY=100");
			temp.focus();
		}
	}		
	
function loadStayNeat(id){
		temp = window.open("tours_stayNeat.cfm?id="+id,null,"scrollbars=yes,resizable=yes,width=490,height=431,screenX=100,screenY=100;menubar=yes");
		temp.focus();
	}	
	
function loadAttractions(id){
		temp = window.open("tours_attractions.cfm?id="+id,null,"scrollbars=yes,resizable=yes,width=490,height=431,screenX=100,screenY=100;menubar=yes");
		temp.focus();
	}		
	
function loadCenters(id){
		temp = window.open("tours_centers.cfm?id="+id,null,"scrollbars=yes,resizable=yes,width=490,height=431,screenX=100,screenY=100;menubar=yes");
		temp.focus();
	}		
	
function loadBikeShops(id){
		temp = window.open("tours_bikeshops.cfm?id="+id,null,"scrollbars=yes,resizable=yes,width=490,height=431,screenX=100,screenY=100;menubar=yes");
		temp.focus();
	}		
	
function mail_page()
	{
		temp = window.open("mail.cfm?tourlink="+escape(document.location),"mailer","scrollbars=no,resizable=no,width=390,height=435,screenX=100,screenY=100");
		temp.focus();
	}		

