Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Added minification build files and removed minified files

Tilak Joshifc9bb0428fa4
diff --git a/build.txt b/build.txt
index 13bfb3bd5..c93bb3d84 100644
--- a/build.txt
+++ b/build.txt
@@ -1,29 +1,28 @@
Required Dependencies
=====================
-* JSDoc3: https://github.com/jsdoc3/jsdoc
+Run the "download-deps" script to download and unpack all dependencies.
-Unpack into ~/local/opt/jsdoc
+- YUI Compressor, Version 2.4.7
+ https://github.com/yui/yuicompressor
-$ mkdir -p ~/local/opt
-$ cd ~/local/opt
-$ tar xf ~/Downloads/jsdoc-3.0.1.tar.gz
-$ ln -s jsdoc-3.0.1 jsdoc
+- YUI Compressor Ant Task, Version 0.5
+ http://code.google.com/p/javaflight-code/wiki/YuiCompressorAntTask
-* JSDoc3 Ant Task: https://github.com/jannon/jsdoc3-ant-task
+- JSDoc 3, Version 3.0.1
+ https://github.com/jsdoc3/jsdoc
-Clone the repository and build:
+- JSDoc 3 Ant Task
+ https://github.com/jannon/jsdoc3-ant-task
-$ cd /tmp
-$ git clone https://github.com/jannon/jsdoc3-ant-task.git
-$ cd jsdoc3-ant-task
-$ ant dist
-$ mkdir -p ~/local/lib/java/ant
-$ cp build/jar/jsdoc3-ant-task-1.0.jar ~/local/lib/java/ant
Targets
=======
+To generate the web site in the build/worldview directory:
+
+$ ant web
+
To generate documentation in the build/doc directory:
$ ant doc
diff --git a/build.xml b/build.xml
index e68820f36..f60b2a92c 100644
--- a/build.xml
+++ b/build.xml
@@ -1,4 +1,4 @@
-<project name="WorldView" default="dist" basedir=".">
+<project name="WorldView" default="web" basedir=".">
<description><![CDATA[
WorldView build script
]]>
@@ -6,33 +6,127 @@ WorldView build script
<property name="build" location="${basedir}/build"/>
<property name="dist" location="${basedir}/dist"/>
+ <property name="web" location="${build}/worldview"/>
+ <property name="web.debug" location="${build}/worldview-debug"/>
<property name="doc" location="${build}/worldview-doc"/>
<property name="src.js" location="${basedir}/js"/>
+
+ <property name="jsdoc.home"
+ location="${user.home}/local/packages/jsdoc-3.0.1"/>
+ <property name="jsdoc.ant.home"
+ location="${user.home}/local/packages/jsdoc3-ant-task"/>
+ <property name="yui-compressor.home"
+ location="${user.home}/local/packages/yuicompressor-2.4.7"/>
+ <property name="yui-compressor.ant.home"
+ location="${user.home}/local/packages/yui-compressor-ant-task-0.5"/>
+
+ <taskdef name="jsdoc"
+ classname="net.jannon.ant.tasks.JsDoc3"
+ classpath="${jsdoc.ant.home}/jsdoc3-ant-task-1.0.jar:${jsdoc.home}/lib/js.jar"/>
- <property name="local.lib" location="${user.home}/local/lib"/>
- <property name="local.lib.java" location="${local.lib}/java"/>
- <property name="local.lib.ant" location="${local.lib.java}/ant"/>
-
- <property name="jsdoc.home" location="${user.home}/local/opt/jsdoc"/>
-
- <taskdef name="jsdoc" classname="net.jannon.ant.tasks.JsDoc3"
- classpath="${local.lib.ant}/jsdoc3-ant-task-1.0.jar:${jsdoc.home}/lib/js.jar"/>
+ <taskdef name="yui-compressor"
+ classname="net.noha.tools.ant.yuicompressor.tasks.YuiCompressorTask"
+ classpath="${yui-compressor.home}/build/yuicompressor-2.4.7.jar:${yui-compressor.ant.home}/bin/yui-compressor-ant-task-0.5.jar"/>
<target name="clean" description="deletes build and dist directories">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
+
+ <target name="web" description="builds minified web site">
+ <delete dir="${web}"/>
+ <delete dir="${build}/minify"/>
+ <mkdir dir="${web}"/>
+ <mkdir dir="${build}/minify"/>
+
+ <copy todir="${web}/css">
+ <fileset dir="${basedir}/css"/>
+ </copy>
+ <copy todir="${web}/data">
+ <fileset dir="${basedir}/data"/>
+ </copy>
+ <copy todir="${web}/images">
+ <fileset dir="${basedir}/images"/>
+ </copy>
+ <copy todir="${web}/js">
+ <fileset dir="${basedir}/js"/>
+ </copy>
+ <copy todir="${web}">
+ <fileset dir="${basedir}">
+ <include name="index.html"/>
+ </fileset>
+ </copy>
+
+ <!-- Debug version that is not minified -->
+ <delete dir="${web.debug}"/>
+ <mkdir dir="${web.debug}"/>
+ <copy todir="${web.debug}">
+ <fileset dir="${web}"/>
+ </copy>
+
+ <concat destfile="${build}/minify/worldview.js" force="no">
+ <fileset dir="${web}/js" includes="component.js"/>
+ <fileset dir="${web}/js" includes="registry.js"/>
+ <fileset dir="${web}/js" includes="util.js"/>
+ <fileset dir="${web}/js" includes="map.js"/>
+ <fileset dir="${web}/js" includes="mapSote.js"/>
+ <fileset dir="${web}/js" includes="dateSpan.js"/>
+ <fileset dir="${web}/js" includes="rubberBand.js"/>
+ <fileset dir="${web}/js" includes="imageDownload.js"/>
+ <fileset dir="${web}/js" includes="menuPicker.js"/>
+ <fileset dir="${web}/js" includes="accordionPicker.js"/>
+ <fileset dir="${web}/js" includes="bank.js"/>
+ <fileset dir="${web}/js" includes="switch.js"/>
+ <fileset dir="${web}/js" includes="selector.js"/>
+ <fileset dir="${web}/js" includes="sote.js"/>
+ </concat>
+
+ <yui-compressor warn="false" charset="UTF-8"
+ fromdir="${build}/minify"
+ todir="${build}/minify">
+ <include name="worldview.js"/>
+ </yui-compressor>
+
+ <delete>
+ <fileset dir="${web}/js">
+ <include name="*.js"/>
+ </fileset>
+ </delete>
+
+ <move file="${build}/minify/worldview-min.js" todir="${web}/js"/>
+
+ <replaceregexp
+ file="${web}/index.html"
+ match=".!--(.*worldview-min.js.*)--."
+ replace="\1"/>
+ <replaceregexp
+ file="${web}/index.html"
+ match="^.*js.dev.*$"
+ replace=""
+ byline="true"/>
+ </target>
+
+
+ <target name="doc" description="builds documentation">
+ <delete dir="${doc}"/>
+ <mkdir dir="${doc}"/>
+ <jsdoc jsdochome="${jsdoc.home}" to="${doc}" dir="${src.js}"/>
+ </target>
- <target name="dist" depends="clean,doc"
+ <target name="dist" depends="clean,web,doc"
description="generates distribution artifacts">
+ <tar destfile="${dist}/worldview.tar.bz2"
+ basedir="${build}" includes="worldview/**"
+ compression="bzip2"/>
+ <tar destfile="${dist}/worldview-debug.tar.bz2"
+ basedir="${build}" includes="worldview-debug/**"
+ compression="bzip2"/>
+
<tar destfile="${dist}/worldview-doc.tar.bz2"
basedir="${build}" includes="worldview-doc/**"
compression="bzip2"/>
</target>
- <target name="doc" description="builds documentation">
- <mkdir dir="${doc}"/>
- <jsdoc jsdochome="${jsdoc.home}" to="${doc}" dir="${src.js}"/>
- </target>
+
</project>
\ No newline at end of file
diff --git a/download-deps b/download-deps
new file mode 100644
index 000000000..e9652af2d
--- /dev/null
+++ b/download-deps
@@ -0,0 +1,75 @@
+#!/bin/bash
+
+set -e
+
+VERSION_YUI_COMPRESSOR="2.4.7"
+VERSION_YUI_COMPRESSOR_ANT="0.5"
+VERSION_JSDOC="3.0.1"
+
+PACKAGES=~/local/packages
+ARTIFACTS=~/local/artifacts
+TMP=~/local/tmp
+
+RELEASE_YUI_COMPRESSOR="yuicompressor-$VERSION_YUI_COMPRESSOR"
+ARTIFACT_YUI_COMPRESSOR="$RELEASE_YUI_COMPRESSOR.zip"
+DIST_YUI_COMPRESSOR="https://github.com/downloads/yui/yuicompressor/$ARTIFACT_YUI_COMPRESSOR"
+
+RELEASE_YUI_COMPRESSOR_ANT="yui-compressor-ant-task-$VERSION_YUI_COMPRESSOR_ANT"
+ARTIFACT_YUI_COMPRESSOR_ANT="$RELEASE_YUI_COMPRESSOR_ANT.zip"
+DIST_YUI_COMPRESSOR_ANT="http://javaflight-code.googlecode.com/files/yui-compressor-ant-task-0.5.zip"
+
+RELEASE_JSDOC="jsdoc-$VERSION_JSDOC"
+ARTIFACT_JSDOC="$RELEASE_JSDOC.tar.gz"
+DIST_JSDOC="https://github.com/jsdoc3/jsdoc/archive/v${VERSION_JSDOC}.tar.gz"
+
+RELEASE_JSDOC_ANT="jsdoc3-ant-task"
+GIT_JSDOC_ANT="https://github.com/jannon/jsdoc3-ant-task"
+
+mkdir -p "$PACKAGES"
+mkdir -p "$ARTIFACTS"
+mkdir -p "$TMP"
+
+if [ ! -e "$ARTIFACTS/$ARTIFACT_YUI_COMPRESSOR" ] ; then
+ echo "Downloading $RELEASE_YUI_COMPRESSOR"
+ ( cd "$ARTIFACTS"; curl -O -L "$DIST_YUI_COMPRESSOR" )
+fi
+
+if [ ! -e "$PACKAGES/$RELEASE_YUI_COMPRESSOR" ] ; then
+ echo "Unpacking $RELEASE_YUI_COMPRESSOR"
+ ( cd "$PACKAGES"; unzip "$ARTIFACTS/$ARTIFACT_YUI_COMPRESSOR" > /dev/null )
+fi
+
+if [ ! -e "$ARTIFACTS/$ARTIFACT_YUI_COMPRESSOR_ANT" ] ; then
+ echo "Downloading $RELEASE_YUI_COMPRESSOR_ANT"
+ ( cd "$ARTIFACTS"; curl -O -L "$DIST_YUI_COMPRESSOR_ANT" )
+fi
+
+if [ ! -e "$PACKAGES/$RELEASE_YUI_COMPRESSOR_ANT" ] ; then
+ echo "Unpacking $RELEASE_YUI_COMPRESSOR_ANT"
+ mkdir -p "$PACKAGES/yui-compressor-ant-task-0.5"
+ ( cd "$PACKAGES/yui-compressor-ant-task-0.5"; \
+ unzip "$ARTIFACTS/$ARTIFACT_YUI_COMPRESSOR_ANT" > /dev/null )
+fi
+
+if [ ! -e "$ARTIFACTS/$ARTIFACT_JSDOC" ] ; then
+ echo "Downloading $RELEASE_JSDOC"
+ ( cd "$ARTIFACTS"; curl -o $ARTIFACT_JSDOC -L "$DIST_JSDOC" )
+fi
+
+if [ ! -e "$PACKAGES/$RELEASE_JSDOC" ] ; then
+ echo "Unpacking $RELEASE_JSDOC"
+ ( cd "$PACKAGES"; tar xf "$ARTIFACTS/$ARTIFACT_JSDOC" > /dev/null )
+fi
+
+if [ ! -e "$PACKAGES/$RELEASE_JSDOC_ANT" ] ; then
+ echo "Cloning $RELEASE_JSDOC_ANT"
+ rm -rf "$TMP/$RELEASE_JSDOC_ANT"
+ ( cd $TMP ; git clone "$GIT_JSDOC_ANT" )
+ echo "Building $RELEASE_JSDOC_ANT"
+ ant -f "$TMP"/$RELEASE_JSDOC_ANT/build.xml dist
+ echo "Copying artifact"
+ mkdir -p "$PACKAGES/$RELEASE_JSDOC_ANT"
+ cp "$TMP/$RELEASE_JSDOC_ANT/build/jar"/*.jar "$PACKAGES/$RELEASE_JSDOC_ANT"
+fi
+
+rm -rf "$TMP"
diff --git a/index.html b/index.html
index 312b956f9..73140265f 100644
--- a/index.html
+++ b/index.html
@@ -59,22 +59,21 @@
<script type="text/javascript" src="js/ext/jcrop/jcrop.js"></script>
<!-- SOTE component includes -->
- <script type="text/javascript" src="js/component-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/registry-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/util-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/map-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/mapSote-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/dateSpan-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/rubberBand-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/imageDownload-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/menuPicker-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/accordionPicker-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/bank-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/switch-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/selector-min.js?v=0.3.0"></script>
- <script type="text/javascript" src="js/sote-min.js?v=0.3.0"></script>
-
-
+ <!-- <script type="text/javascript" src="js/worldview-min.js"></script> -->
+ <!-- js.dev --> <script type="text/javascript" src="js/component.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/registry.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/util.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/map.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/mapSote.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/dateSpan.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/rubberBand.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/imageDownload.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/menuPicker.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/accordionPicker.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/bank.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/switch.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/selector.js?v=0.3.0"></script>
+ <!-- js.dev --> <script type="text/javascript" src="js/sote.js?v=0.3.0"></script>
</head>
<body class="yui-skin-sam">
diff --git a/js/accordionPicker-min.js b/js/accordionPicker-min.js
deleted file mode 100644
index 63e517511..000000000
--- a/js/accordionPicker-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.AccordionPicker");SOTE.widget.AccordionPicker.prototype=new SOTE.widget.Component;SOTE.widget.AccordionPicker=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}if(b.dataSourceUrl===undefined){b.dataSourceUrl=null}if(b.items===undefined){b.items=null}if(b.selected===undefined){b.selected=null}this.value="";this.selected=b.selected;this.expanded=null;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init();this.updateComponent("")};SOTE.widget.AccordionPicker.prototype.init=function(){this.render();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register AccordionPicker!")}};SOTE.widget.AccordionPicker.prototype.render=function(){if(this.items===undefined){return false}this.container.innerHTML="";var j;var d;var g=null;var k=document.createElement("form");k.setAttribute("class","accordion");k.setAttribute("id",this.id+"accordion");for(var b in this.items){if(b==="expanded"){if(this.items[b]!==undefined&&this.items[b]!==""){j=this.items[b].replace(" ","")}continue}if(b==="selected"){d=this.items[b];continue}var r=b.replace(" ","");var q=document.createElement("a");q.setAttribute("href","#");q.setAttribute("id",this.id+r);q.innerHTML="<span>"+b+"</span>";k.appendChild(q);var f=document.createElement("ul");for(var h=0;h<this.items[b].length;h++){var o=this.items[b][h];var p=document.createElement("li");if(o.type!=="single"&&o.type!=="multi"){alert("Invalid list item!")}else{var a=this.id+r+"Item"+h;var c=(o.disabled!==undefined&&o.disabled===true)?"disabled":"";var m=(o.type==="single")?"radio":"checkbox";p.innerHTML="<input value='"+o.value+"' class='accordionFormItem' name='"+this.id+o.type+"' id='"+a+"' type='"+m+"' "+c+"/>";p.innerHTML+="<label for='"+a+"'><span class='accordionLabel'>"+o.label+"</span><span class='accordionSub'>"+o.sublabel+"</span></label>";f.appendChild(p)}}k.appendChild(f)}this.container.appendChild(k);var n=document.createElement("a");n.setAttribute("class","accordionToggler atcollapse");this.isCollapsed=false;var l=new Object();l.data=new Object();l.data.self=this;this.container.appendChild(n);$(".accordionToggler").bind("click",{self:this},SOTE.widget.AccordionPicker.toggle);$(".accordion").accordion();$(".accordion").bind("accordionchange",{self:this},SOTE.widget.AccordionPicker.handleCategorySwitch);$(".accordionFormItem").bind("click",{self:this},SOTE.widget.AccordionPicker.handleSelection);if(d!==undefined&&d!==""){this.setValue(j+"."+d)}if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}};SOTE.widget.AccordionPicker.handleSelection=function(b){var a=b.data.self;a.syncCheckboxes(b.target);a.value=SOTE.util.extractFromQuery(a.id,a.getValue());a.fire()};SOTE.widget.AccordionPicker.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".accordionToggler").removeClass("atexpand").addClass("atcollapse");$(".accordionToggler").attr("title","Hide Products");$(".accordion").css("display","block");a.isCollapsed=false}else{$(".accordionToggler").removeClass("atcollapse").addClass("atexpand");$(".accordionToggler").attr("title","Show Products");$(".accordion").css("display","none");a.isCollapsed=true}};SOTE.widget.AccordionPicker.handleCategorySwitch=function(f,g){var k=f.data.self;var d=(g.oldHeader[0].id);var j=(g.newHeader[0].id);var l=null;var a=false;if(k.expanded!==j){k.expanded=j;var c=document.getElementsByName(k.id+"single");for(var b=0;b<c.length;++b){if(c[b].disabled===false&&c[b].id.indexOf(d)!=-1&&c[b].checked===true){l=c[b].value}}if(l!==null){for(var b=0;b<c.length;++b){if(c[b].disabled===false&&c[b].id.indexOf(j)!=-1&&c[b].value===l){c[b].checked=true;a=true}}}var h}$(".accordion").blur()};SOTE.widget.AccordionPicker.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from AccordionPicker!")}};SOTE.widget.AccordionPicker.prototype.setValue=function(l){var e=l.split(".");var k=e[0];var b=e[1];var g=document.getElementsByName(this.id+"single");var m=false;var a=k;var c=new RegExp(this.id+"(.+)");if(c.test(k)==false){a=this.id+k}if(this.expanded===null||this.expanded!==a){$(".accordion").accordion("activate","#"+a);this.expanded=a}for(var f=0;f<g.length;++f){if(g[f].value===b&&g[f].disabled===false&&g[f].id.indexOf(k)!=-1){g[f].checked=true;m=true;break}}if(!m){for(var f=0;f<g.length;++f){if(g[f].value===b&&g[f].disabled===false){g[f].checked=true}}}var h=document.getElementsByName(this.id+"multi");for(var f=0;f<h.length;++f){for(var d=1;d<e.length;++d){if(h[f].value===e[d]&&h[f].disabled===false){h[f].checked=true}}}this.value=l;this.fire();$(".accordion").blur();return this.validate()};SOTE.widget.AccordionPicker.prototype.syncCheckboxes=function(d){var b=d.checked;var c=document.getElementsByName(this.id+"multi");for(var a=0;a<c.length;++a){if(c[a].value===d.value&&c[a].disabled===false){c[a].checked=b}}return};SOTE.widget.AccordionPicker.prototype.getValue=function(){var f=new Array();var e=new Object();var d=document.getElementsByName(this.id+"single");for(var b=0;b<d.length;++b){if(d[b].checked===true){f.push(d[b].value);break}}if(f.length===0){f.push("")}var h=document.getElementsByName(this.id+"multi");for(var b=0;b<h.length;++b){if(h[b].checked===true){if(!(h[b].value in e)){f.push(h[b].value);e[h[b].value]=1}}}var c=new RegExp(this.id+"(.+)");var a=c.exec(this.expanded);var g=a[1]+"."+f.join(".");return this.id+"="+g};SOTE.widget.AccordionPicker.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;SOTE.util.getJSON(this.dataSourceUrl+"?"+b,{self:this,qs:b},SOTE.widget.AccordionPicker.handleUpdateSuccess,SOTE.widget.AccordionPicker.handleUpdateFailure)};SOTE.widget.AccordionPicker.handleUpdateSuccess=function(d,a,e,c){var b=SOTE.util.extractFromQuery("hazard",c.qs);d.expanded=(b!==undefined&&b!==""&&b!==null)?b:d.expanded;d.selected=(d.selected===undefined||d.selected==="")?SOTE.util.extractFromQuery(c.self.id,c.self.getValue()):d.selected;c.self.items=d;c.self.render()};SOTE.widget.AccordionPicker.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.AccordionPicker.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.AccordionPicker.prototype.validate=function(){var d=true;var a=0;var c=document.getElementsByName(this.id+"single");for(var b=0;b<c.length;++b){if(c[b].checked===true){++a}if(c[b].disabled===true&&c[b].checked===true){this.setStatus("Disabled items cannot be selected!");d=false}}if(a>1){d=false;this.setStatus("Multiple single-select items selected!")}return d};SOTE.widget.AccordionPicker.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.AccordionPicker.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.AccordionPicker.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.AccordionPicker.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/bank-min.js b/js/bank-min.js
deleted file mode 100644
index 77ad448cb..000000000
--- a/js/bank-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.Bank");SOTE.widget.Bank.prototype=new SOTE.widget.Component;SOTE.widget.Bank=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}if(b.title===undefined){b.title="My Bank"}if(b.categories===undefined){b.categories=["Category 1","Category 2"]}if(b.callback===undefined){b.callback=null}if(b.state===undefined){b.state="geographic"}this.values=null;this.state=b.state;this.selected=b.selected;this.dataSourceUrl=b.dataSourceUrl;this.title=b.title;this.callback=b.callback;this.selector=b.selector;this.meta=new Object;this.buildMetaDone=false;this.categories=b.categories;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.Bank.prototype.buildMeta=function(a,b){SOTE.util.getJSON("data/"+this.state+"_"+this.dataSourceUrl,{self:this,callback:a,val:b},SOTE.widget.Bank.handleMetaSuccess,SOTE.widget.Bank.handleUpdateFailure)};SOTE.widget.Bank.handleMetaSuccess=function(f,a,g,d){var b=d.self;for(var e in f){if(e!="palettes"){for(var c=0;c<f[e].length;c++){b.meta[f[e][c].value]={label:f[e][c].label,sublabel:f[e][c].sublabel}}}}for(var e in f.palettes){b.meta[e].units=f.palettes[e].units;b.meta[e].min=f.palettes[e].min;b.meta[e].max=f.palettes[e].max;b.meta[e].palette=f.palettes[e].palette}if(d.callback){d.callback({self:b,val:d.val})}else{b.values=null;b.values=b.unserialize(b.selected[b.state]);b.render();b.fire()}b.buildMetaDone=true};SOTE.widget.Bank.prototype.init=function(){this.buildMeta();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Bank!")}};SOTE.widget.Bank.prototype.render=function(){this.container.innerHTML="";var b=document.createElement("div");b.setAttribute("class","bank");var h=document.createElement("div");var n=document.createElement("h2");n.innerHTML=this.title;var d=document.createElement("a");d.setAttribute("id","callSelectorLink");d.setAttribute("class","callSelectorLink");h.appendChild(n);h.appendChild(d);b.appendChild(h);$("#"+this.id).delegate(".callSelectorLink","click",{selector:this.selector},this.callback);for(var k=0;k<this.categories.length;k++){var f=this.categories[k].replace(/\s/g,"");var c=document.createElement("ul");c.setAttribute("id",f.toLowerCase());c.setAttribute("class",this.id+"category category");var q=document.createElement("li");var a=document.createElement("h3");a.setAttribute("class","head");a.innerHTML=this.categories[k];q.appendChild(a);c.appendChild(q);if(this.values!==null&&this.values[f.toLowerCase()]){for(var g=0;g<this.values[f.toLowerCase()].length;g++){var p=document.createElement("li");p.setAttribute("id",f.toLowerCase()+"-"+this.values[f.toLowerCase()][g].value);p.setAttribute("class",this.id+"item item");p.innerHTML="<a><img class='close' id='"+this.values[f.toLowerCase()][g].value.replace(/:/g,"colon")+"' src='images/close.png' /></a>";if(this.meta!==null&&this.meta[this.values[f.toLowerCase()][g].value]){p.innerHTML+="<h4>"+this.meta[this.values[f.toLowerCase()][g].value].label+"</h4>";p.innerHTML+="<p>"+this.meta[this.values[f.toLowerCase()][g].value].sublabel+"</p>";var e=this.meta[this.values[f.toLowerCase()][g].value];if(e.palette){var l="<span class='palette'><span class='p-min' style='margin-right:10px;'>"+e.min+"</span><canvas id='canvas"+this.values[f.toLowerCase()][g].value+"' width=100px height=14px'></canvas><span class='p-max' style='margin-left:10px;'>"+e.max+"</span>";if(e.units&&e.units!=""){l+="<span class='units' style='margin-left:3px;'>("+e.units+")</span></span>"}p.innerHTML+=l}}else{p.innerHTML+="<h4>"+this.values[f.toLowerCase()][g].value+"</h4>"}c.appendChild(p)}}b.appendChild(c)}this.container.appendChild(b);this.renderCanvases();var o=document.createElement("a");o.setAttribute("class","accordionToggler atcollapse");this.isCollapsed=false;this.container.appendChild(o);$(".accordionToggler").bind("click",{self:this},SOTE.widget.Bank.toggle);$("#"+this.id).delegate(".close","click",{self:this},SOTE.widget.Bank.removeValue);$("."+this.id+"category").sortable({items:"li:not(.head)"});$("."+this.id+"category li").disableSelection();$("."+this.id+"category").bind("sortstop",{self:this},SOTE.widget.Bank.handleSort);if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}};SOTE.widget.Bank.prototype.renderCanvases=function(){for(var l=0;l<this.categories.length;l++){var f=this.categories[l].replace(/\s/g,"");if(this.values!==null&&this.values[f.toLowerCase()]){for(var h=0;h<this.values[f.toLowerCase()].length;h++){var d=this.values[f.toLowerCase()][h].value;var e=this.meta[this.values[f.toLowerCase()][h].value];if(e.palette){var a=100/e.palette.length;var c=document.getElementById("canvas"+d);var b=c.getContext("2d");for(var g=0;g<e.palette.length;++g){b.fillStyle="rgba("+e.palette[g]+")";b.fillRect(a*g,0,a,14)}}}}}};SOTE.widget.Bank.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".accordionToggler").removeClass("atexpand").addClass("atcollapse");$(".accordionToggler").attr("title","Hide Products");$(".bank").css("display","block");a.isCollapsed=false}else{$(".accordionToggler").removeClass("atcollapse").addClass("atexpand");$(".accordionToggler").attr("title","Show Products");$(".bank").css("display","none");a.isCollapsed=true}};SOTE.widget.Bank.handleSort=function(f,d){var a=f.data.self;a.values=new Object;for(var b=0;b<a.categories.length;b++){var c=a.categories[b].replace(/\s/g,"");c=c.toLowerCase();a.values[c]=new Array();jQuery('li[id|="'+c+'"]').each(function(){var e=jQuery(this);var i=e.attr("id");var g=i.split("-");var h=g.splice(0,1);h=g.join("-");a.values[c].push({value:h})})}a.fire()};SOTE.widget.Bank.removeValue=function(f){var a=f.data.self;var g=f.target.id.replace(/colon/g,":");for(var c=0;c<a.categories.length;c++){var d=a.categories[c].replace(/\s/g,"");d=d.toLowerCase();for(var b=0;b<a.values[d].length;b++){if(a.values[d][b].value==g){a.values[d].splice(b,1)}}}var h=g.replace(/:/g,"colon");$("#"+a.id+" #"+h).parent().parent().remove();a.fire()};SOTE.widget.Bank.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Bank!")}};SOTE.widget.Bank.prototype.setValue=function(a){this.values=this.unserialize(a);this.render();this.fire()};SOTE.widget.Bank.prototype.getValue=function(){var a=this.serialize(this.values);return this.id+"="+a};SOTE.widget.Bank.prototype.serialize=function(a){var e="";for(var c=0;c<this.categories.length;c++){if(c>0){e+="~"}var d=this.categories[c].replace(/\s/g,"");d=d.toLowerCase();e+=d;if(a[d]){for(var b=0;b<a[d].length;b++){e+="."+a[d][b].value}}}return e};SOTE.widget.Bank.prototype.unserialize=function(d){var f=new Object;var b=d.split("~");for(var e=0;e<b.length;e++){var a=b[e].split(".");f[a[0]]=new Array;for(var c=1;c<a.length;c++){f[a[0]].push({value:a[c]})}}return f};SOTE.widget.Bank.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;SOTE.widget.Bank.handleUpdateSuccess(this,a)};SOTE.widget.Bank.handleUpdateSuccess=function(b,a){if(SOTE.util.extractFromQuery("switch",a)==b.state){var c=SOTE.util.extractFromQuery("selectorbox",a);b.values=b.unserialize(c);b.render();b.fire()}else{b.state=SOTE.util.extractFromQuery("switch",a);b.buildMeta()}};SOTE.widget.Bank.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.Bank.prototype.loadFromQuery=function(a){var b=SOTE.util.extractFromQuery("switch",a);if(this.state!=b){this.state=b;this.buildMeta(SOTE.widget.Bank.loadValue,SOTE.util.extractFromQuery(this.id,a))}else{this.sleep(SOTE.util.extractFromQuery(this.id,a))}};SOTE.widget.Bank.prototype.sleep=function(a){setTimeout(SOTE.widget.Bank.loadValue,100,{self:this,val:a})};SOTE.widget.Bank.loadValue=function(a){if(a.self.buildMetaDone==true){a.self.setValue(a.val)}else{a.self.sleep(a.val)}};SOTE.widget.Bank.prototype.validate=function(){var a=true;return a};SOTE.widget.Bank.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.Bank.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.Bank.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Bank.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/component-min.js b/js/component-min.js
deleted file mode 100644
index 062e4295e..000000000
--- a/js/component-min.js
+++ /dev/null
@@ -1 +0,0 @@
-if(typeof SOTE=="undefined"){var SOTE=new Object()}SOTE.namespace=function(){var d;for(var b=0;b<arguments.length;b++){var c=(""+arguments[b]).split(".");d=SOTE;for(var a=(c[0]=="SOTE")?1:0;a<c.length;a++){d[c[a]]=d[c[a]]||{};d=d[c[a]]}}return d};SOTE.namespace("widget");SOTE.widget.Component=function(a,b){};SOTE.widget.Component.prototype.init=function(){};SOTE.widget.Component.prototype.setValue=function(a){};SOTE.widget.Component.prototype.getValue=function(){};SOTE.widget.Component.prototype.updateComponent=function(a){};SOTE.widget.Component.prototype.loadFromQuery=function(a){};SOTE.widget.Component.prototype.validate=function(){};SOTE.widget.Component.prototype.setDataSourceUrl=function(a){};SOTE.widget.Component.prototype.getDataSourceUrl=function(){};SOTE.widget.Component.prototype.setStatus=function(a){};SOTE.widget.Component.prototype.getStatus=function(){};
\ No newline at end of file
diff --git a/js/dateSpan-min.js b/js/dateSpan-min.js
deleted file mode 100644
index 68979bc47..000000000
--- a/js/dateSpan-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.DateSpan");SOTE.widget.DateSpan=function(containerId,config){this.SLIDER_WIDTH=1000;this.DAY_IN_MS=24*60*60*1000;this.sliders=new Object();this.sliders.Year=[2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013];this.sliders.Month=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];this.sliders.Day=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31];this.months=[31,28,31,30,31,30,31,31,30,31,30,31];this.sliderContent=[];this.container=document.getElementById(containerId);if(this.container==null){this.setStatus("Error: element '"+containerId+"' not found!",true);return}this.id=containerId;this.containerId=containerId;if(config===undefined){config={}}if(config.dataSourceUrl===undefined){config.dataSourceUrl=null}if(config.thumbSource===undefined){config.thumbSource=null}if(config.extent===undefined){config.extent=null}if(config.product===undefined){config.product=null}if(config.endDate===undefined){config.endDate=new Date();var timeString=SOTE.util.zeroPad(eval(config.endDate.getUTCMonth()+1),2)+"/"+SOTE.util.zeroPad(config.endDate.getUTCDate(),2)+"/"+config.endDate.getUTCFullYear();config.endDate=new Date(timeString);config.endDate.setHours(12);config.endDate.setMinutes(0);config.endDate.setSeconds(0)}else{config.endDate=new Date(config.endDate)}if(config.startDate===undefined){config.startDate=new Date();var timeString="05/08/2012";config.startDate=new Date(timeString);config.startDate.setHours(12);config.startDate.setMinutes(0);config.startDate.setSeconds(0)}else{config.endDate=new Date(config.endDate)}if(config.range===undefined){config.range=7*this.DAY_IN_MS}if(config.selected===undefined){config.selected=new Date(config.endDate.getTime())}if(config.slideToSelect===undefined){config.slideToSelect=true}if(config.isCollapsed===undefined){config.isCollapsed=(config.thumbSource===null||config.hasThumbnail===false)?true:false}if(config.hasThumbnail===undefined){config.hasThumbnail=true}this.value="";this.maps=[];this.startDate=config.startDate;this.endDate=config.endDate;this.range=config.range;this.isCollapsed=config.isCollapsed;this.slideToSelect=config.slideToSelect;this.thumbSource=config.thumbSource;this.hasThumbnail=config.hasThumbnail;this.extent=config.extent;this.product=config.product;this.value=config.selected;this.dataSourceUrl=config.dataSourceUrl;this.statusStr="";this.init();$(window).bind("resize",{self:this},SOTE.widget.DateSpan.refreshSliders)};SOTE.widget.DateSpan.prototype=new SOTE.widget.Component;SOTE.widget.DateSpan.prototype.init=function(){this.container.setAttribute("class","datespan");var b=document.createElement("div");b.setAttribute("id",this.id+"dateHolder");b.setAttribute("class","dateHolder");b.innerHTML="Friday September 21, 2012";this.container.appendChild(b);var a=document.createElement("a");a.setAttribute("class","ecbutton collapse");a.setAttribute("id",this.id+"ecbutton");this.container.appendChild(a);this.createSlider("Year");this.createSlider("Month");this.createSlider("Day");this.setVisualDate();this.setValue(SOTE.util.ISO8601StringFromDate(this.value));$("#"+this.id+"ecbutton").bind("click",{self:this},SOTE.widget.DateSpan.toggle);if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register AccordionPicker!")}};SOTE.widget.DateSpan.refreshSliders=function(b){var a=b.data.self;setTimeout(function(){a.refreshSlider("Year");a.refreshSlider("Month");a.refreshSlider("Day")},100)};SOTE.widget.DateSpan.prototype.refreshSlider=function(type){var labels=this.sliders[type];var wwidth=$(window).width();if(labels!=undefined){var width=50/labels.length;width=width.toFixed(1);var pwidth=width/100;var pwwidth=Math.floor(pwidth*wwidth);var spacer=50/labels.length;spacer=spacer.toFixed(1);var pspacer=spacer/100;var pwspacer=Math.floor(wwidth*pspacer/2);var finalwidth=(pwwidth+pwspacer+pwspacer);$("#"+this.id+"sliderLabel"+type).children().css("width",Math.floor(wwidth*pwidth)+"px");$("#"+this.id+"sliderLabel"+type).children().css("margin-left",Math.floor(wwidth*pspacer/2)+"px");$("#"+this.id+"sliderLabel"+type).children().css("margin-right",Math.floor(wwidth*pspacer/2)+"px");$("#"+this.id+"slider"+type).siblings(".ui-slider").css("width",eval(finalwidth*labels.length)+"px")}};SOTE.widget.DateSpan.prototype.createSlider=function(type){var slider=document.createElement("div");slider.setAttribute("id",this.id+"sliderDiv"+type);slider.setAttribute("class","sliderDiv"+type+" slider");slider.innerHTML='<input type="range" name="slider" id="'+this.id+"slider"+type+'" class="dateSpanSlider" value="'+this.SLIDER_WIDTH+'" min="0" max="'+this.SLIDER_WIDTH+'" step="1" />';this.container.appendChild(slider);var width=0;var wwidth=$(window).width();var labels=this.sliders[type];if(labels!=undefined){width=50/labels.length;width=width.toFixed(1);var pwidth=width/100;var pwwidth=Math.floor(pwidth*wwidth);var spacer=50/labels.length;spacer=spacer.toFixed(1);var pspacer=spacer/100;var pwspacer=Math.floor(wwidth*pspacer/2);var finalwidth=(pwwidth+pwspacer+pwspacer);var label=document.createElement("ul");label.setAttribute("class","sliderLabel");label.setAttribute("id",this.id+"sliderLabel"+type);for(var i=0;i<labels.length;++i){var item=document.createElement("li");item.setAttribute("id",this.id+type+"sliderItem"+i);item.innerHTML=labels[i];item.style.width=Math.floor(wwidth*pwidth)+"px";item.style.marginLeft=Math.floor(wwidth*pspacer/2)+"px";item.style.marginRight=Math.floor(wwidth*pspacer/2)+"px";label.appendChild(item)}this.container.appendChild(label)}var labelslength=labels.length;$("#"+this.id+"slider"+type).slider();$("#"+this.id+"slider"+type).bind("change",{self:this,type:type},SOTE.widget.DateSpan.handleSlide);$("#"+this.id+"slider"+type).siblings(".ui-slider").css("width",eval(finalwidth*labels.length)+"px");$("#"+this.id+"slider"+type).siblings(".ui-slider").bind("vmouseup",{self:this,type:type},SOTE.widget.DateSpan.snap);if(width!=0){$(".sliderDiv"+type+" a.ui-slider-handle").css("width",eval(width*1.1).toFixed(1)+"%")}};SOTE.widget.DateSpan.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from AccordionPicker!")}};SOTE.widget.DateSpan.handleSlide=function(h,g){var f=h.target.value;var d=h.data.type;var c=h.data.self;var i=c.sliders[d].length;var b=Math.floor(f*(i/c.SLIDER_WIDTH));if(c.sliders[d][b]){var a=c.value.clone();if(d=="Year"){a.setYear(c.sliders[d][b])}else{if(d=="Month"){if(c.value.getDate()>c.months[b]){a.setDate(c.months[b]);a.setMonth(b);c.setValue(SOTE.util.ISO8601StringFromDate(a))}else{a.setMonth(b)}}else{if(d=="Day"){if(c.sliders[d][b]<=c.months[c.value.getMonth()]){a.setDate(c.sliders[d][b])}else{a.setDate(c.months[c.value.getMonth()]);c.setValue(SOTE.util.ISO8601StringFromDate(a))}}}}if(a.getTime()<c.startDate.getTime()){c.setValue(SOTE.util.ISO8601StringFromDate(c.startDate))}else{if(a.getTime()>c.endDate.getTime()){c.setValue(SOTE.util.ISO8601StringFromDate(c.endDate))}else{c.value=a.clone()}}}else{if(b>=c.sliders[d].length){c.setValue(SOTE.util.ISO8601StringFromDate(c.value))}else{if(b<0){c.setValue(SOTE.util.ISO8601StringFromDate(c.value))}}}c.validate();c.setVisualDate();c.fire()};SOTE.widget.DateSpan.toggle=function(c,b){var a=c.data.self;if(a.isCollapsed){$(".ecbutton").removeClass("expand").addClass("collapse");$(".ecbutton").attr("title","Hide Date Sliders");a.isCollapsed=false;a.showSliders()}else{$(".ecbutton").removeClass("collapse").addClass("expand");$(".ecbutton").attr("title","Show Date Sliders");a.isCollapsed=true;a.hideSliders()}};SOTE.widget.DateSpan.snap=function(c,f){var k=c.data.self;var d=c.data.type;var j=k.sliders[d].length;var i=$("#"+k.id+"slider"+d).val();var g=Math.floor(i*(j/k.SLIDER_WIDTH));var a=k.SLIDER_WIDTH/j;var b=g*a+a/4-a*0.05;b=b.toFixed(1);$("#"+k.id+"slider"+d).val((b)).slider("refresh");if(k.sliders[d][g]){var h=k.value.clone();if(d=="Year"){h.setYear(k.sliders[d][g])}else{if(d=="Month"){if(k.value.getDate()>k.months[g]){h.setDate(k.months[g]);h.setMonth(g);k.setValue(SOTE.util.ISO8601StringFromDate(h))}else{h.setMonth(g)}}else{if(d=="Day"){if(k.sliders[d][g]<=k.months[k.value.getMonth()]){h.setDate(k.sliders[d][g])}else{h.setDate(k.months[k.value.getMonth()]);k.setValue(SOTE.util.ISO8601StringFromDate(h))}}}}if(h.getTime()<k.startDate.getTime()){k.setValue(SOTE.util.ISO8601StringFromDate(k.startDate))}else{if(h.getTime()>k.endDate.getTime()){k.setValue(SOTE.util.ISO8601StringFromDate(k.endDate))}else{k.value=h.clone()}}}else{if(g>=k.sliders[d].length){k.setValue(SOTE.util.ISO8601StringFromDate(k.value))}else{if(g<0){k.setValue(SOTE.util.ISO8601StringFromDate(k.value))}}}k.validate();k.setVisualDate()};SOTE.widget.DateSpan.snapToTime=function(d,b){var a=d.data.self;var c=d.data.time};SOTE.widget.DateSpan.prototype.hideSliders=function(){for(var a in this.sliders){$("#"+this.id+"sliderDiv"+a).css("display","none")}};SOTE.widget.DateSpan.prototype.showSliders=function(){for(var a in this.sliders){$("#"+this.id+"sliderDiv"+a).css("display","block")}};SOTE.widget.DateSpan.prototype.setValue=function(j){var h=SOTE.util.getValuesFromISO8601String(j);if(h[2]>this.months[h[1]]){h[2]=this.months[h[1]]}var f=new Date(h[0],h[1],h[2],h[3],h[4],h[5]);var b=this.endDate.getTime()-(this.range-24*60*60*1000);var e=["January","February","March","April","May","June","July","August","September","October","November","December"];if(f.getTime()<=this.endDate.getTime()&&f.getTime()>=this.startDate.getTime()){this.value=f;var k=new Object();k.Year=this.sliders.Year.indexOf(this.value.getFullYear());k.Month=this.value.getMonth();k.Day=this.sliders.Day.indexOf(this.value.getDate());for(var g in k){var l=this.sliders[g].length;var i=k[g];var a=this.SLIDER_WIDTH/l;var c=i*a+(a/4)-(a*0.05);c=c.toFixed(1);$("#"+this.id+"slider"+g).val(c).slider("refresh")}this.validate();this.setVisualDate();this.fire()}else{SOTE.util.throwError("The date "+j+" in your permalink has expired. As of right now, Worldview only retains data as of "+SOTE.util.ISO8601StringFromDate(this.startDate)+". The date has been adjusted to today's date.")}};SOTE.widget.DateSpan.prototype.setVisualDate=function(){var dateString=this.value.getFullYear()+"-"+SOTE.util.zeroPad(eval(this.value.getMonth()+1),2)+"-"+SOTE.util.zeroPad(this.value.getDate(),2);$("#"+this.id+"dateHolder").html(dateString)};SOTE.widget.DateSpan.prototype.getValue=function(){return""+this.id+"="+SOTE.util.ISO8601StringFromDate(this.value)+"&transition=standard"};SOTE.widget.DateSpan.prototype.updateComponent=function(a){};SOTE.widget.DateSpan.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.DateSpan.prototype.validate=function(){var k=this.value.clone();var f=this.startDate.getFullYear();var h=this.startDate.getMonth();var e=this.startDate.getDate();var j=this.endDate.getFullYear();var d=this.endDate.getMonth();var b=this.endDate.getDate();for(var g in this.sliders){for(var c=0;c<this.sliders[g].length;++c){var a=this.id+g+"sliderItem"+c;if(g=="Year"){if(this.sliders[g][c]<f||this.sliders[g][c]>j){$("#"+a).addClass("disabledItem")}else{$("#"+a).removeClass("disabledItem")}}if(g=="Month"){if((k.getFullYear()==f&&c<h)||(k.getFullYear()==j&&c>d)){$("#"+a).addClass("disabledItem")}else{$("#"+a).removeClass("disabledItem")}}if(g=="Day"){if((this.sliders[g][c]>this.months[k.getMonth()])||(k.getFullYear()==f&&k.getMonth()==h&&this.sliders[g][c]<e)||(k.getFullYear()==j&&k.getMonth()==d&&this.sliders[g][c]>b)){$("#"+a).addClass("disabledItem")}else{$("#"+a).removeClass("disabledItem")}}}}};SOTE.widget.DateSpan.prototype.setDataSourceUrl=function(a){};SOTE.widget.DateSpan.prototype.getDataSourceUrl=function(){};SOTE.widget.DateSpan.prototype.setStatus=function(a){};SOTE.widget.DateSpan.prototype.getStatus=function(){};SOTE.widget.DateSpan.prototype.hide=function(){};SOTE.widget.DateSpan.prototype.show=function(){};SOTE.widget.DateSpan.prototype.expand=function(){};SOTE.widget.DateSpan.prototype.collapse=function(){};
\ No newline at end of file
diff --git a/js/imageDownload-min.js b/js/imageDownload-min.js
deleted file mode 100644
index 73f06fb92..000000000
--- a/js/imageDownload-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.ImageDownload");SOTE.widget.ImageDownload=function(a,b){this.container=document.getElementById(a);this.coords=null;this.RESOLUTIONS_ON_SCREEN_GEO_ALL=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SERVER_GEO_250m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}if(b===undefined){b={}}this.alignTo=b.alignTo;this.id=a;this.map=null;this.WMTSLayer=null;if(b.baselayer===undefined){b.baselayer=null}this.baseLayer=b.baselayer;this.value="";this.init()};SOTE.widget.ImageDownload.prototype=new SOTE.widget.Component;SOTE.widget.ImageDownload.prototype.init=function(){this.container.setAttribute("class","imagedownload");var a=this;SOTE.widget.ImageDownload.setPosition(this);$(window).resize(function(){SOTE.widget.ImageDownload.setPosition(a)});if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register Download!")}this.projectionSwitch="geographic";this.map=new OpenLayers.Map({div:"dlMap",theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-180,-90,180,90),projection:"EPSG:4326",numZoomLevels:9,fractionalZoom:false,resolutions:this.RESOLUTIONS_ON_SCREEN_GEO_ALL,allOverlays:false,zoom:2});this.WMTSLayer=new OpenLayers.Layer.WMTS({name:"dl",url:"http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi",layer:"Download",matrixSet:"EPSG4326_250m",projection:"EPSG:4326",serverResolutions:this.RESOLUTIONS_ON_SERVER_GEO_250m,visibility:false,tileSize:new OpenLayers.Size(512,512),maxExtent:new OpenLayers.Bounds(-180,-90,180,90),style:"_null",isBaseLayer:true});this.map.addLayer(this.WMTSLayer);var b="<div>Resolution:<select id='selImgResolution'><option value='1'>250m</option><option value='2'>500m</option><option value='4'>1km</option><option value='20'>5km</option><option value='40'>10km</option></select>";b+="<br />Format: <select id='selImgFormat'><option value='JPEG'>JPEG</option><option value='PNG'>PNG</option><option value='Gtiff'>GeoTIFF</option></select>";b+="<br />Raw Image Size: ~ <span id='imgFileSize'> </span> MB <br />(<span id='imgWidth''></span> x <span id='imgHeight'></span> pixels)";b+="<br /><span style='font-size:10px; color:#aaa; font-style:italic;'>(Max Size: 250 MB)</span> ";b+="<br /><input type='button' id='btnImgDownload' value='Download'/>";b+="</div>";$("#"+this.id).html(b)};SOTE.widget.ImageDownload.setPosition=function(a){var c=$("#"+a.alignTo.id).offset();var b=c.left+parseInt($("#"+a.alignTo.id).css("width"))-parseInt($("#"+a.id).css("width"));$("#"+a.id).css("left",b+"px")};SOTE.widget.ImageDownload.prototype.setValue=function(a){this.value=a};SOTE.widget.ImageDownload.prototype.getValue=function(){return this.id+"="+this.value};SOTE.widget.ImageDownload.prototype.updateComponent=function(a){var b=SOTE.util.extractFromQuery("map",a);var k=SOTE.util.extractFromQuery("time",a);var p=SOTE.util.extractFromQuery("camera",a);var n=SOTE.util.extractFromQuery("switch",a);var d=SOTE.util.extractFromQuery("products",a);var o=p.split(",");var r=o[0];var f=o[1];var q=o[2];var e=o[3];this.map.zoomToExtent(new OpenLayers.Bounds.fromString(b));var j=this.map.getExtent();var h=this.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(r,e));var g=this.map.getLonLatFromViewPortPx(new OpenLayers.Pixel(q,f));var c="http://map2.vis.earthdata.nasa.gov/imagegen/?";var i=new Date((k.split("T"))[0]+"T00:00:00");var m="00"+(1+Math.ceil((i-new Date(i.getFullYear(),0,1))/86400000));c+="TIME="+i.getFullYear()+(m).substr((m.length)-3);c+="&extent="+h.lon+"+"+h.lat+"+"+g.lon+"+"+g.lat;c+="&LAYERS="+(((((d).replace("baselayers.","")).replace("overlays.","")).replace(/~/g,"+")).replace(/\./g,"+"));var l=0;var t=0;$("select#selImgResolution").change(function(){imgRes=$("#selImgResolution option:selected").val();l=Math.round((Math.abs(g.lon-h.lon)/0.002197)/Number(imgRes));t=Math.round((Math.abs(g.lat-h.lat)/0.002197)/Number(imgRes));imgFilesize=((l*t*24)/8388608).toFixed(2);$("#imgWidth").text((l));$("#imgHeight").text((t));$("#imgFileSize").text(imgFilesize);if(imgFilesize>250){$("#imgFileSize").css("color","#D99694");$("#btnImgDownload").attr("disabled","disabled")}else{$("#imgFileSize").css("color","white");$("#btnImgDownload").removeAttr("disabled")}}).change();$("#btnImgDownload").unbind("click").click(function(){window.open(c+"&format="+$("#selImgFormat option:selected").val()+"&size="+$("#imgWidth").text()+"+"+$("#imgHeight").text(),"_blank")});this.setValue(c)};SOTE.widget.ImageDownload.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.ImageDownload.prototype.validate=function(){};SOTE.widget.ImageDownload.prototype.setSourceUrl=function(a){};SOTE.widget.ImageDownload.prototype.getSourceUrl=function(){};SOTE.widget.ImageDownload.prototype.setStatus=function(a){};SOTE.widget.ImageDownload.prototype.getStatus=function(){};
\ No newline at end of file
diff --git a/js/map-min.js b/js/map-min.js
deleted file mode 100644
index fc4d18ec5..000000000
--- a/js/map-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.Map");SOTE.widget.Map.prototype=new SOTE.widget.Component;SOTE.widget.Map=function(containerId,config){this.container=document.getElementById(containerId);if(this.container==null){this.setStatus("Error: element '"+containerId+"' not found!",true);return}this.containerId=containerId;this.id=containerId;this.DEFAULT_OVERLAY_OPACITY=0.95;var currentDate=new Date();var gibsStartDate=new Date(2012,4,7,0,0,0,0);var numDaysToGenerate=(currentDate.getTime()-gibsStartDate.getTime())/(24*60*60*1000)+1;this.NUM_DAYS_TO_GENERATE=Math.round(numDaysToGenerate);this.RESOLUTIONS_ON_SCREEN_GEO_ALL=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SCREEN_POLAR_ALL=[8192,4096,2048,1024,512,256];this.RESOLUTIONS_ON_SERVER_GEO_250m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125,0.002197265625];this.RESOLUTIONS_ON_SERVER_POLAR_250m=[8192,4096,2048,1024,512,256];this.TILEMATRIXSET_GEO_250m="EPSG4326_250m";this.RESOLUTIONS_ON_SERVER_GEO_500m=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625,0.00439453125];this.RESOLUTIONS_ON_SERVER_POLAR_500m=[8192,4096,2048,1024,512];this.TILEMATRIXSET_GEO_500m="EPSG4326_500m";this.RESOLUTIONS_ON_SERVER_GEO_1km=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125,0.0087890625];this.RESOLUTIONS_ON_SERVER_POLAR_1km=[8192,4096,2048,1024];this.TILEMATRIXSET_GEO_1km="EPSG4326_1km";this.RESOLUTIONS_ON_SERVER_GEO_2km=[0.5625,0.28125,0.140625,0.0703125,0.03515625,0.017578125];this.RESOLUTIONS_ON_SERVER_POLAR_2km=[8192,4096,2048];this.TILEMATRIXSET_GEO_2km="EPSG4326_2km";if(config===undefined){config={}}if(config.hasControls===undefined){config.hasControls=true}if(config.isSelectable===undefined){config.isSelectable=false}if(config.bbox===undefined){var curHour=new Date().getUTCHours();if(curHour<9){curHour=0}var minLon=20.6015625+curHour*(-200.53125/23);var maxLon=minLon+159.328125;config.bbox=minLon.toString()+",-46.546875,"+maxLon.toString()+",53.015625"}if(config.dataSourceUrl===undefined){config.dataSourceUrl=null}if(config.maxWidth===undefined){config.maxWidth=null}if(config.maxHeight===undefined){config.maxHeight=null}if(config.layers===undefined){config.layers=null}if(config.time===undefined){config.time=new Date();config.time=config.time.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(config.time.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(config.time.getUTCDate(),2)+"T"+SOTE.util.zeroPad(config.time.getUTCHours(),2)+":"+SOTE.util.zeroPad(config.time.getUTCMinutes(),2)+":"+SOTE.util.zeroPad(config.time.getUTCSeconds(),2)}if(config.baselayer===undefined){config.baselayer=null}this.hasControls=config.hasControls;this.isSelectable=config.isSelectable;this.bbox=config.bbox;this.value="";this.register=config.register;this.maxWidth=config.maxWidth;this.maxHeight=config.maxHeight;this.dataSourceUrl=config.dataSourceUrl;this.statusStr="";this.disabled=false;this.time=config.time;this.baseLayer=config.baseLayer;this.graticule=null;this.projection="EPSG:4326";this.init();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Map!")}this.isSoteMapDataCached=false;this.updateComponent("");if((this.time!=null)&&(this.baseLayer!=null)){this.activateRelevantLayersDisableTheRest([this.baseLayer],this.time)}this.setExtent(this.bbox);if(REGISTRY){REGISTRY.markComponentReady(this.id)}};SOTE.widget.Map.prototype.handleMapMoveEnd=function(b){var a=b.object.getExtent().transform(b.object.getProjectionObject(),new OpenLayers.Projection(this.projection)).toString();this.setValue(a);this.fire()};SOTE.widget.Map.prototype.activateRelevantLayersDisableTheRest=function(activeProductNames,time){var allLayers=this.getAllLayers();var nLayers=allLayers.length;var myDate=SOTE.util.UTCDateFromISO8601String(time);time=myDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(myDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(myDate.getUTCDate(),2);for(var i=0;i<nLayers;i++){var isLayerFound=false;for(var j=0;j<activeProductNames.length;j++){if((allLayers[i].name==new String(activeProductNames[j]+"__"+time))||(allLayers[i].name==new String(activeProductNames[j]))){allLayers[i].setVisibility(true);isLayerFound=true;if(j==0){this.map.setLayerZIndex(allLayers[i],0);allLayers[i].setOpacity(1)}else{if(this.checkWmsParam(allLayers[i].metadata.preferredOpacity)){allLayers[i].setOpacity(allLayers[i].metadata.preferredOpacity)}else{allLayers[i].setOpacity(this.DEFAULT_OVERLAY_OPACITY)}if(activeProductNames.length>2){this.map.setLayerZIndex(allLayers[i],nLayers-j)}}}}if(!isLayerFound){allLayers[i].setVisibility(false)}}};SOTE.widget.Map.prototype.init=function(){this.container.innerHTML="";var d=function(){window.scrollTo(0,0);document.body.style.height="100%";if(!(/(iphone|ipod)/.test(navigator.userAgent.toLowerCase()))){if(document.body.parentNode){document.body.parentNode.style.height="100%"}}};setTimeout(d,700);setTimeout(d,1500);this.map=document.createElement("div");this.map.setAttribute("id",this.id+"map");this.container.appendChild(this.map);if(this.projection=="EPSG:4326"){this.map=new OpenLayers.Map({div:this.containerId,theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-180,-1350,180,90),projection:this.projection,numZoomLevels:9,fractionalZoom:false,resolutions:this.RESOLUTIONS_ON_SCREEN_GEO_ALL,allOverlays:true,zoom:2})}else{this.map=new OpenLayers.Map({div:this.containerId,theme:null,controls:[],maxExtent:new OpenLayers.Bounds(-4194304,-4194304,4194304,4194304),projection:this.projection,resolutions:this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,allOverlays:true,zoom:2,units:"m",numZoomLevels:6,})}if(this.hasControls){var b=new OpenLayers.Control.ZoomIn();b.title="zoom in";b.displayClass="olControlZoomInCustom";b.id="zoomInCustomId";var c=new OpenLayers.Control.ZoomOut();c.title="zoom out";c.displayClass="olControlZoomOutCustom";c.id="zoomOutCustomId";var a=new OpenLayers.Control.Panel();a.displayClass="olControlZoomPanelCustom";a.addControls(b);a.addControls(c);this.map.addControl(a);this.map.addControl(new OpenLayers.Control.Navigation({dragPanOptions:{enableKinetic:true}}));this.map.addControl(new OpenLayers.Control.Attribution());this.map.addControl(new OpenLayers.Control.ScaleLine({displayClass:"olControlScaleLineCustom"}));this.addGraticuleLayer();var e=this.map.getControlsByClass("OpenLayers.Control.Navigation")[0];e.handlers.wheel.interval=100;e.handlers.wheel.cumulative=false}if(this.isSelectable){this.map.addControl(new OpenLayers.Control.ZoomBox())}if(this.projection=="EPSG:4326"){var f=new OpenLayers.Bounds.fromString("-230, -120, 230, 120",false).transform(new OpenLayers.Projection(this.projection),this.map.getProjectionObject());this.map.restrictedExtent=f}else{this.map.restrictedExtent=new OpenLayers.Bounds.fromString("-6500000,-5000000,6500000,5000000")}if((this.time!=null)&&(this.baseLayer!=null)&&(this.map.layers.length>0)){this.activateRelevantLayersDisableTheRest([this.baseLayer],this.time)}if(this.isSoteMapDataCached){if(this.projection=="EPSG:4326"){this.setExtent("-146.390625,-93.921875,146.390625,93.953125",true);this.fire()}else{this.setExtent("-4194304,-4194304,4194304,4194304",true);this.fire()}}this.map.events.register("moveend",this,this.handleMapMoveEnd)};SOTE.widget.Map.prototype.checkWmsParam=function(a){if((a===undefined)||(a==null)||(a=="")){return false}return true};SOTE.widget.Map.prototype.addLayers=function(d){for(var b=0;b<d.length;b++){if(!this.checkWmsParam(d[b].displayName)){d[b].displayName="unnamed"}if(!this.checkWmsParam(d[b].time)){d[b].time=""}if(!this.checkWmsParam(d[b].format)){d[b].format="image/jpeg"}if(!this.checkWmsParam(d[b].transparent)){d[b].transparent=true}if(!this.checkWmsParam(d[b].projection)){d[b].projection=this.projection}if(!this.checkWmsParam(d[b].numZoomLevels)){d[b].numZoomLevels=(this.projection=="EPSG:4326")?9:6}if(!this.checkWmsParam(d[b].maxExtent)){d[b].maxExtent=(this.projection=="EPSG:4326")?[-180,-1350,180,90]:[-4194304,-4194304,4194304,4194304]}if(!this.checkWmsParam(d[b].maxResolution)){d[b].maxResolution=(this.projection=="EPSG:4326")?0.5625:8192}if(!this.checkWmsParam(d[b].preferredOpacity)){d[b].preferredOpacity=this.DEFAULT_OVERLAY_OPACITY}if(!this.checkWmsParam(d[b].bringToFront)){d[b].bringToFront=false}if(!this.checkWmsParam(d[b].transitionEffect)){d[b].transitionEffect="resize"}if(!this.checkWmsParam(d[b].resolutions)){if(d[b].projection=="EPSG:4326"){d[b].resolutions=this.RESOLUTIONS_ON_SCREEN_GEO_ALL}else{d[b].resolutions=this.RESOLUTIONS_ON_SCREEN_POLAR_ALL}}if(!this.checkWmsParam(d[b].serverResolutions)){if(d[b].projection=="EPSG:4326"){d[b].serverResolutions=this.RESOLUTIONS_ON_SERVER_GEO_250m}else{d[b].serverResolutions=this.RESOLUTIONS_ON_SERVER_POLAR_250m}}if(!this.checkWmsParam(d[b].tileMatrixSet)){if(d[b].projection=="EPSG:4326"){d[b].tileMatrixSet=this.TILEMATRIXSET_GEO_250m}else{d[b].tileMatrixSet=this.TILEMATRIXSET_POLAR_250m}}if(!this.checkWmsParam(d[b].urls)){alert("invalid / no URL passed in for layer "+d[b].displayName);continue}if(!this.checkWmsParam(d[b].wmsProductName)){alert("invalid / unspecified WMS 'layer' parameter");continue}if(!this.checkWmsParam(d[b].tileSize)){var c=new OpenLayers.Layer.WMS(d[b].displayName,d[b].urls,{layers:d[b].wmsProductName,format:d[b].format,transparent:d[b].transparent,},{isBaseLayer:false,visibility:false,transitioneffect:d[b].transitionEffect,projection:d[b].projection,tileSize:new OpenLayers.Size(512,512),metadata:{preferredOpacity:d[b].preferredOpacity,bringToFront:d[b].bringToFront}});if(this.checkWmsParam(d[b].time)){c.mergeNewParams({time:d[b].time})}this.map.addLayer(c)}else{if(this.projection!="EPSG:4326"){this.map.addLayer(new OpenLayers.Layer.WMS(d[b].displayName,d[b].urls,{time:d[b].time,layers:d[b].wmsProductName,Format:d[b].format},{tileSize:new OpenLayers.Size(d[b].tileSize[0],d[b].tileSize[1]),buffer:0,transitionEffect:d[b].transitionEffect,projection:d[b].projection,numZoomLevels:d[b].numZoomLevels,maxExtent:new OpenLayers.Bounds(d[b].maxExtent[0],d[b].maxExtent[1],d[b].maxExtent[2],d[b].maxExtent[3]),maxResolution:d[b].maxResolution,resolutions:d[b].resolutions,serverResolutions:d[b].serverResolutions,visibility:false,metadata:{preferredOpacity:d[b].preferredOpacity,bringToFront:d[b].bringToFront}}))}else{var a=new OpenLayers.Layer.WMTS({name:d[b].displayName,url:d[b].urls,layer:d[b].wmsProductName,matrixSet:d[b].tileMatrixSet,format:d[b].format,buffer:0,style:"",opacity:d[b].preferredOpacity,transitionEffect:d[b].transitionEffect,projection:d[b].projection,numZoomLevels:d[b].numZoomLevels,maxResolution:d[b].maxResolution,resolutions:d[b].resolutions,serverResolutions:d[b].serverResolutions,visibility:false,metadata:{preferredOpacity:d[b].preferredOpacity,bringToFront:d[b].bringToFront},tileSize:new OpenLayers.Size(d[b].tileSize[0],d[b].tileSize[1]),maxExtent:new OpenLayers.Bounds(d[b].maxExtent[0],d[b].maxExtent[1],d[b].maxExtent[2],d[b].maxExtent[3]),isBaseLayer:false});a.mergeNewParams({time:d[b].time});this.map.addLayer(a)}}}if(this.graticule!=null){this.map.setLayerZIndex(this.graticule.gratLayer,this.getAllLayers().length-1)}};SOTE.widget.Map.prototype.addGraticuleLayer=function(){var a=new OpenLayers.Symbolizer.Line({strokeColor:"#AAAAAA",strokeOpacity:0.95,strokeWidth:1.35,strokeLinecap:"square",strokeDashstyle:"dot"});var b=new OpenLayers.Symbolizer.Text({fontFamily:"Gill Sans",fontSize:"16",fontWeight:"550",fontColor:"#0000e1",fontOpacity:1});this.graticule=new OpenLayers.Control.Graticule({layerName:"ol_graticule",numPoints:2,labelled:true,lineSymbolizer:a,labelSymbolizer:b});this.map.addControl(this.graticule)};SOTE.widget.Map.prototype.setValue=function(a){return this.setExtent(a)};SOTE.widget.Map.prototype.getValue=function(){return this.id+"="+this.value};SOTE.widget.Map.prototype.getAllLayers=function(){return this.map.layers};SOTE.widget.Map.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.Map.prototype.validate=function(){var b=this.map.getExtent();if(b==null){this.setStatus("Could not retrieve current extent");return false}var a=b.transform(this.map.getProjectionObject(),new OpenLayers.Projection(this.projection)).toString();if((a.left<-180)||(a.right>180)||(a.top>90)||(a.bottom<-90)){this.setStatus("Current extent is out of bounds");return false}return true};SOTE.widget.Map.prototype.setDataSourceUrl=function(a){};SOTE.widget.Map.prototype.getDataSourceUrl=function(){};SOTE.widget.Map.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Map.prototype.getStatus=function(){return this.statusStr};SOTE.widget.Map.prototype.setExtent=function(b,c){var a=new OpenLayers.Bounds.fromString(b,false).transform(new OpenLayers.Projection(this.projection),this.map.getProjectionObject());if(a==null){this.setStatus("Could not set extent");return false}if(b==this.value&&!c){return}this.value=b;this.map.zoomToExtent(a,true);return true};SOTE.widget.Map.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Map!")}};SOTE.widget.Map.prototype.updateComponent=function(a){};
\ No newline at end of file
diff --git a/js/mapSote-min.js b/js/mapSote-min.js
deleted file mode 100644
index 221a6b3ae..000000000
--- a/js/mapSote-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.MapSote");SOTE.widget.MapSote=function(a,b){SOTE.widget.Map.call(this,a,b);this.isLayerCachingEnabled=false;this.terribleQsSaver="";this.terribleQsSaverJustSet=false;this.terribleProductListSaver="";this.state="geographic";this.setExtent(this.bbox);this.initMapSote()};SOTE.widget.MapSote.prototype=new SOTE.widget.Map;SOTE.widget.MapSote.prototype.initMapSote=function(){this.isLayerCachingEnabled=false;this.terribleQsSaver="";this.terribleQsSaverJustSet=false;this.terribleProductListSaver="";this.map.events.register("movestart",this,this.handleMapMoveStart);this.map.events.register("zoomend",this,this.handleMapZoomEnd);this.handleMapZoomEnd(null);if(this.projection=="EPSG:4326"){var b=new Date().getUTCHours();if(b<9){b=0}var a=20.6015625+b*(-200.53125/23);var d=a+159.328125;var c=a.toString()+",-46.546875,"+d.toString()+",53.015625";this.setExtent(c,true);this.fire()}else{this.setExtent("-4194304,-4194304,4194304,4194304",true);this.fire()}};SOTE.widget.MapSote.prototype.setLayerCaching=function(a){this.isLayerCachingEnabled=a};SOTE.widget.MapSote.prototype.handleMapMoveStart=function(a){this.setLayerCaching(false);if(this.terribleQsSaver!=""){this.terribleQsSaverJustSet=true;this.updateComponent(this.terribleQsSaver)}};SOTE.widget.MapSote.prototype.handleMapZoomEnd=function(a){if(this.map.zoom==this.map.numZoomLevels-1){$(".olControlZoomInCustomItemInactive").css("background-color","rgba(38,38,38,0.3)");$(".olControlZoomInCustomItemInactive").css("color","#555555")}else{$(".olControlZoomInCustomItemInactive").css("background-color","rgba(45,45,45,0.75)");$(".olControlZoomInCustomItemInactive").css("color","#FFFFFF")}if(this.map.zoom==0){$(".olControlZoomOutCustomItemInactive").css("background-color","rgba(38,38,38,0.3)");$(".olControlZoomOutCustomItemInactive").css("color","#555555")}else{$(".olControlZoomOutCustomItemInactive").css("background-color","rgba(45,45,45,0.75)");$(".olControlZoomOutCustomItemInactive").css("color","#FFFFFF")}};SOTE.widget.MapSote.prototype.addProductToMap=function(c,b){var d=[];if(this.state=="geographic"){d=[SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_CorrectedReflectance_TrueColor","MODIS_Terra_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_SurfaceReflectance_Bands143","MODIS_Terra_SurfaceReflectance_Bands143","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_CorrectedReflectance_TrueColor","MODIS_Aqua_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_SurfaceReflectance_Bands143","MODIS_Aqua_SurfaceReflectance_Bands143","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_CorrectedReflectance_Bands721","MODIS_Terra_CorrectedReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_CorrectedReflectance_Bands721","MODIS_Aqua_CorrectedReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_SurfaceReflectance_Bands721","MODIS_Terra_SurfaceReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_SurfaceReflectance_Bands721","MODIS_Aqua_SurfaceReflectance_Bands721","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_CorrectedReflectance_Bands367","MODIS_Terra_CorrectedReflectance_Bands367","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_SurfaceReflectance_Bands121","MODIS_Terra_SurfaceReflectance_Bands121","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_SurfaceReflectance_Bands121","MODIS_Aqua_SurfaceReflectance_Bands121","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Data_No_Data","MODIS_Terra_Data_No_Data","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Data_No_Data","MODIS_Aqua_Data_No_Data","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_250m,this.TILEMATRIXSET_GEO_250m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Snow_Cover","MODIS_Terra_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Snow_Cover","MODIS_Aqua_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_500m,this.TILEMATRIXSET_GEO_500m),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Sea_Ice","MODIS_Terra_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Sea_Ice","MODIS_Aqua_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Land_Surface_Temp_Day","MODIS_Terra_Land_Surface_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Land_Surface_Temp_Day","MODIS_Aqua_Land_Surface_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Land_Surface_Temp_Night","MODIS_Terra_Land_Surface_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Land_Surface_Temp_Night","MODIS_Aqua_Land_Surface_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Brightness_Temp_Band31_Day","MODIS_Terra_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Brightness_Temp_Band31_Day","MODIS_Aqua_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Brightness_Temp_Band31_Night","MODIS_Terra_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Brightness_Temp_Band31_Night","MODIS_Aqua_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Aerosol","MODIS_Terra_Aerosol","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Aerosol","MODIS_Aqua_Aerosol","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Water_Vapor_5km_Day","MODIS_Terra_Water_Vapor_5km_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Water_Vapor_5km_Day","MODIS_Aqua_Water_Vapor_5km_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Water_Vapor_5km_Night","MODIS_Terra_Water_Vapor_5km_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Water_Vapor_5km_Night","MODIS_Aqua_Water_Vapor_5km_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Cloud_Top_Pressure_Day","MODIS_Terra_Cloud_Top_Pressure_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Cloud_Top_Pressure_Day","MODIS_Aqua_Cloud_Top_Pressure_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Cloud_Top_Pressure_Night","MODIS_Terra_Cloud_Top_Pressure_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Cloud_Top_Pressure_Night","MODIS_Aqua_Cloud_Top_Pressure_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Cloud_Top_Temp_Day","MODIS_Terra_Cloud_Top_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Cloud_Top_Temp_Day","MODIS_Aqua_Cloud_Top_Temp_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Terra_Cloud_Top_Temp_Night","MODIS_Terra_Cloud_Top_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"MODIS_Aqua_Cloud_Top_Temp_Night","MODIS_Aqua_Cloud_Top_Temp_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_Dust_Score","AIRS_Dust_Score","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_CO_Total_Column_Day","AIRS_CO_Total_Column_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_CO_Total_Column_Night","AIRS_CO_Total_Column_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_Prata_SO2_Index_Day","AIRS_Prata_SO2_Index_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_Prata_SO2_Index_Night","AIRS_Prata_SO2_Index_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_Precipitation_Day","AIRS_Precipitation_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"AIRS_Precipitation_Night","AIRS_Precipitation_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_Cloud_Pressure","OMI_Cloud_Pressure","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_Aerosol_Index","OMI_Aerosol_Index","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_Aerosol_Optical_Depth","OMI_Aerosol_Optical_Depth","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_Absorbing_Aerosol_Optical_Depth","OMI_Absorbing_Aerosol_Optical_Depth","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_SO2_Lower_Troposphere","OMI_SO2_Lower_Troposphere","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_SO2_Middle_Troposphere","OMI_SO2_Middle_Troposphere","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_SO2_Upper_Troposphere_and_Stratosphere","OMI_SO2_Upper_Troposphere_and_Stratosphere","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OMI_SO2_Planetary_Boundary_Layer","OMI_SO2_Planetary_Boundary_Layer","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_2km,this.TILEMATRIXSET_GEO_2km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OBPG_MODIS_Aqua_Chlorophyll_A","OBPG_MODIS_Aqua_Chlorophyll_A","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateProductLayersForDateRangeTMS(c,"OBPG_SeaSurfaceTemperature_11_Day","OBPG_SeaSurfaceTemperature_11_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],[512,512],"EPSG:4326",9,[-180,-1350,180,90],0.5625,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_GEO_ALL,this.RESOLUTIONS_ON_SERVER_GEO_1km,this.TILEMATRIXSET_GEO_1km),SOTE.util.generateWmsProductLayersForDateRange(c,"MODIS_Fires_All","MODIS_Fires_All","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"MODIS_Fires_Terra","MODIS_Fires_Terra","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"MODIS_Fires_Aqua","MODIS_Fires_Aqua","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"Terra_Orbit_Asc","Terra_Orbit_Asc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"Terra_Orbit_Dsc","Terra_Orbit_Dsc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"Aqua_Orbit_Asc","Aqua_Orbit_Asc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"Aqua_Orbit_Dsc","Aqua_Orbit_Dsc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"Aura_Orbit_Asc","Aura_Orbit_Asc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),SOTE.util.generateWmsProductLayersForDateRange(c,"Aura_Orbit_Dsc","Aura_Orbit_Dsc","image/png",["http://map2a.vis.earthdata.nasa.gov/wms/wms.php","http://map2b.vis.earthdata.nasa.gov/wms/wms.php","http://map2c.vis.earthdata.nasa.gov/wms/wms.php"],"EPSG:4326",1,true,this.NUM_DAYS_TO_GENERATE),(c=="sedac_bound")?[{displayName:"sedac_bound",wmsProductName:"sedac_bound",time:"",format:"image/png",urls:["http://map1a.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1b.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi","http://map1c.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],tileSize:[512,512],projection:"EPSG:4326",numZoomLevels:9,maxExtent:[-180,-1350,180,90],maxResolution:0.5625,preferredOpacity:0.9,bringToFront:true,transitionEffect:"none"}]:[],(c=="MODIS_Land_Water_Mask")?[{displayName:"MODIS_Land_Water_Mask",wmsProductName:"MODIS_Land_Water_Mask",time:"",format:"image/png",urls:["http://map1.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],tileSize:[512,512],projection:"EPSG:4326",numZoomLevels:9,maxExtent:[-180,-1350,180,90],maxResolution:0.5625,preferredOpacity:0.75,bringToFront:true}]:[],(c=="VIIRS_CityLights_2012")?[{displayName:"VIIRS_CityLights_2012",wmsProductName:"VIIRS_CityLights_2012",time:"",format:"image/jpeg",urls:["http://map1.vis.earthdata.nasa.gov/wmts-geo/wmts.cgi"],tileSize:[512,512],projection:"EPSG:4326",numZoomLevels:9,maxExtent:[-180,-1350,180,90],maxResolution:0.5625,resolutions:this.RESOLUTIONS_ON_SCREEN_GEO_ALL,serverResolutions:this.RESOLUTIONS_ON_SERVER_GEO_500m,tileMatrixSet:this.TILEMATRIXSET_GEO_500m,preferredOpacity:1,bringToFront:true}]:[],(c=="grump-v1-population-count_2000")?[{displayName:"grump-v1-population-count_2000",wmsProductName:"grump-v1-population-count_2000",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.55}]:[],(c=="ndh-cyclone-hazard-frequency-distribution")?[{displayName:"ndh-cyclone-hazard-frequency-distribution",wmsProductName:"ndh-cyclone-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-cyclone-proportional-economic-loss-risk-deciles")?[{displayName:"ndh-cyclone-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-cyclone-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-cyclone-mortality-risks-distribution")?[{displayName:"ndh-cyclone-mortality-risks-distribution",wmsProductName:"ndh-cyclone-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-flood-hazard-frequency-distribution")?[{displayName:"ndh-flood-hazard-frequency-distribution",wmsProductName:"ndh-flood-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-flood-proportional-economic-loss-risk-deciles")?[{displayName:"ndh-flood-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-flood-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-flood-mortality-risks-distribution")?[{displayName:"ndh-flood-mortality-risks-distribution",wmsProductName:"ndh-flood-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-drought-hazard-frequency-distribution")?[{displayName:"ndh-drought-hazard-frequency-distribution",wmsProductName:"ndh-drought-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-drought-proportional-economic-loss-risk-deciles")?[{displayName:"ndh-drought-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-drought-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-drought-mortality-risks-distribution")?[{displayName:"ndh-drought-mortality-risks-distribution",wmsProductName:"ndh-drought-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-volcano-hazard-frequency-distribution")?[{displayName:"ndh-volcano-hazard-frequency-distribution",wmsProductName:"ndh-volcano-hazard-frequency-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-volcano-proportional-economic-loss-risk-deciles")?[{displayName:"ndh-volcano-proportional-economic-loss-risk-deciles",wmsProductName:"ndh-volcano-proportional-economic-loss-risk-deciles",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="ndh-volcano-mortality-risks-distribution")?[{displayName:"ndh-volcano-mortality-risks-distribution",wmsProductName:"ndh-volcano-mortality-risks-distribution",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],projection:"EPSG:4326",preferredOpacity:0.75}]:[],(c=="cartographic:esri-administrative-boundaries_level-1")?[{displayName:"cartographic:esri-administrative-boundaries_level-1",wmsProductName:"cartographic:esri-administrative-boundaries_level-1",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"cartographic:esri-administrative-boundaries_level-1",transparent:true,projection:"EPSG:4326",preferredOpacity:0.55,bringToFront:true}]:[],(c=="gpw-v3-coastlines")?[{displayName:"gpw-v3-coastlines",wmsProductName:"gpw-v3-coastlines",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"gpw-v3-coastlines",transparent:true,projection:"EPSG:4326",preferredOpacity:0.85,bringToFront:true}]:[],(c=="cartographic:00-global-labels")?[{displayName:"cartographic:00-global-labels",wmsProductName:"cartographic:00-global-labels",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"cartographic:00-global-labels",transparent:true,projection:"EPSG:4326",preferredOpacity:0.95,bringToFront:true}]:[]]}else{if(this.state=="arctic"){d=[SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_CorrectedReflectance_TrueColor","MODIS_Terra_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_CorrectedReflectance_TrueColor","MODIS_Aqua_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_CorrectedReflectance_Bands367","MODIS_Terra_CorrectedReflectance_Bands367","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Brightness_Temp_Band31_Day","MODIS_Terra_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Brightness_Temp_Band31_Night","MODIS_Terra_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Brightness_Temp_Band31_Day","MODIS_Aqua_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Brightness_Temp_Band31_Night","MODIS_Aqua_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Snow_Cover","MODIS_Terra_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Snow_Cover","MODIS_Aqua_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Sea_Ice","MODIS_Terra_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Sea_Ice","MODIS_Aqua_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],[512,512],"EPSG:3995",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),(c=="grump-v1-population-count_2000")?[{displayName:"grump-v1-population-count_2000",wmsProductName:"grump-v1-population-count_2000",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],projection:"EPSG:3995",preferredOpacity:0.75,bringToFront:true}]:[],(c=="polarview:graticuleN")?[{displayName:"polarview:graticuleN",wmsProductName:"polarview:graticuleN",time:"",urls:["http://geos.polarview.aq/geoserver/wms?"],layers:"polarview:graticuleN",transparent:true,projection:"EPSG:3995",preferredOpacity:0.75,bringToFront:true}]:[],(c=="cartographic:national-boundaries")?[{displayName:"cartographic:national-boundaries",wmsProductName:"cartographic:national-boundaries",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],layers:"cartographic:national-boundaries",transparent:true,projection:"EPSG:3995",preferredOpacity:0.55,bringToFront:true}]:[],(c=="arctic_coastlines")?[{displayName:"arctic_coastlines",wmsProductName:"arctic_coastlines",time:"",format:"image/png",urls:["http://map1a.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/arctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/arctic/wms.cgi"],tileSize:[512,512],projection:"EPSG:3995",numZoomLevels:6,maxExtent:[-4194304,-4194304,4194304,4194304],maxResolution:8192,preferredOpacity:1,bringToFront:true,transitionEffect:"none"}]:[],(c=="cartographic:00-global-labels")?[{displayName:"cartographic:00-global-labels",wmsProductName:"cartographic:00-global-labels",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],layers:"cartographic:00-global-labels",transparent:true,projection:"EPSG:3995",preferredOpacity:0.95,bringToFront:true}]:[]]}else{if(this.state=="antarctic"){d=[SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_CorrectedReflectance_TrueColor","MODIS_Terra_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_CorrectedReflectance_TrueColor","MODIS_Aqua_CorrectedReflectance_TrueColor","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_CorrectedReflectance_Bands367","MODIS_Terra_CorrectedReflectance_Bands367","image/jpeg",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_250m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Brightness_Temp_Band31_Day","MODIS_Terra_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Brightness_Temp_Band31_Night","MODIS_Terra_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Brightness_Temp_Band31_Day","MODIS_Aqua_Brightness_Temp_Band31_Day","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Brightness_Temp_Band31_Night","MODIS_Aqua_Brightness_Temp_Band31_Night","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Snow_Cover","MODIS_Terra_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Snow_Cover","MODIS_Aqua_Snow_Cover","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_500m),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Terra_Sea_Ice","MODIS_Terra_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"MODIS_Aqua_Sea_Ice","MODIS_Aqua_Sea_Ice","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),SOTE.util.generateProductLayersForDateRange(c,"NSIDC_Sea_Ice_Concentration","NSIDC_Sea_Ice_Concentration","image/png",["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],[512,512],"EPSG:3031",6,[-4194304,-4194304,4194304,4194304],8192,1,this.NUM_DAYS_TO_GENERATE,this.RESOLUTIONS_ON_SCREEN_POLAR_ALL,this.RESOLUTIONS_ON_SERVER_POLAR_1km),(c=="grump-v1-population-count_2000")?[{displayName:"grump-v1-population-count_2000",wmsProductName:"grump-v1-population-count_2000",time:"",format:"image/png",urls:["http://sedac.ciesin.columbia.edu/geoserver/wms?"],projection:"EPSG:3031",preferredOpacity:0.75,bringToFront:true}]:[],(c=="polarview:graticule3031_10x30")?[{displayName:"polarview:graticule3031_10x30",wmsProductName:"polarview:graticule3031_10x30",time:"",urls:["http://geos.polarview.aq/geoserver/wms?"],layers:"polarview:graticule3031_10x30",transparent:true,projection:"EPSG:3031",preferredOpacity:0.75,bringToFront:true}]:[],(c=="cartographic:national-boundaries")?[{displayName:"cartographic:national-boundaries",wmsProductName:"cartographic:national-boundaries",time:"",urls:["http://sedac.ciesin.columbia.edu/geoserver/ows"],layers:"cartographic:national-boundaries",transparent:true,projection:"EPSG:3031",preferredOpacity:0.55,bringToFront:true}]:[],(c=="antarctic_coastlines")?[{displayName:"antarctic_coastlines",wmsProductName:"antarctic_coastlines",time:"",format:"image/png",urls:["http://map1a.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1b.vis.earthdata.nasa.gov/antarctic/wms.cgi","http://map1c.vis.earthdata.nasa.gov/antarctic/wms.cgi"],tileSize:[512,512],projection:"EPSG:3031",numZoomLevels:6,maxExtent:[-4194304,-4194304,4194304,4194304],maxResolution:8192,preferredOpacity:1,bringToFront:true,transitionEffect:"none"}]:[],(c=="lat_long_grid")?[{displayName:"lat_long_grid",wmsProductName:"lat_long_grid",time:"",urls:["http://nsidc.org/cgi-bin/atlas_south?"],layers:"lat_long_grid",transparent:true,projection:"EPSG:3031",preferredOpacity:0.85,bringToFront:true}]:[],(c=="coastlines")?[{displayName:"coastlines",wmsProductName:"coastlines",time:"",urls:["http://nsidc.org/cgi-bin/atlas_south?"],layers:"coastlines",transparent:true,projection:"EPSG:3031",preferredOpacity:0.95,bringToFront:true}]:[]]}}}for(var a=0;a<d.length;a++){if(d[a].length>0){this.addLayers(d[a])}}};SOTE.widget.MapSote.prototype.manageLoadedLayers=function(n){var b=(SOTE.util.extractFromQuery("switch",n))?SOTE.util.extractFromQuery("switch",n):"geographic";if(b!=this.state){this.state=b;if(this.state=="geographic"){this.projection="EPSG:4326"}else{if(this.state=="antarctic"){this.projection="EPSG:3031"}else{if(this.state=="arctic"){this.projection="EPSG:3995"}}}this.init();this.initMapSote()}var c=false;var g=(SOTE.util.extractFromQuery("products",n));if(g!=this.terribleProductListSaver){c=true;this.terribleProductListSaver=g}if(c){var f=[];var d=g.split("~");var m=d[0];var h=d[1];if(m.split(".").length>1){f.push((m.split("."))[1])}var a=h?h.split(".").length-1:0;if(a>0){for(var l=0;l<a;l++){f.push((h.split("."))[l+1])}}if(typeof String.prototype.startsWith!="function"){String.prototype.startsWith=function(i){return this.slice(0,i.length)==i}}var e=[];for(var l=0;l<f.length;l++){var o=false;for(var k=0;k<this.map.layers.length;k++){if(this.map.layers[k].name.startsWith(f[l])){o=true;break}}if(!o){e.push(f[l])}}for(var l=0;l<e.length;l++){this.addProductToMap(e[l],b)}}};SOTE.widget.MapSote.prototype.updateComponent=function(h){var g=(SOTE.util.extractFromQuery("switch",h))?SOTE.util.extractFromQuery("switch",h):"geographic";this.manageLoadedLayers(h);var b=(h===undefined)?"":h;if(b==""){return}if(!this.terribleQsSaverJustSet){this.setLayerCaching(true)}else{this.terribleQsSaverJustSet=false}var o=SOTE.util.extractFromQuery("products",b);var v=SOTE.util.extractFromQuery("transition",b);var z=SOTE.util.extractFromQuery("time",b);var A=new Array();if(o!=""){var D=o.split("~");var k=D[0].split(".");var F=D[1].split(".");for(var y=1;y<k.length;++y){A.push(k[y])}for(var y=1;y<F.length;++y){A.push(F[y])}}if((A==null)||(A.length<1)){return}var d=null;if(z!=""){d=z.split(/T/)}if((d==null)||(d.length!=2)){alert("Invalid or no time provided in querystring to soteMap class; needs to be of the format YYYY-MM-DDTHH:MM:SS");return}var e=d[0];var f=d[1];var q=e.split("-")[0];var C=e.split("-")[1];var x=e.split("-")[2];var l=f.split(":")[0];var s=f.split(":")[1];var B=f.split(":")[2];var p=new String(e);var t=Date.parse(p).add(1).days();var n=new String(t.getFullYear()+"-"+SOTE.util.zeroPad(t.getMonth()+1,2)+"-"+SOTE.util.zeroPad(t.getDate(),2));var r=l/24+s/1440+B/86400;this.terribleQsSaver=b;if(v=="standard"){var c=null;c=new String(p);var m=this.getAllLayers();var u=m.length;for(var y=0;y<u;y++){var E=false;for(var w=0;w<A.length;w++){if((m[y].name==new String(A[w]+"__"+c))||(m[y].name==new String(A[w]))){m[y].setVisibility(true);if(w==0){this.map.setLayerZIndex(m[y],0);m[y].setOpacity(1)}else{if(this.checkWmsParam(m[y].metadata.bringToFront)&&m[y].metadata.bringToFront){this.map.setLayerZIndex(m[y],u-1)}if(this.checkWmsParam(m[y].metadata.preferredOpacity)){m[y].setOpacity(m[y].metadata.preferredOpacity)}else{m[y].setOpacity(this.DEFAULT_OVERLAY_OPACITY)}if(A.length>2){this.map.setLayerZIndex(m[y],u-w)}}E=true}}if(!E){if(!this.isLayerCachingEnabled){m[y].setVisibility(false)}m[y].setOpacity(0)}}}else{if(v=="crossfade"){alert("crossfade transition not yet supported");return}}};
\ No newline at end of file
diff --git a/js/menuPicker-min.js b/js/menuPicker-min.js
deleted file mode 100644
index 6f77ed52c..000000000
--- a/js/menuPicker-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.MenuPicker");SOTE.widget.MenuPicker.prototype=new SOTE.widget.Component;SOTE.widget.MenuPicker=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!");return}this.id=a;if(b===undefined){b={}}if(b.isCollapsible===undefined){b.isCollapsible=false}if(b.dataSourceUrl===undefined){b.dataSourceUrl=null}this.selectedValue=null;this.menuIsCollapsible=b.isCollapsible;this.dataSourceUrl=b.dataSourceUrl;this.initRenderComplete=false;this.statusStr="";this.init()};SOTE.widget.MenuPicker.prototype.init=function(){this.updateComponent();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY so could not register MenuPicker")}};SOTE.widget.MenuPicker.prototype.render=function(){this.container.innerHTML="";$("#"+this.id).undelegate("click");var a=document.createElement("ul");var d="menuPicker";if(this.menuIsCollapsible===true){d+=" collapsible"}a.setAttribute("class",d);for(var c=0;c<this.menuItems.length;c++){var b=this.id+"_item"+c;this.menuItems[c].liID=b;var e=document.createElement("li");e.setAttribute("id",b);e.innerHTML="<div>"+this.menuItems[c].label+"</div>";if((this.selectedValue!==null)&&(this.menuItems[c].value===this.selectedValue)){this.setValue(this.menuItems[c].value);e.setAttribute("class","selected")}a.appendChild(e);if(this.menuItems[c].disabled!==true){$("#"+this.id).delegate("#"+b,"click",{val:this.menuItems[c].value,self:this},SOTE.widget.MenuPicker.bindClick)}else{e.setAttribute("class","disabled")}}if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}this.container.appendChild(a)};SOTE.widget.MenuPicker.bindClick=function(a){a.data.self.setValue(a.data.val)};SOTE.widget.MenuPicker.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY so no event REGISTRY event to fire")}};SOTE.widget.MenuPicker.prototype.setValue=function(d){var c=this.selectedValue;var b=this.selectedId;this.selectedValue=d;var a=this.validate();if(a){$("#"+b).removeClass("selected");$("#"+this.selectedId).addClass("selected")}else{this.selectedValue=c}this.fire();return a};SOTE.widget.MenuPicker.prototype.getValue=function(){return this.id+"="+this.selectedValue};SOTE.widget.MenuPicker.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;if(this.dataSourceUrl!==null){SOTE.util.getJSON(this.dataSourceUrl+"?"+a,{self:this},SOTE.widget.MenuPicker.handleUpdateSuccess,SOTE.widget.MenuPicker.handleUpdateFailure)}};SOTE.widget.MenuPicker.handleUpdateSuccess=function(d,a,e,b){var c=SOTE.util.extractFromQuery(b.self.id,b.self.getValue());b.self.menuItems=d.items;b.self.selectedValue=d.selected;if(!b.self.setValue(c)){b.self.value=null}b.self.render()};SOTE.widget.MenuPicker.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.MenuPicker.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.MenuPicker.prototype.validate=function(){var c=false;var a=false;for(var b=0;b<this.menuItems.length;b++){if((this.menuItems[b].value===this.selectedValue)&&(this.menuItems[b].disabled!==true)){c=true;a=true;this.selectedId=this.menuItems[b].liID;break}else{if(this.menuItems[b].value===this.selectedValue){this.setStatus("List item with value = "+this.menuItems[b].value+" is disabled");a=true;break}}}if(a==false){this.setStatus("List item value = "+this.selectedValue+" is not valid")}return c};SOTE.widget.MenuPicker.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.MenuPicker.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.MenuPicker.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.MenuPicker.prototype.getStatus=function(){return this.statusStr};SOTE.widget.MenuPicker.prototype.addItem=function(a){};SOTE.widget.MenuPicker.prototype.removeItem=function(a){};SOTE.widget.MenuPicker.prototype.length=function(){};
\ No newline at end of file
diff --git a/js/registry-min.js b/js/registry-min.js
deleted file mode 100644
index 69eceb417..000000000
--- a/js/registry-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("util");SOTE.util.Registry=function(){this.compRegistry=new Array();this.evtRegistry=new Array();this.consumers=new Array();this.readyRegistry=new Array();this.allReadyCallbacks=new Array();this.register=function a(x,v){var w=new h(x,v);this.storeComponent(x,w)};function h(w,v){this.name=w;this.obj=v;return this}function c(w,v){this.consumerId=w;this.producerId=v;return this}this.addEventListener=function i(z,w){if(w!=null||w!="undefined"||w!=""){for(var x=1;x<arguments.length;x++){var v=new t(z,arguments[x]);var y=new n(arguments[x],v);this.storeEvent(z,v);this.consumers.push(new c(arguments[x],z))}}};this.storeEvent=function g(w,v){this.evtRegistry.push(v)};this.getEvents=function u(x){var w=new Array();for(var v=0;v<this.evtRegistry.length;v++){if(x==this.evtRegistry[v].name){w.push(this.evtRegistry[v])}}return w};this.fire=function o(w,v){if(v==null){v="norecurse=xxx"}if(w!=null){var B=this.getEvents(this.getComponentId(w));if(B.length>0){var A=new Array();for(var z=0;z<B.length;z++){A=this.getConsumers(B[z].consumerId);var y="";for(var x=0;x<A.length;x++){if(A[x]==this.getComponentId(w)){y=A[x];break}}if(B[z].consumerId!=v.split("=")[1]){B[z].componentUpdate.fire(w.getValue())}}}}else{alert("Registry: fire: comp is null")}};this.syncComponents=function(){var y=this.getComponents();var v=new Array();var w;for(var x=0;x<y.length;x++){w=this.getProducers(y[x].id);if(w.length>0){v=v.concat(w)}}for(var x=0;x<v.length;x++){this.fire(this.getComponent(v[x]))}};this.getDependentValues=function(v,x){var y="";for(var w=0;w<this.consumers.length;w++){if(this.consumers[w].consumerId==v&&this.consumers[w].producerId!=x){y+=this.getComponent(this.consumers[w].producerId).getValue()+"&"}}y=y.substring(0,y.length-1);return y};function t(w,v){this.name=w;this.consumerId=v;this.componentUpdate=new YAHOO.util.CustomEvent("componentUpdate",this);return this}function n(w,v){this.name=w;this.evtObj=v;this.evtObj.componentUpdate.subscribe(this.onComponentUpdate,this);return this}n.prototype.onComponentUpdate=function(y,w,z){var x=getRegistryDependentValues(z.name,this.name);if(x!=""){w=w+"&"+x}var v=getGComponent(z.name);if(v!=null){v.updateComponent(w)}};this.addConsumer=function d(w){var x;for(var v=0;v<this.consumers.length;v++){x=this.consumers[v];if(w.id==x.id){this.consumers.splice(v,1);break}}this.consumers.push(w)};this.getConsumer=function l(x){var w;for(var v=0;v<this.consumers.length;v++){w=this.consumers[v];if(x==w.id){break}}return w};this.storeComponent=function b(w,v){var y;for(var x=0;x<this.compRegistry.length;x++){y=this.compRegistry[x];if(w==y.name){this.compRegistry.splice(x,1);break}}this.compRegistry.push(v)};this.getComponent=function j(x){var w;for(var v=0;v<this.compRegistry.length;v++){w=this.compRegistry[v];if(x==w.name){break}}return w.obj};this.getComponentId=function m(w){var x;for(var v=0;v<this.compRegistry.length;v++){x=this.compRegistry[v];if(w==x.obj){break}}return x.name};this.getComponents=function k(){var v=new Array();for(var w=0;w<this.compRegistry.length;w++){v.push(this.compRegistry[w])}return v};this.checkComponentsReady=function q(){var y=true;var A=this.getComponents();for(var w=0;w<A.length;w++){if(A[w].obj.loadFromQuery==undefined){continue}var x=false;for(var v=0;v<this.readyRegistry.length;v++){if(this.readyRegistry[v]==A[w].name){x=true}}if(!x){y=false;break}}if(y){for(var w=0;w<this.allReadyCallbacks.length;w++){var z=this.allReadyCallbacks[w];z()}}};this.addAllReadyCallback=function p(v){this.allReadyCallbacks.push(v);this.checkComponentsReady()};this.markComponentReady=function s(v){this.readyRegistry.push(v);this.checkComponentsReady()};this.getUIComponents=function f(){var w=this.getComponents();var v=new Array();for(var x=0;x<w.length;x++){if(w[x].obj.loadFromQuery){v.push(w[x].obj)}}return v};this.getProducers=function e(w){var v=new Array();for(var x=0;x<this.consumers.length;x++){if(this.consumers[x].consumerId==w){v.push(this.consumers[x].producerId)}}return v};this.getConsumers=function r(x){var w=new Array();for(var v=0;v<this.consumers.length;v++){if(this.consumers[v].producerId==x){w.push(this.consumers[v].consumerId)}}return w}};var REGISTRY=new SOTE.util.Registry();function getGComponent(a){return REGISTRY.getComponent(a)}function getRegistryDependentValues(b,a){return REGISTRY.getDependentValues(b,a)};
\ No newline at end of file
diff --git a/js/rubberBand-min.js b/js/rubberBand-min.js
deleted file mode 100644
index 104f5d2e2..000000000
--- a/js/rubberBand-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.RubberBand");SOTE.widget.RubberBand=function(a,b){this.container=document.getElementById(a);this.coords=null;if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}if(b===undefined){b={}}this.icon=b.icon;this.onicon=b.onicon;this.cropee=b.cropee;this.projectionSwitch="geographic";this.id=a;this.state="off";this.jcropAPI=null;this.init()};SOTE.widget.RubberBand.prototype=new SOTE.widget.Component;SOTE.widget.RubberBand.prototype.init=function(){this.container.setAttribute("class","rubberband");this.container.innerHTML="<a id='"+this.id+"camera_link' class='toolbaricon'><img src='"+this.icon+"' /></a>";$("#"+this.id+"camera_link").bind("click",{self:this},SOTE.widget.RubberBand.toggle);if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register Rubber Band!")}};SOTE.widget.RubberBand.toggle=function(b){var a=b.data.self;if(a.state=="off"){a.state="on";$("#"+a.id+"camera_link img").attr("src",a.onicon);$("#imagedownload").show("slide",{direction:"up"},1000);a.draw()}else{a.state="off";$("#"+a.id+"camera_link img").attr("src",a.icon);a.jcropAPI.destroy();$("#imagedownload").hide("slide",{direction:"up"},1000)}};SOTE.widget.RubberBand.prototype.setValue=function(a){this.coords=a;this.fire()};SOTE.widget.RubberBand.prototype.getValue=function(){if(this.coords){var a=this.id+"="+this.coords.x+","+this.coords.y+","+this.coords.x2+","+this.coords.y2+","+this.coords.w+","+this.coords.h;return a}else{return}};SOTE.widget.RubberBand.prototype.updateComponent=function(a){this.projectionSwitch=SOTE.util.extractFromQuery("switch",a)};SOTE.widget.RubberBand.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.RubberBand.prototype.validate=function(){};SOTE.widget.RubberBand.prototype.setSourceUrl=function(a){};SOTE.widget.RubberBand.prototype.getSourceUrl=function(){};SOTE.widget.RubberBand.prototype.setStatus=function(a){};SOTE.widget.RubberBand.prototype.getStatus=function(){};SOTE.widget.RubberBand.prototype.draw=function(){if(this.projectionSwitch!="geographic"){alert("The download feature is currently available for geograpic projection only.");return -1}var a=this;$("#"+this.cropee).Jcrop({bgColor:"black",bgOpacity:0.3,onSelect:function(b){SOTE.widget.RubberBand.handleChange(b,a)},onChange:function(b){SOTE.widget.RubberBand.handleChange(b,a)},fullScreen:true});this.jcropAPI=$("#"+this.cropee).data("Jcrop");this.jcropAPI.setSelect([($(window).width()/2)-100,($(window).height()/2)-100,($(window).width()/2)+100,($(window).height()/2)+100])};SOTE.widget.RubberBand.handleChange=function(b,a){a.setValue(b)};SOTE.widget.RubberBand.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Map!")}};
\ No newline at end of file
diff --git a/js/selector-min.js b/js/selector-min.js
deleted file mode 100644
index f79a847a7..000000000
--- a/js/selector-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.Selector");SOTE.widget.Selector.prototype=new SOTE.widget.Component;SOTE.widget.Selector=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}if(b.categories===undefined){b.categories=["Category 1","Category 2"]}if(b.state===undefined){b.state="geographic"}this.values=new Object;this.state=b.state;this.meta=new Object;this.categories=b.categories;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.Selector.prototype.init=function(){this.loadData();if(REGISTRY){REGISTRY.register(this.id,this)}else{alert("No REGISTRY found! Cannot register Selector!")}};SOTE.widget.Selector.prototype.loadData=function(){SOTE.util.getJSON("data/"+this.state+"_"+this.dataSourceUrl,{self:this},SOTE.widget.Selector.handleLoadSuccess,SOTE.widget.Selector.handleUpdateFailure)};SOTE.widget.Selector.handleLoadSuccess=function(d,a,e,c){var b=c.self;b.data=d;b.render()};SOTE.widget.Selector.prototype.render=function(){this.container.innerHTML="";$("#"+this.id).addClass("selector");var d=document.createElement("ul");d.setAttribute("class","toplevel");var a=document.createElement("div");var h=document.createElement("h2");h.innerHTML="Choose Your Interest Area";a.appendChild(h);this.container.appendChild(a);var f=0;for(var c in this.data){f++;if(c!=="All"&&c!=="palettes"){var b=document.createElement("li");var g=c.replace(/\s/g,"");itemLink=document.createElement("a");itemLink.setAttribute("id",g);itemLink.innerHTML="<img src='images/"+g.toLowerCase()+".png' /><p>"+c+"</p>";b.appendChild(itemLink);d.appendChild(b);$("#"+this.id).delegate("#"+g,"click",{self:this,category:c},SOTE.widget.Selector.loadCategory)}}if(f<=2){SOTE.widget.Selector.loadCategory({data:{self:this,category:"All"},back:true});return}this.container.appendChild(d);var e=document.createElement("a");e.setAttribute("id","subfront");e.setAttribute("class","flowbutton");e.setAttribute("href","javascript:void(0);");e.innerHTML="<b>skip this step</b> to see all available layers >>";this.container.appendChild(e);$("#"+this.id).delegate("#subfront","click",{self:this,category:"All"},SOTE.widget.Selector.loadCategory);if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true;REGISTRY.markComponentReady(this.id)}};SOTE.widget.Selector.callRender=function(a){a.data.self.openCat=null;a.data.self.render()};SOTE.widget.Selector.prototype.reloadCategory=function(){var a=new Object;a.data=new Object;a.data.self=this;a.data.category=this.openCat;SOTE.widget.Selector.loadCategory(a)};SOTE.widget.Selector.loadCategory=function(q){var l=q.data.self;var g=q.data.category;l.openCat=g;var o=(q.back)?false:true;var n=new Object;l.container.innerHTML="";var t=document.createElement("div");var u=document.createElement("h2");u.innerHTML="Choose Your Layers: "+g;t.appendChild(u);l.container.appendChild(t);var d=document.createElement("form");for(var p=0;p<l.categories.length;p++){var r=l.categories[p].replace(/\s/g,"");n[r.toLowerCase()]=document.createElement("ul");n[r.toLowerCase()].setAttribute("id",l.id+r.toLowerCase());n[r.toLowerCase()].setAttribute("class","category");var m=document.createElement("li");var k=document.createElement("h3");k.setAttribute("class","head");k.innerHTML=l.categories[p];m.appendChild(k);n[r.toLowerCase()].appendChild(m)}for(var p=0;p<l.data[g].length;p++){var s=l.data[g][p];var j=document.createElement("li");j.setAttribute("class","selectorItem item");var b=document.createElement("h4");var c=s.value.replace(/:/g,"colon");b.innerHTML=s.label;var h=document.createElement("p");h.innerHTML=s.sublabel;var a=document.createElement("input");if(s.type==="single"){a.setAttribute("type","radio");a.setAttribute("name",g)}else{a.setAttribute("type","checkbox")}a.setAttribute("id",c);a.setAttribute("value",s.value);j.appendChild(a);j.appendChild(b);j.appendChild(h);n[s.category].appendChild(j);$("#"+l.id).delegate("#"+c,"click",{self:l},SOTE.widget.Selector.toggleValue)}for(var p=0;p<l.categories.length;p++){var r=l.categories[p].replace(/\s/g,"").toLowerCase();d.appendChild(n[r])}l.container.appendChild(d);if(o){var f=document.createElement("a");f.setAttribute("id","subback");f.setAttribute("class","flowbutton");f.setAttribute("href","javascript:void(0);");f.innerHTML="<< <b>go back</b> and reselect my interest area";l.container.appendChild(f);$("#"+l.id).delegate("#subback","click",{self:l},SOTE.widget.Selector.callRender)}l.adjustSelected()};SOTE.widget.Selector.prototype.renderCanvases=function(a){for(var e=0;e<this.data[a].length;e++){var g=this.data[a][e];if(this.data.palettes[g.value]){var h=this.data.palettes[g.value];var f=100/h.palette.length;var c=document.getElementById("canvas"+this.id+g.value);var d=c.getContext("2d");for(var b=0;b<h.palette.length;++b){d.fillStyle="rgba("+h.palette[b]+")";d.fillRect(f*b,0,f,14)}}}};SOTE.widget.Selector.prototype.adjustSelected=function(){var a=document.getElementsByTagName("input");for(var d=0;d<a.length;d++){a[d].checked=""}for(var c=0;c<this.categories.length;c++){var e=this.categories[c].replace(/\s/g,"");e=e.toLowerCase();if(this.values[e]){for(var b=0;b<this.values[e].length;b++){var f=this.values[e][b].value.replace(/:/g,"colon");if(document.getElementById(f)){document.getElementById(f).checked="checked"}}}}};SOTE.widget.Selector.toggleValue=function(f){var a=f.data.self;var g=f.target;var c=$("#"+g.id).parent().parent().attr("id");c=c.replace(a.id,"");var d=$("#"+g.id).attr("value");d=d.replace(/colon/,":");var b=$("#"+g.id).attr("checked");if($("#"+g.id).attr("type")=="radio"){a.values[c]=new Array();a.values[c].push({value:d})}else{if(!a.values[c]){a.values[c]=new Array()}if(b!==undefined&&b=="checked"){a.removeItem(c,d);a.values[c].push({value:d})}else{a.removeItem(c,d)}}a.fire()};SOTE.widget.Selector.prototype.removeItem=function(a,c){for(var b=0;b<this.values[a].length;b++){if(this.values[a][b].value==c){this.values[a].splice(b,1)}}};SOTE.widget.Selector.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Selector!")}};SOTE.widget.Selector.prototype.setValue=function(a){this.values=this.unserialize(a);return this.validate()};SOTE.widget.Selector.prototype.getValue=function(){var a=this.serialize(this.values);return this.id+"="+a};SOTE.widget.Selector.prototype.serialize=function(a){var e="";for(var c=0;c<this.categories.length;c++){if(c>0){e+="~"}var d=this.categories[c].replace(/\s/g,"");d=d.toLowerCase();e+=d;if(a[d]){for(var b=0;b<a[d].length;b++){e+="."+a[d][b].value}}}return e};SOTE.widget.Selector.prototype.unserialize=function(d){var f=new Object;var b=d.split("~");for(var e=0;e<b.length;e++){var a=b[e].split(".");f[a[0]]=new Array;for(var c=1;c<a.length;c++){f[a[0]].push({value:a[c]})}}return f};SOTE.widget.Selector.prototype.updateComponent=function(b){var a=(b===undefined)?"":b;SOTE.widget.Selector.handleUpdateSuccess(this,a)};SOTE.widget.Selector.handleUpdateSuccess=function(b,a){if(SOTE.util.extractFromQuery("switch",a)==b.state){var c=SOTE.util.extractFromQuery("products",a);b.values=b.unserialize(c);if(b.openCat!==undefined&&b.openCat!==null){b.adjustSelected()}}else{b.state=SOTE.util.extractFromQuery("switch",a);b.loadData()}};SOTE.widget.Selector.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.Selector.prototype.loadFromQuery=function(a){};SOTE.widget.Selector.prototype.validate=function(){var a=true;return a};SOTE.widget.Selector.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.Selector.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.Selector.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Selector.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/sote-min.js b/js/sote-min.js
deleted file mode 100644
index 6a0bd5ac1..000000000
--- a/js/sote-min.js
+++ /dev/null
@@ -1 +0,0 @@
-var rb;window.onload=function(){if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var f=new YAHOO.widget.Panel("iewarning",{zIndex:1020,visible:false,underlay:"matte"});var e="<div><h4>Internet Explorer is not currently supported</h4><br /><p>Worldview uses a set of browser technologies that are not currently supported by Internet Explorer. We are awaiting the release of IE version 10 and are hopeful that it will load Worldview properly. In the meantime, please try loading this page in Mozilla Firefox, Google Chrome, Apple Safari, or a tablet device. <br /><br />Thanks for your patience.</p><br /><p>-The Worldview development team";f.setBody(e);f.render(document.body);f.show();f.center()}this.selector=new YAHOO.widget.Panel("selector",{zIndex:1019,visible:false});this.selector.setBody("<div id='selectorbox'></div>");this.selector.render(document.body);var b=this.selector.id;this.selector.beforeHideEvent.subscribe(function(a){$("#"+b).css("display","none")});this.selector.beforeShowEvent.subscribe(function(a){$("#"+b).css("display","block")});var g=new SOTE.widget.MapSote("map",{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor"});var j=new SOTE.widget.Switch("switch",{dataSourceUrl:"a",selected:"geographic"});var h=new SOTE.widget.Bank("products",{dataSourceUrl:"ap_products.php",title:"My Layers",selected:{antarctic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.antarctic_coastlines",arctic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.arctic_coastlines",geographic:"baselayers.MODIS_Terra_CorrectedReflectance_TrueColor~overlays.sedac_bound"},categories:["Base Layers","Overlays"],callback:this.showSelector,selector:this.selector});var i=new SOTE.widget.Selector("selectorbox",{dataSourceUrl:"ap_products.php",categories:["Base Layers","Overlays"]});var c=new SOTE.widget.DateSpan("time",{hasThumbnail:false});rb=new SOTE.widget.RubberBand("camera",{icon:"images/camera.png",onicon:"images/cameraon.png",cropee:"map"});var d=new SOTE.widget.ImageDownload("imagedownload",{baseLayer:"MODIS_Terra_CorrectedReflectance_TrueColor",alignTo:rb})};function showSelector(b){var a=b.data.selector;a.show();a.center()}function showOverlay(){if(this.overlay===undefined){this.overlay=new YAHOO.widget.Panel("panel1",{zIndex:1020,visible:false});var b="<div ><h3>Welcome to Worldview</h3><p>This new tool from NASA's <a href='http://earthdata.nasa.gov/about-eosdis' target='_blank'>EOSDIS</a> provides the capability to interactively browse full-resolution, global, near real-time satellite imagery from 50+ data products from <a href='http://lance.nasa.gov/' target='_blank'>LANCE</a>. In essence, this shows the entire Earth as it looks \"right now\" - or at least as it has looked within the past few hours. This supports time-critical application areas such as wildfire management, air quality measurements, and weather forecasting. The data is generally available within three hours of observation and can be compared to observations since May 2012 - just click or drag the blue time sliders at the bottom of the screen to change the currently-displayed date. Arctic and Antarctic projections of several products are also available for a \"full globe\" perspective. Browsing on tablet devices is currently supported (iPad 2+ recommended) for mobile access to this spacecraft imagery while in the field or on the couch. Please note, however, that this is an alpha (preview) release and many features are still under development.</p><br /><p>Worldview uses the newly-developed <a href='http://earthdata.nasa.gov/gibs' target='_blank'>Global Image Browse Services (GIBS)</a> to rapidly retrieve its full-resolution imagery to provide an interactive browsing experience. While Worldview uses <a href='http://openlayers.org/' target='_blank'>OpenLayers</a> as its mapping library, GIBS also supports Google Earth, NASA World Wind, and several other clients. We encourage interested developers to build their own clients or integrate NASA imagery into their existing ones using these services.</p><h3>Acknowledgements</h3><p>Near-real time data is courtesy of LANCE data providers: <a href='http://lance.nasa.gov/home/about/amsr-e-sips/' target='_blank'>AMSR-E SIPS</a>, <a href='http://lance.nasa.gov/home/about/ges-disc/' target='_blank'>GES DISC</a>, <a href='http://lance.nasa.gov/home/about/modaps/' target='_blank'>MODAPS</a>, and <a href='http://lance.nasa.gov/home/about/omi-sips/' target='_blank'>OMI SIPS</a>. Socioeconomic data supplied by <a href='http://sedac.ciesin.org/' target='_blank'>SEDAC</a>. Credit for development of the data ingest and serving system belongs to the Tiled WMS development team at NASA/JPL's Physical Oceanography Distributed Active Archive Center (<a href='http://podaac.jpl.nasa.gov/' target='_blank'>PO.DAAC</a>). Special thanks to the NASA/GSFC <a href='http://svs.gsfc.nasa.gov/' target='_blank'>Scientific Visualization Studio</a>, Steve Romalewski and Dave Burgoon/<a href='http://www.urbanresearch.org/' target='_blank'>CUNY CUR</a>, Bruce Campbell/<a href='http://www.risd.edu/' target='_blank'>RISD</a>, and Ben Fry/<a href='http://www.fathom.info/' target='_blank'>Fathom Information Design</a> for their invaluable feedback, much of which is still to be implemented. Additional thanks to Katie Lewis, NASA/GSFC, for graphic design and nomenclature support.</p><h3>Disclaimer</h3><p>The LANCE system is operated by the NASA/GSFC Earth Science Data Information System (ESDIS). The information presented through the LANCE Rapid Response system and the LANCE FIRMS are provided “as is” and users bear all responsibility and liability for their use of data, and for any loss of business or profits, or for any indirect, incidental or consequential damages arising out of any use of, or inability to use, the data, even if NASA or ESDIS were previously advised of the possibility of such damages, or for any other claim by you or any other person. Please read the full disclaimer <a href='http://earthdata.nasa.gov/data/nrt-data/disclaimer' target='_blank'>here</a>.</p><h3>Support</h3><p>Comments/suggestions/problem reports are welcome via <a href='mailto:[email protected]?subject=Feedback%20for%20EOSDIS%20Worldview%20tool'>[email protected]</a>. Please note that Internet Explorer is not currently supported and we are working to determine if and when it can be.</p><br /><p>Version: 0.3.0 (<a href='release_notes.txt' target='_blank'>release notes</a>)<br />Front-End Lead/Architect: <a href='mailto:[email protected]'>Tilak Joshi</a><br />Responsible NASA Official: <a href='mailto:[email protected]'>Ryan Boller</a><br /></p></div>";this.overlay.setBody(b);this.overlay.render(document.body)}this.overlay.show();this.overlay.center();var a=this.overlay.id;this.overlay.beforeHideEvent.subscribe(function(c){$("#"+a).css("display","none")});this.overlay.beforeShowEvent.subscribe(function(c){$("#"+a).css("display","block")})}function showPermalink(){if(this.permOverlay===undefined){this.permOverlay=new YAHOO.widget.Panel("panel_perm",{width:"300px",zIndex:1020,visible:false});var j="<div id='permpanel' ><!-- <h3>Permalink:</h3> --><span style='font-weight:400; font-size:12px; line-spacing:24px; '>Copy and paste the following link to share this view:</span><input type='text' value='' name='permalink_content' id='permalink_content' /></div>";this.permOverlay.setHeader("&nbsp;&nbsp;&nbsp;&nbsp;Permalink");this.permOverlay.setBody(j);this.permOverlay.render(document.body)}var g="?";var c=REGISTRY.getComponents();for(var e=0;e<c.length;e++){if(typeof c[e].obj.getValue=="function"){g+=c[e].obj.getValue()+"&"}}var b=SOTE.util.extractFromQuery("map",g);var h=SOTE.util.extractFromQuery("products",g);var d=SOTE.util.extractFromQuery("time",g);var k=SOTE.util.extractFromQuery("switch",g);g="?map="+b+"&products="+h+"&time="+d+"&switch="+k;var a=window.location.href;var f=a.split("?")[0];f=(f!==null&&f!==undefined)?f:a;$("#permalink_content").val(f+g);this.permOverlay.show();this.permOverlay.center();document.getElementById("permalink_content").focus();document.getElementById("permalink_content").select()}function showRubberBand(){rb.draw("map")};
\ No newline at end of file
diff --git a/js/superview-min.js b/js/superview-min.js
deleted file mode 100644
index fa74ba212..000000000
--- a/js/superview-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.widget.Superview.prototype=new SOTE.widget.Component;SOTE.widget.Superview=function(a,b){};SOTE.widget.Superview.prototype.init=function(){};SOTE.widget.Superview.prototype.setValue=function(a){};SOTE.widget.Superview.prototype.getValue=function(){};SOTE.widget.Superview.prototype.updateComponent=function(a){};SOTE.widget.Superview.prototype.loadFromQuery=function(a){};SOTE.widget.Superview.prototype.validate=function(){};SOTE.widget.Superview.prototype.setDataSourceUrl=function(a){};SOTE.widget.Superview.prototype.getDataSourceUrl=function(){};SOTE.widget.Superview.prototype.setStatus=function(a){};SOTE.widget.Superview.prototype.getStatus=function(){};SOTE.widget.Superview.prototype.show=function(a){};SOTE.widget.Superview.prototype.hide=function(a){};
\ No newline at end of file
diff --git a/js/switch-min.js b/js/switch-min.js
deleted file mode 100644
index 3487b4d80..000000000
--- a/js/switch-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.widget.Switch");SOTE.widget.Switch.prototype=new SOTE.widget.Component;SOTE.widget.Switch=function(a,b){this.container=document.getElementById(a);if(this.container==null){this.setStatus("Error: element '"+a+"' not found!",true);return}this.id=a;this.containerId=a;if(b===undefined){b={}}this.value=b.selected;this.data=(b.values!==undefined)?b.values:null;this.initRenderComplete=false;this.dataSourceUrl=b.dataSourceUrl;this.statusStr="";this.init()};SOTE.widget.Switch.prototype.init=function(){this.render();if(REGISTRY){REGISTRY.register(this.id,this);REGISTRY.markComponentReady(this.id)}else{alert("No REGISTRY found! Cannot register Switch!")}};SOTE.widget.Switch.prototype.render=function(){this.container.innerHTML="";$("#"+this.id).addClass("switch");this.container.innerHTML="<ul><li><div><img id='"+this.id+"current' src='images/geographic.png' /></div><div class='hidden'><a id='arctic'><img id='"+this.id+"arctic' src='images/arctic.png' /></a><a id='geographic'><img id='"+this.id+"geographic' src='images/geographic.png' /></a><a id='antarctic'><img id='"+this.id+"antarctic' src='images/antarctic.png' /></a></div></li></ul>";$("#arctic").bind("click",{self:this,val:"arctic"},SOTE.widget.Switch.setVal);$("#geographic").bind("click",{self:this,val:"geographic"},SOTE.widget.Switch.setVal);$("#antarctic").bind("click",{self:this,val:"antarctic"},SOTE.widget.Switch.setVal);if((this.initRenderComplete===false)&&REGISTRY){this.initRenderComplete=true}};SOTE.widget.Switch.setVal=function(c){var a=c.data.self;var b=c.data.val;a.value=b;$("#"+a.id+"current").attr("src","images/"+a.value+".png");a.fire()};SOTE.widget.Switch.prototype.fire=function(){if(REGISTRY){REGISTRY.fire(this)}else{alert("No REGISTRY found! Cannot fire to REGISTRY from Switch!")}};SOTE.widget.Switch.prototype.setValue=function(a){this.value=a;$("#"+this.id+"current").attr("src","images/"+this.value+".png");this.validate();this.fire()};SOTE.widget.Switch.prototype.getValue=function(){var a=this.id+"="+this.value;return a};SOTE.widget.Switch.prototype.updateComponent=function(a){};SOTE.widget.Switch.handleUpdateSuccess=function(b,a){};SOTE.widget.Switch.handleUpdateFailure=function(d,a,c,b){alert("Failed to load data accessor: "+c)};SOTE.widget.Switch.prototype.loadFromQuery=function(a){return this.setValue(SOTE.util.extractFromQuery(this.id,a))};SOTE.widget.Switch.prototype.validate=function(){var a=true;return a};SOTE.widget.Switch.prototype.setDataSourceUrl=function(a){this.dataSourceUrl=a};SOTE.widget.Switch.prototype.getDataSourceUrl=function(){return this.dataSourceUrl};SOTE.widget.Switch.prototype.setStatus=function(a){this.statusStr=a};SOTE.widget.Switch.prototype.getStatus=function(){return this.statusStr};
\ No newline at end of file
diff --git a/js/util-min.js b/js/util-min.js
deleted file mode 100644
index e8f8d2cd9..000000000
--- a/js/util-min.js
+++ /dev/null
@@ -1 +0,0 @@
-SOTE.namespace("SOTE.util");SOTE.util.extractFromQuery=function(b,a){var c=new RegExp("[\\?&#]*"+b+"=([^&#]*)");var d=c.exec(a);if(d==null){return""}else{return d[1]}};SOTE.util.throwError=function(a){o=new YAHOO.widget.Panel("WVerror",{width:"300px",zIndex:1020,visible:false});o.setHeader("&nbsp;&nbsp;&nbsp;&nbsp;Warning");o.setBody(a);o.render(document.body);o.show();o.center();o.hideEvent.subscribe(function(b){setTimeout(function(){o.destroy()},25)})};SOTE.util.getJSON=function(d,c,f,b){var a=function(h,g,i){return f(h,g,i,c)};var e=function(i,g,h){return b(i,g,h,c)};$.ajax({url:d,dataType:"json",success:a,error:e})};SOTE.util.zeroPad=function(b,a){var c=a-b.toString().length+1;return Array(+(c>0&&c)).join("0")+b};SOTE.util.UTCDateFromISO8601String=function(dateAsString){var dateTimeArr=dateAsString.split(/T/);var yyyymmdd=dateTimeArr[0];var hhmmss=dateTimeArr[1];var year=yyyymmdd.split("-")[0];var month=eval(yyyymmdd.split("-")[1]-1);var day=yyyymmdd.split("-")[2];var hour=hhmmss.split(":")[0];var minute=hhmmss.split(":")[1];var second=hhmmss.split(":")[2];return new Date(year,month,day,hour,minute,second)};SOTE.util.getValuesFromISO8601String=function(dateAsString){var dateTimeArr=dateAsString.split(/T/);var yyyymmdd=dateTimeArr[0];var hhmmss=dateTimeArr[1];var year=yyyymmdd.split("-")[0];var month=eval(yyyymmdd.split("-")[1]-1);var day=yyyymmdd.split("-")[2];var hour=hhmmss.split(":")[0];var minute=hhmmss.split(":")[1];var second=hhmmss.split(":")[2];return[year,month,day,hour,minute,second]};SOTE.util.ISO8601StringFromDate=function(d){var timeString=d.getFullYear()+"-"+SOTE.util.zeroPad(eval(d.getMonth()+1),2)+"-"+SOTE.util.zeroPad(d.getDate(),2)+"T"+SOTE.util.zeroPad(d.getHours(),2)+":"+SOTE.util.zeroPad(d.getMinutes(),2)+":"+SOTE.util.zeroPad(d.getSeconds(),2);return timeString};SOTE.util.DayNameFromUTCDayInt=function(a){switch(a){case 0:return"Sunday";case 1:return"Monday";case 2:return"Tuesday";case 3:return"Wednesday";case 4:return"Thursday";case 5:return"Friday";case 6:return"Saturday";default:return"Invalid"}};SOTE.util.generateProductLayersForDateRange=function(product,displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays,screenResolutionsArr,serverResolutionsArr){if(product!=displayNameStr){return[]}var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,resolutions:screenResolutionsArr,serverResolutions:serverResolutionsArr,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateProductLayersForDateRangeTMS=function(product,displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays,screenResolutionsArr,serverResolutionsArr,tileMatrixSetStr){if(product!=displayNameStr){return[]}var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,resolutions:screenResolutionsArr,serverResolutions:serverResolutionsArr,tileMatrixSet:tileMatrixSetStr,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateProductLayersForDateRangeNoOversample=function(displayNameStr,wmsProductNameStr,formatStr,urlsArr,tileSizeArr,projectionStr,numZoomLevelsInt,maxExtentArr,maxResolutionFloat,preferredOpacityFloat,numDays){var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,tileSize:tileSizeArr,projection:projectionStr,numZoomLevels:numZoomLevelsInt,maxExtent:maxExtentArr,maxResolution:maxResolutionFloat,preferredOpacity:preferredOpacityFloat};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};SOTE.util.generateWmsProductLayersForDateRange=function(product,displayNameStr,wmsProductNameStr,formatStr,urlsArr,projectionStr,preferredOpacityFloat,isSingleTile,numDays){if(product!=displayNameStr){return[]}var curDate=new Date();var returnArr=new Array(numDays);for(var i=0;i<numDays;i++){var dateStr=curDate.getUTCFullYear()+"-"+SOTE.util.zeroPad(eval(curDate.getUTCMonth()+1),2)+"-"+SOTE.util.zeroPad(curDate.getUTCDate(),2);returnArr[i]={displayName:(displayNameStr+"__"+dateStr),wmsProductName:wmsProductNameStr,time:dateStr,format:formatStr,urls:urlsArr,projection:projectionStr,preferredOpacity:preferredOpacityFloat,singleTile:isSingleTile};curDate=new Date(curDate-(1000*60*60*24))}return returnArr};
\ No newline at end of file