	
	
	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, 'workshops_overlay_swapview', 'overlay_workshops_feature_viewer',{initialId:"workshop_browser",shouldAnimateContentChange:false});
			var overlayFeatureViewerDelegate = {
				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('overlay_workshops_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);
			
			
			//The elements used by this featureViewer are in /retail/onetoone/includes/onetoone_browser.inc
			var featureViewer = new AC.ViewMaster.Viewer(null, 'workshops_info_swap_view', 'workshops_content-link',{initialId:"workshops_browser_gettingstarted",shouldAnimateContentChange:false});
			
		});
