	
	
	//alert("here Event.onDOMReady = "+Event.onDOMReady);
	Event.onDOMReady(function() {
			var content = null;
			//var content = [];
			//content[0] = $("onetoone_browser");
			//content[1] = $("apple_retail_guided-tour-one-to-one");
			var overlayFeatureViewer = new AC.ViewMaster.Viewer(content, 'genius_bar_overlay_swapview', 'genius_bar_overlay_feature_viewer',{initialId:"genius_bar_description",shouldAnimateContentChange:false});
			var overlayFeatureViewerDelegate = {
				swapButton: function() {
					if(!this._swapButton) {
						this._swapButton = $("overlay_onetoone_swap_button");
					}
					return this._swapButton;
				},
				didShow: function(overlayFeatureViewer, oldSection, currentSection) {
					var currentSectionTrigger = null, oldSectionTrigger = null;
					if(currentSection) {
						currentSectionTrigger = document.getElementsByName(currentSection.id)[0];
					}
					
					if(oldSection) {
						oldSectionTrigger = document.getElementsByName(oldSection.id)[0];
					}
					else {
						var triggers = document.getElementsByClassName('genius_bar_overlay_feature_viewer');
						if(triggers) {
						for (var i = 0; i < triggers.length; i++) {
							//contents could be a NodeList, so we're going to use that API
							//I added an item method to Array in apple_core
							var iTrigger = triggers.item(i);
						
							if (iTrigger !== currentSectionTrigger) {
								oldSectionTrigger = iTrigger;
								break;
							}
						}
						}
					
					}
					
					if(currentSectionTrigger) currentSectionTrigger.style.display = "none";
					if(oldSectionTrigger) oldSectionTrigger.style.display = "block";
					//console.log("this.swapButton().href = "+this.swapButton().href);
				}
			
			}
			overlayFeatureViewer.setDelegate(overlayFeatureViewerDelegate);
						
		});
