text: console.log("start of settings.js");
  var Settings={};
  
  Settings.TemplateHTML = "DNA_common/components/settings/settings.html";
  
  Settings.addUpdateSettingsPage = function(name,page,onclick) {
  	$("#settingsPageList").append(Settings.settingsPageItemHTML);
  	var item = document.querySelector('#settingsPageList li:nth-last-child(1)');
  	item.innerText=name+' '+page;
  	item.onclick=onclick;
  	console.log(item);
  }
  
  Settings.includeHTMLSucess = function(linkobj) {
     console.log("loaded settings.html");
     Settings.import = linkobj.path[0].import;
     
     Settings.settingsIconHTML = Settings.import.getElementById('settings-icon');
     Settings.settingsPageItemHTML = Settings.import.getElementById('settingsPageItem').innerHTML;
     //$("body").append(Settings.import.getElementById('settingsPage'));
     //$("#settingsPage").toggle();
     //Settings.addUpdateSettingsPage('settingsX','page',function(){console.log('SettingsX click');});
     onDepenancy("BottomBar.settingsIcon",Settings.pageUpdate)
     //setTimeout(Settings.pageUpdate,3000);
  };
  		
  Settings.pageUpdate = function() {
  	console.log("Settings.pageUpdate()");
  	if (!$('#settings-button').length) {
  		setTimeout(Settings.pageUpdate,1000);
  	}
  	else {
  		console.log("replace settingsIcon with "+Settings.settingsIconHTML);
  		$('#settings-icon').replaceWith(Settings.settingsIconHTML.valueOf());
  		$("#center-panel").append(Settings.import.getElementById('settingsPage'));
  		depenancyMet("Settings.settingsPage");
  		document.getElementById('settings-button').onclick=function(){
  			$("#app-grid-view").hide();
  			$('#settingsPage').toggleClass('hidden');
  		};
  		document.getElementById('SettingsTabsCloseButton').onclick=function(){
  			volumeSettingsPage.HidePage();
  			BluetoothSettingsPage.HidePage();
  			WifiSettingsPage.HidePage();
  			rviSettingsPage.HidePage();
  			hotspotSettingsPage.HidePage();
  			$('#settingsPage').toggleClass('hidden');
  		};
  		console.log("icon update ");
  	}
  };
  
  
  Settings.includeHTMLFailed = function(linkobj) {
  	console.log("load settings.html failed");
  	console.log(linkobj);
  };
  
  includeHTML(Settings.TemplateHTML, Settings.includeHTMLSucess, Settings.includeHTMLFailed);
  
  console.log("end of settings.js");
  
  enableSpinner();
  
  disableSpinner();
  
  function enableSpinner() {
  	$(".spinner").removeClass("off").addClass("on");
  }
  
  function disableSpinner() {
  	$(".spinner").removeClass("on").addClass("off");
  }
  