Hello Glen:What's happening in your code is this:In your init you are doing this:if (getUrlParam("app")) {
243 //ex, layer = APP_SALINE
244 var layer = getUrlParam("app");
245 user_layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://" + mapserv + ".geostor.arkansas.gov/ArcGIS/rest/services/APPS/" + layer + "/MapServer",{id:"user_layer"});
246 user_layer.setOpacity(".7")
247 //we dont want identify for the districts app
248 if (!(layer.toLowerCase() == "app_districts")) {
249 dojo.connect(map, "onLayerAdd", mapLoaded);
250 } else if (layer.toLowerCase() == "app_districts" && getUrlParam("title")) {
251 console.log("districts & title");
252 var title = getUrlParam("title");
253 if (title.toLowerCase() == "rep") {
254 console.log("districts & title & rep");
255 // should be app_districts & hor viewer, set hor layer visible
256 dojo.connect(user_layer, "onLoad", function(evt){console.log("user_layer loaded");changeHorMap([3])});
257 //dojo.connect(user_layer, "onLoad", function(evt){console.log("user_layer loaded");user_layer.setVisibleLayers([3])});
258 //dojo.connect(user_layer, "onLoad", user_layer.setVisibleLayers([3]));
259 }
260 }
261 }
the above code, specifically dojo.connect(user_layer, "onLoad", function(evt){console.log("user_layer loaded");changeHorMap([3])});
changes your visibile layer(s) to 3 which is the preferred layer (I assume)subsequently, later in your init you do this if (dyn_layer.loaded) {
271 buildLayerList(dyn_layer,"layer_list");
272 buildLayerList(user_layer,"user_layer_list");
273 } else {
274 dojo.connect(dyn_layer, "onLoad", function(evt){ buildLayerList(dyn_layer,"layer_list", "Basemap Dynamic")});
275 if (getUrlParam("app")) {
276 dojo.connect(user_layer, "onLoad", function(evt){ buildLayerList(user_layer,"user_layer_list",getUrlParam("app"))});
277 }
278 }
when I run the code I always hit this condition if (getUrlParam("app")) {
276 dojo.connect(user_layer, "onLoad", function(evt){ buildLayerList(user_layer,"user_layer_list",getUrlParam("app"))});
277 }
in your buildlayerlist function you are looking for the visible layers and setting your check boxes according to that, you are also setting the visible layers back to the default values EFECTIVELY OVERRIDING your previous code which changed the visible layer to 3So maybe in buildlayer list you want to check the "app" param and set your visible layer/checked layer according to what's currently visible in the mapservice.I don't know the workflow for your site: but since the check boxes no longer appear in this layout, maybe when you check for "app" param, you don't have to worry about setting the check boxes and default layers at all. Just some suggestions.Let me know if this helpsP.S. the short url did not work when I tried it in IE, hence my first comment of not being redirected (IE6 and IE8)