 			$( ".mapdialog" ).click(function() {
 				$( "#dialog" ).dialog( "open" );
 			});
-			jQuery.getJSON("/component/functions.cfc",
-				{
-					method : "changeUserPreference",
-					pref : "sdmapclass",
-					val : s,
-					returnformat : "json",
-					queryformat : 'column'
-				}
-			);
+
 			mapsYo();
 
 		});

		$("#spresmapdiv").removeClass().addClass(s);
		initializeMap();
	}
	
}



	$("div[id^='mapdiv_']").each(function(e){
		$(this).removeClass().addClass(s);
	});
	jQuery.getJSON("/component/functions.cfc",
		{
			method : "changeUserPreference",
			pref : "sdmapclass",
			val : s,
			returnformat : "json",
			queryformat : 'column'
		}
	);
	$('#dialog').dialog('close');
	mapsYo();
}

