// -------------------------------------------------------------
// There are several vesions of the MISR Level 3 web page. There
// is a public version, and a private version accesible to the
// science team. These are very similiar, except they display
// different parameters. The javascript for these two pages is
// almost identical. This file contains the few differences. In
// particular, this defined the mapping from product type to a
// number, the total number of types, and the information that
// gets passed between web pages.
// -------------------------------------------------------------

function customization_init() {
    CGAS = 0;
    CGLS = 1; 
    CGAL = 2;
    CGCL = 3;
    CGGRP = 4; 
    RCCM = -999; 
    SDCM = -999;
    NUMBER_TYPE = 5;
    USE_BIOME_TYPE = 0;
    USE_HEIGHT = 0;
    TYPE_LIST = new Array("Aerosol", "Land/Surface", "TOA Albedo", "Cloud", "Radiance");
}

function variable_append() {
    var res = "selected_time=" + escape("new Time(\"") + 
	selected_time.season + 
	escape("\",") + selected_time.year + 
	escape(",\"") + selected_time.day + 
	escape("\")") + "&" +
	"image_type=" + escape("\"" + fn.image_type + "\"") + "&" +
	"speed=" + animation.speed + "&" +
	"band_type=" + fn.band_type + "&" +
	"band_type2=" + fn.band_type2 + "&" +
	"resolution_type=" + escape("\"" + fn.resolution_type + "\"") + "&" +
	"wind_type=" + fn.wind_type + "&" +
	"height_type2=" + escape("\"" + fn.height_type2 + "\"") + "&" +
	"wind_index=" + fn.wind_index + "&" +
	"download_type=" + escape("\"" + dn.download_type + "\"") + "&" +
	"image_size=" + escape("\"" + fn.image_size + "\"") + "&" +
	"view_type=" + escape("\"" + fn.view_type + "\"") + "&";
    return res;
}
