var aDay = 86400000;
var past_date = new Date();
past_date = new Date(past_date.valueOf() - aDay);
//<!--
var local_server_position = "us";
function ss(w){window.status=w;return true;}
function cs(){window.status='';}
function ga(l){if (l) location.href=l;}
function enabled_searchDateOption(clicked, type)
{
	var f = document.getElementById(type);
	var workRange;
	if (type == "SoldSearch")
	{
		workRange = new Array("FromMonth", "FromDate", "FromYear", "ToMonth", "ToDate", "ToYear");
	}
	else if (type == "BookingSearch")
	{
		workRange = new Array("Month", "Date", "Year");
	}
	if (workRange)
	{
		f['searchByBar'].disabled = !clicked;
		for (i=0; i<workRange.length; i++)
		{
			f[workRange[i]].disabled = clicked;
		}
	}
}	

function Device_OnLoad()
{
	if (navigator.userAgent.indexOf("Windows CE") != -1) 
	{
		window.location="http://www.taketours.com/palm.html";
	}
}

function Vendor_onLoad(sold, booking)
{
	var s  = document.getElementById('SoldSearch');
	var b = document.getElementById('BookingSearch');
	if (s)
	{
		enabled_searchDateOption(sold, 'SoldSearch');
	}
	if (b)
	{
		enabled_searchDateOption(booking, 'BookingSearch');
	}
}

function opener_url(url)
{
        var target = window;
        if (window.opener != null && window.opener.closed == false)
        {
                target = window.opener;
        }
        target.location.href=url;
        target.focus();
        return false;
}


function open_url_param(url, date)
{
	var lnk = url;
	if (date != "")
	{
		if (lnk.match(/\?/))
		{
			lnk += "&d="+date;
		}
		else
		{
			lnk += "?"+date;
		}
	}
	opener_url(lnk);
}

function set_gid_cookie(value, expires)
{
	var name = "gid";
    var today = new Date();
    today.setTime(today.getTime());
    if (!expires)
    {
    	expires = 7;
    }
    expires = expires * 1000 * 60 * 60 * 24;
    var expires_date = new Date(today.getTime() + expires);
    document.cookie = name + "=" +escape(value) + (expires ? ";expires=" + expires_date.toGMTString() : "") + ";path=/;domain=taketours.com";
}

function pre_set_data()
{
	var date = null;
	if (window.location.search.length>0)
	{
		data = window.location.search.substring(1);
		if (data.match(/-/))
		{
			var s  = document.getElementById('Date');
			set_tour_date (s, data);
		}
		else
		{
			set_gid_cookie(data);
		}
	}
}


function pre_set_date()
{
	var date = null;
	if (window.location.search.length>0)
	{
		date = window.location.search.substring(1);
		var s  = document.getElementById('Date');
		set_tour_date (s, date);
	}
}

function set_tour_date(obj, selected_date)
{
	if (obj == null || selected_date == null || selected_date == "")
	{
		return;
	}

	var sdate = selected_date.substr(0, 10);
	for (var i=0; i< obj.options.length; i++)
	{
		var val = obj.options[i].value;
		if (val != "")
		{
			val = val.substr(0,10);
			if (sdate.match(val))
			{
				obj.options.selectedIndex = i;
				return;
			}
		}
	}
}

function OnCalendarClick()
{
        window.open("http://www.taketours.com/calendar/calendar.html", "calendar", 'width=240,height=200');
}

var browser = window.navigator.appName;
var isIE = false;
var Win = navigator.userAgent.indexOf("Win") > -1;
var MSIE = navigator.appName == "Microsoft Internet Explorer";

if (Win && MSIE)
{
    var n = navigator.userAgent;
    var MSIEVer = n.substr(n.indexOf("MSIE ")+("MSIE ").length, 4);
    MSIEVer = parseFloat(MSIEVer); 
    if (MSIEVer > 5.0)
	isIE = true;
}

function addToFavorites(url, title)
{
    if (window.external)
    {
        window.external.AddFavorite(url, title)
    }
    else
    { 
        alert("Sorry! Your browser doesn't support this function.");
    }
}

var d_about_up = "http://www.taketours.com/images/explore_up.gif";
var d_about_down = "http://www.taketours.com/images/explore_down.gif";
function changeImage_aboutus()
{
    if (document.images) {
        if (document.myImage_aboutus.src == d_about_up)
            document.myImage_aboutus.src = d_about_down;
        else
            document.myImage_aboutus.src = d_about_up;
    }
}

function SwitchMenu(obj)
{
    if(document.getElementById) {
        var el = document.getElementById(obj);
        if(el.style.display != "block")
            el.style.display = "block";
        else
            el.style.display = "none";
        changeImage_aboutus();
    }
}

function set_selected(obj, v)
{
    for (var i=0; i<obj.options.length; i++)
    {
        if (obj.options[i].value == v)
        {
            obj.options.selectedIndex = i;
            return i;
        }
    }
    return -1;
}

function clear_show_all_text(obj)
{
        if (obj && obj.value == "Show All")
        {
                obj.value = "";
        }
}

function set_cookie(name, value, expires) 
{
    var today = new Date();
    today.setTime(today.getTime());
    if (expires)
    {
        expires = expires * 1000 * 60 * 60 * 24;
    }
    var expires_date = new Date(today.getTime() + expires);
    document.cookie = name + "=" +escape(value) + (expires ? ";expires=" + expires_date.toGMTString() : "") + ";path=/;domain=taketours.com";
}

function get_cookie(name)
{
    var start = document.cookie.indexOf( name + "=" );
    var len = start + name.length + 1;
    if ((!start) && (name != document.cookie.substring(0, name.length)))
    {
        return '';
    }
    if (start == -1) return '';
    var end = document.cookie.indexOf(";", len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len, end));
}

function Trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function viewSavedTrips()
{
	make_unvisible();
    var savedBlock=document.getElementById("savedBlock");
    if(!savedBlock){
        savedBlock = document.createElement("div");
        savedBlock.id = "savedBlock";
    }
    savedBlock.innerHTML="";  
    var light_top = (document.documentElement.clientHeight - 230)/2 + 'px';
	var light_left = document.body.scrollLeft + (document.body.clientWidth - 420)/2 + 'px';
	savedBlock.style.left = light_left;
	savedBlock.style.top = light_top;
	savedBlock.className = "top_div";		
    var param = "type=find_saved_trip";
    var compare_xml;
    if(window.XMLHttpRequest) {
        compare_xml = new XMLHttpRequest();
    } else {
        compare_xml = new ActiveXObject("MSXML2.XMLHTTP");
    }
    url = '/cgi-bin/ajax.fcgi?' + param;
    compare_xml.open("GET", url, true);
    compare_xml.onreadystatechange = function show_div()
    {
        if (compare_xml.readyState == 4)
        {
            var showResponseText=compare_xml.responseText;
            savedBlock.innerHTML=showResponseText;   
            savedBlock.style.display='block'; 
        }
    };
    compare_xml.setRequestHeader("If-Modified-Since","0");
    compare_xml.send("");
    document.body.appendChild(savedBlock);
    var fadeBlock=document.getElementById("fadeBlock");
    if(!fadeBlock){
        var fadeBlock = document.createElement("div");
        fadeBlock.id="fadeBlock";
    }
    
    fadeBlock.style.height = $(document).height() + 'px';
	fadeBlock.style.width = document.body.scrollWidth + 'px';
    fadeBlock.className="bg_div";   
    document.body.appendChild(fadeBlock);
    fadeBlock.style.display='block';
}

function hideDiv(tag, fade)
{
	make_visible();
	var light=document.getElementById(tag);
	var fade=document.getElementById(fade);
	light.style.display='none';
	fade.style.display='none';
	if(document.getElementById('compare_page') && document.getElementById('compare_page').value !=get_count())
	{

		pageRefresh();
	}
}

function  make_unvisible(){
	var as = document.getElementsByTagName("select");
	if(as !=null && as.length>0){
		for(var i=0; i < as.length; i++) {
			as[i].style.visibility="hidden";
		}
	}
}
function  make_visible(){
	var as = document.getElementsByTagName("select");
	if(as !=null && as.length>0){
		for(var i=0; i < as.length; i++) {
			as[i].style.visibility="visible";
		}
	}
}

function show_link(value) {
	if(value) {
		var currentValue = get_cookie('SAVED_TRIPS');
		if(!currentValue)
		{
			currentValue="";
		}
		var exists = currentValue.indexOf(value);
		var link_div = document.getElementById(value+'_a');
		if(link_div)
		{
			if(exists == -1){
				link_div.innerHTML="<a href='javascript:void(0)' class='n_savetour' title='Save Tour to Compare' onclick='saveToCookie(" + value+ ");'>Save Tour</a>";
			} else {
				link_div.innerHTML="<a href='javascript:void(0)' class='n_removetour' title='Remove' onclick='removeTrip(" + value+ ");'>Remove</a>" + 
				"<a href='http://www.taketours.com/cgi-bin/v.cgi?a=product_compare' class='n_statenav_compare' title='Compare Tours' class='link1'>Compare</a>";
			}
		}
		showDetailSaveLink(value);
	}
}

function saveToCookie(value) {
	if(value) {
		var currentValue = get_cookie('SAVED_TRIPS');
		if(!currentValue)
		{
			currentValue = "";
		}
		var exists = currentValue.indexOf(value);
		if(exists == -1) {
			if(currentValue.length == 0) {
				var newValue = value;
			} else {
				var newValue = currentValue + "," + value;
			}				
			set_cookie('SAVED_TRIPS',newValue,7);
		}
	}
	updateSavedTrip(value);
}

function updateSavedTrip(value) {
	show_count();
	show_link(value);
}	

function removeChildNodes() {
	var a = (typeof arguments[0] == "string") ? document.getElementById(arguments[0]) : arguments[0];
	while ( a.hasChildNodes() ) {
		a.removeChild(a.childNodes[0]);
	}
}

function removeSavedTrip(obj,value) {
	if(value) {
		document.body.style.cursor = "wait";
		removeTripFromCookie(value);
		updateRemovedTrip(obj,value);
		document.body.style.cursor = "auto";
	}
}

function removeTripFromCookie(value) {
	if(value) {
		var currentValue = get_cookie('SAVED_TRIPS');
		var exists = currentValue.indexOf(value);			
		if(exists != -1){
			if(currentValue.indexOf("," + value) != -1) {
				var newValue = currentValue.replace("," + value,"");
			} else if(currentValue.indexOf(value + ",") != -1) {
				var newValue = currentValue.replace(value + ",","");
			} else {
				var newValue = currentValue.replace(value,"");
			}
			set_cookie('SAVED_TRIPS',newValue,7);
		} 
	}
}

function removeTrip(value) {
	if(value) {
		removeTripFromCookie(value);
		show_count();
		show_link(value);
	}
}

function updateRemovedTrip(obj,value) {
	var tdParent = obj.parentNode;
	var trParent = tdParent.parentNode;
	var tblParent = trParent.parentNode;		 	
	tblParent.removeChild(trParent);
	show_count();
	show_link(value);
}

function show_count() {
	var count = get_count();
	var stLink = document.getElementById('saved_trip_count');
	if(stLink){
		removeChildNodes(stLink);
		stLink.appendChild(document.createTextNode(count));
	}
	var div_count = document.getElementById('div_saved_trip_count');
	if(div_count){
		removeChildNodes(div_count);
		div_count.appendChild(document.createTextNode(count));
	}
}

function get_count() {
	var currentValue = get_cookie('SAVED_TRIPS');
	var count = 0;
	if(currentValue && currentValue.length != 0)
	{
		count = currentValue.split(',').length;
	}
	return count;
}
function pageRefresh()
{
	window.location.reload();
}

function showDetailSaveLink(value) {
	if(value) {
		var currentValue = get_cookie('SAVED_TRIPS');
		if(!currentValue)
		{
			currentValue="";
		}
		var exists = currentValue.indexOf(value);
		var link_div = document.getElementById("detail_save_link");
		if(link_div)
		{
			if(exists == -1){
				link_div.innerHTML="<a href='javascript:void(0)' class='n_savetour' title='Save Tour to Compare' onclick='saveToCookie(" + value+ ");'>Save this tour</a>";
			} else {
				link_div.innerHTML="<a href='javascript:void(0)' class='n_removetour' title='Remove' onclick='removeTrip(" + value+ ");'>Remove</a>";
			}
		}
	}
}
function setTabInit(name,cursel,n){
}
function product_onload()
{	
}
function show_hide_image_div(obj,nth_day)
{
	var image_div=document.getElementById("add_images_div_"+nth_day);
	if(image_div.style.display == "block")
	{
		obj.src="/images/add_image.gif";
		image_div.innerHTML = "";
		image_div.style.display="none";
	}
	else
	{
		obj.src="/images/reduce_image.gif";
		image_div.innerHTML=document.getElementById("serach_image_hidden_div").innerHTML;
		var inputs = image_div.getElementsByTagName("input"); 
		var selects = image_div.getElementsByTagName("select"); 
		var destination = selects[0];
		var divs = image_div.getElementsByTagName("div"); 
		var div = divs[0];
		var keywords;
		var search_button;
		for(var i=0;i<inputs.length;i++)
		{
			if(inputs[i].name=="keywords")
			{
				keywords = inputs[i];
			}					
			if(inputs[i].type=="button")
			{
				search_button = inputs[i];
			}
		}
		var product = document.getElementById("product_id");
		search_button.onclick =  function(){
			var param = "type=search_images&keywords="+keywords.value+"&destination="+destination.value+"&product_id="+product.value+"&nth_day="+nth_day;
			var search_xml;
		    if(window.XMLHttpRequest) {
		        search_xml = new XMLHttpRequest();
		    } else {
		        search_xml = new ActiveXObject("MSXML2.XMLHTTP");
		    }
		    var url = '/cgi-bin/ajax.fcgi?' + param;
		    search_xml.open("GET", url, true);
		    search_xml.onreadystatechange = function show_div()
		    {
		        if (search_xml.readyState == 4)
		        {
		            var rt_text=search_xml.responseText;
		            div.innerHTML = "";
		            div.innerHTML = rt_text;
		        }
		    };
		    search_xml.setRequestHeader("If-Modified-Since","0");
		    search_xml.send("");					
		};
		image_div.style.display="block";
	}
}
function removeThisNode(spanname,nth_day) {
	var position = spanname.lastIndexOf("_");
	var image_id = spanname.substring(position+1,spanname.length);
	var image_ids_obj = document.getElementById("image_ids_"+nth_day);
	var image_ids = image_ids_obj.value;
	image_ids=image_ids.replace(","+image_id+",",",");
	image_ids_obj.value=image_ids;
	var obj = document.getElementById(spanname);
	var objParent = obj.parentNode;	 	
	objParent.removeChild(obj);
	if(image_ids == ",")
	{
		var message = document.createElement("span");
		message.innerHTML="<img src='/images/logo/nophoto.gif' title='No image' width='70px' height='55px'/>";
		objParent.appendChild(message);
	}
}
function appendToImage(obj,spanname,nth_day) {
	var position = spanname.lastIndexOf("_");
	var image_id = spanname.substring(position+1,spanname.length);
	var image_ids_obj = document.getElementById("image_ids_"+nth_day);
	var image_ids = image_ids_obj.value;
	var exists = image_ids.indexOf(","+image_id+",");
	if(exists >= 0){
		alert("The image already exists!");
		obj.src='/images/already_add.gif';
		obj.onclick=function(){};
	    obj.onmouseover=function(){};
	    obj.onmouseout=function(){};
	    return;
	}
	var div = document.getElementById("image_show_div_"+nth_day);
	if(image_ids == ",")
	{
		var message = div.getElementsByTagName("span")[0];
		div.removeChild(message);
	}
	image_ids_obj.value = image_ids + image_id + ",";
	var objParent = obj.parentNode;	
	var simg = objParent.childNodes[0];
	var img = simg.cloneNode(false);
	img.onclick=function(){};
	var imageObj = document.createElement("span");
	imageObj.setAttribute('name', spanname);
	imageObj.setAttribute('id', spanname);
    imageObj.appendChild(img);
   	var delImag = document.createElement("img");
   	delImag.src="/images/ico_tr_del.gif";
   	delImag.className="delete_image";
	delImag.setAttribute('title', "Delete");
   	delImag.onmouseover= function(){this.src='/images/ico_tr_delover.gif';};
   	delImag.onmouseout= function(){this.src='/images/ico_tr_del.gif';};
    delImag.onclick= function(){removeThisNode(spanname,nth_day)};
    imageObj.appendChild(delImag);
    div.appendChild(imageObj);
    obj.src='/images/already_add.gif';
    obj.onclick=function(){};
    obj.onmouseover=function(){};
    obj.onmouseout=function(){};
}
function getPhotoDiv(obj)
{
	var parNode = obj.parentNode;
	var divNode = parNode.getElementsByTagName("div");
	return divNode[0];	
}
function appendToImageByImage(obj,spanname,nth_day)
{
	var parNode = obj.parentNode;
	var imgNode = parNode.getElementsByTagName("img");
	var add_button = imgNode[1];
	appendToImage(add_button,spanname,nth_day);
}

function getElementsByClassName(clsName,htmltag){ 
	var arr = new Array(); 
	var elems = document.getElementsByTagName(htmltag);
	for (var i = 0; i<elems.length; i++ )
	{
		var elem = elems[i];
		if (elem.className == clsName)
		{
			arr[arr.length] = elem;   
		}
	}
	return arr;
}
var CssClass = {};
CssClass.is = function(e, c){
		if(typeof e == "string") e = document.getElementById(e);
		var classes = e.className;
		if(!classes) return false;
		if(classes == c) return true;
    	return e.className.match(new RegExp('(\\s|^)'+c+'(\\s|$)'));		
};
CssClass.add = function(e, c){
	if(typeof e == "string") e = document.getElementById(e);
	if(CssClass.is(e, c)) return;
	if(e.className) c = " " + c;
	e.className += c;
};
CssClass.remove = function(e, c){
	if(typeof e == "string") e = document.getElementById(e);		
    if (CssClass.is(e,c)) {
		var reg = new RegExp('(\\s|^)'+c+'(\\s|$)');
        e.className=e.className.replace(reg,' ');
    }
};
CssClass.toggle = function(e,c) {
    if (CssClass.is(e,c)) {
        CssClass.remove(e,c);
    }
    else{
        addClass.add(e,c);
    }
};
CssClass.change = function(ele,oc,nc) {
    if (!CssClass.is(e,nc)) {
        if(CssClass.is(e,oc)){
        	CssClass.remove(e,oc);
        }
        CssClass.add(e,nc);
    }
};

function is_ie_six()
{
	var browser_ver = $.browser.version;
	var accurate_value = browser_ver.substr(0,1);

	if($.browser.msie && accurate_value == '6' ){
		return true;
	}
	return false;
}
Date.prototype.format = function(format)
{
	var o = {
	"M+" : this.getMonth()+1, 
	"d+" : this.getDate(), 
	"h+" : this.getHours(), 
	"m+" : this.getMinutes(),
	"s+" : this.getSeconds(),
	"q+" : Math.floor((this.getMonth()+3)/3),
	"S" : this.getMilliseconds()
	}
	if(/(y+)/.test(format)) format=format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
	for(var k in o)if(new RegExp("("+ k +")").test(format))
	format = format.replace(RegExp.$1,
	RegExp.$1.length==1 ? o[k] :
	("00"+ o[k]).substr((""+ o[k]).length));
	return format;
}

function cookie_login(c_cgi, sc_cgi)
{
	var cookie_login = get_cookie("IvyCustomer_LoginCookie");
	if(cookie_login != null && cookie_login != '')
	{
		var cookie_email = get_cookie("IvyCustomer_LoginEmail");				
		var cookie_uid = get_cookie("IvyCustomer_FirstName");
		if(cookie_uid == "")
		{
			cookie_uid = get_cookie("IvyCustomer_Uid");
		}
		var cookie_is_facebook = get_cookie("IvyCustomer_IsFacebookSignin");		
		var facebook_login_html = "";
		if(cookie_is_facebook == 1)
		{
			facebook_login_html = "<img alt='Login with Facebook'  title='Login with Facebook' src='/images/fceebook_lg.gif' style='top:4px;position:relative;'> ";			
		}
		if(document.getElementById('facebook_signin'))
		{
			document.getElementById('facebook_signin').innerHTML = "";
		}	
		if(cookie_uid == "" || cookie_uid.indexOf("_auto_") != -1)
		{
			if(cookie_email.indexOf("facebook:")!= -1)
			{
				cookie_email = cookie_email.replace("facebook:", "");
			}
			document.getElementById('welcome_span').innerHTML = "Welcome - "+facebook_login_html+"<a style='text-decoration:underline;' title='Account' href='"+sc_cgi+"?a=main' target='_top'>" + cookie_email + "</a>";
		}
		else
		{
			document.getElementById('welcome_span').innerHTML = "Welcome - "+facebook_login_html+"<a style='text-decoration:underline;' title='Account' href='"+sc_cgi+"?a=main' target='_top'>" + cookie_uid + "</a>";
		}
		var sign_link = document.getElementById('sign_link');
		sign_link.innerHTML = "Sign Out";
		sign_link.href = c_cgi + "?a=signout";
		sign_link.title = "Sign Out";		
	}
}
//-->

// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final code if you wish, however it is
// appreciated by the author if at least my web site address is kept.
//
// You may *NOT* re-distribute this code in any way except through its
// use. That means, you can include it in your product, or your web
// site, or any other form where the code is actually being used. You
// may not put the plain javascript up on your site for download or
// include it in your javascript libraries for download. 
// If you wish to share this code with others, please just point them
// to the URL instead.
// Please DO NOT link directly to my .js files from your site. Copy
// the files to your server and use them there. Thank you.
// ===================================================================

/* SOURCE FILE: AnchorPosition.js */
function getAnchorPosition(anchorname){var useWindow=false;var coordinates=new Object();var x=0,y=0;var use_gebi=false, use_css=false, use_layers=false;if(document.getElementById){use_gebi=true;}else if(document.all){use_css=true;}else if(document.layers){use_layers=true;}if(use_gebi && document.all){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_gebi){var o=document.getElementById(anchorname);x=AnchorPosition_getPageOffsetLeft(o);y=AnchorPosition_getPageOffsetTop(o);}else if(use_css){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_layers){var found=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==anchorname){found=1;break;}}if(found==0){coordinates.x=0;coordinates.y=0;return coordinates;}x=document.anchors[i].x;y=document.anchors[i].y;}else{coordinates.x=0;coordinates.y=0;return coordinates;}coordinates.x=x;coordinates.y=y;return coordinates;}
function getAnchorWindowPosition(anchorname){var coordinates=getAnchorPosition(anchorname);var x=0;var y=0;if(document.getElementById){if(isNaN(window.screenX)){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else{x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}else if(document.all){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else if(document.layers){x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}coordinates.x=x;coordinates.y=y;return coordinates;}
function AnchorPosition_getPageOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent) != null){ol += el.offsetLeft;}return ol;}
function AnchorPosition_getWindowOffsetLeft(el){return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;}
function AnchorPosition_getPageOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent) != null){ot += el.offsetTop;}return ot;}
function AnchorPosition_getWindowOffsetTop(el){return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;}

/* SOURCE FILE: date.js */
var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');var DAY_NAMES=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat');
function LZ(x){return(x<0||x>9?"":"0")+x}
function isDate(val,format){var date=getDateFromFormat(val,format);if(date==0){return false;}return true;}
function compareDates(date1,dateformat1,date2,dateformat2){var d1=getDateFromFormat(date1,dateformat1);var d2=getDateFromFormat(date2,dateformat2);if(d1==0 || d2==0){return -1;}else if(d1 > d2){return 1;}return 0;}
function formatDate(date,format){format=format+"";var result="";var i_format=0;var c="";var token="";var y=date.getYear()+"";var M=date.getMonth()+1;var d=date.getDate();var E=date.getDay();var H=date.getHours();var m=date.getMinutes();var s=date.getSeconds();var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;var value=new Object();if(y.length < 4){y=""+(y-0+1900);}value["y"]=""+y;value["yyyy"]=y;value["yy"]=y.substring(2,4);value["M"]=M;value["MM"]=LZ(M);value["MMM"]=MONTH_NAMES[M-1];value["NNN"]=MONTH_NAMES[M+11];value["d"]=d;value["dd"]=LZ(d);value["E"]=DAY_NAMES[E+7];value["EE"]=DAY_NAMES[E];value["H"]=H;value["HH"]=LZ(H);if(H==0){value["h"]=12;}else if(H>12){value["h"]=H-12;}else{value["h"]=H;}value["hh"]=LZ(value["h"]);if(H>11){value["K"]=H-12;}else{value["K"]=H;}value["k"]=H+1;value["KK"]=LZ(value["K"]);value["kk"]=LZ(value["k"]);if(H > 11){value["a"]="PM";}else{value["a"]="AM";}value["m"]=m;value["mm"]=LZ(m);value["s"]=s;value["ss"]=LZ(s);while(i_format < format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c) &&(i_format < format.length)){token += format.charAt(i_format++);}if(value[token] != null){result=result + value[token];}else{result=result + token;}}return result;}
function _isInteger(val){var digits="1234567890";for(var i=0;i < val.length;i++){if(digits.indexOf(val.charAt(i))==-1){return false;}}return true;}
function _getInt(str,i,minlength,maxlength){for(var x=maxlength;x>=minlength;x--){var token=str.substring(i,i+x);if(token.length < minlength){return null;}if(_isInteger(token)){return token;}}return null;}
function getDateFromFormat(val,format){val=val+"";format=format+"";var i_val=0;var i_format=0;var c="";var token="";var token2="";var x,y;var now=new Date();var year=now.getYear();var month=now.getMonth()+1;var date=1;var hh=now.getHours();var mm=now.getMinutes();var ss=now.getSeconds();var ampm="";while(i_format < format.length){c=format.charAt(i_format);token="";while((format.charAt(i_format)==c) &&(i_format < format.length)){token += format.charAt(i_format++);}if(token=="yyyy" || token=="yy" || token=="y"){if(token=="yyyy"){x=4;y=4;}if(token=="yy"){x=2;y=2;}if(token=="y"){x=2;y=4;}year=_getInt(val,i_val,x,y);if(year==null){return 0;}i_val += year.length;if(year.length==2){if(year > 70){year=1900+(year-0);}else{year=2000+(year-0);}}}else if(token=="MMM"||token=="NNN"){month=0;for(var i=0;i<MONTH_NAMES.length;i++){var month_name=MONTH_NAMES[i];if(val.substring(i_val,i_val+month_name.length).toLowerCase()==month_name.toLowerCase()){if(token=="MMM"||(token=="NNN"&&i>11)){month=i+1;if(month>12){month -= 12;}i_val += month_name.length;break;}}}if((month < 1)||(month>12)){return 0;}}else if(token=="EE"||token=="E"){for(var i=0;i<DAY_NAMES.length;i++){var day_name=DAY_NAMES[i];if(val.substring(i_val,i_val+day_name.length).toLowerCase()==day_name.toLowerCase()){i_val += day_name.length;break;}}}else if(token=="MM"||token=="M"){month=_getInt(val,i_val,token.length,2);if(month==null||(month<1)||(month>12)){return 0;}i_val+=month.length;}else if(token=="dd"||token=="d"){date=_getInt(val,i_val,token.length,2);if(date==null||(date<1)||(date>31)){return 0;}i_val+=date.length;}else if(token=="hh"||token=="h"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>12)){return 0;}i_val+=hh.length;}else if(token=="HH"||token=="H"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>23)){return 0;}i_val+=hh.length;}else if(token=="KK"||token=="K"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<0)||(hh>11)){return 0;}i_val+=hh.length;}else if(token=="kk"||token=="k"){hh=_getInt(val,i_val,token.length,2);if(hh==null||(hh<1)||(hh>24)){return 0;}i_val+=hh.length;hh--;}else if(token=="mm"||token=="m"){mm=_getInt(val,i_val,token.length,2);if(mm==null||(mm<0)||(mm>59)){return 0;}i_val+=mm.length;}else if(token=="ss"||token=="s"){ss=_getInt(val,i_val,token.length,2);if(ss==null||(ss<0)||(ss>59)){return 0;}i_val+=ss.length;}else if(token=="a"){if(val.substring(i_val,i_val+2).toLowerCase()=="am"){ampm="AM";}else if(val.substring(i_val,i_val+2).toLowerCase()=="pm"){ampm="PM";}else{return 0;}i_val+=2;}else{if(val.substring(i_val,i_val+token.length)!=token){return 0;}else{i_val+=token.length;}}}if(i_val != val.length){return 0;}if(month==2){if( ((year%4==0)&&(year%100 != 0) ) ||(year%400==0) ){if(date > 29){return 0;}}else{if(date > 28){return 0;}}}if((month==4)||(month==6)||(month==9)||(month==11)){if(date > 30){return 0;}}if(hh<12 && ampm=="PM"){hh=hh-0+12;}else if(hh>11 && ampm=="AM"){hh-=12;}var newdate=new Date(year,month-1,date,hh,mm,ss);return newdate.getTime();}
function parseDate(val){var preferEuro=(arguments.length==2)?arguments[1]:false;generalFormats=new Array('y-M-d','MMM d, y','MMM d,y','y-MMM-d','d-MMM-y','MMM d');monthFirst=new Array('M/d/y','M-d-y','M.d.y','MMM-d','M/d','M-d');dateFirst =new Array('d/M/y','d-M-y','d.M.y','d-MMM','d/M','d-M');var checkList=new Array('generalFormats',preferEuro?'dateFirst':'monthFirst',preferEuro?'monthFirst':'dateFirst');var d=null;for(var i=0;i<checkList.length;i++){var l=window[checkList[i]];for(var j=0;j<l.length;j++){d=getDateFromFormat(val,l[j]);if(d!=0){return new Date(d);}}}return null;}

/* SOURCE FILE: PopupWindow.js */
function PopupWindow_getXYPosition(anchorname){var coordinates;if(this.type == "WINDOW"){coordinates = getAnchorWindowPosition(anchorname);}else{coordinates = getAnchorPosition(anchorname);}this.x = coordinates.x;this.y = coordinates.y;}
function PopupWindow_setSize(width,height){this.width = width;this.height = height;}
function PopupWindow_populate(contents){this.contents = contents;this.populated = false;}
function PopupWindow_setUrl(url){this.url = url;}
function PopupWindow_setWindowProperties(props){this.windowProperties = props;}
function PopupWindow_refresh(){if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).innerHTML = this.contents;}else if(this.use_css){document.all[this.divName].innerHTML = this.contents;}else if(this.use_layers){var d = document.layers[this.divName];d.document.open();d.document.writeln(this.contents);d.document.close();}}else{if(this.popupWindow != null && !this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url;}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);this.popupWindow.document.close();}this.popupWindow.focus();}}}
function PopupWindow_showPopup(anchorname){this.getXYPosition(anchorname);this.x += this.offsetX;this.y += this.offsetY;if(!this.populated &&(this.contents != "")){this.populated = true;this.refresh();}if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).style.left = this.x + "px";document.getElementById(this.divName).style.top = this.y + "px";document.getElementById(this.divName).style.visibility = "visible";}else if(this.use_css){document.all[this.divName].style.left = this.x;document.all[this.divName].style.top = this.y;document.all[this.divName].style.visibility = "visible";}else if(this.use_layers){document.layers[this.divName].left = this.x;document.layers[this.divName].top = this.y;document.layers[this.divName].visibility = "visible";}}else{if(this.popupWindow == null || this.popupWindow.closed){if(this.x<0){this.x=0;}if(this.y<0){this.y=0;}if(screen && screen.availHeight){if((this.y + this.height) > screen.availHeight){this.y = screen.availHeight - this.height;}}if(screen && screen.availWidth){if((this.x + this.width) > screen.availWidth){this.x = screen.availWidth - this.width;}}var avoidAboutBlank = window.opera ||( document.layers && !navigator.mimeTypes['*']) || navigator.vendor == 'KDE' ||( document.childNodes && !document.all && !navigator.taintEnabled);this.popupWindow = window.open(avoidAboutBlank?"":"about:blank","window_"+anchorname,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");}this.refresh();}}
function PopupWindow_hidePopup(){if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).style.visibility = "hidden";}else if(this.use_css){document.all[this.divName].style.visibility = "hidden";}else if(this.use_layers){document.layers[this.divName].visibility = "hidden";}}else{if(this.popupWindow && !this.popupWindow.closed){this.popupWindow.close();this.popupWindow = null;}}}
function PopupWindow_isClicked(e){if(this.divName != null){if(this.use_layers){var clickX = e.pageX;var clickY = e.pageY;var t = document.layers[this.divName];if((clickX > t.left) &&(clickX < t.left+t.clip.width) &&(clickY > t.top) &&(clickY < t.top+t.clip.height)){return true;}else{return false;}}else if(document.all){var t = window.event.srcElement;while(t.parentElement != null){if(t.id==this.divName){return true;}t = t.parentElement;}return false;}else if(this.use_gebi && e){var t = e.originalTarget;while(t.parentNode != null){if(t.id==this.divName){return true;}t = t.parentNode;}return false;}return false;}return false;}
function PopupWindow_hideIfNotClicked(e){if(this.autoHideEnabled && !this.isClicked(e)){this.hidePopup();}}
function PopupWindow_autoHide(){this.autoHideEnabled = true;}
function PopupWindow_hidePopupWindows(e){for(var i=0;i<popupWindowObjects.length;i++){if(popupWindowObjects[i] != null){var p = popupWindowObjects[i];p.hideIfNotClicked(e);}}}
function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP);}window.popupWindowOldEventListener = document.onmouseup;if(window.popupWindowOldEventListener != null){document.onmouseup = new Function("window.popupWindowOldEventListener();PopupWindow_hidePopupWindows();");}else{document.onmouseup = PopupWindow_hidePopupWindows;}}
function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex = 0;}if(!window.popupWindowObjects){window.popupWindowObjects = new Array();}if(!window.listenerAttached){window.listenerAttached = true;PopupWindow_attachListener();}this.index = popupWindowIndex++;popupWindowObjects[this.index] = this;this.divName = null;this.popupWindow = null;this.width=0;this.height=0;this.populated = false;this.visible = false;this.autoHideEnabled = false;this.contents = "";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.divName = arguments[0];}else{this.type="WINDOW";}this.use_gebi = false;this.use_css = false;this.use_layers = false;if(document.getElementById){this.use_gebi = true;}else if(document.all){this.use_css = true;}else if(document.layers){this.use_layers = true;}else{this.type = "WINDOW";}this.offsetX = 0;this.offsetY = 0;this.getXYPosition = PopupWindow_getXYPosition;this.populate = PopupWindow_populate;this.setUrl = PopupWindow_setUrl;this.setWindowProperties = PopupWindow_setWindowProperties;this.refresh = PopupWindow_refresh;this.showPopup = PopupWindow_showPopup;this.hidePopup = PopupWindow_hidePopup;this.setSize = PopupWindow_setSize;this.isClicked = PopupWindow_isClicked;this.autoHide = PopupWindow_autoHide;this.hideIfNotClicked = PopupWindow_hideIfNotClicked;}


/* SOURCE FILE: CalendarPopup.js */

function CalendarPopup(){var c;if(arguments.length>0){c = new PopupWindow(arguments[0]);}else{c = new PopupWindow();c.setSize(150,175);}c.offsetX = -152;c.offsetY = 25;c.autoHide();c.monthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");c.monthAbbreviations = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");c.dayHeaders = new Array("S","M","T","W","T","F","S");c.returnFunction = "CP_tmpReturnFunction";c.returnMonthFunction = "CP_tmpReturnMonthFunction";c.returnQuarterFunction = "CP_tmpReturnQuarterFunction";c.returnYearFunction = "CP_tmpReturnYearFunction";c.weekStartDay = 0;c.isShowYearNavigation = false;c.displayType = "date";c.disabledWeekDays = new Object();c.disabledDatesExpression = "";c.yearSelectStartOffset = 2;c.currentDate = null;c.todayText="Today";c.cssPrefix="";c.isShowNavigationDropdowns=false;c.isShowYearNavigationInput=false;window.CP_calendarObject = null;window.CP_targetInput = null;window.CP_dateFormat = "MM/dd/yyyy";c.copyMonthNamesToWindow = CP_copyMonthNamesToWindow;c.setReturnFunction = CP_setReturnFunction;c.setReturnMonthFunction = CP_setReturnMonthFunction;c.setReturnQuarterFunction = CP_setReturnQuarterFunction;c.setReturnYearFunction = CP_setReturnYearFunction;c.setMonthNames = CP_setMonthNames;c.setMonthAbbreviations = CP_setMonthAbbreviations;c.setDayHeaders = CP_setDayHeaders;c.setWeekStartDay = CP_setWeekStartDay;c.setDisplayType = CP_setDisplayType;c.setDisabledWeekDays = CP_setDisabledWeekDays;c.addDisabledDates = CP_addDisabledDates;c.setYearSelectStartOffset = CP_setYearSelectStartOffset;c.setTodayText = CP_setTodayText;c.showYearNavigation = CP_showYearNavigation;c.showCalendar = CP_showCalendar;c.hideCalendar = CP_hideCalendar;c.getStyles = getCalendarStyles;c.refreshCalendar = CP_refreshCalendar;c.getCalendar = CP_getCalendar;c.select = CP_select;c.setCssPrefix = CP_setCssPrefix;c.showNavigationDropdowns = CP_showNavigationDropdowns;c.showYearNavigationInput = CP_showYearNavigationInput;c.copyMonthNamesToWindow();return c;}
function CP_copyMonthNamesToWindow(){if(typeof(window.MONTH_NAMES)!="undefined" && window.MONTH_NAMES!=null){window.MONTH_NAMES = new Array();for(var i=0;i<this.monthNames.length;i++){window.MONTH_NAMES[window.MONTH_NAMES.length] = this.monthNames[i];}for(var i=0;i<this.monthAbbreviations.length;i++){window.MONTH_NAMES[window.MONTH_NAMES.length] = this.monthAbbreviations[i];}}}
function CP_tmpReturnFunction(y,m,d){if(window.CP_targetInput!=null){var dt = new Date(y,m-1,d,0,0,0);if(window.CP_calendarObject!=null){window.CP_calendarObject.copyMonthNamesToWindow();}window.CP_targetInput.value = formatDate(dt,window.CP_dateFormat);}else{alert('Use setReturnFunction() to define which function will get the clicked results!');}}
function CP_tmpReturnMonthFunction(y,m){alert('Use setReturnMonthFunction() to define which function will get the clicked results!\nYou clicked: year='+y+' , month='+m);}
function CP_tmpReturnQuarterFunction(y,q){alert('Use setReturnQuarterFunction() to define which function will get the clicked results!\nYou clicked: year='+y+' , quarter='+q);}
function CP_tmpReturnYearFunction(y){alert('Use setReturnYearFunction() to define which function will get the clicked results!\nYou clicked: year='+y);}
function CP_setReturnFunction(name){this.returnFunction = name;}
function CP_setReturnMonthFunction(name){this.returnMonthFunction = name;}
function CP_setReturnQuarterFunction(name){this.returnQuarterFunction = name;}
function CP_setReturnYearFunction(name){this.returnYearFunction = name;}
function CP_setMonthNames(){for(var i=0;i<arguments.length;i++){this.monthNames[i] = arguments[i];}this.copyMonthNamesToWindow();}
function CP_setMonthAbbreviations(){for(var i=0;i<arguments.length;i++){this.monthAbbreviations[i] = arguments[i];}this.copyMonthNamesToWindow();}
function CP_setDayHeaders(){for(var i=0;i<arguments.length;i++){this.dayHeaders[i] = arguments[i];}}
function CP_setWeekStartDay(day){this.weekStartDay = day;}
function CP_showYearNavigation(){this.isShowYearNavigation =(arguments.length>0)?arguments[0]:true;}
function CP_setDisplayType(type){if(type!="date"&&type!="week-end"&&type!="month"&&type!="quarter"&&type!="year"){alert("Invalid display type! Must be one of: date,week-end,month,quarter,year");return false;}this.displayType=type;}
function CP_setYearSelectStartOffset(num){this.yearSelectStartOffset=num;}
function CP_setDisabledWeekDays(){this.disabledWeekDays = new Object();for(var i=0;i<arguments.length;i++){this.disabledWeekDays[arguments[i]] = true;}}
function CP_addDisabledDates(start, end){if(arguments.length==1){end=start;}if(start==null && end==null){return;}if(this.disabledDatesExpression!=""){this.disabledDatesExpression+= "||";}if(start!=null){start = parseDate(start);start=""+start.getFullYear()+LZ(start.getMonth()+1)+LZ(start.getDate());}if(end!=null){end=parseDate(end);end=""+end.getFullYear()+LZ(end.getMonth()+1)+LZ(end.getDate());}if(start==null){this.disabledDatesExpression+="(ds<="+end+")";}else if(end  ==null){this.disabledDatesExpression+="(ds>="+start+")";}else{this.disabledDatesExpression+="(ds>="+start+"&&ds<="+end+")";}}
function CP_setTodayText(text){this.todayText = text;}
function CP_setCssPrefix(val){this.cssPrefix = val;}
function CP_showNavigationDropdowns(){this.isShowNavigationDropdowns =(arguments.length>0)?arguments[0]:true;}
function CP_showYearNavigationInput(){this.isShowYearNavigationInput =(arguments.length>0)?arguments[0]:true;}
function CP_hideCalendar(){if(arguments.length > 0){window.popupWindowObjects[arguments[0]].hidePopup();}else{this.hidePopup();}}
function CP_refreshCalendar(index){var calObject = window.popupWindowObjects[index];if(arguments.length>1){calObject.populate(calObject.getCalendar(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]));}else{calObject.populate(calObject.getCalendar());}calObject.refresh();}
function CP_showCalendar(anchorname){if(arguments.length>1){if(arguments[1]==null||arguments[1]==""){this.currentDate=new Date();}else{this.currentDate=new Date(parseDate(arguments[1]));}}this.populate(this.getCalendar());this.showPopup(anchorname);}
function CP_select(inputobj, linkname, format){var selectedDate=(arguments.length>3)?arguments[3]:null;if(!window.getDateFromFormat){alert("calendar.select: To use this method you must also include 'date.js' for date formatting");return;}if(this.displayType!="date"&&this.displayType!="week-end"){alert("calendar.select: This function can only be used with displayType 'date' or 'week-end'");return;}if(inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea"){alert("calendar.select: Input object passed is not a valid form input object");window.CP_targetInput=null;return;}if(inputobj.disabled){return;}window.CP_targetInput = inputobj;window.CP_calendarObject = this;this.currentDate=null;var time=0;if(selectedDate!=null){time = getDateFromFormat(selectedDate,format)}else if(inputobj.value!=""){time = getDateFromFormat(inputobj.value,format);}if(selectedDate!=null || inputobj.value!=""){if(time==0){this.currentDate=null;}else{this.currentDate=new Date(time);}}window.CP_dateFormat = format;this.showCalendar(linkname);}
function getCalendarStyles(){var result = "";var p = "";if(this!=null && typeof(this.cssPrefix)!="undefined" && this.cssPrefix!=null && this.cssPrefix!=""){p=this.cssPrefix;}result += "<STYLE>\n";result += "."+p+"cpYearNavigation,."+p+"cpMonthNavigation{background-color:#C0C0C0;text-align:center;vertical-align:center;text-decoration:none;color:#000000;font-weight:bold;}\n";result += "."+p+"cpDayColumnHeader, ."+p+"cpYearNavigation,."+p+"cpMonthNavigation,."+p+"cpCurrentMonthDate,."+p+"cpCurrentMonthDateDisabled,."+p+"cpOtherMonthDate,."+p+"cpOtherMonthDateDisabled,."+p+"cpCurrentDate,."+p+"cpCurrentDateDisabled,."+p+"cpTodayText,."+p+"cpTodayTextDisabled,."+p+"cpText{font-family:arial;font-size:8pt;}\n";result += "TD."+p+"cpDayColumnHeader{text-align:right;border:solid thin #C0C0C0;border-width:0px 0px 1px 0px;}\n";result += "."+p+"cpCurrentMonthDate, ."+p+"cpOtherMonthDate, ."+p+"cpCurrentDate{text-align:right;text-decoration:none;}\n";result += "."+p+"cpCurrentMonthDateDisabled, ."+p+"cpOtherMonthDateDisabled, ."+p+"cpCurrentDateDisabled{color:#D0D0D0;text-align:right;text-decoration:line-through;}\n";result += "."+p+"cpCurrentMonthDate, .cpCurrentDate{color:#000000;}\n";result += "."+p+"cpOtherMonthDate{color:#808080;}\n";result += "TD."+p+"cpCurrentDate{color:white;background-color: #C0C0C0;border-width:1px;border:solid thin #800000;}\n";result += "TD."+p+"cpCurrentDateDisabled{border-width:1px;border:solid thin #FFAAAA;}\n";result += "TD."+p+"cpTodayText, TD."+p+"cpTodayTextDisabled{border:solid thin #C0C0C0;border-width:1px 0px 0px 0px;}\n";result += "A."+p+"cpTodayText, SPAN."+p+"cpTodayTextDisabled{height:20px;}\n";result += "A."+p+"cpTodayText{color:black;}\n";result += "."+p+"cpTodayTextDisabled{color:#D0D0D0;}\n";result += "."+p+"cpBorder{border:solid thin #808080;}\n";result += "</STYLE>\n";return result;}
function CP_getCalendar(){var now = new Date();if(this.type == "WINDOW"){var windowref = "window.opener.";}else{var windowref = "";}var result = "";if(this.type == "WINDOW"){result += "<HTML><HEAD><TITLE>Calendar</TITLE>"+this.getStyles()+"</HEAD><BODY MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 RIGHTMARGIN=0 LEFTMARGIN=0>\n";result += '<CENTER><TABLE WIDTH=100% BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>\n';}else{result += '<TABLE CLASS="'+this.cssPrefix+'cpBorder" WIDTH=144 BORDER=1 BORDERWIDTH=1 CELLSPACING=0 CELLPADDING=1>\n';result += '<TR><TD ALIGN=CENTER>\n';result += '<CENTER>\n';}if(this.displayType=="date" || this.displayType=="week-end"){if(this.currentDate==null){this.currentDate = now;}if(arguments.length > 0){var month = arguments[0];}else{var month = this.currentDate.getMonth()+1;}if(arguments.length > 1 && arguments[1]>0 && arguments[1]-0==arguments[1]){var year = arguments[1];}else{var year = this.currentDate.getFullYear();}var daysinmonth= new Array(0,31,28,31,30,31,30,31,31,30,31,30,31);if( ((year%4 == 0)&&(year%100 != 0) ) ||(year%400 == 0) ){daysinmonth[2] = 29;}var current_month = new Date(year,month-1,1);var display_year = year;var display_month = month;var display_date = 1;var weekday= current_month.getDay();var offset = 0;offset =(weekday >= this.weekStartDay) ? weekday-this.weekStartDay : 7-this.weekStartDay+weekday ;if(offset > 0){display_month--;if(display_month < 1){display_month = 12;display_year--;}display_date = daysinmonth[display_month]-offset+1;}var next_month = month+1;var next_month_year = year;if(next_month > 12){next_month=1;next_month_year++;}var last_month = month-1;var last_month_year = year;if(last_month < 1){last_month=12;last_month_year--;}var date_class;if(this.type!="WINDOW"){result += "<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";}result += '<TR>\n';var refresh = windowref+'CP_refreshCalendar';var refreshLink = 'javascript:' + refresh;if(this.isShowNavigationDropdowns){result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="78" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpMonthNavigation" name="cpMonth" onChange="'+refresh+'('+this.index+',this.options[this.selectedIndex].value-0,'+(year-0)+');">';for( var monthCounter=1;monthCounter<=12;monthCounter++){var selected =(monthCounter==month) ? 'SELECTED' : '';result += '<option value="'+monthCounter+'" '+selected+'>'+this.monthNames[monthCounter-1]+'</option>';}result += '</select></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="56" COLSPAN="3"><select CLASS="'+this.cssPrefix+'cpYearNavigation" name="cpYear" onChange="'+refresh+'('+this.index+','+month+',this.options[this.selectedIndex].value-0);">';for( var yearCounter=year-this.yearSelectStartOffset;yearCounter<=year+this.yearSelectStartOffset;yearCounter++){var selected =(yearCounter==year) ? 'SELECTED' : '';result += '<option value="'+yearCounter+'" '+selected+'>'+yearCounter+'</option>';}result += '</select></TD>';}else{if(this.isShowYearNavigation){result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+'('+this.index+','+last_month+','+last_month_year+');">&lt;</A></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="58"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+'</SPAN></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+'('+this.index+','+next_month+','+next_month_year+');">&gt;</A></TD>';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="10">&nbsp;</TD>';result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+'('+this.index+','+month+','+(year-1)+');">&lt;</A></TD>';if(this.isShowYearNavigationInput){result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><INPUT NAME="cpYear" CLASS="'+this.cssPrefix+'cpYearNavigation" SIZE="4" MAXLENGTH="4" VALUE="'+year+'" onBlur="'+refresh+'('+this.index+','+month+',this.value-0);"></TD>';}else{result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="36"><SPAN CLASS="'+this.cssPrefix+'cpYearNavigation">'+year+'</SPAN></TD>';}result += '<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="10"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="'+refreshLink+'('+this.index+','+month+','+(year+1)+');">&gt;</A></TD>';}else{result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+'('+this.index+','+last_month+','+last_month_year+');">&lt;&lt;</A></TD>\n';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="100"><SPAN CLASS="'+this.cssPrefix+'cpMonthNavigation">'+this.monthNames[month-1]+' '+year+'</SPAN></TD>\n';result += '<TD CLASS="'+this.cssPrefix+'cpMonthNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpMonthNavigation" HREF="'+refreshLink+'('+this.index+','+next_month+','+next_month_year+');">&gt;&gt;</A></TD>\n';}}result += '</TR></TABLE>\n';result += '<TABLE WIDTH=120 BORDER=0 CELLSPACING=0 CELLPADDING=1 ALIGN=CENTER>\n';result += '<TR>\n';for(var j=0;j<7;j++){result += '<TD CLASS="'+this.cssPrefix+'cpDayColumnHeader" WIDTH="14%"><SPAN CLASS="'+this.cssPrefix+'cpDayColumnHeader">'+this.dayHeaders[(this.weekStartDay+j)%7]+'</TD>\n';}result += '</TR>\n';for(var row=1;row<=6;row++){result += '<TR>\n';for(var col=1;col<=7;col++){var disabled=false;if(this.disabledDatesExpression!=""){var ds=""+display_year+LZ(display_month)+LZ(display_date);eval("disabled=("+this.disabledDatesExpression+")");}var dateClass = "";if((display_month == this.currentDate.getMonth()+1) &&(display_date==this.currentDate.getDate()) &&(display_year==this.currentDate.getFullYear())){dateClass = "cpCurrentDate";}else if(display_month == month){dateClass = "cpCurrentMonthDate";}else{dateClass = "cpOtherMonthDate";}if(disabled || this.disabledWeekDays[col-1]){result += '	<TD CLASS="'+this.cssPrefix+dateClass+'"><SPAN CLASS="'+this.cssPrefix+dateClass+'Disabled">'+display_date+'</SPAN></TD>\n';}else{var selected_date = display_date;var selected_month = display_month;var selected_year = display_year;if(this.displayType=="week-end"){var d = new Date(selected_year,selected_month-1,selected_date,0,0,0,0);d.setDate(d.getDate() +(7-col));selected_year = d.getYear();if(selected_year < 1000){selected_year += 1900;}selected_month = d.getMonth()+1;selected_date = d.getDate();}result += '	<TD CLASS="'+this.cssPrefix+dateClass+'"><A HREF="javascript:'+windowref+this.returnFunction+'('+selected_year+','+selected_month+','+selected_date+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+this.cssPrefix+dateClass+'">'+display_date+'</A></TD>\n';}display_date++;if(display_date > daysinmonth[display_month]){display_date=1;display_month++;}if(display_month > 12){display_month=1;display_year++;}}result += '</TR>';}var current_weekday = now.getDay() - this.weekStartDay;if(current_weekday < 0){current_weekday += 7;}result += '<TR>\n';result += '	<TD COLSPAN=7 ALIGN=CENTER CLASS="'+this.cssPrefix+'cpTodayText">\n';if(this.disabledDatesExpression!=""){var ds=""+now.getFullYear()+LZ(now.getMonth()+1)+LZ(now.getDate());eval("disabled=("+this.disabledDatesExpression+")");}if(disabled || this.disabledWeekDays[current_weekday+1]){result += '		<SPAN CLASS="'+this.cssPrefix+'cpTodayTextDisabled">'+this.todayText+'</SPAN>\n';}else{result += '		<A CLASS="'+this.cssPrefix+'cpTodayText" HREF="javascript:'+windowref+this.returnFunction+'(\''+now.getFullYear()+'\',\''+(now.getMonth()+1)+'\',\''+now.getDate()+'\');'+windowref+'CP_hideCalendar(\''+this.index+'\');">'+this.todayText+'</A>\n';}result += '		<BR>\n';result += '	</TD></TR></TABLE></CENTER></TD></TR></TABLE>\n';}if(this.displayType=="month" || this.displayType=="quarter" || this.displayType=="year"){if(arguments.length > 0){var year = arguments[0];}else{if(this.displayType=="year"){var year = now.getFullYear()-this.yearSelectStartOffset;}else{var year = now.getFullYear();}}if(this.displayType!="year" && this.isShowYearNavigation){result += "<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result += '<TR>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year-1)+');">&lt;&lt;</A></TD>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="100">'+year+'</TD>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="22"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year+1)+');">&gt;&gt;</A></TD>\n';result += '</TR></TABLE>\n';}}if(this.displayType=="month"){result += '<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<4;i++){result += '<TR>';for(var j=0;j<3;j++){var monthindex =((i*3)+j);result += '<TD WIDTH=33% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnMonthFunction+'('+year+','+(monthindex+1)+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+date_class+'">'+this.monthAbbreviations[monthindex]+'</A></TD>';}result += '</TR>';}result += '</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.displayType=="quarter"){result += '<BR><TABLE WIDTH=120 BORDER=1 CELLSPACING=0 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<2;i++){result += '<TR>';for(var j=0;j<2;j++){var quarter =((i*2)+j+1);result += '<TD WIDTH=50% ALIGN=CENTER><BR><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnQuarterFunction+'('+year+','+quarter+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+date_class+'">Q'+quarter+'</A><BR><BR></TD>';}result += '</TR>';}result += '</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.displayType=="year"){var yearColumnSize = 4;result += "<TABLE WIDTH=144 BORDER=0 BORDERWIDTH=0 CELLSPACING=0 CELLPADDING=0>";result += '<TR>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year-(yearColumnSize*2))+');">&lt;&lt;</A></TD>\n';result += '	<TD CLASS="'+this.cssPrefix+'cpYearNavigation" WIDTH="50%"><A CLASS="'+this.cssPrefix+'cpYearNavigation" HREF="javascript:'+windowref+'CP_refreshCalendar('+this.index+','+(year+(yearColumnSize*2))+');">&gt;&gt;</A></TD>\n';result += '</TR></TABLE>\n';result += '<TABLE WIDTH=120 BORDER=0 CELLSPACING=1 CELLPADDING=0 ALIGN=CENTER>\n';for(var i=0;i<yearColumnSize;i++){for(var j=0;j<2;j++){var currentyear = year+(j*yearColumnSize)+i;result += '<TD WIDTH=50% ALIGN=CENTER><A CLASS="'+this.cssPrefix+'cpText" HREF="javascript:'+windowref+this.returnYearFunction+'('+currentyear+');'+windowref+'CP_hideCalendar(\''+this.index+'\');" CLASS="'+date_class+'">'+currentyear+'</A></TD>';}result += '</TR>';}result += '</TABLE></CENTER></TD></TR></TABLE>\n';}if(this.type == "WINDOW"){result += "</BODY></HTML>\n";}return result;}

<!-- 

var listing_style = "states";
var state = new Array(); 
state["USA"] = "----United States----";
state["AZ"] = "Arizona";
state["CA"] = "California";
state["CO"] = "Colorado";
state["CT"] = "Connecticut";
state["DC"] = "District of Columbia";
state["FL"] = "Florida";
state["GA"] = "Georgia";
state["HI"] = "Hawaii";
state["IL"] = "Illinois";
state["LA"] = "Louisiana";
state["MA"] = "Massachusetts";
state["MD"] = "Maryland";
state["NJ"] = "New Jersey";
state["NV"] = "Nevada";
state["NY"] = "New York";
state["PA"] = "Pennsylvania";
state["UT"] = "Utah";
state["WA"] = "Washington";
state["CND"] = "-----Canada-----";
state["AB"] = "Alberta";
state["BC"] = "British Columbia";
state["NS"] = "Nova Scotia";
state["ON"] = "Ontario";
state["QC"] = "Quebec";
state["ARGENTINA"] = "-----Argentina-----";
state["AU"] = "-----Australia-----";
state["AUSTRIA"] = "-----Austria-----";
state["BELGIUM"] = "-----Belgium-----";
state["BRAZIL"] = "-----Brazil-----";
state["CN"] = "-----China-----";
state["COSTARICA"] = "-----Costa Rica-----";
state["CZECH REPUBLIC"] = "-----Czech Republic-----";
state["DENMARK"] = "-----Denmark-----";
state["ECUADOR"] = "-----Ecuador-----";
state["UNITED KINGDOM"] = "-----United Kingdom-----";
state["FINLAND"] = "-----Finland-----";
state["FRANCE"] = "-----France-----";
state["GERMANY"] = "-----Germany-----";
state["GREECE"] = "-----Greece-----";
state["HUNGARY"] = "-----Hungary-----";
state["ICELAND"] = "-----Iceland-----";
state["IRELAND"] = "-----Ireland-----";
state["ISRAEL"] = "-----Israel-----";
state["ITALY"] = "-----Italy-----";
state["JAPAN"] = "-----Japan-----";
state["LUXEMBOURG"] = "-----Luxembourg-----";
state["MX"] = "-----Mexico-----";
state["NZD"] = "-----New Zealand-----";
state["NETHERLANDS"] = "-----Netherlands-----";
state["PERU"] = "-----Peru-----";
state["PORTUGAL"] = "-----Portugal-----";
state["RUSSIA"] = "-----Russia-----";
state["SPAIN"] = "-----Spain-----";
state["SWITZERLAND"] = "-----Switzerland-----";
state["THAILAND"] = "-----Thailand-----";
state["TURKEY"] = "-----Turkey-----";
 
 //-->
 var attras = new Array( 'grand canyon'  , 'sedona'  , 'santa barbara'  , 'new orleans'  , 'savannah'  , 'trolley'  , 'los angeles'  , 'hollywood'  , 'homes'  , 'o.c.'  , 'mexico'  , 'berry'  , 'universal'  , 'zoo'  , 'sea world'  , 'six flags'  , 'las vegas'  , 'san diego'  , 'medieval'  , 'night'  , 'dinner'  , 'beverly'  , 'citadel '  , 'algarve'  , 'lisboa'  , 'athens'  , 'greece'  , 'fully'  , 'islands'  , 'acadia'  , 'canada'  , 'chicago'  , 'new york'  , 'niagara'  , 'u.s. side only'  , 'montreal'  , 'philadelphia'  , 'prince edward'  , 'quebec'  , 'rhode'  , 'tennessee'  , 'toronto'  , 'washington'  , 'boston'  , 'cape cod'  , 'mohegan'  , 'concord'  , 'helicopter'  , 'newport'  , 'pilgrim'  , 'plimoth'  , 'salem'  , 'wrentham'  , 'duck'  , 'cruise'  , 'card'  , 'pass'  , '1000'  , 'corning'  , 'wine'  , 'yellowstone'  , 'arch'  , 'rushmore'  , 'baltimore'  , 'busch'  , 'chesapeake bay'  , 'chocolate'  , 'rhode island'  , 'shenandoah'  , 'hawaii'  , 'big island'  , 'kualoa'  , 'maui'  , 'pearl'  , 'polynesian'  , 'london'  , 'windsor'  , 'oxford'  , 'paris'  , 'edinburgh tours'  , 'key west'  , 'conch'  , 'aquarium'  , 'shipwreck'  , 'yankee'  , 'kissimmee'  , 'arches'  , 'bryce canyon'  , 'ensenada'  , 'tahoe'  , 'lake powell'  , 'monterey'  , 'san francisco'  , 'sequoia'  , 'disneyland'  , 'yosemite'  , 'zion'  , 'world'  , 'getty'  , 'walking'  , 'museum'  , 'outlet'  , 'shuttle'  , 'palms springs'  , 'anaheim'  , 'bryce'  , 'death'  , 'eldorado canyon'  , 'dam'  , 'south rim'  , 'west rim'  , 'teton'  , 'haunted'  , 'mead'  , 'charleston'  , 'mob'  , 'red rock'  , 'red rock canyon'  , 'river'  , 'madrid'  , 'spain'  , 'munich'  , 'royal castle'  , 'duration'  , 'airboat'  , 'blizzard'  , 'disney'  , 'everglade'  , 'kennedy'  , 'island'  , 'orlando'  , 'parrot'  , 'seaquarium'  , 'sea'  , 'snorkeling'  , 'typhoon'  , 'wild'  , 'atlantic'  , 'chesapeake'  , 'lake'  , 'long island'  , 'shl'  , 'loop'  , 'harlem'  , 'movie'  , 'ski'  , 'hamptons'  , 'wineries'  , 'woodbury'  , 'niagara falls'  , 'evening'  , 'cave'  , 'maid'  , 'observation'  , 'skylon'  , 'cypress'  , 'everglades'  , 'gatorland'  , 'gospel brunch'  , 'miami'  , 'space'  , 'silver'  , 'grand'  , 'hop'  , 'barcelona'  , 'porto'  , 'palm springs'  , 'san andreas fault'  , 'joshua'  , 'maggie mine'  , 'calico'  , 'odessa'  , 'mystery shack'  , 'gold panning'  , 'nasa'  , 'safari'  , 'sonoran'  , 'paleontologist'  , 'decker'  , 'amish'  , 'dinosaur'  , 'rocky'  , 'carmel'  , 'canyon'  , 'skywalk'  , 'angeles'  , 'vegas'  , 'powell'  , 'muir woods'  , 'napa'  , 'sequoias'  , 'sausalito'  , 'california'  , 'double decker'  , 'legoland'  , 'rosarito'  , 'seaport'  , 'sycuan'  , 'tijuana'  , 'viejas'  , 'animal'  , 'antelope'  , 'death valley'  , 'hearst castle'  , 'monterey bay'  , 'obispo'  , 'taste'  , 'segway'  , 'edinburgh'  , 'highlands'  , 'loch'  , 'rosslyn'  , 'stirling'  , 'trossachs'  , 'boeing'  , 'vancouver'  , 'st augustine'  , 'miles'  , 'floatplane'  , 'butchart'  , 'salmon'  , 'seattle'  , 'sulohur'  , 'victoria'  , 'whale'  , 'whistler'  , 'monuments'  , 'alexandria'  , 'gettysburg'  , 'george'  , 'monticello'  , 'vernon'  , 'ottawa'  , 'jefferson'  , 'quebec city'  , 'williamsburg'  , 'madeira'  , 'florence'  , 'tasting'  , 'lisbon'  , 'fatima'  , 'portugal tour'  , 'prague'  , 'karlovy vary'  , 'escorted'  , 'jeep'  , 'blue lagoon'  , 'diving'  , 'dublin'  , 'wicklow'  , 'flexible'  , 'milan'  , 'rome'  , 'vatican'  , 'naples'  , 'walking tour'  , 'johnstone strait'  , 'clearwater'  , 'campbell river' );
 var div_string = "<iframe  style='position:absolute;z-index:-1;width:200px;height:125px;top:0;left:0;scrolling:no;' frameborder='0' src='about:blank'></iframe><table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#ddeeff' style='border-bottom:#BBBBBB 5px solid;'><tr><td style='border-bottom:#bbb 1px dotted;padding-left:5px;color:#FF0000;'><strong class='ivyTab'>Hot Cities:</strong></td><td style='border-bottom:#bbb 1px dotted;'><a href='#' onclick='hide_div();'><img src='/images/icon_sl_c.gif' alt='Close' border='0' style='float:right' /></a></td></tr><tr><td colspan='2' style='height:20px; padding-top:5px; padding-left:10px;padding-bottom:5px; font-size:12px; font-family:Arial, Helvetica, sans-serif;'><a href='#' class='link00' onclick=\"change_div_city('New York, NY');\">New York</a> &nbsp;&nbsp;<a href='#' class='link00' onclick=\"change_div_city('Los Angeles, CA');\">Los Angeles</a>&nbsp;&nbsp; <a href='#' class='link00' onclick=\"change_div_city('Boston, MA');\">Boston</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"change_div_city('San Francisco, CA');\">San Francisco</a> &nbsp;&nbsp;<a href='#' class='link00'onclick=\"change_div_city('Washington, DC');\">Washington</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"change_div_city('Las Vegas, NV');\">Las Vegas</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"change_div_city('Paris, FRANCE');\">Paris</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"change_div_city('London, UNITED KINGDOM');\">London</a> &nbsp;&nbsp;<br /></td></tr></table><div class='TabTitle'><ul id='myTab1'><li class='active' onclick=\"nTabs(this,0);\" style='width:100px;'>North America</li><li class='normal' onclick=\"nTabs(this,1);\" style='width:100px;'>Latin America</li><li class='normal' onclick=\"nTabs(this,2);\" style='width:60px;'>Europe</li><li class='normal' onclick=\"nTabs(this,3);\" style='width:40px;'>Asia</li><li class='normal' onclick=\"nTabs(this,4);\" style='width:60px;'>Australia</li><li class='normal' onclick=\"nTabs(this,5);\" style='width:90px;'>Middle East</li><li class='normal' onclick=\"nTabs(this,6);\" style='width:60px;'>Africa</li></ul></div> <div class='TabContent' id='div_string'><div id='myTab1_Content0'><table width='100%'><tr><td style='background-color:#DDDDDD;height:20px'><strong style='padding-left:12px;'>United States:</strong></td></tr></table><div class='country'><ul><li><strong class='g333'>Arizona</strong></li><li><a href='#' onclick=\"change_div_city('Grand Canyon, AZ');\">Grand Canyon</a></li><li><a href='#' onclick=\"change_div_city('Phoenix, AZ');\">Phoenix</a></li><li><a href='#' onclick=\"change_div_city('Scottsdale, AZ');\">Scottsdale</a></li><li><a href='#' onclick=\"change_div_city('Sedona, AZ');\">Sedona</a></li><li><strong class='g333'>California</strong></li><li><a href='#' onclick=\"change_div_city('Anaheim, CA');\">Anaheim</a></li><li><a href='#' onclick=\"change_div_city('Buena Park, CA');\">Buena Park</a></li><li><a href='#' onclick=\"change_div_city('Los Angeles, CA');\">Los Angeles</a></li><li><a href='#' onclick=\"change_div_city('Palm Springs, CA');\">Palm Springs</a></li><li><a href='#' onclick=\"change_div_city('San Diego, CA');\">San Diego</a></li><li><a href='#' onclick=\"change_div_city('San Francisco, CA');\">San Francisco</a></li><li><a href='#' onclick=\"change_div_city('San Jose, CA');\">San Jose</a></li><li><a href='#' onclick=\"change_div_city('Santa Barbara, CA');\">Santa Barbara</a></li><li><strong class='g333'>Colorado</strong></li><li><a href='#' onclick=\"change_div_city('Denver, CO');\">Denver</a></li></ul></div><div class='country'><ul><li><strong class='g333'>Connecticut</strong></li><li><a href='#' onclick=\"change_div_city('Milford, CT');\">Milford</a></li><li><strong class='g333'>District of Columbia</strong></li><li><a href='#' onclick=\"change_div_city('Washington, DC');\">Washington</a></li><li><strong class='g333'>Florida</strong></li><li><a href='#' onclick=\"change_div_city('Crystal River, FL');\">Crystal River</a></li><li><a href='#' onclick=\"change_div_city('Key West, FL');\">Key West</a></li><li><a href='#' onclick=\"change_div_city('Kissimmee, FL');\">Kissimmee</a></li><li><a href='#' onclick=\"change_div_city('Miami, FL');\">Miami</a></li><li><a href='#' onclick=\"change_div_city('Orlando, FL');\">Orlando</a></li><li><a href='#' onclick=\"change_div_city('Silver Springs, FL');\">Silver Springs</a></li><li><a href='#' onclick=\"change_div_city('St Augustine, FL');\">St Augustine</a></li><li><strong class='g333'>Georgia</strong></li><li><a href='#' onclick=\"change_div_city('Savannah, GA');\">Savannah</a></li><li><strong class='g333'>Hawaii</strong></li><li><a href='#' onclick=\"change_div_city('Honolulu, HI');\">Honolulu</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Kauai, HI');\">Kauai</a></li><li><a href='#' onclick=\"change_div_city('Maui, HI');\">Maui</a></li><li><a href='#' onclick=\"change_div_city('Waikiki, HI');\">Waikiki</a></li><li><strong class='g333'>Illinois</strong></li><li><a href='#' onclick=\"change_div_city('Chicago, IL');\">Chicago</a></li><li><strong class='g333'>Louisiana</strong></li><li><a href='#' onclick=\"change_div_city('New Orleans, LA');\">New Orleans</a></li><li><strong class='g333'>Massachusetts</strong></li><li><a href='#' onclick=\"change_div_city('Boston, MA');\">Boston</a></li><li><a href='#' onclick=\"change_div_city('Charlton, MA');\">Charlton</a></li><li><a href='#' onclick=\"change_div_city('Worcester, MA');\">Worcester</a></li><li><strong class='g333'>Maryland</strong></li><li><a href='#' onclick=\"change_div_city('Gaithersburg, MD');\">Gaithersburg</a></li><li><strong class='g333'>New Jersey</strong></li><li><a href='#' onclick=\"change_div_city('Edison, NJ');\">Edison</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Jersey City, NJ');\">Jersey City</a></li><li><a href='#' onclick=\"change_div_city('Parsippany, NJ');\">Parsippany</a></li><li><strong class='g333'>Nevada</strong></li><li><a href='#' onclick=\"change_div_city('Las Vegas, NV');\">Las Vegas</a></li><li><strong class='g333'>New York</strong></li><li><a href='#' onclick=\"change_div_city('Flushing, NY');\">Flushing</a></li><li><a href='#' onclick=\"change_div_city('New York, NY');\">New York</a></li><li><a href='#' onclick=\"change_div_city('Niagara Falls, NY');\">Niagara Falls</a></li><li><strong class='g333'>Pennsylvania</strong></li><li><a href='#' onclick=\"change_div_city('Philadelphia, PA');\">Philadelphia</a></li><li><strong class='g333'>Utah</strong></li><li><a href='#' onclick=\"change_div_city('Salt Lake City, UT');\">Salt Lake City</a></li><li><strong class='g333'>Washington</strong></li><li><a href='#' onclick=\"change_div_city('Seattle, WA');\">Seattle</a></li></ul></div><div style='clear: both'></div><div style='padding-left:12px;background-color:#DDDDDD;;height:20px'><strong>Canada:</strong></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Calgary, AB');\">Calgary</a></li><li><a href='#' onclick=\"change_div_city('Campbell River, BC');\">Campbell River</a></li><li><a href='#' onclick=\"change_div_city('Clearwater, BC');\">Clearwater</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Halifax, NS');\">Halifax</a></li><li><a href='#' onclick=\"change_div_city('Johnstone Strait, BC');\">Johnstone Strait</a></li><li><a href='#' onclick=\"change_div_city('Montreal, QC');\">Montreal</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Ottawa, ON');\">Ottawa</a></li><li><a href='#' onclick=\"change_div_city('Toronto, ON');\">Toronto</a></li><li><a href='#' onclick=\"change_div_city('Vancouver, BC');\">Vancouver</a></li></ul></div></div><div id='myTab1_Content1' class='none'><div class='country'><ul><li><strong class='g333'>Argentina</strong></li><li><a href='#' onclick=\"change_div_city('Buenos Aires, ARGENTINA');\">Buenos Aires</a></li><li><strong class='g333'>Brazil</strong></li><li><a href='#' onclick=\"change_div_city('Joao Pessoa, BRAZIL');\">Joao Pessoa</a></li><li><a href='#' onclick=\"change_div_city('Maceio, BRAZIL');\">Maceio</a></li><li><a href='#' onclick=\"change_div_city('Natal, BRAZIL');\">Natal</a></li><li><a href='#' onclick=\"change_div_city('Paraty, BRAZIL');\">Paraty</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Recife, BRAZIL');\">Recife</a></li><li><a href='#' onclick=\"change_div_city('Rio de Janeiro, BRAZIL');\">Rio de Janeiro</a></li><li><a href='#' onclick=\"change_div_city('Sao Paulo, BRAZIL');\">Sao Paulo</a></li><li><strong class='g333'>Costa Rica</strong></li><li><a href='#' onclick=\"change_div_city('San Jose, COSTARICA');\">San Jose</a></li><li><strong class='g333'>Ecuador</strong></li><li><a href='#' onclick=\"change_div_city('Guayaquil, ECUADOR');\">Guayaquil</a></li></ul></div><div class='country'><ul><li><strong class='g333'>Mexico</strong></li><li><a href='#' onclick=\"change_div_city('Acapulco, MX');\">Acapulco</a></li><li><a href='#' onclick=\"change_div_city('Cabo San Lucas, MX');\">Cabo San Lucas</a></li><li><a href='#' onclick=\"change_div_city('Cancun, MX');\">Cancun</a></li><li><a href='#' onclick=\"change_div_city('Guadalajara, MX');\">Guadalajara</a></li><li><a href='#' onclick=\"change_div_city('Huatulco, MX');\">Huatulco</a></li><li><a href='#' onclick=\"change_div_city('Ixtapa, MX');\">Ixtapa</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Mexico City, MX');\">Mexico City</a></li><li><a href='#' onclick=\"change_div_city('Puerto Vallarta, MX');\">Puerto Vallarta</a></li><li><a href='#' onclick=\"change_div_city('Tuxtla Gutierrez, MX');\">Tuxtla Gutierrez</a></li><li><strong class='g333'>Peru</strong></li><li><a href='#' onclick=\"change_div_city('Lima, PERU');\">Lima</a></li></ul></div></div><div id='myTab1_Content2' class='none'><div class='country'><ul><li><strong class='g333'>Austria</strong></li><li><a href='#' onclick=\"change_div_city('Vienna, AUSTRIA');\">Vienna</a></li><li><strong class='g333'>Belgium</strong></li><li><a href='#' onclick=\"change_div_city('Brussels, BELGIUM');\">Brussels</a></li><li><strong class='g333'>Czech Republic</strong></li><li><a href='#' onclick=\"change_div_city('Prague, CZECH REPUBLIC');\">Prague</a></li><li><strong class='g333'>Denmark</strong></li><li><a href='#' onclick=\"change_div_city('Copenhagen, DENMARK');\">Copenhagen</a></li><li><strong class='g333'>France</strong></li><li><a href='#' onclick=\"change_div_city('Lyon, FRANCE');\">Lyon</a></li><li><a href='#' onclick=\"change_div_city('Marseille, FRANCE');\">Marseille</a></li><li><a href='#' onclick=\"change_div_city('Nice, FRANCE');\">Nice</a></li><li><a href='#' onclick=\"change_div_city('Paris, FRANCE');\">Paris</a></li></ul></div><div class='country'><ul><li><strong class='g333'>Germany</strong></li><li><a href='#' onclick=\"change_div_city('Cologne, GERMANY');\">Cologne</a></li><li><a href='#' onclick=\"change_div_city('Frankfurt, GERMANY');\">Frankfurt</a></li><li><a href='#' onclick=\"change_div_city('Munich, GERMANY');\">Munich</a></li><li><strong class='g333'>Greece</strong></li><li><a href='#' onclick=\"change_div_city('Athens, GREECE');\">Athens</a></li><li><strong class='g333'>Hungary</strong></li><li><a href='#' onclick=\"change_div_city('Budapest, HUNGARY');\">Budapest</a></li><li><strong class='g333'>Iceland</strong></li><li><a href='#' onclick=\"change_div_city('Reykjavik, ICELAND');\">Reykjavik</a></li><li><strong class='g333'>Ireland</strong></li><li><a href='#' onclick=\"change_div_city('Dublin, IRELAND');\">Dublin</a></li><li><strong class='g333'>Italy</strong></li><li><a href='#' onclick=\"change_div_city('Florence, ITALY');\">Florence</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Milan, ITALY');\">Milan</a></li><li><a href='#' onclick=\"change_div_city('Pisa, ITALY');\">Pisa</a></li><li><a href='#' onclick=\"change_div_city('Rome, ITALY');\">Rome</a></li><li><strong class='g333'>Luxembourg</strong></li><li><a href='#' onclick=\"change_div_city('Luxembourg, LUXEMBOURG');\">Luxembourg</a></li><li><strong class='g333'>Netherlands</strong></li><li><a href='#' onclick=\"change_div_city('Amsterdam, NETHERLANDS');\">Amsterdam</a></li><li><strong class='g333'>Portugal</strong></li><li><a href='#' onclick=\"change_div_city('Algarve, PORTUGAL');\">Algarve</a></li><li><a href='#' onclick=\"change_div_city('Azores, PORTUGAL');\">Azores</a></li><li><a href='#' onclick=\"change_div_city('Lisbon, PORTUGAL');\">Lisbon</a></li><li><a href='#' onclick=\"change_div_city('Madeira, PORTUGAL');\">Madeira</a></li><li><a href='#' onclick=\"change_div_city('Porto Santo, PORTUGAL');\">Porto Santo</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Porto, PORTUGAL');\">Porto</a></li><li><strong class='g333'>Russia</strong></li><li><a href='#' onclick=\"change_div_city('Moscow, RUSSIA');\">Moscow</a></li><li><strong class='g333'>Spain</strong></li><li><a href='#' onclick=\"change_div_city('Barcelona, SPAIN');\">Barcelona</a></li><li><a href='#' onclick=\"change_div_city('Madrid, SPAIN');\">Madrid</a></li><li><strong class='g333'>Switzerland</strong></li><li><a href='#' onclick=\"change_div_city('Lucerne, SWITZERLAND');\">Lucerne</a></li><li><strong class='g333'>United Kingdom</strong></li><li><a href='#' onclick=\"change_div_city('Edinburgh, UNITED KINGDOM');\">Edinburgh</a></li><li><a href='#' onclick=\"change_div_city('London, UNITED KINGDOM');\">London</a></li></ul></div></div><div id='myTab1_Content3' class='none'><div class='country'><ul><li><strong class='g333'>China</strong></li><li><a href='#' onclick=\"change_div_city('Beijing, CN');\">Beijing</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Chengdu, CN');\">Chengdu</a></li><li><a href='#' onclick=\"change_div_city('Jiayuguan, CN');\">Jiayuguan</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Lanzhou, CN');\">Lanzhou</a></li><li><a href='#' onclick=\"change_div_city('Shanghai, CN');\">Shanghai</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Xian, CN');\">Xian</a></li><li><strong class='g333'>Thailand</strong></li><li><a href='#' onclick=\"change_div_city('Bangkok, THAILAND');\">Bangkok</a></li></ul></div></div><div id='myTab1_Content4' class='none'><div class='country'><ul><li><strong class='g333'>Australia</strong></li><li><a href='#' onclick=\"change_div_city('Adelaide, AU');\">Adelaide</a></li><li><a href='#' onclick=\"change_div_city('Alice Springs, AU');\">Alice Springs</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Brisbane, AU');\">Brisbane</a></li><li><a href='#' onclick=\"change_div_city('Darwin, AU');\">Darwin</a></li><li><a href='#' onclick=\"change_div_city('Gold Coast, AU');\">Gold Coast</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Hobart, AU');\">Hobart</a></li><li><a href='#' onclick=\"change_div_city('Melbourne, AU');\">Melbourne</a></li><li><a href='#' onclick=\"change_div_city('Perth, AU');\">Perth</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Sydney, AU');\">Sydney</a></li><li><strong class='g333'>New Zealand</strong></li><li><a href='#' onclick=\"change_div_city('Christchurch, NZD');\">Christchurch</a></li><li><a href='#' onclick=\"change_div_city('Queenstown, NZD');\">Queenstown</a></li></ul></div></div><div id='myTab1_Content5' class='none'><div class='country'><ul><li><strong class='g333'>Israel</strong></li><li><a href='#' onclick=\"change_div_city('Herzliya, ISRAEL');\">Herzliya</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"change_div_city('Jerusalem, ISRAEL');\">Jerusalem</a></li><li><a href='#' onclick=\"change_div_city('Netanya, ISRAEL');\">Netanya</a></li></ul></div></div><div id='myTab1_Content6' class='none'><div class='country'><ul><li><strong class='g333'>Tanzania</strong></li><li><a href='#' onclick=\"change_div_city('Moshi, TANZANIA');\">Moshi</a></li></ul></div></div></div>" ;
var sight_div_string = "<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='#ddeeff' style='border-bottom:#BBBBBB 5px solid;'><tr><td style='border-bottom:#bbb 1px dotted;padding-left:5px;color:#FF0000;'><strong class='ivyTab'>Hot Cities:</strong></td><td style='border-bottom:#bbb 1px dotted;'><a href='#' onclick='sight_hide_div();'><img src='/images/icon_sl_c.gif' alt='Close' border='0' style='float:right' /></a></td></tr><tr><td colspan='2' style='height:20px; padding-top:5px; padding-left:10px;padding-bottom:5px; font-size:12px; font-family:Arial, Helvetica, sans-serif;'><a href='#' class='link00' onclick=\"sight_change_div_city('New York, NY');\">New York</a> &nbsp;&nbsp;<a href='#' class='link00' onclick=\"sight_change_div_city('Los Angeles, CA');\">Los Angeles</a>&nbsp;&nbsp; <a href='#' class='link00' onclick=\"sight_change_div_city('Boston, MA');\">Boston</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"sight_change_div_city('San Francisco, CA');\">San Francisco</a> &nbsp;&nbsp;<a href='#' class='link00'onclick=\"sight_change_div_city('Washington, DC');\">Washington</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"sight_change_div_city('Las Vegas, NV');\">Las Vegas</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"sight_change_div_city('Paris, FRANCE');\">Paris</a>&nbsp;&nbsp;<a href='#' class='link00' onclick=\"sight_change_div_city('London, UNITED KINGDOM');\">London</a> &nbsp;&nbsp;<br /></td></tr></table><div class='TabTitle'><ul id='sight_myTab1'><li class='active' onclick=\"sight_nTabs(this,0);\" style='width:100px;'>North America</li><li class='normal' onclick=\"sight_nTabs(this,1);\" style='width:100px;'>Latin America</li><li class='normal' onclick=\"sight_nTabs(this,2);\" style='width:60px;'>Europe</li><li class='normal' onclick=\"sight_nTabs(this,3);\" style='width:40px;'>Asia</li><li class='normal' onclick=\"sight_nTabs(this,4);\" style='width:60px;'>Australia</li><li class='normal' onclick=\"sight_nTabs(this,5);\" style='width:90px;'>Middle East</li><li class='normal' onclick=\"sight_nTabs(this,6);\" style='width:60px;'>Africa</li></ul></div> <div class='TabContent' id='div_string'><div id='sight_myTab1_Content0'><table width='100%'><tr><td style='background-color:#DDDDDD;height:20px'><strong style='padding-left:12px;'>United States:</strong></td></tr></table><div class='country'><ul><li><strong class='g333'>Arizona</strong></li><li><a href='#' onclick=\"sight_change_div_city('Grand Canyon, AZ');\">Grand Canyon</a></li><li><a href='#' onclick=\"sight_change_div_city('Phoenix, AZ');\">Phoenix</a></li><li><a href='#' onclick=\"sight_change_div_city('Scottsdale, AZ');\">Scottsdale</a></li><li><a href='#' onclick=\"sight_change_div_city('Sedona, AZ');\">Sedona</a></li><li><strong class='g333'>California</strong></li><li><a href='#' onclick=\"sight_change_div_city('Anaheim, CA');\">Anaheim</a></li><li><a href='#' onclick=\"sight_change_div_city('Buena Park, CA');\">Buena Park</a></li><li><a href='#' onclick=\"sight_change_div_city('Los Angeles, CA');\">Los Angeles</a></li><li><a href='#' onclick=\"sight_change_div_city('Palm Springs, CA');\">Palm Springs</a></li><li><a href='#' onclick=\"sight_change_div_city('San Diego, CA');\">San Diego</a></li><li><a href='#' onclick=\"sight_change_div_city('San Francisco, CA');\">San Francisco</a></li><li><a href='#' onclick=\"sight_change_div_city('San Jose, CA');\">San Jose</a></li><li><a href='#' onclick=\"sight_change_div_city('Santa Barbara, CA');\">Santa Barbara</a></li><li><strong class='g333'>Colorado</strong></li><li><a href='#' onclick=\"sight_change_div_city('Denver, CO');\">Denver</a></li></ul></div><div class='country'><ul><li><strong class='g333'>Connecticut</strong></li><li><a href='#' onclick=\"sight_change_div_city('Milford, CT');\">Milford</a></li><li><strong class='g333'>District of Columbia</strong></li><li><a href='#' onclick=\"sight_change_div_city('Washington, DC');\">Washington</a></li><li><strong class='g333'>Florida</strong></li><li><a href='#' onclick=\"sight_change_div_city('Crystal River, FL');\">Crystal River</a></li><li><a href='#' onclick=\"sight_change_div_city('Key West, FL');\">Key West</a></li><li><a href='#' onclick=\"sight_change_div_city('Kissimmee, FL');\">Kissimmee</a></li><li><a href='#' onclick=\"sight_change_div_city('Miami, FL');\">Miami</a></li><li><a href='#' onclick=\"sight_change_div_city('Orlando, FL');\">Orlando</a></li><li><a href='#' onclick=\"sight_change_div_city('Silver Springs, FL');\">Silver Springs</a></li><li><a href='#' onclick=\"sight_change_div_city('St Augustine, FL');\">St Augustine</a></li><li><strong class='g333'>Georgia</strong></li><li><a href='#' onclick=\"sight_change_div_city('Savannah, GA');\">Savannah</a></li><li><strong class='g333'>Hawaii</strong></li><li><a href='#' onclick=\"sight_change_div_city('Honolulu, HI');\">Honolulu</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Kauai, HI');\">Kauai</a></li><li><a href='#' onclick=\"sight_change_div_city('Maui, HI');\">Maui</a></li><li><a href='#' onclick=\"sight_change_div_city('Waikiki, HI');\">Waikiki</a></li><li><strong class='g333'>Illinois</strong></li><li><a href='#' onclick=\"sight_change_div_city('Chicago, IL');\">Chicago</a></li><li><strong class='g333'>Louisiana</strong></li><li><a href='#' onclick=\"sight_change_div_city('New Orleans, LA');\">New Orleans</a></li><li><strong class='g333'>Massachusetts</strong></li><li><a href='#' onclick=\"sight_change_div_city('Boston, MA');\">Boston</a></li><li><a href='#' onclick=\"sight_change_div_city('Charlton, MA');\">Charlton</a></li><li><a href='#' onclick=\"sight_change_div_city('Worcester, MA');\">Worcester</a></li><li><strong class='g333'>Maryland</strong></li><li><a href='#' onclick=\"sight_change_div_city('Gaithersburg, MD');\">Gaithersburg</a></li><li><strong class='g333'>New Jersey</strong></li><li><a href='#' onclick=\"sight_change_div_city('Edison, NJ');\">Edison</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Jersey City, NJ');\">Jersey City</a></li><li><a href='#' onclick=\"sight_change_div_city('Parsippany, NJ');\">Parsippany</a></li><li><strong class='g333'>Nevada</strong></li><li><a href='#' onclick=\"sight_change_div_city('Las Vegas, NV');\">Las Vegas</a></li><li><strong class='g333'>New York</strong></li><li><a href='#' onclick=\"sight_change_div_city('Flushing, NY');\">Flushing</a></li><li><a href='#' onclick=\"sight_change_div_city('New York, NY');\">New York</a></li><li><a href='#' onclick=\"sight_change_div_city('Niagara Falls, NY');\">Niagara Falls</a></li><li><strong class='g333'>Pennsylvania</strong></li><li><a href='#' onclick=\"sight_change_div_city('Philadelphia, PA');\">Philadelphia</a></li><li><strong class='g333'>Utah</strong></li><li><a href='#' onclick=\"sight_change_div_city('Salt Lake City, UT');\">Salt Lake City</a></li><li><strong class='g333'>Washington</strong></li><li><a href='#' onclick=\"sight_change_div_city('Seattle, WA');\">Seattle</a></li></ul></div><div style='clear: both'></div><div style='padding-left:12px;background-color:#DDDDDD;;height:20px'><strong>Canada:</strong></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Calgary, AB');\">Calgary</a></li><li><a href='#' onclick=\"sight_change_div_city('Campbell River, BC');\">Campbell River</a></li><li><a href='#' onclick=\"sight_change_div_city('Clearwater, BC');\">Clearwater</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Halifax, NS');\">Halifax</a></li><li><a href='#' onclick=\"sight_change_div_city('Johnstone Strait, BC');\">Johnstone Strait</a></li><li><a href='#' onclick=\"sight_change_div_city('Montreal, QC');\">Montreal</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Ottawa, ON');\">Ottawa</a></li><li><a href='#' onclick=\"sight_change_div_city('Toronto, ON');\">Toronto</a></li><li><a href='#' onclick=\"sight_change_div_city('Vancouver, BC');\">Vancouver</a></li></ul></div></div><div id='sight_myTab1_Content1' class='none'><div class='country'><ul><li><strong class='g333'>Argentina</strong></li><li><a href='#' onclick=\"sight_change_div_city('Buenos Aires, ARGENTINA');\">Buenos Aires</a></li><li><strong class='g333'>Brazil</strong></li><li><a href='#' onclick=\"sight_change_div_city('Joao Pessoa, BRAZIL');\">Joao Pessoa</a></li><li><a href='#' onclick=\"sight_change_div_city('Maceio, BRAZIL');\">Maceio</a></li><li><a href='#' onclick=\"sight_change_div_city('Natal, BRAZIL');\">Natal</a></li><li><a href='#' onclick=\"sight_change_div_city('Paraty, BRAZIL');\">Paraty</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Recife, BRAZIL');\">Recife</a></li><li><a href='#' onclick=\"sight_change_div_city('Rio de Janeiro, BRAZIL');\">Rio de Janeiro</a></li><li><a href='#' onclick=\"sight_change_div_city('Sao Paulo, BRAZIL');\">Sao Paulo</a></li><li><strong class='g333'>Costa Rica</strong></li><li><a href='#' onclick=\"sight_change_div_city('San Jose, COSTARICA');\">San Jose</a></li><li><strong class='g333'>Ecuador</strong></li><li><a href='#' onclick=\"sight_change_div_city('Guayaquil, ECUADOR');\">Guayaquil</a></li></ul></div><div class='country'><ul><li><strong class='g333'>Mexico</strong></li><li><a href='#' onclick=\"sight_change_div_city('Acapulco, MX');\">Acapulco</a></li><li><a href='#' onclick=\"sight_change_div_city('Cabo San Lucas, MX');\">Cabo San Lucas</a></li><li><a href='#' onclick=\"sight_change_div_city('Cancun, MX');\">Cancun</a></li><li><a href='#' onclick=\"sight_change_div_city('Guadalajara, MX');\">Guadalajara</a></li><li><a href='#' onclick=\"sight_change_div_city('Huatulco, MX');\">Huatulco</a></li><li><a href='#' onclick=\"sight_change_div_city('Ixtapa, MX');\">Ixtapa</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Mexico City, MX');\">Mexico City</a></li><li><a href='#' onclick=\"sight_change_div_city('Puerto Vallarta, MX');\">Puerto Vallarta</a></li><li><a href='#' onclick=\"sight_change_div_city('Tuxtla Gutierrez, MX');\">Tuxtla Gutierrez</a></li><li><strong class='g333'>Peru</strong></li><li><a href='#' onclick=\"sight_change_div_city('Lima, PERU');\">Lima</a></li></ul></div></div><div id='sight_myTab1_Content2' class='none'><div class='country'><ul><li><strong class='g333'>Austria</strong></li><li><a href='#' onclick=\"sight_change_div_city('Vienna, AUSTRIA');\">Vienna</a></li><li><strong class='g333'>Belgium</strong></li><li><a href='#' onclick=\"sight_change_div_city('Brussels, BELGIUM');\">Brussels</a></li><li><strong class='g333'>Czech Republic</strong></li><li><a href='#' onclick=\"sight_change_div_city('Prague, CZECH REPUBLIC');\">Prague</a></li><li><strong class='g333'>Denmark</strong></li><li><a href='#' onclick=\"sight_change_div_city('Copenhagen, DENMARK');\">Copenhagen</a></li><li><strong class='g333'>France</strong></li><li><a href='#' onclick=\"sight_change_div_city('Lyon, FRANCE');\">Lyon</a></li><li><a href='#' onclick=\"sight_change_div_city('Marseille, FRANCE');\">Marseille</a></li><li><a href='#' onclick=\"sight_change_div_city('Nice, FRANCE');\">Nice</a></li><li><a href='#' onclick=\"sight_change_div_city('Paris, FRANCE');\">Paris</a></li></ul></div><div class='country'><ul><li><strong class='g333'>Germany</strong></li><li><a href='#' onclick=\"sight_change_div_city('Cologne, GERMANY');\">Cologne</a></li><li><a href='#' onclick=\"sight_change_div_city('Frankfurt, GERMANY');\">Frankfurt</a></li><li><a href='#' onclick=\"sight_change_div_city('Munich, GERMANY');\">Munich</a></li><li><strong class='g333'>Greece</strong></li><li><a href='#' onclick=\"sight_change_div_city('Athens, GREECE');\">Athens</a></li><li><strong class='g333'>Hungary</strong></li><li><a href='#' onclick=\"sight_change_div_city('Budapest, HUNGARY');\">Budapest</a></li><li><strong class='g333'>Iceland</strong></li><li><a href='#' onclick=\"sight_change_div_city('Reykjavik, ICELAND');\">Reykjavik</a></li><li><strong class='g333'>Ireland</strong></li><li><a href='#' onclick=\"sight_change_div_city('Dublin, IRELAND');\">Dublin</a></li><li><strong class='g333'>Italy</strong></li><li><a href='#' onclick=\"sight_change_div_city('Florence, ITALY');\">Florence</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Milan, ITALY');\">Milan</a></li><li><a href='#' onclick=\"sight_change_div_city('Pisa, ITALY');\">Pisa</a></li><li><a href='#' onclick=\"sight_change_div_city('Rome, ITALY');\">Rome</a></li><li><strong class='g333'>Luxembourg</strong></li><li><a href='#' onclick=\"sight_change_div_city('Luxembourg, LUXEMBOURG');\">Luxembourg</a></li><li><strong class='g333'>Netherlands</strong></li><li><a href='#' onclick=\"sight_change_div_city('Amsterdam, NETHERLANDS');\">Amsterdam</a></li><li><strong class='g333'>Portugal</strong></li><li><a href='#' onclick=\"sight_change_div_city('Algarve, PORTUGAL');\">Algarve</a></li><li><a href='#' onclick=\"sight_change_div_city('Azores, PORTUGAL');\">Azores</a></li><li><a href='#' onclick=\"sight_change_div_city('Lisbon, PORTUGAL');\">Lisbon</a></li><li><a href='#' onclick=\"sight_change_div_city('Madeira, PORTUGAL');\">Madeira</a></li><li><a href='#' onclick=\"sight_change_div_city('Porto Santo, PORTUGAL');\">Porto Santo</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Porto, PORTUGAL');\">Porto</a></li><li><strong class='g333'>Russia</strong></li><li><a href='#' onclick=\"sight_change_div_city('Moscow, RUSSIA');\">Moscow</a></li><li><strong class='g333'>Spain</strong></li><li><a href='#' onclick=\"sight_change_div_city('Barcelona, SPAIN');\">Barcelona</a></li><li><a href='#' onclick=\"sight_change_div_city('Madrid, SPAIN');\">Madrid</a></li><li><strong class='g333'>Switzerland</strong></li><li><a href='#' onclick=\"sight_change_div_city('Lucerne, SWITZERLAND');\">Lucerne</a></li><li><strong class='g333'>United Kingdom</strong></li><li><a href='#' onclick=\"sight_change_div_city('Edinburgh, UNITED KINGDOM');\">Edinburgh</a></li><li><a href='#' onclick=\"sight_change_div_city('London, UNITED KINGDOM');\">London</a></li></ul></div></div><div id='sight_myTab1_Content3' class='none'><div class='country'><ul><li><strong class='g333'>China</strong></li><li><a href='#' onclick=\"sight_change_div_city('Beijing, CN');\">Beijing</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Chengdu, CN');\">Chengdu</a></li><li><a href='#' onclick=\"sight_change_div_city('Jiayuguan, CN');\">Jiayuguan</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Lanzhou, CN');\">Lanzhou</a></li><li><a href='#' onclick=\"sight_change_div_city('Shanghai, CN');\">Shanghai</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Xian, CN');\">Xian</a></li><li><strong class='g333'>Thailand</strong></li><li><a href='#' onclick=\"sight_change_div_city('Bangkok, THAILAND');\">Bangkok</a></li></ul></div></div><div id='sight_myTab1_Content4' class='none'><div class='country'><ul><li><strong class='g333'>Australia</strong></li><li><a href='#' onclick=\"sight_change_div_city('Adelaide, AU');\">Adelaide</a></li><li><a href='#' onclick=\"sight_change_div_city('Alice Springs, AU');\">Alice Springs</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Brisbane, AU');\">Brisbane</a></li><li><a href='#' onclick=\"sight_change_div_city('Darwin, AU');\">Darwin</a></li><li><a href='#' onclick=\"sight_change_div_city('Gold Coast, AU');\">Gold Coast</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Hobart, AU');\">Hobart</a></li><li><a href='#' onclick=\"sight_change_div_city('Melbourne, AU');\">Melbourne</a></li><li><a href='#' onclick=\"sight_change_div_city('Perth, AU');\">Perth</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Sydney, AU');\">Sydney</a></li><li><strong class='g333'>New Zealand</strong></li><li><a href='#' onclick=\"sight_change_div_city('Christchurch, NZD');\">Christchurch</a></li><li><a href='#' onclick=\"sight_change_div_city('Queenstown, NZD');\">Queenstown</a></li></ul></div></div><div id='sight_myTab1_Content5' class='none'><div class='country'><ul><li><strong class='g333'>Israel</strong></li><li><a href='#' onclick=\"sight_change_div_city('Herzliya, ISRAEL');\">Herzliya</a></li></ul></div><div class='country'><ul><li><a href='#' onclick=\"sight_change_div_city('Jerusalem, ISRAEL');\">Jerusalem</a></li><li><a href='#' onclick=\"sight_change_div_city('Netanya, ISRAEL');\">Netanya</a></li></ul></div></div><div id='sight_myTab1_Content6' class='none'><div class='country'><ul><li><strong class='g333'>Tanzania</strong></li><li><a href='#' onclick=\"sight_change_div_city('Moshi, TANZANIA');\">Moshi</a></li></ul></div></div></div>";
 var countrys_ntabs = new Array();
 countrys_ntabs["ARGENTINA"] = 1;
 countrys_ntabs["BRAZIL"] = 1;
 countrys_ntabs["COSTARICA"] = 1;
 countrys_ntabs["PERU"] = 1;
 countrys_ntabs["MX"] = 1;
 countrys_ntabs["ECUADOR"] = 1;
 countrys_ntabs["AUSTRIA"] = 2;
 countrys_ntabs["BELGIUM"] = 2;
 countrys_ntabs["CZECH REPUBLIC"] = 2;
 countrys_ntabs["DENMARK"] = 2;
 countrys_ntabs["UNITED KINGDOM"] = 2;
 countrys_ntabs["FINLAND"] = 2;
 countrys_ntabs["FRANCE"] = 2;
 countrys_ntabs["GERMANY"] = 2;
 countrys_ntabs["GREECE"] = 2;
 countrys_ntabs["HUNGARY"] = 2;
 countrys_ntabs["ICELAND"] = 2;
 countrys_ntabs["IRELAND"] = 2;
 countrys_ntabs["ITALY"] = 2;
 countrys_ntabs["LUXEMBOURG"] = 2;
 countrys_ntabs["NETHERLANDS"] = 2;
 countrys_ntabs["PORTUGAL"] = 2;
 countrys_ntabs["RUSSIA"] = 2;
 countrys_ntabs["SPAIN"] = 2;
 countrys_ntabs["SWITZERLAND"] = 2;
 countrys_ntabs["CN"] = 3;
 countrys_ntabs["JAPAN"] = 3;
 countrys_ntabs["THAILAND"] = 3;
 countrys_ntabs["AU"] = 4;
 countrys_ntabs["NZD"] = 4;
 countrys_ntabs["ISRAEL"] = 5;
 countrys_ntabs["TURKEY"] = 5;
 countrys_ntabs["TANZANIA"] = 6;

 var us_default_city = "New York, NY"; 
<!--
var tcities = new Array('Acapulco, MX', 'Adelaide, AU', 'Algarve, PORTUGAL', 'Alice Springs, AU', 'Amsterdam, NETHERLANDS', 'Anaheim, CA', 'Athens, GREECE', 'Azores, PORTUGAL', 'Bangkok, THAILAND', 'Barcelona, SPAIN', 'Beijing, CN', 'Boston, MA', 'Brisbane, AU', 'Brussels, BELGIUM', 'Budapest, HUNGARY', 'Buena Park, CA', 'Buenos Aires, ARGENTINA', 'Cabo San Lucas, MX', 'Calgary, AB', 'Campbell River, BC', 'Cancun, MX', 'Charlton, MA', 'Chengdu, CN', 'Chicago, IL', 'Christchurch, NZD', 'Clearwater, BC', 'Cologne, GERMANY', 'Copenhagen, DENMARK', 'Crystal River, FL', 'Darwin, AU', 'Denver, CO', 'Dublin, IRELAND', 'Edinburgh, UNITED KINGDOM', 'Edison, NJ', 'Florence, ITALY', 'Flushing, NY', 'Frankfurt, GERMANY', 'Gaithersburg, MD', 'Gold Coast, AU', 'Grand Canyon, AZ', 'Guadalajara, MX', 'Guayaquil, ECUADOR', 'Halifax, NS', 'Herzliya, ISRAEL', 'Hobart, AU', 'Honolulu, HI', 'Huatulco, MX', 'Ixtapa, MX', 'Jersey City, NJ', 'Jerusalem, ISRAEL', 'Jiayuguan, CN', 'Joao Pessoa, BRAZIL', 'Johnstone Strait, BC', 'Kauai, HI', 'Key West, FL', 'Kissimmee, FL', 'Lanzhou, CN', 'Las Vegas, NV', 'Lima, PERU', 'Lisbon, PORTUGAL', 'London, UNITED KINGDOM', 'Los Angeles, CA', 'Lucerne, SWITZERLAND', 'Luxembourg, LUXEMBOURG', 'Lyon, FRANCE', 'Maceio, BRAZIL', 'Madeira, PORTUGAL', 'Madrid, SPAIN', 'Marseille, FRANCE', 'Maui, HI', 'Melbourne, AU', 'Mexico City, MX', 'Miami, FL', 'Milan, ITALY', 'Milford, CT', 'Montreal, QC', 'Moscow, RUSSIA', 'Moshi, TANZANIA', 'Munich, GERMANY', 'Natal, BRAZIL', 'Netanya, ISRAEL', 'New Orleans, LA', 'New York, NY', 'Niagara Falls, NY', 'Nice, FRANCE', 'Orlando, FL', 'Ottawa, ON', 'Palm Springs, CA', 'Paraty, BRAZIL', 'Paris, FRANCE', 'Parsippany, NJ', 'Perth, AU', 'Philadelphia, PA', 'Phoenix, AZ', 'Pisa, ITALY', 'Porto Santo, PORTUGAL', 'Porto, PORTUGAL', 'Prague, CZECH REPUBLIC', 'Puerto Vallarta, MX', 'Queenstown, NZD', 'Recife, BRAZIL', 'Reykjavik, ICELAND', 'Rio de Janeiro, BRAZIL', 'Rome, ITALY', 'Salt Lake City, UT', 'San Diego, CA', 'San Francisco, CA', 'San Jose, CA', 'San Jose, COSTARICA', 'Santa Barbara, CA', 'Sao Paulo, BRAZIL', 'Savannah, GA', 'Scottsdale, AZ', 'Seattle, WA', 'Sedona, AZ', 'Shanghai, CN', 'Silver Springs, FL', 'St Augustine, FL', 'Sydney, AU', 'Tel-Aviv, ISRAEL', 'Toronto, ON', 'Tuxtla Gutierrez, MX', 'Vancouver, BC', 'Victoria, BC', 'Vienna, AUSTRIA', 'Waikiki, HI', 'Washington, DC', 'Worcester, MA', 'Xian, CN');
	var tcities_ar = new Array('Buenos Aires, ARGENTINA');
	var tcities_au = new Array('Adelaide, AU', 'Alice Springs, AU', 'Brisbane, AU', 'Darwin, AU', 'Gold Coast, AU', 'Hobart, AU', 'Melbourne, AU', 'Perth, AU', 'Sydney, AU', 'Vienna, AUSTRIA');
	var tcities_br = new Array('Joao Pessoa, BRAZIL', 'Maceio, BRAZIL', 'Natal, BRAZIL', 'Paraty, BRAZIL', 'Recife, BRAZIL', 'Rio de Janeiro, BRAZIL', 'Sao Paulo, BRAZIL');
	var tcities_cn = new Array('Beijing, CN', 'Chengdu, CN', 'Jiayuguan, CN', 'Lanzhou, CN', 'Shanghai, CN', 'Xian, CN');
	var tcities_cr = new Array('San Jose, COSTARICA');
	var tcities_ecuador = new Array('Guayaquil, ECUADOR');
var tcities_eu = new Array();
	
	var tcities_austr = new Array('Vienna, AUSTRIA');
	var tcities_bel = new Array('Brussels, BELGIUM');
	var tcities_crech = new Array('Prague, CZECH REPUBLIC');
	var tcities_den = new Array('Copenhagen, DENMARK');
	var tcities_eng = new Array('Edinburgh, UNITED KINGDOM', 'London, UNITED KINGDOM');
	var tcities_fin = new Array();
	var tcities_fra = new Array('Lyon, FRANCE', 'Marseille, FRANCE', 'Nice, FRANCE', 'Paris, FRANCE');
	var tcities_ger = new Array('Cologne, GERMANY', 'Frankfurt, GERMANY', 'Munich, GERMANY');
	var tcities_gre = new Array('Athens, GREECE');
	var tcities_hun = new Array('Budapest, HUNGARY');
	var tcities_ice = new Array('Reykjavik, ICELAND');
	var tcities_ire = new Array('Dublin, IRELAND');
	var tcities_italy = new Array('Florence, ITALY', 'Milan, ITALY', 'Pisa, ITALY', 'Rome, ITALY');
	var tcities_luxem = new Array('Luxembourg, LUXEMBOURG');
	var tcities_nether = new Array('Amsterdam, NETHERLANDS');
	var tcities_port = new Array('Algarve, PORTUGAL', 'Azores, PORTUGAL', 'Lisbon, PORTUGAL', 'Madeira, PORTUGAL', 'Porto Santo, PORTUGAL', 'Porto, PORTUGAL');
	var tcities_rus = new Array('Moscow, RUSSIA');
	var tcities_spain = new Array('Barcelona, SPAIN', 'Madrid, SPAIN');
	var tcities_swit = new Array('Lucerne, SWITZERLAND');
	var tcities_turk = new Array();
	var tcities_japan = new Array();
	var tcities_esrael = new Array('Herzliya, ISRAEL', 'Jerusalem, ISRAEL', 'Netanya, ISRAEL', 'Tel-Aviv, ISRAEL');
var tcities_mx = new Array('Acapulco, MX', 'Cabo San Lucas, MX', 'Cancun, MX', 'Guadalajara, MX', 'Huatulco, MX', 'Ixtapa, MX', 'Mexico City, MX', 'Puerto Vallarta, MX', 'Tuxtla Gutierrez, MX');
	var tcities_nzd = new Array('Christchurch, NZD', 'Queenstown, NZD');
var tcities_pe = new Array('Lima, PERU');
	var tcities_thailand = new Array('Bangkok, THAILAND');

var tgroup = new Object;
var attrGroup = new Object;
var attrGroupValue = new Object;
var tour_length = tcities.length;
	var tour_length_ar = tcities_ar.length;
	var tour_length_au = tcities_au.length;
	var tour_length_br = tcities_br.length;
	var tour_length_cn = tcities_cn.length;
	var tour_length_cr = tcities_cr.length;
	var tour_length_ecuador = tcities_ecuador.length;
var tour_length_eu = tcities_eu.length;
	
	var tour_length_austr = tcities_austr.length;
	var tour_length_bel = tcities_bel.length;
	var tour_length_crech = tcities_crech.length;
	var tour_length_den = tcities_den.length;
	var tour_length_eng = tcities_eng.length;
	var tour_length_fin = tcities_fin.length;
	var tour_length_fra = tcities_fra.length;
	var tour_length_ger = tcities_ger.length;
	var tour_length_gre = tcities_gre.length;
	var tour_length_hun = tcities_hun.length;
	var tour_length_ice = tcities_ice.length;
	var tour_length_ire = tcities_ire.length;
	var tour_length_italy = tcities_italy.length;
	var tour_length_luxem = tcities_luxem.length;
	var tour_length_nether = tcities_nether.length;
	var tour_length_port = tcities_port.length;
	var tour_length_rus = tcities_rus.length;
	var tour_length_spain = tcities_spain.length;
	var tour_length_swit = tcities_swit.length;
	var tour_length_turk = tcities_turk.length;	
	var tour_length_japan = tcities_japan.length;
	var tour_length_esrael = tcities_esrael.length;
var tour_length_mx = tcities_mx.length;
	var tour_length_nzd = tcities_nzd.length;
var tour_length_pe = tcities_pe.length;
	var tour_length_thailand = tcities_thailand.length;

for (i=0; i<tour_length; i++)
  tgroup[tcities[i]]=new Array();
	for (i=0; i<tour_length_ar; i++)
	  tgroup[tcities_ar[i]]=new Array();
	for (i=0; i<tour_length_au; i++)
	  tgroup[tcities_au[i]]=new Array();
	for (i=0; i<tour_length_br; i++)
	  tgroup[tcities_br[i]]=new Array();
	for (i=0; i<tour_length_cn; i++)
	  tgroup[tcities_cn[i]]=new Array();
	for (i=0; i<tour_length_cr; i++)
	  tgroup[tcities_cr[i]]=new Array();
	for (i=0; i<tour_length_ecuador; i++)
	  tgroup[tcities_ecuador[i]]=new Array();
for (i=0; i<tour_length_eu; i++)
  tgroup[tcities_eu[i]]=new Array();

	for (i=0; i<tour_length_austr; i++)
	  tgroup[tcities_austr[i]]=new Array();
	for (i=0; i<tour_length_bel; i++)
	  tgroup[tcities_bel[i]]=new Array();
	for (i=0; i<tour_length_crech; i++)
	  tgroup[tcities_crech[i]]=new Array();
	for (i=0; i<tour_length_den; i++)
	  tgroup[tcities_den[i]]=new Array();
	for (i=0; i<tour_length_eng; i++)
	  tgroup[tcities_eng[i]]=new Array();
	for (i=0; i<tour_length_fin; i++)
	  tgroup[tcities_fin[i]]=new Array();
	for (i=0; i<tour_length_fra; i++)
	  tgroup[tcities_fra[i]]=new Array();
    for (i=0; i<tour_length_ger; i++)
	  tgroup[tcities_ger[i]]=new Array();
	for (i=0; i<tour_length_gre; i++)
	  tgroup[tcities_gre[i]]=new Array();
	for (i=0; i<tour_length_hun; i++)
	  tgroup[tcities_hun[i]]=new Array();
	for (i=0; i<tour_length_ice; i++)
	  tgroup[tcities_ice[i]]=new Array();
	for (i=0; i<tour_length_ire; i++)
	  tgroup[tcities_ire[i]]=new Array();
	for (i=0; i<tour_length_italy; i++)
	  tgroup[tcities_italy[i]]=new Array();
	for (i=0; i<tour_length_luxem; i++)
	  tgroup[tcities_luxem[i]]=new Array();
	for (i=0; i<tour_length_nether; i++)
	  tgroup[tcities_nether[i]]=new Array();
	for (i=0; i<tour_length_port; i++)
	  tgroup[tcities_port[i]]=new Array();
	for (i=0; i<tour_length_rus; i++)
	  tgroup[tcities_rus[i]]=new Array();	  	 
	for (i=0; i<tour_length_spain; i++)
	  tgroup[tcities_spain[i]]=new Array();
	for (i=0; i<tour_length_swit; i++)
	  tgroup[tcities_swit[i]]=new Array();	  
	for (i=0; i<tour_length_turk; i++)
	  tgroup[tcities_turk[i]]=new Array();
	  
	for (i=0; i<tour_length_japan; i++)
	  tgroup[tcities_japan[i]]=new Array();
	for (i=0; i<tour_length_esrael; i++)
	  tgroup[tcities_esrael[i]]=new Array();
for (i=0; i<tour_length_mx; i++)
  tgroup[tcities_mx[i]]=new Array();
	for (i=0; i<tour_length_nzd; i++)
	  tgroup[tcities_nzd[i]]=new Array();
for (i=0; i<tour_length_pe; i++)
  tgroup[tcities_pe[i]]=new Array();
	for (i=0; i<tour_length_thailand; i++)
	  tgroup[tcities_thailand[i]]=new Array();
	
tgroup["Acapulco, MX"][0] = new Option("No preference", "")

tgroup["Adelaide, AU"][0] = new Option("No preference", "")

tgroup["Algarve, PORTUGAL"][0] = new Option("No preference", "")
tgroup["Algarve, PORTUGAL"][1] = new Option("City Tours", "Algarve")
tgroup["Algarve, PORTUGAL"][2] = new Option("Lisboa", "Lisboa")

tgroup["Alice Springs, AU"][0] = new Option("No preference", "")

tgroup["Amsterdam, NETHERLANDS"][0] = new Option("No preference", "")

tgroup["Anaheim, CA"][0] = new Option("No preference", "")
tgroup["Anaheim, CA"][1] = new Option("Show All", "Los Angeles")
tgroup["Anaheim, CA"][2] = new Option("LA and Hollywood", "Hollywood")
tgroup["Anaheim, CA"][3] = new Option("Movie Stars' Homes", "Homes")
tgroup["Anaheim, CA"][4] = new Option("Orange County (OC)", "O.C.")
tgroup["Anaheim, CA"][5] = new Option("Tijuana and Mexico", "Mexico")
tgroup["Anaheim, CA"][6] = new Option("Knott's Berry Farm", "Berry")
tgroup["Anaheim, CA"][7] = new Option("Universal Studios", "Universal")
tgroup["Anaheim, CA"][8] = new Option("San Diego Zoo", "Zoo")
tgroup["Anaheim, CA"][9] = new Option("SeaWorld", "Sea World")
tgroup["Anaheim, CA"][10] = new Option("Six Flags Magic Mt", "Six Flags")
tgroup["Anaheim, CA"][11] = new Option("Grand Canyon", "Grand Canyon")
tgroup["Anaheim, CA"][12] = new Option("Las Vegas Overnight", "Las Vegas")
tgroup["Anaheim, CA"][13] = new Option("San Diego Overnight", "San Diego")
tgroup["Anaheim, CA"][14] = new Option("Medieval Times", "Medieval")
tgroup["Anaheim, CA"][15] = new Option("Los Angles by Night", "Night")
tgroup["Anaheim, CA"][16] = new Option("Pirate's Dinner", "Dinner")
tgroup["Anaheim, CA"][17] = new Option("Beverly Hills", "Beverly")
tgroup["Anaheim, CA"][18] = new Option("Citadel Outlets", "Citadel ")

attrGroup["Anaheim, CA"] = new Array();
attrGroupValue["Anaheim, CA"] = new Array();
attrGroup["Anaheim, CA"][0] = new Array("Tours & Sightseeing", "Show All", "LA and Hollywood", "Movie Stars' Homes", "Orange County (OC)", "Tijuana and Mexico");
attrGroupValue["Anaheim, CA"][0] = new Array("", "Los Angeles", "Hollywood", "Homes", "O.C.", "Mexico");
attrGroup["Anaheim, CA"][1] = new Array("Theme Parks Day Trips", "Knott's Berry Farm", "Universal Studios", "San Diego Zoo", "SeaWorld", "Six Flags Magic Mt");
attrGroupValue["Anaheim, CA"][1] = new Array("", "Berry", "Universal", "Zoo", "Sea World", "Six Flags");
attrGroup["Anaheim, CA"][2] = new Array("Multi-day Tours", "Grand Canyon", "Las Vegas Overnight", "San Diego Overnight");
attrGroupValue["Anaheim, CA"][2] = new Array("", "Grand Canyon", "Las Vegas", "San Diego");
attrGroup["Anaheim, CA"][3] = new Array("Food, Wine & Nightlife", "Medieval Times", "Los Angles by Night", "Pirate's Dinner");
attrGroupValue["Anaheim, CA"][3] = new Array("", "Medieval", "Night", "Dinner");
attrGroup["Anaheim, CA"][4] = new Array("Shopping & Fashion", "Beverly Hills", "Citadel Outlets");
attrGroupValue["Anaheim, CA"][4] = new Array("", "Beverly", "Citadel ");

tgroup["Athens, GREECE"][0] = new Option("No preference", "")
tgroup["Athens, GREECE"][1] = new Option("City Tours", "Athens")
tgroup["Athens, GREECE"][2] = new Option("Multi-Day Tours", "Greece")

tgroup["Azores, PORTUGAL"][0] = new Option("No preference", "")

tgroup["Bangkok, THAILAND"][0] = new Option("No preference", "")

tgroup["Barcelona, SPAIN"][0] = new Option("No preference", "")
tgroup["Barcelona, SPAIN"][1] = new Option("City Tours", "Barcelona")

tgroup["Beijing, CN"][0] = new Option("No preference", "")

tgroup["Boston, MA"][0] = new Option("No preference", "")
tgroup["Boston, MA"][1] = new Option("Fully Escorted", "Fully")
tgroup["Boston, MA"][2] = new Option("1000 Islands", "Islands")
tgroup["Boston, MA"][3] = new Option("Acadia Nt'l Park", "Acadia")
tgroup["Boston, MA"][4] = new Option("Canada", "Canada")
tgroup["Boston, MA"][5] = new Option("Chicago", "Chicago")
tgroup["Boston, MA"][6] = new Option("New York", "New York")
tgroup["Boston, MA"][7] = new Option("Niagara Falls", "Niagara")
tgroup["Boston, MA"][8] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Boston, MA"][9] = new Option("Montreal, Canada", "Montreal")
tgroup["Boston, MA"][10] = new Option("Philadelphia", "Philadelphia")
tgroup["Boston, MA"][11] = new Option("Prince Edward Island", "Prince Edward")
tgroup["Boston, MA"][12] = new Option("Quebec City", "Quebec")
tgroup["Boston, MA"][13] = new Option("Rhode Island", "Rhode")
tgroup["Boston, MA"][14] = new Option("Tennessee", "Tennessee")
tgroup["Boston, MA"][15] = new Option("Toronto, Canada", "Toronto")
tgroup["Boston, MA"][16] = new Option("Trolley tours", "trolley")
tgroup["Boston, MA"][17] = new Option("Washington DC", "Washington")
tgroup["Boston, MA"][18] = new Option("All Boston Tours", "Boston")
tgroup["Boston, MA"][19] = new Option("Cape Cod", "cape cod")
tgroup["Boston, MA"][20] = new Option("Casino Trips", "mohegan")
tgroup["Boston, MA"][21] = new Option("Concord", "concord")
tgroup["Boston, MA"][22] = new Option("Helicopter Tours", "Helicopter")
tgroup["Boston, MA"][23] = new Option("Newport", "newport")
tgroup["Boston, MA"][24] = new Option("Pilgrim's Path", "pilgrim")
tgroup["Boston, MA"][25] = new Option("Plimoth Plantation", "plimoth")
tgroup["Boston, MA"][26] = new Option("Salem", "salem")
tgroup["Boston, MA"][27] = new Option("Wrentham Factory Outlets", "wrentham")
tgroup["Boston, MA"][28] = new Option("Duck Tours", "Duck")
tgroup["Boston, MA"][29] = new Option("Boston Cruises", "cruise")
tgroup["Boston, MA"][30] = new Option("Boston City Pass", "Card")

attrGroup["Boston, MA"] = new Array();
attrGroupValue["Boston, MA"] = new Array();
attrGroup["Boston, MA"][0] = new Array("Multi-day Tours", "Fully Escorted", "1000 Islands", "Acadia Nt'l Park", "Canada", "Chicago", "New York", "Niagara Falls", "Niagara Falls (US only)", "Montreal, Canada", "Philadelphia", "Prince Edward Island", "Quebec City", "Rhode Island", "Tennessee", "Toronto, Canada", "Trolley tours", "Washington DC");
attrGroupValue["Boston, MA"][0] = new Array("", "Fully", "Islands", "Acadia", "Canada", "Chicago", "New York", "Niagara", "U.S. side only", "Montreal", "Philadelphia", "Prince Edward", "Quebec", "Rhode", "Tennessee", "Toronto", "trolley", "Washington");
attrGroup["Boston, MA"][1] = new Array("Tours & Sightseeing", "All Boston Tours", "Cape Cod", "Casino Trips", "Concord", "Helicopter Tours", "Newport", "Pilgrim's Path", "Plimoth Plantation", "Salem", "Wrentham Factory Outlets");
attrGroupValue["Boston, MA"][1] = new Array("", "Boston", "cape cod", "mohegan", "concord", "Helicopter", "newport", "pilgrim", "plimoth", "salem", "wrentham");
attrGroup["Boston, MA"][2] = new Array("Cruise Tours", "Duck Tours", "Boston Cruises");
attrGroupValue["Boston, MA"][2] = new Array("", "Duck", "cruise");
attrGroup["Boston, MA"][3] = new Array("Tickets & Passes", "Boston City Pass");
attrGroupValue["Boston, MA"][3] = new Array("", "Card");

tgroup["Brisbane, AU"][0] = new Option("No preference", "")

tgroup["Brussels, BELGIUM"][0] = new Option("No preference", "")

tgroup["Budapest, HUNGARY"][0] = new Option("No preference", "")

tgroup["Buena Park, CA"][0] = new Option("No preference", "")

tgroup["Buenos Aires, ARGENTINA"][0] = new Option("No preference", "")

tgroup["Cabo San Lucas, MX"][0] = new Option("No preference", "")

tgroup["Calgary, AB"][0] = new Option("No preference", "")

tgroup["Campbell River, BC"][0] = new Option("No preference", "")
tgroup["Campbell River, BC"][1] = new Option("Show All", "Campbell River")

tgroup["Cancun, MX"][0] = new Option("No preference", "")

tgroup["Charlton, MA"][0] = new Option("No preference", "")
tgroup["Charlton, MA"][1] = new Option("1000 Islands Region", "1000")
tgroup["Charlton, MA"][2] = new Option("Canada", "Canada")
tgroup["Charlton, MA"][3] = new Option("Corning Glass Center", "Corning")
tgroup["Charlton, MA"][4] = new Option("Niagara Falls", "Niagara")
tgroup["Charlton, MA"][5] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Charlton, MA"][6] = new Option("Toronto", "Toronto")

tgroup["Chengdu, CN"][0] = new Option("No preference", "")

tgroup["Chicago, IL"][0] = new Option("No preference", "")
tgroup["Chicago, IL"][1] = new Option("City Passes", "card")
tgroup["Chicago, IL"][2] = new Option("Trolley Tours", "trolley")
tgroup["Chicago, IL"][3] = new Option("City Tours", "Chicago")
tgroup["Chicago, IL"][4] = new Option("Wine Tours", "wine")

tgroup["Christchurch, NZD"][0] = new Option("No preference", "")

tgroup["Clearwater, BC"][0] = new Option("No preference", "")
tgroup["Clearwater, BC"][1] = new Option("Show All", "Clearwater")

tgroup["Cologne, GERMANY"][0] = new Option("No preference", "")

tgroup["Copenhagen, DENMARK"][0] = new Option("No preference", "")

tgroup["Crystal River, FL"][0] = new Option("No preference", "")

tgroup["Darwin, AU"][0] = new Option("No preference", "")

tgroup["Denver, CO"][0] = new Option("No preference", "")
tgroup["Denver, CO"][1] = new Option("Yellowstone", "Yellowstone")
tgroup["Denver, CO"][2] = new Option("Arch National Park", "arch")
tgroup["Denver, CO"][3] = new Option("Mt Rushmore", "Rushmore")

tgroup["Dublin, IRELAND"][0] = new Option("No preference", "")
tgroup["Dublin, IRELAND"][1] = new Option("City Tours", "Dublin")
tgroup["Dublin, IRELAND"][2] = new Option("Wicklow Tours", "Wicklow")

tgroup["Edinburgh, UNITED KINGDOM"][0] = new Option("No preference", "")
tgroup["Edinburgh, UNITED KINGDOM"][1] = new Option("Show All", "Edinburgh")
tgroup["Edinburgh, UNITED KINGDOM"][2] = new Option("Edinburgh City Tour ", "Edinburgh")
tgroup["Edinburgh, UNITED KINGDOM"][3] = new Option("Highlands of Scotland", "Highlands")
tgroup["Edinburgh, UNITED KINGDOM"][4] = new Option("Loch Lomond", "Loch")
tgroup["Edinburgh, UNITED KINGDOM"][5] = new Option("Rosslyn Chapel ", "Rosslyn")
tgroup["Edinburgh, UNITED KINGDOM"][6] = new Option("Stirling Castle ", "Stirling")
tgroup["Edinburgh, UNITED KINGDOM"][7] = new Option("Trossachs", "Trossachs")

tgroup["Edison, NJ"][0] = new Option("No preference", "")
tgroup["Edison, NJ"][1] = new Option("Baltimore", "Baltimore")
tgroup["Edison, NJ"][2] = new Option("Boston", "boston")
tgroup["Edison, NJ"][3] = new Option("Busch Gardens", "Busch")
tgroup["Edison, NJ"][4] = new Option("Canada", "canada")
tgroup["Edison, NJ"][5] = new Option("Chesapeake Bay", "Chesapeake Bay")
tgroup["Edison, NJ"][6] = new Option("Corning Glass Museum", "corning")
tgroup["Edison, NJ"][7] = new Option("Hershey's Chocolate Factory", "Chocolate")
tgroup["Edison, NJ"][8] = new Option("Newport, RI", "Rhode Island")
tgroup["Edison, NJ"][9] = new Option("Niagara Falls", "niagara")
tgroup["Edison, NJ"][10] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Edison, NJ"][11] = new Option("Philadelphia", "Philadelphia")
tgroup["Edison, NJ"][12] = new Option("Shenandoah Caverns", "Shenandoah")
tgroup["Edison, NJ"][13] = new Option("Tennessee", "Tennessee")
tgroup["Edison, NJ"][14] = new Option("Toronto", "toronto")
tgroup["Edison, NJ"][15] = new Option("Washington DC", "washington")

tgroup["Florence, ITALY"][0] = new Option("No preference", "")
tgroup["Florence, ITALY"][1] = new Option("City Tours", "Florence")
tgroup["Florence, ITALY"][2] = new Option("Food Tasting Tours", "Tasting")
tgroup["Florence, ITALY"][3] = new Option("Segway Tours", "Segway")

tgroup["Flushing, NY"][0] = new Option("No preference", "")
tgroup["Flushing, NY"][1] = new Option("Boston", "boston")
tgroup["Flushing, NY"][2] = new Option("Canada", "canada")
tgroup["Flushing, NY"][3] = new Option("Corning Glass Museum", "corning")
tgroup["Flushing, NY"][4] = new Option("Niagara Falls", "niagara")
tgroup["Flushing, NY"][5] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Flushing, NY"][6] = new Option("Toronto", "toronto")

tgroup["Frankfurt, GERMANY"][0] = new Option("No preference", "")

tgroup["Gaithersburg, MD"][0] = new Option("No preference", "")

tgroup["Gold Coast, AU"][0] = new Option("No preference", "")

tgroup["Grand Canyon, AZ"][0] = new Option("No preference", "")

tgroup["Guadalajara, MX"][0] = new Option("No preference", "")

tgroup["Guayaquil, ECUADOR"][0] = new Option("No preference", "")

tgroup["Halifax, NS"][0] = new Option("No preference", "")

tgroup["Herzliya, ISRAEL"][0] = new Option("No preference", "")

tgroup["Hobart, AU"][0] = new Option("No preference", "")

tgroup["Honolulu, HI"][0] = new Option("No preference", "")
tgroup["Honolulu, HI"][1] = new Option("City Tours", "Hawaii")
tgroup["Honolulu, HI"][2] = new Option("Dinners show/cruise", "dinner")
tgroup["Honolulu, HI"][3] = new Option("Big Island Overnight", "big island")
tgroup["Honolulu, HI"][4] = new Option("Kualoa Ranch & Secret Island ", "kualoa")
tgroup["Honolulu, HI"][5] = new Option("Maui Overnight", "maui")
tgroup["Honolulu, HI"][6] = new Option("Pearl Harbor, City Tour", "pearl")
tgroup["Honolulu, HI"][7] = new Option("Polynesian shows", "polynesian")

tgroup["Huatulco, MX"][0] = new Option("No preference", "")

tgroup["Ixtapa, MX"][0] = new Option("No preference", "")

tgroup["Jersey City, NJ"][0] = new Option("No preference", "")
tgroup["Jersey City, NJ"][1] = new Option("Corning Glass Museum", "corning")
tgroup["Jersey City, NJ"][2] = new Option("Niagara Falls", "niagara")
tgroup["Jersey City, NJ"][3] = new Option("Thousand Islands", "islands")

tgroup["Jerusalem, ISRAEL"][0] = new Option("No preference", "")

tgroup["Jiayuguan, CN"][0] = new Option("No preference", "")

tgroup["Joao Pessoa, BRAZIL"][0] = new Option("No preference", "")

tgroup["Johnstone Strait, BC"][0] = new Option("No preference", "")
tgroup["Johnstone Strait, BC"][1] = new Option("Show All", "Johnstone Strait")

tgroup["Kauai, HI"][0] = new Option("No preference", "")

tgroup["Key West, FL"][0] = new Option("No preference", "")
tgroup["Key West, FL"][1] = new Option("City Tours", "Key West")
tgroup["Key West, FL"][2] = new Option("Trolley Tours", "trolley")
tgroup["Key West, FL"][3] = new Option("Conch Tour Train", "conch")
tgroup["Key West, FL"][4] = new Option("Aquarium", "aquarium")
tgroup["Key West, FL"][5] = new Option("Shipwreck Historeum", "shipwreck")
tgroup["Key West, FL"][6] = new Option("Yankee Freedom Dry Tortugas Ferry", "yankee")

tgroup["Kissimmee, FL"][0] = new Option("No preference", "")
tgroup["Kissimmee, FL"][1] = new Option("Show All", "Kissimmee")

tgroup["Lanzhou, CN"][0] = new Option("No preference", "")

tgroup["Las Vegas, NV"][0] = new Option("No preference", "")
tgroup["Las Vegas, NV"][1] = new Option("City Tours", "Las Vegas")
tgroup["Las Vegas, NV"][2] = new Option("Anaheim Overnight", "Anaheim")
tgroup["Las Vegas, NV"][3] = new Option("Bryce Canyon", "bryce")
tgroup["Las Vegas, NV"][4] = new Option("Death Valley", "death")
tgroup["Las Vegas, NV"][5] = new Option("California Disneyland", "Disneyland")
tgroup["Las Vegas, NV"][6] = new Option("Eldorado Canyon", "Eldorado Canyon")
tgroup["Las Vegas, NV"][7] = new Option("Hoover Dam", "dam")
tgroup["Las Vegas, NV"][8] = new Option("Grand Canyon S Rim", "south rim")
tgroup["Las Vegas, NV"][9] = new Option("Grand Canyon W Rim", "west rim")
tgroup["Las Vegas, NV"][10] = new Option("Grand Teton ", "teton")
tgroup["Las Vegas, NV"][11] = new Option("Haunted Tours ", "haunted")
tgroup["Las Vegas, NV"][12] = new Option("Lake Mead", "mead")
tgroup["Las Vegas, NV"][13] = new Option("Mt Charleston", "Charleston")
tgroup["Las Vegas, NV"][14] = new Option("Mt Rushmore", "rushmore")
tgroup["Las Vegas, NV"][15] = new Option("Mob Tours", "mob")
tgroup["Las Vegas, NV"][16] = new Option("Red Rock Mt", "red rock")
tgroup["Las Vegas, NV"][17] = new Option("Red Rock Canyon", "Red Rock Canyon")
tgroup["Las Vegas, NV"][18] = new Option("River Rafting", "river")
tgroup["Las Vegas, NV"][19] = new Option("Yellowstone", "yellowstone")
tgroup["Las Vegas, NV"][20] = new Option("Zion National Park", "zion")

tgroup["Lima, PERU"][0] = new Option("No preference", "")

tgroup["Lisbon, PORTUGAL"][0] = new Option("No preference", "")
tgroup["Lisbon, PORTUGAL"][1] = new Option("City Tours", "Lisbon")
tgroup["Lisbon, PORTUGAL"][2] = new Option("Fatima", "Fatima")
tgroup["Lisbon, PORTUGAL"][3] = new Option("Portugal Vacations", "Portugal Tour")

tgroup["London, UNITED KINGDOM"][0] = new Option("No preference", "")
tgroup["London, UNITED KINGDOM"][1] = new Option("City Tours", "London")
tgroup["London, UNITED KINGDOM"][2] = new Option("Windsor Castle", "Windsor")
tgroup["London, UNITED KINGDOM"][3] = new Option("Oxford Tours", "Oxford")
tgroup["London, UNITED KINGDOM"][4] = new Option("Paris Tours", "Paris")
tgroup["London, UNITED KINGDOM"][5] = new Option("Edinburgh Tours", "Edinburgh Tours")

tgroup["Los Angeles, CA"][0] = new Option("No preference", "")
tgroup["Los Angeles, CA"][1] = new Option("Fully Escorted", "fully")
tgroup["Los Angeles, CA"][2] = new Option("Arches Nt'l Park", "Arches")
tgroup["Los Angeles, CA"][3] = new Option("Bryce Canyon", "Bryce Canyon")
tgroup["Los Angeles, CA"][4] = new Option("Ensenada", "Ensenada")
tgroup["Los Angeles, CA"][5] = new Option("Grand Canyon", "Grand Canyon")
tgroup["Los Angeles, CA"][6] = new Option("Las Vegas", "Las Vegas")
tgroup["Los Angeles, CA"][7] = new Option("Lake Tahoe", "Tahoe")
tgroup["Los Angeles, CA"][8] = new Option("Lake Powell", "Lake Powell")
tgroup["Los Angeles, CA"][9] = new Option("Monterey & Napa", "Monterey")
tgroup["Los Angeles, CA"][10] = new Option("San Francisco", "San Francisco")
tgroup["Los Angeles, CA"][11] = new Option("Sequoia Nt'l Park", "Sequoia")
tgroup["Los Angeles, CA"][12] = new Option("Theme Parks", "Disneyland")
tgroup["Los Angeles, CA"][13] = new Option("Yosemite Nt'l Park", "Yosemite")
tgroup["Los Angeles, CA"][14] = new Option("Yellowstone Nt'l Park", "Yellowstone")
tgroup["Los Angeles, CA"][15] = new Option("Zion Nt'l Park", "Zion")
tgroup["Los Angeles, CA"][16] = new Option("Disneyland", "Disneyland")
tgroup["Los Angeles, CA"][17] = new Option("Knott's Berry Farm", "Berry")
tgroup["Los Angeles, CA"][18] = new Option("Universal Studios", "Universal")
tgroup["Los Angeles, CA"][19] = new Option("SeaWorld", "World")
tgroup["Los Angeles, CA"][20] = new Option("Six Flags Magic Mt", "Six Flags")
tgroup["Los Angeles, CA"][21] = new Option("San Diego Zoo", "Zoo")
tgroup["Los Angeles, CA"][22] = new Option("All LA City Tours ", "Hollywood")
tgroup["Los Angeles, CA"][23] = new Option("Getty Museum", "Getty")
tgroup["Los Angeles, CA"][24] = new Option("LA Walking Tours", "Walking")
tgroup["Los Angeles, CA"][25] = new Option("Night Tours", "night")
tgroup["Los Angeles, CA"][26] = new Option("LA City Pass", "Card")
tgroup["Los Angeles, CA"][27] = new Option("Museums", "Museum")
tgroup["Los Angeles, CA"][28] = new Option("Outlet Malls", "Outlet")
tgroup["Los Angeles, CA"][29] = new Option("Theme Parks", "Shuttle")
tgroup["Los Angeles, CA"][30] = new Option("Palms Springs", "Palms Springs")
tgroup["Los Angeles, CA"][31] = new Option("Santa Barbara", "Santa Barbara")

attrGroup["Los Angeles, CA"] = new Array();
attrGroupValue["Los Angeles, CA"] = new Array();
attrGroup["Los Angeles, CA"][0] = new Array("Multi-day Tours", "Fully Escorted", "Arches Nt'l Park", "Bryce Canyon", "Ensenada", "Grand Canyon", "Las Vegas", "Lake Tahoe", "Lake Powell", "Monterey & Napa", "San Francisco", "Sequoia Nt'l Park", "Theme Parks", "Yosemite Nt'l Park", "Yellowstone Nt'l Park", "Zion Nt'l Park");
attrGroupValue["Los Angeles, CA"][0] = new Array("", "fully", "Arches", "Bryce Canyon", "Ensenada", "Grand Canyon", "Las Vegas", "Tahoe", "Lake Powell", "Monterey", "San Francisco", "Sequoia", "Disneyland", "Yosemite", "Yellowstone", "Zion");
attrGroup["Los Angeles, CA"][1] = new Array("Theme Parks Trips", "Disneyland", "Knott's Berry Farm", "Universal Studios", "SeaWorld", "Six Flags Magic Mt", "San Diego Zoo");
attrGroupValue["Los Angeles, CA"][1] = new Array("", "Disneyland", "Berry", "Universal", "World", "Six Flags", "Zoo");
attrGroup["Los Angeles, CA"][2] = new Array("Tours & Sightseeing", "All LA City Tours ", "Getty Museum", "LA Walking Tours", "Night Tours");
attrGroupValue["Los Angeles, CA"][2] = new Array("", "Hollywood", "Getty", "Walking", "night");
attrGroup["Los Angeles, CA"][3] = new Array("Tickets & Passes", "LA City Pass");
attrGroupValue["Los Angeles, CA"][3] = new Array("", "Card");
attrGroup["Los Angeles, CA"][4] = new Array("Transfers", "Museums", "Outlet Malls", "Theme Parks", "Palms Springs", "Santa Barbara");
attrGroupValue["Los Angeles, CA"][4] = new Array("", "Museum", "Outlet", "Shuttle", "Palms Springs", "Santa Barbara");

tgroup["Lucerne, SWITZERLAND"][0] = new Option("No preference", "")

tgroup["Luxembourg, LUXEMBOURG"][0] = new Option("No preference", "")

tgroup["Lyon, FRANCE"][0] = new Option("No preference", "")
tgroup["Lyon, FRANCE"][1] = new Option("City Pass", "Pass")

tgroup["Maceio, BRAZIL"][0] = new Option("No preference", "")

tgroup["Madeira, PORTUGAL"][0] = new Option("No preference", "")
tgroup["Madeira, PORTUGAL"][1] = new Option("City Tours", "Madeira")

tgroup["Madrid, SPAIN"][0] = new Option("No preference", "")
tgroup["Madrid, SPAIN"][1] = new Option("City Tours", "Madrid")
tgroup["Madrid, SPAIN"][2] = new Option("Spain & Portugal", "Spain")

tgroup["Marseille, FRANCE"][0] = new Option("No preference", "")
tgroup["Marseille, FRANCE"][1] = new Option("City Pass", "Pass")

tgroup["Maui, HI"][0] = new Option("No preference", "")

tgroup["Melbourne, AU"][0] = new Option("No preference", "")

tgroup["Mexico City, MX"][0] = new Option("No preference", "")

tgroup["Miami, FL"][0] = new Option("No preference", "")
tgroup["Miami, FL"][1] = new Option("Cruise Tours", "cruise")
tgroup["Miami, FL"][2] = new Option("City Tours", "duration")
tgroup["Miami, FL"][3] = new Option("Airboat ride ", "airboat")
tgroup["Miami, FL"][4] = new Option("Blizzard Beach ", "Blizzard")
tgroup["Miami, FL"][5] = new Option("Busch Gardens", "Busch")
tgroup["Miami, FL"][6] = new Option("Disney World ", "Disney")
tgroup["Miami, FL"][7] = new Option("Everglade Park", "everglade")
tgroup["Miami, FL"][8] = new Option("Kennedy Space Center", "Kennedy")
tgroup["Miami, FL"][9] = new Option("Island Of Adventure", "Island")
tgroup["Miami, FL"][10] = new Option("Key West", "key west")
tgroup["Miami, FL"][11] = new Option("Orlando Overnight", "Orlando")
tgroup["Miami, FL"][12] = new Option("Parrot Jungle Island", "parrot")
tgroup["Miami, FL"][13] = new Option("Seaquarium", "Seaquarium")
tgroup["Miami, FL"][14] = new Option("Sea World", "Sea")
tgroup["Miami, FL"][15] = new Option("Snorkeling", "snorkeling")
tgroup["Miami, FL"][16] = new Option("Typhoon Lagoon", "Typhoon")
tgroup["Miami, FL"][17] = new Option("Universal Studios", "Universal")
tgroup["Miami, FL"][18] = new Option("Wet'N Wild", "Wild")

tgroup["Milan, ITALY"][0] = new Option("No preference", "")
tgroup["Milan, ITALY"][1] = new Option("City Tours", "Milan")
tgroup["Milan, ITALY"][2] = new Option("Segway Tours", "Segway")

tgroup["Milford, CT"][0] = new Option("No preference", "")
tgroup["Milford, CT"][1] = new Option("Baltimore", "Baltimore")
tgroup["Milford, CT"][2] = new Option("New York City", "New York")
tgroup["Milford, CT"][3] = new Option("Philadelphia", "Philadelphia")
tgroup["Milford, CT"][4] = new Option("Washington DC", "Washington")
tgroup["Milford, CT"][5] = new Option("Shenandoah Carven", "Shenandoah")
tgroup["Milford, CT"][6] = new Option("Tennessee", "Tennessee")

tgroup["Montreal, QC"][0] = new Option("No preference", "")
tgroup["Montreal, QC"][1] = new Option("City Tours", "Montreal")
tgroup["Montreal, QC"][2] = new Option("New York", "new york")
tgroup["Montreal, QC"][3] = new Option("1000 Islands", "island")
tgroup["Montreal, QC"][4] = new Option("Niagara Falls", "Niagara")
tgroup["Montreal, QC"][5] = new Option("Toronto", "Toronto")
tgroup["Montreal, QC"][6] = new Option("Rhode Island", "rhode")

tgroup["Moscow, RUSSIA"][0] = new Option("No preference", "")

tgroup["Moshi, TANZANIA"][0] = new Option("No preference", "")

tgroup["Munich, GERMANY"][0] = new Option("No preference", "")
tgroup["Munich, GERMANY"][1] = new Option("City Tours", "Munich")
tgroup["Munich, GERMANY"][2] = new Option("Royal Castle Tours", "Royal Castle")

tgroup["Natal, BRAZIL"][0] = new Option("No preference", "")

tgroup["Netanya, ISRAEL"][0] = new Option("No preference", "")

tgroup["New Orleans, LA"][0] = new Option("No preference", "")
tgroup["New Orleans, LA"][1] = new Option("City Tours", "New Orleans")

tgroup["New York, NY"][0] = new Option("No preference", "")
tgroup["New York, NY"][1] = new Option("Fully Escorted", "Fully")
tgroup["New York, NY"][2] = new Option("1000 Islands", "Islands")
tgroup["New York, NY"][3] = new Option("Acadia Nt'l Park", "Acadia")
tgroup["New York, NY"][4] = new Option("Atlantic City", "Atlantic")
tgroup["New York, NY"][5] = new Option("Busch Gardens", "Busch")
tgroup["New York, NY"][6] = new Option("Boston", "Boston")
tgroup["New York, NY"][7] = new Option("Chesapeake Bay", "Chesapeake")
tgroup["New York, NY"][8] = new Option("Lake Placid", "Lake")
tgroup["New York, NY"][9] = new Option("Lake George", "Lake")
tgroup["New York, NY"][10] = new Option("Long Island", "Long Island")
tgroup["New York, NY"][11] = new Option("Niagara Falls", "Niagara")
tgroup["New York, NY"][12] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["New York, NY"][13] = new Option("Montreal, Canada", "Montreal")
tgroup["New York, NY"][14] = new Option("Orlando Florida", "Orlando")
tgroup["New York, NY"][15] = new Option("Philadelphia", "Philadelphia")
tgroup["New York, NY"][16] = new Option("Quebec City", "Quebec")
tgroup["New York, NY"][17] = new Option("Rhode Island", "Rhode")
tgroup["New York, NY"][18] = new Option("Tennessee", "Tennessee")
tgroup["New York, NY"][19] = new Option("Toronto, Canada", "Toronto")
tgroup["New York, NY"][20] = new Option("Upstate New York", "SHL")
tgroup["New York, NY"][21] = new Option("Washington DC", "Washington")
tgroup["New York, NY"][22] = new Option("All NYC Tours", "New York")
tgroup["New York, NY"][23] = new Option("Double Decker", "Loop")
tgroup["New York, NY"][24] = new Option("Harlem & Gospel", "Harlem")
tgroup["New York, NY"][25] = new Option("Helicopter Tours", "Helicopter")
tgroup["New York, NY"][26] = new Option("Movie Sites Tours", "Movie")
tgroup["New York, NY"][27] = new Option("Ski Tours", "ski")
tgroup["New York, NY"][28] = new Option("Harbor Cruises ", "Cruise")
tgroup["New York, NY"][29] = new Option("NY Duck Tours", "Duck")
tgroup["New York, NY"][30] = new Option("NYC City Pass", "Pass")
tgroup["New York, NY"][31] = new Option("Hamptons", "Hamptons")
tgroup["New York, NY"][32] = new Option("Wineries", "Wineries")
tgroup["New York, NY"][33] = new Option("Woodbury Outlets", "Woodbury")

attrGroup["New York, NY"] = new Array();
attrGroupValue["New York, NY"] = new Array();
attrGroup["New York, NY"][0] = new Array("Multi-day Tours", "Fully Escorted", "1000 Islands", "Acadia Nt'l Park", "Atlantic City", "Busch Gardens", "Boston", "Chesapeake Bay", "Lake Placid", "Lake George", "Long Island", "Niagara Falls", "Niagara Falls (US only)", "Montreal, Canada", "Orlando Florida", "Philadelphia", "Quebec City", "Rhode Island", "Tennessee", "Toronto, Canada", "Upstate New York", "Washington DC");
attrGroupValue["New York, NY"][0] = new Array("", "Fully", "Islands", "Acadia", "Atlantic", "Busch", "Boston", "Chesapeake", "Lake", "Lake", "Long Island", "Niagara", "U.S. side only", "Montreal", "Orlando", "Philadelphia", "Quebec", "Rhode", "Tennessee", "Toronto", "SHL", "Washington");
attrGroup["New York, NY"][1] = new Array("Tours & Sightseeing", "All NYC Tours", "Double Decker", "Harlem & Gospel", "Helicopter Tours", "Movie Sites Tours", "Ski Tours");
attrGroupValue["New York, NY"][1] = new Array("", "New York", "Loop", "Harlem", "Helicopter", "Movie", "ski");
attrGroup["New York, NY"][2] = new Array("Cruise Tours", "Harbor Cruises ", "NY Duck Tours");
attrGroupValue["New York, NY"][2] = new Array("", "Cruise", "Duck");
attrGroup["New York, NY"][3] = new Array("Tickets & Passes", "NYC City Pass");
attrGroupValue["New York, NY"][3] = new Array("", "Pass");
attrGroup["New York, NY"][4] = new Array("Shopping & Fashion", "Hamptons", "Wineries", "Woodbury Outlets");
attrGroupValue["New York, NY"][4] = new Array("", "Hamptons", "Wineries", "Woodbury");

tgroup["Niagara Falls, NY"][0] = new Option("No preference", "")
tgroup["Niagara Falls, NY"][1] = new Option("City Tours", "Niagara Falls")
tgroup["Niagara Falls, NY"][2] = new Option("Night Tours", "evening")
tgroup["Niagara Falls, NY"][3] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Niagara Falls, NY"][4] = new Option("Tour to Canadian side", "canada")
tgroup["Niagara Falls, NY"][5] = new Option("Cave of the Winds ", "cave")
tgroup["Niagara Falls, NY"][6] = new Option("Maid of the Mist", "maid")
tgroup["Niagara Falls, NY"][7] = new Option("N.Y.S. Observation Tower ", "observation")
tgroup["Niagara Falls, NY"][8] = new Option("Skylon Tower (Canada) ", "skylon")

tgroup["Nice, FRANCE"][0] = new Option("No preference", "")
tgroup["Nice, FRANCE"][1] = new Option("City Pass", "Pass")

tgroup["Orlando, FL"][0] = new Option("No preference", "")
tgroup["Orlando, FL"][1] = new Option("City Tours", "Orlando")
tgroup["Orlando, FL"][2] = new Option("Airboat Safari", "Airboat")
tgroup["Orlando, FL"][3] = new Option("Busch Gardens", "busch")
tgroup["Orlando, FL"][4] = new Option("Cypress Gardens", "cypress")
tgroup["Orlando, FL"][5] = new Option("Everglades & Naples", "everglades")
tgroup["Orlando, FL"][6] = new Option("Gatorland", "gatorland")
tgroup["Orlando, FL"][7] = new Option("Gospel Brunch", "Gospel Brunch")
tgroup["Orlando, FL"][8] = new Option("Miami", "Miami")
tgroup["Orlando, FL"][9] = new Option("Kennedy Space Center", "space")
tgroup["Orlando, FL"][10] = new Option("Silver Springs", "silver")

tgroup["Ottawa, ON"][0] = new Option("No preference", "")
tgroup["Ottawa, ON"][1] = new Option("All City Tours", "duration")
tgroup["Ottawa, ON"][2] = new Option("Comprehensive City Tour", "grand")
tgroup["Ottawa, ON"][3] = new Option("Hop On Hop Off", "hop")
tgroup["Ottawa, ON"][4] = new Option("Montreal", "Montreal")
tgroup["Ottawa, ON"][5] = new Option("Sightseeing Cruise", "cruise")

tgroup["Palm Springs, CA"][0] = new Option("No preference", "")
tgroup["Palm Springs, CA"][1] = new Option("All City Tours", "Palm Springs")
tgroup["Palm Springs, CA"][2] = new Option("San Andreas Fault", "San Andreas Fault")
tgroup["Palm Springs, CA"][3] = new Option("Joshua Trees ", "Joshua")
tgroup["Palm Springs, CA"][4] = new Option("Maggie Mine", "Maggie Mine")
tgroup["Palm Springs, CA"][5] = new Option("Ghost Town-Calico", "Calico")
tgroup["Palm Springs, CA"][6] = new Option("Odessa Train Ride", "Odessa")
tgroup["Palm Springs, CA"][7] = new Option("Mystery Shack", "Mystery Shack")
tgroup["Palm Springs, CA"][8] = new Option("Gold Panning", "Gold Panning")
tgroup["Palm Springs, CA"][9] = new Option("NASA complex", "NASA")
tgroup["Palm Springs, CA"][10] = new Option("Safari Trips", "Safari")
tgroup["Palm Springs, CA"][11] = new Option("Helicopter and Hummer", "Helicopter")
tgroup["Palm Springs, CA"][12] = new Option("Sonoran Desert", "Sonoran")
tgroup["Palm Springs, CA"][13] = new Option("Paleontogical Adventure ", "Paleontologist")

tgroup["Paraty, BRAZIL"][0] = new Option("No preference", "")

tgroup["Paris, FRANCE"][0] = new Option("No preference", "")
tgroup["Paris, FRANCE"][1] = new Option("City Tours", "Paris")
tgroup["Paris, FRANCE"][2] = new Option("Flexible Tours", "Flexible")

tgroup["Parsippany, NJ"][0] = new Option("No preference", "")
tgroup["Parsippany, NJ"][1] = new Option("Boston", "boston")
tgroup["Parsippany, NJ"][2] = new Option("Canada", "canada")
tgroup["Parsippany, NJ"][3] = new Option("Corning Glass Museum", "corning")
tgroup["Parsippany, NJ"][4] = new Option("Niagara Falls", "niagara")
tgroup["Parsippany, NJ"][5] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Parsippany, NJ"][6] = new Option("Toronto", "toronto")

tgroup["Perth, AU"][0] = new Option("No preference", "")

tgroup["Philadelphia, PA"][0] = new Option("No preference", "")
tgroup["Philadelphia, PA"][1] = new Option("Double Decker Tour", "Decker")
tgroup["Philadelphia, PA"][2] = new Option("Amish Experience", "amish")
tgroup["Philadelphia, PA"][3] = new Option("Boston", "boston")
tgroup["Philadelphia, PA"][4] = new Option("Canada", "canada")
tgroup["Philadelphia, PA"][5] = new Option("Montreal", "montreal")
tgroup["Philadelphia, PA"][6] = new Option("New York City", "New York")
tgroup["Philadelphia, PA"][7] = new Option("Niagara Falls", "Niagara Falls")
tgroup["Philadelphia, PA"][8] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Philadelphia, PA"][9] = new Option("Toronto", "Toronto")
tgroup["Philadelphia, PA"][10] = new Option("Washington DC", "Washington")

tgroup["Phoenix, AZ"][0] = new Option("No preference", "")
tgroup["Phoenix, AZ"][1] = new Option("Grand Canyon", "Grand Canyon")
tgroup["Phoenix, AZ"][2] = new Option("Sedona", "Sedona")

tgroup["Pisa, ITALY"][0] = new Option("No preference", "")

tgroup["Porto Santo, PORTUGAL"][0] = new Option("No preference", "")

tgroup["Porto, PORTUGAL"][0] = new Option("No preference", "")
tgroup["Porto, PORTUGAL"][1] = new Option("City Tours", "Porto")

tgroup["Prague, CZECH REPUBLIC"][0] = new Option("No preference", "")
tgroup["Prague, CZECH REPUBLIC"][1] = new Option("City Tours", "Prague")
tgroup["Prague, CZECH REPUBLIC"][2] = new Option("Karlovy Vary", "Karlovy Vary")
tgroup["Prague, CZECH REPUBLIC"][3] = new Option("Escorted Vacations", "Escorted")

tgroup["Puerto Vallarta, MX"][0] = new Option("No preference", "")

tgroup["Queenstown, NZD"][0] = new Option("No preference", "")

tgroup["Recife, BRAZIL"][0] = new Option("No preference", "")

tgroup["Reykjavik, ICELAND"][0] = new Option("No preference", "")
tgroup["Reykjavik, ICELAND"][1] = new Option("City Tours", "duration")
tgroup["Reykjavik, ICELAND"][2] = new Option("Jeep Tours", "jeep")
tgroup["Reykjavik, ICELAND"][3] = new Option("Blue Lagoon", "Blue Lagoon")
tgroup["Reykjavik, ICELAND"][4] = new Option("Diving Tours", "diving")

tgroup["Rio de Janeiro, BRAZIL"][0] = new Option("No preference", "")

tgroup["Rome, ITALY"][0] = new Option("No preference", "")
tgroup["Rome, ITALY"][1] = new Option("City Tours", "Rome")
tgroup["Rome, ITALY"][2] = new Option("Vatican", "Vatican")
tgroup["Rome, ITALY"][3] = new Option("Naples", "Naples")
tgroup["Rome, ITALY"][4] = new Option("Walking Tours", "walking tour")
tgroup["Rome, ITALY"][5] = new Option("Flexible Tours", "Flexible")

tgroup["Salt Lake City, UT"][0] = new Option("No preference", "")
tgroup["Salt Lake City, UT"][1] = new Option("Dinosaur Nat'l Monument", "Dinosaur")
tgroup["Salt Lake City, UT"][2] = new Option("Grand Teton", "teton")
tgroup["Salt Lake City, UT"][3] = new Option("Mt Rushmore", "rushmore")
tgroup["Salt Lake City, UT"][4] = new Option("Rocky Mountain", "rocky")
tgroup["Salt Lake City, UT"][5] = new Option("Yellowstone", "yellowstone")

tgroup["San Diego, CA"][0] = new Option("No preference", "")
tgroup["San Diego, CA"][1] = new Option("City Tours", "San Diego")
tgroup["San Diego, CA"][2] = new Option("City Pass", "card")
tgroup["San Diego, CA"][3] = new Option("Double Decker Tours", "double decker")
tgroup["San Diego, CA"][4] = new Option("Trolley Tours", "trolley")
tgroup["San Diego, CA"][5] = new Option("Disneyland", "disneyland")
tgroup["San Diego, CA"][6] = new Option("Ensenada", "ensenada")
tgroup["San Diego, CA"][7] = new Option("Legoland", "legoland")
tgroup["San Diego, CA"][8] = new Option("Rosarito Beach", "rosarito")
tgroup["San Diego, CA"][9] = new Option("San Diego Zoo", "zoo")
tgroup["San Diego, CA"][10] = new Option("Sea World", "sea world")
tgroup["San Diego, CA"][11] = new Option("Seaport Village", "Seaport")
tgroup["San Diego, CA"][12] = new Option("Sycuan", "sycuan")
tgroup["San Diego, CA"][13] = new Option("Tijuana", "tijuana")
tgroup["San Diego, CA"][14] = new Option("Universal Studio", "universal")
tgroup["San Diego, CA"][15] = new Option("Viejas Casino", "viejas")
tgroup["San Diego, CA"][16] = new Option("Wild Animal Park", "animal")

tgroup["San Francisco, CA"][0] = new Option("No preference", "")
tgroup["San Francisco, CA"][1] = new Option("Fully Escorted", "fully")
tgroup["San Francisco, CA"][2] = new Option("Yellowstone Nat'l Park", "Yellowstone")
tgroup["San Francisco, CA"][3] = new Option("Mt Rushmore", "Rushmore")
tgroup["San Francisco, CA"][4] = new Option("Antelope Canyon", "Antelope")
tgroup["San Francisco, CA"][5] = new Option("Arches Nat'l Park", "Arches")
tgroup["San Francisco, CA"][6] = new Option("Bryce Canyon", "Bryce")
tgroup["San Francisco, CA"][7] = new Option("Death Valley", "Death Valley")
tgroup["San Francisco, CA"][8] = new Option("Grand Canyon", "Grand Canyon")
tgroup["San Francisco, CA"][9] = new Option("Hearst Castle", "Hearst Castle")
tgroup["San Francisco, CA"][10] = new Option("Lake Powell", "Lake Powell")
tgroup["San Francisco, CA"][11] = new Option("Las Vegas", "Las Vegas")
tgroup["San Francisco, CA"][12] = new Option("Monterey Bay", "Monterey Bay")
tgroup["San Francisco, CA"][13] = new Option("San Luis Obispo", "Obispo")
tgroup["San Francisco, CA"][14] = new Option("Theme Parks", "Disneyland")
tgroup["San Francisco, CA"][15] = new Option("Zion Nat'l Park", "Zion")
tgroup["San Francisco, CA"][16] = new Option("Yosemite Nt'l Park", "Yosemite")
tgroup["San Francisco, CA"][17] = new Option("Disneyland", "Disneyland")
tgroup["San Francisco, CA"][18] = new Option("Universal Studios", "Universal")
tgroup["San Francisco, CA"][19] = new Option("SeaWorld", "World")
tgroup["San Francisco, CA"][20] = new Option("All SF City Tours ", "duration")
tgroup["San Francisco, CA"][21] = new Option("Food Tours", "taste")
tgroup["San Francisco, CA"][22] = new Option("Monterey Bay", "Monterey Bay")
tgroup["San Francisco, CA"][23] = new Option("Sausalito", "Sausalito")
tgroup["San Francisco, CA"][24] = new Option("Segway Tours", "Segway")
tgroup["San Francisco, CA"][25] = new Option("Sequoia Nat'l Park", "Sequoia")
tgroup["San Francisco, CA"][26] = new Option("Wine Tasting", "Wine")
tgroup["San Francisco, CA"][27] = new Option("SF City Pass", "Card")

attrGroup["San Francisco, CA"] = new Array();
attrGroupValue["San Francisco, CA"] = new Array();
attrGroup["San Francisco, CA"][0] = new Array("Multi-day Tours", "Fully Escorted", "Yellowstone Nat'l Park", "Mt Rushmore", "Antelope Canyon", "Arches Nat'l Park", "Bryce Canyon", "Death Valley", "Grand Canyon", "Hearst Castle", "Lake Powell", "Las Vegas", "Monterey Bay", "San Luis Obispo", "Theme Parks", "Zion Nat'l Park", "Yosemite Nt'l Park");
attrGroupValue["San Francisco, CA"][0] = new Array("", "fully", "Yellowstone", "Rushmore", "Antelope", "Arches", "Bryce", "Death Valley", "Grand Canyon", "Hearst Castle", "Lake Powell", "Las Vegas", "Monterey Bay", "Obispo", "Disneyland", "Zion", "Yosemite");
attrGroup["San Francisco, CA"][1] = new Array("Theme Parks Trips", "Disneyland", "Universal Studios", "SeaWorld");
attrGroupValue["San Francisco, CA"][1] = new Array("", "Disneyland", "Universal", "World");
attrGroup["San Francisco, CA"][2] = new Array("Tours & Sightseeing", "All SF City Tours ", "Food Tours", "Monterey Bay", "Sausalito", "Segway Tours", "Sequoia Nat'l Park", "Wine Tasting");
attrGroupValue["San Francisco, CA"][2] = new Array("", "duration", "taste", "Monterey Bay", "Sausalito", "Segway", "Sequoia", "Wine");
attrGroup["San Francisco, CA"][3] = new Array("Tickets & Passes", "SF City Pass");
attrGroupValue["San Francisco, CA"][3] = new Array("", "Card");

tgroup["San Jose, CA"][0] = new Option("No preference", "")
tgroup["San Jose, CA"][1] = new Option("Bay Cruise", "cruise")
tgroup["San Jose, CA"][2] = new Option("Disneyland", "Disneyland")
tgroup["San Jose, CA"][3] = new Option("Bryce Canyon", "bryce")
tgroup["San Jose, CA"][4] = new Option("Carmel", "Carmel")
tgroup["San Jose, CA"][5] = new Option("Grand Canyon", "canyon")
tgroup["San Jose, CA"][6] = new Option("Grand Canyon Skywalk", "Skywalk")
tgroup["San Jose, CA"][7] = new Option("Los Angeles", "angeles")
tgroup["San Jose, CA"][8] = new Option("Las Vegas", "vegas")
tgroup["San Jose, CA"][9] = new Option("Lake Powell", "powell")
tgroup["San Jose, CA"][10] = new Option("Mexico Ensenada", "ensenada")
tgroup["San Jose, CA"][11] = new Option("Monterey Bay", "monterey")
tgroup["San Jose, CA"][12] = new Option("Muir Woods", "muir woods")
tgroup["San Jose, CA"][13] = new Option("Napa Valley", "Napa")
tgroup["San Jose, CA"][14] = new Option("Redwood Sequoias", "sequoias")
tgroup["San Jose, CA"][15] = new Option("San Diego", "san diego")
tgroup["San Jose, CA"][16] = new Option("Sausalito", "sausalito")
tgroup["San Jose, CA"][17] = new Option("Sea World", "Sea World")
tgroup["San Jose, CA"][18] = new Option("Sequoia", "sequoia")
tgroup["San Jose, CA"][19] = new Option("Southern California", "California")
tgroup["San Jose, CA"][20] = new Option("Universal Studios", "Universal")
tgroup["San Jose, CA"][21] = new Option("Yellowstone", "Yellowstone")
tgroup["San Jose, CA"][22] = new Option("Yosemite", "yosemite")

tgroup["San Jose, COSTARICA"][0] = new Option("No preference", "")

tgroup["Santa Barbara, CA"][0] = new Option("No preference", "")
tgroup["Santa Barbara, CA"][1] = new Option("City Tours", "Santa Barbara")

tgroup["Sao Paulo, BRAZIL"][0] = new Option("No preference", "")

tgroup["Savannah, GA"][0] = new Option("No preference", "")
tgroup["Savannah, GA"][1] = new Option("City Tours", "Savannah")
tgroup["Savannah, GA"][2] = new Option("Trolley Tours", "trolley")

tgroup["Scottsdale, AZ"][0] = new Option("No preference", "")
tgroup["Scottsdale, AZ"][1] = new Option("Grand Canyon", "Grand Canyon")
tgroup["Scottsdale, AZ"][2] = new Option("Sedona", "Sedona")

tgroup["Seattle, WA"][0] = new Option("No preference", "")
tgroup["Seattle, WA"][1] = new Option("City Passes", "card")
tgroup["Seattle, WA"][2] = new Option("City Tours", "duration")
tgroup["Seattle, WA"][3] = new Option("Double Decker Bus", "decker")
tgroup["Seattle, WA"][4] = new Option("Boeing Factory ", "boeing")
tgroup["Seattle, WA"][5] = new Option("Rocky Mountain ", "rocky")
tgroup["Seattle, WA"][6] = new Option("Vancouver/Victoria", "vancouver")

tgroup["Sedona, AZ"][0] = new Option("No preference", "")

tgroup["Shanghai, CN"][0] = new Option("No preference", "")

tgroup["Silver Springs, FL"][0] = new Option("No preference", "")

tgroup["St Augustine, FL"][0] = new Option("No preference", "")
tgroup["St Augustine, FL"][1] = new Option("City Tours", "St Augustine")
tgroup["St Augustine, FL"][2] = new Option("Helicopter Tour", "miles")

tgroup["Sydney, AU"][0] = new Option("No preference", "")

tgroup["Tel-Aviv, ISRAEL"][0] = new Option("No preference", "")

tgroup["Toronto, ON"][0] = new Option("No preference", "")
tgroup["Toronto, ON"][1] = new Option("City Tours", "duration")
tgroup["Toronto, ON"][2] = new Option("Harbor Cruise", "cruise")
tgroup["Toronto, ON"][3] = new Option("Niagara Falls", "niagara")

attrGroup["Toronto, ON"] = new Array();
attrGroupValue["Toronto, ON"] = new Array();
attrGroup["Toronto, ON"][0] = new Array("City Tours", "City Tours");
attrGroupValue["Toronto, ON"][0] = new Array("", "duration");
attrGroup["Toronto, ON"][1] = new Array("Other Attractions", "Harbor Cruise", "Niagara Falls");
attrGroupValue["Toronto, ON"][1] = new Array("", "cruise", "niagara");

tgroup["Tuxtla Gutierrez, MX"][0] = new Option("No preference", "")

tgroup["Vancouver, BC"][0] = new Option("No preference", "")
tgroup["Vancouver, BC"][1] = new Option("City Tours", "duration")
tgroup["Vancouver, BC"][2] = new Option("Dinner Cruises", "cruise")
tgroup["Vancouver, BC"][3] = new Option("Double Decker ", "decker")
tgroup["Vancouver, BC"][4] = new Option("Floatplane", "floatplane")
tgroup["Vancouver, BC"][5] = new Option("Trolley Tours", "trolley")
tgroup["Vancouver, BC"][6] = new Option("Butchart Gardens", "butchart")
tgroup["Vancouver, BC"][7] = new Option("Capilano Salmon Hatchery", "salmon")
tgroup["Vancouver, BC"][8] = new Option("Rocky Mountain", "rocky")
tgroup["Vancouver, BC"][9] = new Option("Seattle Excursion", "seattle")
tgroup["Vancouver, BC"][10] = new Option("Sulohur Mountain", "sulohur")
tgroup["Vancouver, BC"][11] = new Option("Victoria Excursion", "victoria")
tgroup["Vancouver, BC"][12] = new Option("Whale Watching", "whale")
tgroup["Vancouver, BC"][13] = new Option("Whistler Excursion", "whistler")

tgroup["Victoria, BC"][0] = new Option("No preference", "")
tgroup["Victoria, BC"][1] = new Option("Show All", "Victoria")

tgroup["Vienna, AUSTRIA"][0] = new Option("No preference", "")

tgroup["Waikiki, HI"][0] = new Option("No preference", "")

tgroup["Washington, DC"][0] = new Option("No preference", "")
tgroup["Washington, DC"][1] = new Option("City Tours", "Washington")
tgroup["Washington, DC"][2] = new Option("Night Tours", "monuments")
tgroup["Washington, DC"][3] = new Option("Trolley Tours", "trolley")
tgroup["Washington, DC"][4] = new Option("Alexandria, VA", "Alexandria")
tgroup["Washington, DC"][5] = new Option("Boston", "boston")
tgroup["Washington, DC"][6] = new Option("Busch Gardens", "busch")
tgroup["Washington, DC"][7] = new Option("Canada", "Canada")
tgroup["Washington, DC"][8] = new Option("Gettysburg", "gettysburg")
tgroup["Washington, DC"][9] = new Option("Monticello", "monticello")
tgroup["Washington, DC"][10] = new Option("Montreal", "Montreal")
tgroup["Washington, DC"][11] = new Option("Mt. Vernon", "Vernon")
tgroup["Washington, DC"][12] = new Option("Niagara Falls", "Niagara Falls")
tgroup["Washington, DC"][13] = new Option("Niagara Falls (US only)", "U.S. side only")
tgroup["Washington, DC"][14] = new Option("Ottawa", "Ottawa")
tgroup["Washington, DC"][15] = new Option("Philadelphia", "Philadelphia")
tgroup["Washington, DC"][16] = new Option("Thomas Jefferson Country", "Jefferson")
tgroup["Washington, DC"][17] = new Option("Quebec City", "Quebec City")
tgroup["Washington, DC"][18] = new Option("Williamsburg, VA ", "Williamsburg")

tgroup["Worcester, MA"][0] = new Option("No preference", "")
tgroup["Worcester, MA"][1] = new Option("Mohegan Sun Casino", "Mohegan")

tgroup["Xian, CN"][0] = new Option("No preference", "")




function update_tour_depart()
{
        var tf_obj = get_tour_depart_obj();

		if(listing_style == 'states'){

			listing_states(tf_obj);

		} else {

			listing_citys(tf_obj);
		}
}

function listing_citys(tf_obj)
{

        for (var i=tf_obj.options.length-1; i>0; i--)
        {
        tf_obj.options[i]=null;
        }
        for (var i=0; i<tcities.length; i++)
        {
                var j = i+1;
        tf_obj.options[j] = new Option(tcities[i], tcities[i]);
        }
}

function listing_citys_turk(tf_obj)
{
    for (var i=0; i<tour_length_turk; i++)
    {
    	var arr = tcities_turk[i].split(/,\s+/);
    	tf_obj.options[tf_obj.options.length] = new Option(arr[0],tcities_turk[i]);
    }
}



function listing_states(tf_obj)
{
	while(tf_obj.hasChildNodes && tf_obj.lastChild)
	{
		tf_obj.removeChild(tf_obj.lastChild);

	}

	var opg_arr = new Array();

	for (var opg in state )
	{
		opg_arr[opg] = document.createElement("optgroup");

		opg_arr[opg].label = state[opg];
	}

	for (var i=0; i<tcities.length; i++)
	{
		var j = i+1;

		var o = document.createElement("option");

		var arr = tcities[i].split(/,\s+/);

		o.value = tcities[i];

		o.innerHTML = arr[0];

		var short_state = arr[1];

		if(opg_arr[short_state])
			opg_arr[short_state].appendChild(o);

	}

	for(var opg in opg_arr) {

		opg_arr[opg].label = state[opg];

		if(opg_arr[opg].hasChildNodes)
			tf_obj.appendChild(opg_arr[opg]);

	}

	listing_citys_turk(tf_obj);
}


function get_tour_from_obj()
{
	return get_tour_depart_obj();
}

function get_tour_to_obj()
{
        return get_tour_attraction_obj();
}

function get_tour_depart_obj()
{
	return document.tour_search.depart;
}

function get_tour_attraction_obj()
{
	return document.tour_search.attraction;
}

function get_tour_days_obj()
{
        return document.tour_search.days;
}

function update_tour(depart, attr, keywords, days, jump)
{
	var depart_obj = get_tour_depart_obj();
	var index;
	if (depart)
	{
		index = set_selected(depart_obj, depart);
	}
	else
	{
		index = depart_obj.options.selectedIndex;
		if (index > 0)
        {
			depart = depart_obj.options[index].value;
		}
	}
	if (index >= 0)
	{
		if (tgroup[depart] instanceof Array && tgroup[depart].length > 1)
		{
			update_tour_to(depart, jump);
			if (attr)
			{
				var attr_obj = get_tour_attraction_obj();
				set_selected(attr_obj, attr);
			}
		}
	}
        if (days)
	{
		var days_obj = get_tour_days_obj();
		set_selected(days_obj, days);
	}
	if (keywords && document.tour_search.keywords)
	{
		document.tour_search.keywords.value = keywords;
	}
}

function update_tour_new(depart, attr, keywords, days, jump)
{
	var depart_obj = document.getElementById("depart");
	if (depart_obj)
	{
		if (tgroup[depart] instanceof Array && tgroup[depart].length > 1)
		{
			update_tour_to(depart, jump);
			if (attr)
			{
				var attr_obj = get_tour_attraction_obj();
				set_selected(attr_obj, attr);
			}
		}
	}
        if (days)
	{
		var days_obj = get_tour_days_obj();
		set_selected(days_obj, days);
	}
	if (keywords && document.tour_search.keywords)
	{
		document.tour_search.keywords.value = keywords;
	}
}
function update_tour_to(city, jump)
{
	if (city != '' && tgroup[city] instanceof Array)
	{
		var attr_obj = get_tour_attraction_obj();
		if(attr_obj == null)
		{
			return;
		}
		var opt_len = tgroup[city].length;
		if (opt_len == 1 && jump)
		{
			return ga("http://www.gotobus.com/cgi-bin/tour.cgi?depart=" + city);
		}
  		attr_obj.innerHTML="";
   		attr_obj.options[0] = new Option(tgroup[city][0].text, tgroup[city][0].value);
   		if (attrGroup[city] instanceof Array)
		{			
			var attr_group = attrGroup[city];
			var opg_arr = new Array();
			for (var len=0;len<attr_group.length;len++)
			{
				opg_arr[len] = document.createElement("optgroup");
				opg_arr[len].label = attr_group[len][0];
				var attractionValue = attrGroupValue[city];
				for (var attrlen=1;attrlen<attr_group[len].length;attrlen++)
				{
					var objOption=document.createElement("option");
					objOption.value = attractionValue[len][attrlen];
					objOption.innerHTML = attr_group[len][attrlen];
					opg_arr[len].appendChild(objOption);
				}
			}
			for(var opg in opg_arr)
			{
				attr_obj.appendChild(opg_arr[opg]);
			}
		}
		else
		{	  		
	   		for (var i=0; i<opt_len; i++)
			{
	       			attr_obj.options[i] = new Option(tgroup[city][i].text, tgroup[city][i].value);
			}
		}
	}
	tour_clear();
}

function set_tour_dates(obj, selected_date)
{
	var wdays= new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun");
	var d = new Date();
	var aDay=86400000;
	var selected = 0;
	for (var i=0; i<60; i++)
	{
		var m = d.getMonth() + 1;
		if (m < 10)
		{
			m = "0" + m;
		}
		var dt = d.getDate();
		if (dt < 10)
		{
			dt = "0" + dt;
		}
		var fdv = d.getFullYear() + "-" + m + "-" + dt + " " + wdays[d.getDay()];
		var fd = d.getFullYear() + "-" + m + "-" + dt;
		obj.options[i+1] = new Option(fdv, fd, true);
		d = new Date(d.valueOf() + aDay);
		if (selected_date == fd)
		{
			selected = i+1;
		}
	}
	obj.options.selectedIndex = selected;
}

function tour_clear()
{
	var t_obj = document.getElementById("itemList");
	if (t_obj)
	{
	    t_obj.innerHTML = "";
	}
}

function tour_conditional_regen()
{
	var t_obj = document.getElementById("itemList");
	if (t_obj && t_obj.innerHTML != "")
	{
		tour_regen();
	}
}

function tour_regen()
{
	var depart_obj = document.tour_search.depart;
	var depart = "";
	if (depart_obj && depart_obj.value)
	{
		depart = depart_obj.value;
	}
	else
	{
		tour_clear();
		return;
	}
	var attr = "";
	var promotion_type = "";
	var promotion_obj = document.tour_search.promotion_type;
	if (promotion_obj)
	{
		promotion_type = promotion_obj.value;
	}
	var attr_obj = document.tour_search.attraction;
	if (attr_obj && attr_obj.value)
	{
		attr = attr_obj.value;
	}
	var max_price = "";
	var max_price_obj = document.tour_search.max_price;
	if (max_price_obj && max_price_obj.value)
	{
		max_price = max_price_obj.value;
	}
	var lowest_price = "";
	var lowest_price_obj = document.tour_search.lowest_price;
	if (lowest_price_obj && lowest_price_obj.value)
	{
		lowest_price = lowest_price_obj.value;
	}
	var left_point = "";
	var left_point_obj = document.tour_search.left_point;
	if (left_point_obj && left_point_obj.value)
	{
		left_point = left_point_obj.value;
	}
	var right_point = "";
	var right_point_obj = document.tour_search.right_point;
	if (right_point_obj && right_point_obj.value)
	{
		right_point = right_point_obj.value;
	}
	var date_obj = document.tour_search.date;
	var d = "";
	if (date_obj && date_obj.value)
	{
		d = date_obj.value;
	}
	var ignore = "";
	var ignore_obj = document.tour_search.ignore;
	if (ignore_obj && ignore_obj.checked == true)
	{
		ignore = 1;
	}
	var days_obj = document.tour_search.days;
	var days = "";
	if (days_obj && days_obj.value)
	{
		days = days_obj.value;
	}
	var keywords = "";
	var keywords_obj = document.tour_search.keywords;
	if (keywords_obj && keywords_obj.value)
	{
		keywords = keywords_obj.value;
	}
        var order = "";
        var order_obj = document.tour_search.order;
        if (order_obj && order_obj.value)
        {
                order = order_obj.value;
        }
        ga("/cgi-bin/tour.cgi?depart=" + depart + "&attraction=" + attr + "&date=" + d + "&ignore=" + ignore + "&days=" + days + "&keywords=" + keywords + "&order=" + order + "&max_price=" + max_price + "&lowest_price=" + lowest_price + "&left_point=" + left_point + "&right_point=" + right_point + "&promotion_type=" + promotion_type);
}

function check_tour_input()
{
        var depart_obj = document.tour_search.depart;
        var depart = '';
        if (depart_obj && depart_obj.value)
        {
                depart = depart_obj.value;
        }
        if (depart == '')
        {
                alert("Please select a departure city!");
                depart_obj.focus();
                return false;
        }
        var date_obj = document.tour_search.date;
        var d = '';
        if (date_obj && date_obj.value)
        {
                d = date_obj.value;
        }
        if (d && !d.match(/\d\d\d\d-\d\d-\d\d/))
        {
                alert("Date (" + d + ") must be either empty or in the format: YYYY-MM-DD");
                date_obj.focus();
                return false;
        }
}

function tour_date_clicked(y,m,d)
{
	if (m < 10) m = '0' + m;
	if (d < 10) d = '0' + d;
	document.tour_search.date.value = y + '-' + m + '-' + d;
	if (document.tour_search.ignore.checked == false)
	{
		tour_conditional_regen();
	}
}

function empty_tour_date()
{
        document.tour_search.date.value = '';
        tour_conditional_regen();
}

function check_tour_ignore()
{
    if (document.tour_search.ignore.checked == false)
    {
        document.tour_search.date.disabled = false;

        if (document.tour_search.date.value == '')
        {
            var t_date = new Date(past_date.valueOf() + 3 * aDay);
            document.tour_search.date.value = formatDate(t_date, "yyyy-MM-dd");
			return;
        }
    }
    else
    {
        document.tour_search.date.value = "";
        document.tour_search.date.disabled = true;

    }
    tour_conditional_regen();
}

function sort_tours(order_by)
{
	var min_price_temp = 0;
	if (typeof(price) != 'undefined')
	{
		if (document.tour_search && document.tour_search.min_price)
		{
			min_price_temp = parseInt(document.tour_search.min_price.value);
		}
		if (document.tour_search && document.tour_search.left_point)
		{
			document.tour_search.left_point.value = price.getSldPoint();
		}
		if (document.tour_search && document.tour_search.right_point)
		{
			document.tour_search.right_point.value = price.getSldRightPoint();
		}
		if (document.tour_search && document.tour_search.max_price)
		{
			document.tour_search.max_price.value = price.getSldRightPoint() + min_price_temp;
		}
		if (document.tour_search && document.tour_search.lowest_price)
		{
			document.tour_search.lowest_price.value = price.getSldPoint() + min_price_temp;
		}
	}	
	if (document.tour_search && document.tour_search.order)
	{
		document.tour_search.order.value = order_by;
		tour_conditional_regen();
	}
	if (document.sight_search && document.sight_search.order)
	{
		document.sight_search.order.value = order_by;
		sight_conditional_regen();
	}
}

function get_dynamic_price(pid)
{
	document.getElementById("dynamic_price" + pid).innerHTML = "<font color='red'>Loading..</font>";
	if(window.XMLHttpRequest) {
		dynamic_xml = new XMLHttpRequest();
	} else {
		dynamic_xml = new ActiveXObject("MSXML2.XMLHTTP");
	}
	var url = 'ajax.cgi?type=dynamic_price&pid=' + pid;
	dynamic_xml.open("GET", url, true);
	dynamic_xml.onreadystatechange = response_dynamic_price;
	dynamic_xml.setRequestHeader("If-Modified-Since","0");
	dynamic_xml.send("");
}

function response_dynamic_price()
{
	if (dynamic_xml.readyState == 4)
	{
		var response = "<strong>Price:&nbsp;<span class='r11'>" + dynamic_xml.responseText + "</span></strong>";
		var pid = document.getElementById("pid_hidden").value;
		document.getElementById("dynamic_price" + pid).innerHTML = response;
	}
}


function dynamic_image(pid)
{
	var dynamic_image_html = document.getElementById("dynamic_price_hidden" + pid).innerHTML;
	document.getElementById("dynamic_price" + pid).innerHTML = dynamic_image_html;

}

function set_pid_value(pid)
{
	document.getElementById("pid_hidden").value = pid;
}
//-->
// ===================================================================
// Author: Matt Kruse <matt@mattkruse.com>
// WWW: http://www.mattkruse.com/
//
// NOTICE: You may use this code for any purpose, commercial or
// private, without any further permission from the author. You may
// remove this notice from your final code if you wish, however it is
// appreciated by the author if at least my web site address is kept.
//
// You may *NOT* re-distribute this code in any way except through its
// use. That means, you can include it in your product, or your web
// site, or any other form where the code is actually being used. You
// may not put the plain javascript up on your site for download or
// include it in your javascript libraries for download. 
// If you wish to share this code with others, please just point them
// to the URL instead.
// Please DO NOT link directly to my .js files from your site. Copy
// the files to your server and use them there. Thank you.
// ===================================================================


/* SOURCE FILE: AnchorPosition.js */

/* 
AnchorPosition.js
Author: Matt Kruse
Last modified: 10/11/02

DESCRIPTION: These functions find the position of an <A> tag in a document,
so other elements can be positioned relative to it.

COMPATABILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small
positioning errors - usually with Window positioning - occur on the 
Macintosh platform.

FUNCTIONS:
getAnchorPosition(anchorname)
  Returns an Object() having .x and .y properties of the pixel coordinates
  of the upper-left corner of the anchor. Position is relative to the PAGE.

getAnchorWindowPosition(anchorname)
  Returns an Object() having .x and .y properties of the pixel coordinates
  of the upper-left corner of the anchor, relative to the WHOLE SCREEN.

NOTES:

1) For popping up separate browser windows, use getAnchorWindowPosition. 
   Otherwise, use getAnchorPosition

2) Your anchor tag MUST contain both NAME and ID attributes which are the 
   same. For example:
   <A NAME="test" ID="test"> </A>

3) There must be at least a space between <A> </A> for IE5.5 to see the 
   anchor tag correctly. Do not do <A></A> with no space.
*/ 

// getAnchorPosition(anchorname)
//   This function returns an object having .x and .y properties which are the coordinates
//   of the named anchor, relative to the page.
function getAnchorPosition(anchorname) {
	// This function will return an Object with x and y properties
	var useWindow=false;
	var coordinates=new Object();
	var x=0,y=0;
	// Browser capability sniffing
	var use_gebi=false, use_css=false, use_layers=false;
	if (document.getElementById) { use_gebi=true; }
	else if (document.all) { use_css=true; }
	else if (document.layers) { use_layers=true; }
	// Logic to find position
 	if (use_gebi && document.all) {
		x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);
		y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);
		}
	else if (use_gebi) {
		var o=document.getElementById(anchorname);
		x=AnchorPosition_getPageOffsetLeft(o);
		y=AnchorPosition_getPageOffsetTop(o);
		}
 	else if (use_css) {
		x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);
		y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);
		}
	else if (use_layers) {
		var found=0;
		for (var i=0; i<document.anchors.length; i++) {
			if (document.anchors[i].name==anchorname) { found=1; break; }
			}
		if (found==0) {
			coordinates.x=0; coordinates.y=0; return coordinates;
			}
		x=document.anchors[i].x;
		y=document.anchors[i].y;
		}
	else {
		coordinates.x=0; coordinates.y=0; return coordinates;
		}
	coordinates.x=x;
	coordinates.y=y;
	return coordinates;
	}

// getAnchorWindowPosition(anchorname)
//   This function returns an object having .x and .y properties which are the coordinates
//   of the named anchor, relative to the window
function getAnchorWindowPosition(anchorname) {
	var coordinates=getAnchorPosition(anchorname);
	var x=0;
	var y=0;
	if (document.getElementById) {
		if (isNaN(window.screenX)) {
			x=coordinates.x-document.body.scrollLeft+window.screenLeft;
			y=coordinates.y-document.body.scrollTop+window.screenTop;
			}
		else {
			x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
			y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
			}
		}
	else if (document.all) {
		x=coordinates.x-document.body.scrollLeft+window.screenLeft;
		y=coordinates.y-document.body.scrollTop+window.screenTop;
		}
	else if (document.layers) {
		x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
		y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
		}
	coordinates.x=x;
	coordinates.y=y;
	return coordinates;
	}

// Functions for IE to get position of an object
function AnchorPosition_getPageOffsetLeft (el) {
	var ol=el.offsetLeft;
	while ((el=el.offsetParent) != null) { ol += el.offsetLeft; }
	return ol;
	}
function AnchorPosition_getWindowOffsetLeft (el) {
	return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
	}	
function AnchorPosition_getPageOffsetTop (el) {
	var ot=el.offsetTop;
	while((el=el.offsetParent) != null) { ot += el.offsetTop; }
	return ot;
	}
function AnchorPosition_getWindowOffsetTop (el) {
	return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;
	}

/* 
PopupWindow.js
Author: Matt Kruse
Last modified: 02/16/04

DESCRIPTION: This object allows you to easily and quickly popup a window
in a certain place. The window can either be a DIV or a separate browser
window.

COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small
positioning errors - usually with Window positioning - occur on the 
Macintosh platform. Due to bugs in Netscape 4.x, populating the popup 
window with <STYLE> tags may cause errors.

USAGE:
// Create an object for a WINDOW popup
var win = new PopupWindow(); 

// Create an object for a DIV window using the DIV named 'mydiv'
var win = new PopupWindow('mydiv'); 

// Set the window to automatically hide itself when the user clicks 
// anywhere else on the page except the popup
win.autoHide(); 

// Show the window relative to the anchor name passed in
win.showPopup(anchorname);

// Hide the popup
win.hidePopup();

// Set the size of the popup window (only applies to WINDOW popups
win.setSize(width,height);

// Populate the contents of the popup window that will be shown. If you 
// change the contents while it is displayed, you will need to refresh()
win.populate(string);

// set the URL of the window, rather than populating its contents
// manually
win.setUrl("http://www.site.com/");

// Refresh the contents of the popup
win.refresh();

// Specify how many pixels to the right of the anchor the popup will appear
win.offsetX = 50;

// Specify how many pixels below the anchor the popup will appear
win.offsetY = 100;

NOTES:
1) Requires the functions in AnchorPosition.js

2) Your anchor tag MUST contain both NAME and ID attributes which are the 
   same. For example:
   <A NAME="test" ID="test"> </A>

3) There must be at least a space between <A> </A> for IE5.5 to see the 
   anchor tag correctly. Do not do <A></A> with no space.

4) When a PopupWindow object is created, a handler for 'onmouseup' is
   attached to any event handler you may have already defined. Do NOT define
   an event handler for 'onmouseup' after you define a PopupWindow object or
   the autoHide() will not work correctly.
*/ 

// Set the position of the popup window based on the anchor
function PopupWindow_getXYPosition(anchorname) {
	var coordinates;
	if (this.type == "WINDOW") {
		coordinates = getAnchorWindowPosition(anchorname);
		}
	else {
		coordinates = getAnchorPosition(anchorname);
		}
	this.x = coordinates.x;
	this.y = coordinates.y;
	}
// Set width/height of DIV/popup window
function PopupWindow_setSize(width,height) {
	this.width = width;
	this.height = height;
	}
// Fill the window with contents
function PopupWindow_populate(contents) {
	this.contents = contents;
	this.populated = false;
	}
// Set the URL to go to
function PopupWindow_setUrl(url) {
	this.url = url;
	}
// Set the window popup properties
function PopupWindow_setWindowProperties(props) {
	this.windowProperties = props;
	}
// Refresh the displayed contents of the popup
function PopupWindow_refresh() {
	if (this.divName != null) {
		// refresh the DIV object
		if (this.use_gebi) {
			document.getElementById(this.divName).innerHTML = this.contents;
			}
		else if (this.use_css) { 
			document.all[this.divName].innerHTML = this.contents;
			}
		else if (this.use_layers) { 
			var d = document.layers[this.divName]; 
			d.document.open();
			d.document.writeln(this.contents);
			d.document.close();
			}
		}
	else {
		if (this.popupWindow != null && !this.popupWindow.closed) {
			if (this.url!="") {
				this.popupWindow.location.href=this.url;
				}
			else {
				this.popupWindow.document.open();
				this.popupWindow.document.writeln(this.contents);
				this.popupWindow.document.close();
			}
			this.popupWindow.focus();
			}
		}
	}
// Position and show the popup, relative to an anchor object
function PopupWindow_showPopup(anchorname) {
	this.getXYPosition(anchorname);
	this.x += this.offsetX;
	this.y += this.offsetY;
	if (!this.populated && (this.contents != "")) {
		this.populated = true;
		this.refresh();
		}
	if (this.divName != null) {
		// Show the DIV object
		if (this.use_gebi) {
			document.getElementById(this.divName).style.left = this.x + "px";
			document.getElementById(this.divName).style.top = this.y + "px";
			document.getElementById(this.divName).style.visibility = "visible";
			}
		else if (this.use_css) {
			document.all[this.divName].style.left = this.x + "px";
			document.all[this.divName].style.top = this.y + "px";
			document.all[this.divName].style.visibility = "visible";
			}
		else if (this.use_layers) {
			document.layers[this.divName].left = this.x + "px";
			document.layers[this.divName].top = this.y + "px";
			document.layers[this.divName].visibility = "visible";
			}
		}
	else {
		if (this.popupWindow == null || this.popupWindow.closed) {
			// If the popup window will go off-screen, move it so it doesn't
			if (this.x<0) { this.x=0; }
			if (this.y<0) { this.y=0; }
			if (screen && screen.availHeight) {
				if ((this.y + this.height) > screen.availHeight) {
					this.y = screen.availHeight - this.height;
					}
				}
			if (screen && screen.availWidth) {
				if ((this.x + this.width) > screen.availWidth) {
					this.x = screen.availWidth - this.width;
					}
				}
			var avoidAboutBlank = window.opera || ( document.layers && !navigator.mimeTypes['*'] ) || navigator.vendor == 'KDE' || ( document.childNodes && !document.all && !navigator.taintEnabled );
			this.popupWindow = window.open(avoidAboutBlank?"":"about:blank","window_"+anchorname,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");
			}
		this.refresh();
		}
	}
// Hide the popup
function PopupWindow_hidePopup() {
	if (this.divName != null) {
		if (this.use_gebi) {
			if (document.getElementById(this.divName))
			{
				document.getElementById(this.divName).style.visibility = "hidden";
			}
			}
		else if (this.use_css) {
			document.all[this.divName].style.visibility = "hidden";
			}
		else if (this.use_layers) {
			document.layers[this.divName].visibility = "hidden";
			}
		}
	else {
		if (this.popupWindow && !this.popupWindow.closed) {
			this.popupWindow.close();
			this.popupWindow = null;
			}
		}
	}
// Pass an event and return whether or not it was the popup DIV that was clicked
function PopupWindow_isClicked(e) {
	if (this.divName != null) {
		if (this.use_layers) {
			var clickX = e.pageX;
			var clickY = e.pageY;
			var t = document.layers[this.divName];
			if ((clickX > t.left) && (clickX < t.left+t.clip.width) && (clickY > t.top) && (clickY < t.top+t.clip.height)) {
				return true;
				}
			else { return false; }
			}
		else if (document.all) { // Need to hard-code this to trap IE for error-handling
			var t = window.event.srcElement;
			while (t.parentElement != null) {
				if (t.id==this.divName) {
					return true;
					}
				t = t.parentElement;
				}
			return false;
			}
		else if (this.use_gebi && e) {
			var t = e.originalTarget;
			while (t.parentNode != null) {
				if (t.id==this.divName) {
					return true;
					}
				t = t.parentNode;
				}
			return false;
			}
		return false;
		}
	return false;
	}

// Check an onMouseDown event to see if we should hide
function PopupWindow_hideIfNotClicked(e) {
	if (this.autoHideEnabled && !this.isClicked(e)) {
		this.hidePopup();
		}
	}
// Call this to make the DIV disable automatically when mouse is clicked outside it
function PopupWindow_autoHide() {
	this.autoHideEnabled = true;
	}
// This global function checks all PopupWindow objects onmouseup to see if they should be hidden
function PopupWindow_hidePopupWindows(e) {
	for (var i=0; i<popupWindowObjects.length; i++) {
		if (popupWindowObjects[i] != null) {
			var p = popupWindowObjects[i];
			p.hideIfNotClicked(e);
			}
		}
	}
// Run this immediately to attach the event listener
function PopupWindow_attachListener() {
	if (document.layers) {
		document.captureEvents(Event.MOUSEUP);
		}
	window.popupWindowOldEventListener = document.onmouseup;
	if (window.popupWindowOldEventListener != null) {
		document.onmouseup = new Function("window.popupWindowOldEventListener(); PopupWindow_hidePopupWindows();");
		}
	else {
		document.onmouseup = PopupWindow_hidePopupWindows;
		}
	}
// CONSTRUCTOR for the PopupWindow object
// Pass it a DIV name to use a DHTML popup, otherwise will default to window popup
function PopupWindow() {
	if (!window.popupWindowIndex) { window.popupWindowIndex = 0; }
	if (!window.popupWindowObjects) { window.popupWindowObjects = new Array(); }
	if (!window.listenerAttached) {
		window.listenerAttached = true;
		PopupWindow_attachListener();
		}
	this.index = popupWindowIndex++;
	popupWindowObjects[this.index] = this;
	this.divName = null;
	this.popupWindow = null;
	this.width=0;
	this.height=0;
	this.populated = false;
	this.visible = false;
	this.autoHideEnabled = false;
	
	this.contents = "";
	this.url="";
	this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";
	if (arguments.length>0) {
		this.type="DIV";
		this.divName = arguments[0];
		}
	else {
		this.type="WINDOW";
		}
	this.use_gebi = false;
	this.use_css = false;
	this.use_layers = false;
	if (document.getElementById) { this.use_gebi = true; }
	else if (document.all) { this.use_css = true; }
	else if (document.layers) { this.use_layers = true; }
	else { this.type = "WINDOW"; }
	this.offsetX = 0;
	this.offsetY = 0;
	// Method mappings
	this.getXYPosition = PopupWindow_getXYPosition;
	this.populate = PopupWindow_populate;
	this.setUrl = PopupWindow_setUrl;
	this.setWindowProperties = PopupWindow_setWindowProperties;
	this.refresh = PopupWindow_refresh;
	this.showPopup = PopupWindow_showPopup;
	this.hidePopup = PopupWindow_hidePopup;
	this.setSize = PopupWindow_setSize;
	this.isClicked = PopupWindow_isClicked;
	this.autoHide = PopupWindow_autoHide;
	this.hideIfNotClicked = PopupWindow_hideIfNotClicked;
	}

function b_text(obj, text,event)
{
	var b_obj = document.getElementById('balloon').style;
	var tt = "<table bgcolor=#999999 width=100% cellpadding=3 cellspacing=1><tr><td bgcolor=#ffffff class=\"balloon_text\">" + text + "</td></tr></table>";
	document.getElementById('balloon').innerHTML = tt;
	var pos = el_pos(obj,event);
	b_obj.top = document.documentElement.scrollTop + pos.y + 4 + "px";
	b_obj.left = pos.x + 4 + "px";
	b_obj.visibility = "visible";
	b_obj.display = "block";
}

function show_bus_station_info(diplay_obj,text,mark,is_return)
{
	var counts_str = "counts" + mark;
	var counts_obj = document.getElementById(counts_str);
	var count=counts_obj.value;
	var display_value = "display_value" + mark + diplay_obj + "_" + is_return;
	var current_display = "display" +  mark + diplay_obj + "_" + is_return;
	var div_listarea = document.getElementById("listarea");
	var div_listarea_return = document.getElementById("listarea_return");
	var radselect_objs = document.getElementsByName("radselect");
	var count1=radselect_objs.length;
	var radselect_objs_return = document.getElementsByName("radselect_return");
	var count2=radselect_objs_return.length;
	document.getElementById(display_value).innerHTML = text;	
	for (var i=1; i<=count; i++)
    {
    	var display_id = "display" + mark + i + "_" + is_return;
    	var click_here_id = "click_here" + i + "_" + is_return;
		var click_here_obj = document.getElementById(click_here_id);
    	if (document.getElementById(display_id) && display_id != current_display)
    	{
	    	var div_display = document.getElementById(display_id).style;
	    	if (div_display.display != "none")
	    	{
	    		div_display.display = "none";
	    		click_here_obj.innerHTML = "Click for Bus Stations and Details";
	    	}
	    }
    }    
    var click_here_id = "click_here" + diplay_obj + "_" + is_return;
	var click_here_obj = document.getElementById(click_here_id);
    var current_div = document.getElementById(current_display).style;
    if (current_div.display != "")
	{
		if (div_listarea != null && mark == 'b')
		{
			var listarea_height
			listarea_height = 12 * 56 + 50;
			if ( count1 <= 12 )
			{
				listarea_height = count1 * 56 + 180;		    	
				div_listarea.style.overflow = "auto";
			}			
			div_listarea.style.height = listarea_height + 'px';	
		}
		if (div_listarea_return != null && mark == 'c')
		{
			var listarea_height
			listarea_height = 12 * 56 + 50;
			if ( count2 <= 12 )
			{
				listarea_height = count2 * 56 + 180;		    	
				div_listarea_return.style.overflow = "auto";
			}			
			div_listarea_return.style.height = listarea_height + 'px';	
		}
		current_div.display = "";
		if (click_here_obj != null)
		{
			click_here_obj.innerHTML = "Hide details";	
		}
	}
	else
	{
		if (div_listarea != null && mark == 'b')
		{
			var listarea_height
			listarea_height = 12 * 56 + 50;
			if ( count1 <= 12 )
			{
				listarea_height = count1 * 56 + 10;	
				div_listarea.style.overflow = "hidden";
			}
			div_listarea.style.height = listarea_height + 'px';
		}
		if (div_listarea_return != null && mark == 'c')
		{
			var listarea_height
			listarea_height = 12 * 56 + 50;
			if ( count2 <= 12 )
			{
				listarea_height = count2 * 56 + 10;	
				div_listarea_return.style.overflow = "hidden";
			}
			div_listarea_return.style.height = listarea_height + 'px';
		}
		current_div.display = "none";
		if (click_here_obj != null)
		{
			click_here_obj.innerHTML = "Click for Bus Stations and Details";	
		}
	}		
}

function no_b_text()
{
	var b_obj = document.getElementById('balloon').style;
	b_obj.visibility = "hidden";
	b_obj.display = "none";
}

function onBalloonOver()
{
	var b_obj = document.getElementById('balloon').style;
	b_obj.visibility = "visible";
	b_obj.display = "block";
}

function onBalloonOut()
{
        var b_obj = document.getElementById('balloon').style;
        b_obj.visibility = "hidden";
        b_obj.display = "none";
}

function el_pos(obj,event)
{
    var xOffset, yOffset;
	if (event)
	{
		xOffset =  event.clientX + document.body.scrollLeft -10;
		yOffset = event.clientY + document.body.scrollTop -10;
	}
	else
	{
    	if(obj.offsetTop != 'undefined'){
        	yOffset = (obj.offsetTop?obj.offsetTop:0);
        	xOffset = (obj.offsetLeft?obj.offsetLeft:0);
        	yOffset -= (obj.scrollTop?obj.scrollTop:0);
        	xOffset -= (obj.scrollLeft?obj.scrollLeft:0);
        	elParent = obj.offsetParent;
        	while(elParent){
            	yOffset += (elParent.offsetTop?elParent.offsetTop:0);
            	xOffset += (elParent.offsetLeft?elParent.offsetLeft:0);
	    		yOffset -= (elParent.scrollTop?elParent.scrollTop:0);
            	xOffset -= (elParent.scrollLeft?elParent.scrollLeft:0);
            elParent = elParent.offsetParent;
        }
    	} else if(typeof obj.y != 'undefined'){
	alert(obj.y);
        yOffset = obj.y;
        xOffset = obj.x;
    	} else {      //information is not available
        yOffset = -1;
        xOffset = -1;
    } 
	}
    return {x:xOffset,y:yOffset};
}

function long_option_clicked(popup_obj, div_name)
{
	var div_obj = document.getElementById(div_name);
	var i_obj = document.getElementById('i' + div_name);
	var style_obj = div_obj.style;
	var pos = el_pos(i_obj);
	popup_obj.offsetY = 20;
	popup_obj.offsetX = -200;
	popup_obj.showPopup("i" + div_name);
}

function long_option_closed(popup_obj, div_name)
{
	popup_obj.hidePopup();
}

function long_option_selected(obj, div_name, popup_obj)
{
	document.getElementById('d' + div_name).value = obj.value;
	long_option_closed(popup_obj, div_name);
}

function validate_form_selections(f)
{
	var plObj = document.getElementById("Provide_Later");
	var check_text = true;
	if (plObj != null && plObj.checked)
	{
		check_text = false;
	}
	var total_people_count = -1;
	var room_array = [];
	var room_count = 0;
    for (var i=0, j=f.elements.length; i<j; i++)
    {
        var t = f.elements[i].type;
        if (t.match(/select/))
        {
			var sname = f.elements[i].name;
			if (sname.match(/^Room(.)(Adult|Child)/i))
			{
				if (total_people_count == -1)
				{
					total_people_count = 0;
				}
				var pnum =  parseInt(f.elements[i].value);
				total_people_count += pnum;

				if (pnum > 0)
				{
					var room_no = parseInt(sname[4])-1;
					if (room_array[room_no] == undefined)
					{
						room_array[room_no] = 0;
					}
					room_array[room_no] += pnum;
					if (room_no+1 > room_count)
					{
						room_count = room_no+1;
					}
				}
			}
            if (f.elements[i].value == '')
            {
                alert("Please Select " + f.elements[i].name + "!");
                f.elements[i].focus();
                return false;
            }
        }
		else if (t.match(/text/) && check_text)
	{
	    if (f.elements[i].value == '')
	    {
	    	alert("Please enter a value the text field!");
	    	f.elements[i].focus();
		return false;
	    }
	}
    }

	if (total_people_count == 0)
	{
		alert("Please select adult/child number!");
        return false;
	}

	var max_capacity = 4;
	for ( i=0; i < room_count; i++)
	{
		if (room_array[i] > max_capacity)
		{
			alert("The number of passengers cannot be greater than 4 for each room.");
			return false;
		}
	}

    if (f.Date != null && f.Date.value == '')
    {
        alert("Please select a valid Date!");
        return false;
    }
    if (f.time != null && f.time.value < 1.01)
    {
        return confirm("Important: It is a new date after passing 12:00am.\nYou have selected a very early schedule on " + f.Date.value + ".  Please confirm.");
    }
}

document.write('');
document.write('		<link href=\"/css/searchbox.css\" rel=\"stylesheet\" type=\"text/css\">');
document.write('		<div ID=\"calendarDiv\" style=\"position:absolute;visibility:hidden;background-color:#ffffff;layer-background-color:#ffffff;\"></div>');
document.write('	');
document.write('		<div id=\"search_box\">');
document.write('		<table width=\"100%\" align=\"center\" cellspacing=\"2\" border=\"0\" cellpadding=\"0\">');
document.write('<tr>');
document.write('				<td bgcolor=\"#ffffff\" align=\"center\">');
document.write('		<script language=\"JavaScript\">');
document.write('		 var last_date = new Date(past_date.valueOf() + 120 * aDay);');
document.write('     var t_cal = new CalendarPopup(\"calendarDiv\");');
document.write('	 t_cal.offsetX = -84;');
document.write('	 t_cal.offsetY = 16;');
document.write('	 t_cal.setCssPrefix(\'Bus_\');');
document.write('');
document.write('     t_cal.addDisabledDates(null,formatDate(past_date,\"yyyy-MM-dd\"));');
document.write('     t_cal.addDisabledDates(formatDate(last_date, \"yyyy-MM-dd\"),null);');
document.write('	 t_cal.setReturnFunction(\'tour_date_clicked\');');
document.write('	   var v_cal = new CalendarPopup(\"calendarDiv\");');
document.write('	 v_cal.offsetX = -84;');
document.write('	 v_cal.offsetY = 16;');
document.write('	 v_cal.setCssPrefix(\'Bus_\');');
document.write('     v_cal.addDisabledDates(null,formatDate(past_date,\"yyyy-MM-dd\"));');
document.write('     v_cal.addDisabledDates(formatDate(last_date, \"yyyy-MM-dd\"),null);');
document.write('	 v_cal.setReturnFunction(\'vacation_date_clicked\');	');
document.write('	</script>');
document.write('  <form name=\"tour_search\" class=\"ivySchedulesForm\" onSubmit=\"return check_tour_input();\" method=\"get\" action=\"http://search.taketours.com/cgi-bin/tour.cgi\">');
document.write('  <input type=\"hidden\" name=\"gid\" value=\"\">');
document.write('  <input type=\"hidden\" name=\"nm\" value=\"\">');
document.write('  <input type=\"hidden\" name=\"dest_flag\" value=\"0\">');
document.write('  <table align=\"center\" cellspacing=2 cellpadding=2 border=0>');
document.write('  <tr>');
document.write('  <td width=\"4\" rowspan=4><img alt=\"\" width=1 height=1></td>');
document.write('					<td colspan=\"5\" class=\"ivySmallOption\" align=\"left\">');
document.write('  Search by: &nbsp;&nbsp;<input type=\"radio\" checked=\"checked\" name=\"search_type\" value=\"\"/>Departure &nbsp;&nbsp;<input type=\"radio\" name=\"search_type\" value=\"\" onclick=\"document.tour_search.style.display=\'none\';document.vacation_search.style.display=\'block\';document.vacation_search.search_type[1].checked=true;\"/>Destination');
document.write('  </td>');
document.write('  </tr>');
document.write('  <tr>	');
document.write('					<td class=ivySmallOption width=\"30%\" align=\"left\">Departure City:<br/>');
document.write('      <select name=\"depart\" class=ivySmallOption style=\"width:140px\" onchange=\"update_tour_to(this.options[this.selectedIndex].value);\">');
document.write('         <option value=\'\'>Departure City</option>');
document.write('	  </select>');
document.write('    </td>');
document.write('	<td width=\"4\" rowspan=2><img alt=\"\" width=1 height=1></td>');
document.write('					<td class=ivySmallOption width=\"30%\" align=\"left\">Start Date:<input type=checkbox name=\"ignore\" value=\"1\" onClick=\"check_tour_ignore();\" checked>Ignore<br/>');
document.write('						<input type=\"text\" name=\"date\" value=\"\" onChange=\"tour_conditional_regen();\" class=\"ivySDateOption\"/>&nbsp;<a href=\"#\" onClick=\"t_cal.select(document.tour_search.date,\'t_date\',\'yyyy-MM-dd\'); return false;\" NAME=\"t_date\" ID=\"t_date\"><img name=\"td_img\" id=\"td_img\" border=0 alt=\"Popup Calendar\" src=\"http://www.taketours.com/images/calendar.gif\"/></a>');
document.write('    </td>');
document.write('	<td width=\"4\"><img alt=\"\" width=1 height=1></td>');
document.write('					<td class=ivySmallOption align=\"left\">Duration:<br/>');
document.write('  <select name=\"days\" onChange=\"tour_conditional_regen();\" class=ivySmallOption>');
document.write('    <option value=\"\">No preference</option>');
document.write('    <option value=\"1-1\">1 day</option>');
document.write('    <option value=\"2-2\">2 days</option>');
document.write('    <option value=\"2-3\">2 - 3 days</option>');
document.write('    <option value=\"3-3\">3 days</option>');
document.write('    <option value=\"3-4\">3 - 4 days</option>');
document.write('    <option value=\"4-4\">4 days</option>');
document.write('    <option value=\"4-5\">4 - 5 days</option>');
document.write('    <option value=\"5-5\">5 days</option>');
document.write('    <option value=\"5-6\">5 - 6 days</option>');
document.write('    <option value=\"6-6\">6 days</option>');
document.write('    <option value=\"6-7\">6 - 7 days</option>');
document.write('    <option value=\"7-7\">7 days</option>');
document.write('    <option value=\"7-\">7 days or more</option>');
document.write('  </select>');
document.write('');
document.write('	</td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('					<td class=ivySmallOption align=\"left\">Attraction:<br/>');
document.write('	  <select name=\"attraction\" onChange=\"tour_conditional_regen();\" class=ivySmallOption style=\"width:140px;\">');
document.write('        <option value=\"\">No preference</option>');
document.write('      </select>');
document.write('	</td>');
document.write('					<td class=ivySmallOption colspan=3 align=\"left\">Optional Keywords:<br/>');
document.write('						<input name=\"keywords\" class=ivySmallOption size=\"22\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"submit\" value=\"Search\">');
document.write('					</td>');
document.write('  </tr>');
document.write('  ');
document.write('			 <tr>');
document.write('		    <td colspan=5>');
document.write('			<table cellspacing=1 cellpadding=3 border=0 bgcolor=\"#dddddd\" width=\"96%\">');
document.write('			<tr>');
document.write('							<td bgcolor=\"#ffffdd\" class=\"ivySmallOption\">Tours are continuously updated and may be available at a later time.</td>');
document.write('			</tr>');
document.write('			</table>');
document.write('		    </td>');
document.write('		  </tr>');
document.write('		');
document.write('  </table>');
document.write('  </form>');
document.write('  <form name=\"vacation_search\" class=\"ivySchedulesForm\" onSubmit=\"return check_vacation_input();\" method=\"get\" action=\"http://search.taketours.com/cgi-bin/tour.cgi\" style=\"display: none;\">');
document.write('  <input type=\"hidden\" name=\"gid\" value=\"\">');
document.write('  <input type=\"hidden\" name=\"nm\" value=\"\">');
document.write('  <input type=\"hidden\" name=\"dest_flag\" value=\"1\">');
document.write('  <table align=\"center\" cellspacing=2 cellpadding=2 border=0>');
document.write('  <tr>');
document.write('  <td width=\"4\" rowspan=4><img alt=\"\" width=1 height=1></td>');
document.write('					<td colspan=\"5\" class=\"ivySmallOption\" align=\"left\">');
document.write('  Search by: &nbsp;&nbsp;<input type=\"radio\" name=\"search_type\" value=\"\" onclick=\"document.tour_search.style.display=\'block\';document.vacation_search.style.display=\'none\';document.tour_search.search_type[0].checked=true;\"/>Departure &nbsp;&nbsp;<input type=\"radio\" checked=\"checked\" name=\"search_type\" value=\"\"/>Destination');
document.write('  </td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('					<td class=ivySmallOption width=\"30%\" align=\"left\">Destination:<br/>');
document.write('      ');
document.write('		<select name=\"destination\" onchange=\"vacation_conditional_regen();\" style=\"width:140px\" class=\"ivySmallOption\">');
document.write('      <option value=\"\">Select Region</option>');
document.write('  <option value=\"australia\">Australia</option><option value=\"usa\">USA</option><option value=\"usa/east\"> USA - East</option><option value=\"usa/florida\"> USA - Florida</option><option value=\"usa/hawaii\"> USA - Hawaii</option><option value=\"usa/west\"> USA - West</option><option value=\"canada\">Canada</option><option value=\"europe\">Europe</option><option value=\"asia\">Asia</option><option value=\"asia/china\">Asia - China</option><option value=\"asia/japan\">Asia - Japan</option><option value=\"asia/thailand\">Asia - Thailand</option><option value=\"israel\">Israel</option><option value=\"mexico\">Mexico</option><option value=\"turkey\">Turkey</option><option value=\"latinamerica\">Latin America </option></select>');
document.write('    </td>');
document.write('	<td width=\"4\" rowspan=2><img alt=\"\" width=1 height=1></td>');
document.write('					<td class=ivySmallOption colspan=3 align=\"left\">Start Date:<br/>');
document.write('						<input type=\"text\" name=\"date\" value=\"\" onChange=\"vacation_conditional_regen();\" class=\"ivySDateOption\"/>&nbsp;<a href=\"#\" onClick=\"v_cal.select(document.vacation_search.date,\'v_date\',\'yyyy-MM-dd\'); return false;\" NAME=\"v_date\" ID=\"v_date\"><img name=\"td_img\" id=\"td_img\" border=0 alt=\"Popup Calendar\" src=\"http://www.taketours.com/images/calendar.gif\"></a>&nbsp;<input type=checkbox name=\"ignore\" value=\"1\" onClick=\"check_vacation_ignore();\" checked>Ignore');
document.write('    </td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('					<td class=ivySmallOption align=\"left\">Duration:<br/>');
document.write('  <select name=\"days\" onChange=\"tour_conditional_regen();\" class=ivySmallOption>');
document.write('    <option value=\"\">No preference</option>');
document.write('    <option value=\"1-1\">1 day</option>');
document.write('    <option value=\"2-2\">2 days</option>');
document.write('    <option value=\"2-3\">2 - 3 days</option>');
document.write('    <option value=\"3-3\">3 days</option>');
document.write('    <option value=\"3-4\">3 - 4 days</option>');
document.write('    <option value=\"4-4\">4 days</option>');
document.write('    <option value=\"4-5\">4 - 5 days</option>');
document.write('    <option value=\"5-5\">5 days</option>');
document.write('    <option value=\"5-6\">5 - 6 days</option>');
document.write('    <option value=\"6-6\">6 days</option>');
document.write('    <option value=\"6-7\">6 - 7 days</option>');
document.write('    <option value=\"7-7\">7 days</option>');
document.write('    <option value=\"7-\">7 days or more</option>');
document.write('  </select>');
document.write('');
document.write('	</td>');
document.write('					<td class=ivySmallOption colspan=3 align=\"left\">Optional Keywords:<br/>');
document.write('						<input name=\"keywords\" value=\"\" class=ivySmallOption size=\"22\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=\"submit\" value=\"Search\">');
document.write('					</td>');
document.write('  </tr>');
document.write('  ');
document.write('			 <tr>');
document.write('		    <td colspan=5>');
document.write('			<table cellspacing=1 cellpadding=3 border=0 bgcolor=\"#dddddd\" width=\"96%\">');
document.write('			<tr>');
document.write('							<td bgcolor=\"#ffffdd\" class=\"ivySmallOption\">Tours are continuously updated and may be available at a later time.</td>');
document.write('			</tr>');
document.write('			</table>');
document.write('		    </td>');
document.write('		  </tr>');
document.write('		');
document.write('  </table>');
document.write('  </form>');
document.write('	</td>');
document.write('</tr>');
document.write('		</table>');
document.write('		</div>');
document.write('	');
document.write('		<script language=\"javascript\">');
document.write('			update_tour_depart();');
document.write('			var depart_obj = get_tour_depart_obj();');
document.write('if (depart_obj.options.selectedIndex > -1)');
document.write('{');
document.write('	update_tour_to(depart_obj.options[depart_obj.selectedIndex].value);');
document.write('}');
document.write('check_tour_ignore();');
document.write('if (aff_id != null) ');
document.write('{');
document.write('	if (document.tour_search.gid);');
document.write('	{');
document.write('		document.tour_search.gid.value = aff_id;');
document.write('	}');
document.write('	if (document.tour_search.nm);');
document.write('	{');
document.write('		document.tour_search.nm.value = aff_id;');
document.write('	}');
document.write('}');
document.write('	if (typeof(preset_departure) != \'undefined\')');
document.write('	{');
document.write('		if (preset_departure !=\'\')	');
document.write('		{');
document.write('			update_tour(preset_departure);');
document.write('		}');
document.write('	}');
document.write('	check_vacation_ignore();');
document.write('	if (aff_id)');
document.write('	{');
document.write('		document.vacation_search.gid.value = aff_id;');
document.write('		document.vacation_search.nm.value = aff_id;	');
document.write('	}	');
document.write('	if (typeof(preset_destination) != \'undefined\')');
document.write('	{');
document.write('		if (preset_destination !=\'\')	');
document.write('		{');
document.write('			set_selected(document.vacation_search.destination, preset_destination);');
document.write('		}');
document.write('	}	');
document.write('	function check_vacation_input()');
document.write('		{');
document.write('			if(document.vacation_search.destination.value == \"\")');
document.write('			{');
document.write('				alert(\"Please select a region!\");');
document.write('				return false;');
document.write('			}');
document.write('			return true;');
document.write('		}		');
document.write('		function vacation_conditional_regen()');
document.write('		{');
document.write('		}		');
document.write('		function vacation_date_clicked(y,m,d)');
document.write('		{');
document.write('			if (m < 10) m = \'0\' + m;');
document.write('			if (d < 10) d = \'0\' + d;');
document.write('			document.vacation_search.date.value = y + \'-\' + m + \'-\' + d;');
document.write('			if (document.vacation_search.ignore.checked == false)');
document.write('			{');
document.write('				vacation_conditional_regen();');
document.write('			}');
document.write('		}');
document.write('		function check_vacation_ignore()');
document.write('		{');
document.write('		    if (document.vacation_search.ignore.checked == false)');
document.write('		    {');
document.write('		        document.vacation_search.date.disabled = false;		');
document.write('		        if (document.vacation_search.date.value == \'\')');
document.write('		        {');
document.write('		            var v_date = new Date(past_date.valueOf() + 3 * aDay);');
document.write('		            document.vacation_search.date.value = formatDate(v_date, \"yyyy-MM-dd\");');
document.write('								return;');
document.write('		        }');
document.write('		    }');
document.write('		    else');
document.write('		    {');
document.write('		        document.vacation_search.date.value = \"\";');
document.write('		        document.vacation_search.date.disabled = true;		');
document.write('		}');
document.write('		    vacation_conditional_regen();');
document.write('	}');
document.write('		document.tour_search.search_type[0].checked=true;');
document.write('		document.vacation_search.search_type[1].checked=true;');
document.write('			if (typeof(box_style) != \'undefined\')');
document.write('			{');
document.write('				if (box_style !=\'\')');
document.write('				{');
document.write('					$(\"#search_box\").attr(\"style\", box_style);');
document.write('				}');
document.write('			}');
document.write('		</script>');
document.write('	');

