var platform = 0;
	
	if (navigator.userAgent.indexOf("Mac") != -1) platform = 1;
	else if (navigator.userAgent.indexOf("Win") != -1) platform = 2;
	else platform = 0;
		
	function baseFont() {
		if (platform == 1) {
			document.writeln("<BASEFONT SIZE='3'>");
		}
		if (platform == 2) {
			document.writeln("<BASEFONT SIZE='2'>");
		}
			if (platform == 0) return;
	}
		
	//Detect Browser
	var version = 0;
	        if (navigator.userAgent.indexOf("Mozilla/4.0") != -1) version = 4;
	        else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) version = 3;
	        else if (navigator.userAgent.indexOf("MSIE") != -1) version = 1;
	        else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) version = 2;
	        else version = 0;
		
	//Pop Up Window on top for Netscape 3 or later
	function popUpWinFocus()
	{
		if (version == 4 || version == 3) {
		        popUpWin.focus();
		}
			if (version == 2) return;
			if (version == 1) return;
			if (version == 0) return;
	}
		
	//Pop Up Function
	function popUp(popUpPath) {
		popUpWin=window.open(popUpPath,'popUp','width=270,height=320,toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1');
		popUpWin=window.open(popUpPath,'popUp','width=270,height=320,toolbar=0,status=0,menubar=0,scrollbars=1,resizable=1');
		popUpWinFocus();
	}
	
//City related function
cityArray = new Array ("atlanta", "boston", "chicago", "los_angeles", "miami", "new_york", "philadelphia", "portland", "san_francisco", "seattle", "washington");
	
	function setCookie (name, value, expires) {
		if (!expires) expires = new Date();
		document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() +"; path=/";
	}
	
	function getCookie (name) {
		var dcookie = document.cookie;
		var cname = name + "=";
		var clen = dcookie.length;
		var cbegin = 0;
		while (cbegin < clen) {
		 var vbegin = cbegin + cname.length;
			if (dcookie.substring(cbegin, vbegin) == cname) {
				var vend = dcookie.indexOf (";", vbegin);
					if (vend == -1) vend = clen;
				return unescape(dcookie.substring(vbegin, vend));
			}
		 cbegin = dcookie.indexOf(" ", cbegin) + 1;
				if (cbegin == 0) break;
			}
		return null;
	}
	
	function setCity (cityvname) {
		var expireDate = new Date ();
		expireDate.setDate (expireDate.getDate() + 3650);
		setCookie ("city", cityvname, expireDate);
	}
	
	function changeJumpForm (jumpForm) {
		var city = getCookie ("city");
		for (var i in cityArray) {
			if (cityArray [i] == city) {
				jumpForm.go.selectedIndex = i;
				break;
				}
		}
	}
	
	function goJumper(jumpForm) {
		var i = jumpForm.go.selectedIndex;
		window.location.href = jumpForm.go.options[i].value;
	}

