	var selectList, activeAreaSlide, fxDesc, activeSubList, swfVideo, swfAudio, buzzStatus = false;
	window.addEvent('domready', function(){

		//STYLES
		$('description').setStyles({'background-color': '#FFFFFF'});

		//MOUSE OVER
		var fxMainAudio = new Fx.Morph($('mainAudioImg'), {duration:200, wait:false});
		$('mainAudioBtn').addEvent('mouseenter', function(){fxMainAudio.start({'margin-left': 15});}); //', background-color': '#EBFFCC'
		$('mainAudioBtn').addEvent('mouseleave', function(){fxMainAudio.start({'margin-left': 0});}); //, 'background-color': '#FFFFFF'
		var fxMainBuzz = new Fx.Morph($('mainBuzzImg'), {duration:200, wait:false});
		$('mainBuzzBtn').addEvent('mouseenter', function(){fxMainBuzz.start({'margin-left': 15});}); //, 'background-color': '#EBFFCC'
		$('mainBuzzBtn').addEvent('mouseleave', function(){fxMainBuzz.start({'margin-left': 0});}); //, 'background-color': '#FFFFFF'
		var fxMainVideos = new Fx.Morph($('mainVideoImg'), {duration:200, wait:false});
		$('mainVideoBtn').addEvent('mouseenter', function(){fxMainVideos.start({'margin-left': 15});}); //, 'background-color': '#EBFFCC'
		$('mainVideoBtn').addEvent('mouseleave', function(){fxMainVideos.start({'margin-left': 0});}); //, 'background-color': '#FFFFFF'
		var fxMainPhoto = new Fx.Morph($('mainPhotoImg'), {duration:200, wait:false});
		$('mainPhotoBtn').addEvent('mouseenter', function(){fxMainPhoto.start({'margin-left': 15});}); //, 'background-color': '#EBFFCC'
		$('mainPhotoBtn').addEvent('mouseleave', function(){fxMainPhoto.start({'margin-left': 0});}); //, 'background-color': '#FFFFFF'
		var list = $$('#audioSubList div');
		list.each(function(element) {
			var fx = new Fx.Morph(element, {duration:200, wait:false});
			element.addEvent('mouseenter', function(){fx.start({'padding-left': 5});}); //, 'background-color': '#EBFFCC'
			element.addEvent('mouseleave', function(){fx.start({'padding-left': 0});}); //, 'background-color': '#FFFFFF'
		});
		var list = $$('#buzzSubList div');
		list.each(function(element) {
			var fx = new Fx.Morph(element, {duration:200, wait:false});
			element.addEvent('mouseenter', function(){fx.start({'padding-left': 5});}); //, 'background-color': '#CCE6FF'
			element.addEvent('mouseleave', function(){fx.start({'padding-left': 0});}); //, 'background-color': '#FFFFFF'
		});
		var list = $$('#videoSubList div');
		list.each(function(element) {
			var fx = new Fx.Morph(element, {duration:200, wait:false});
			element.addEvent('mouseenter', function(){fx.start({'padding-left': 5});}); //, 'background-color': '#FFCCCE'
			element.addEvent('mouseleave', function(){fx.start({'padding-left': 0});}); //, 'background-color': '#FFFFFF'
		});
		var list = $$('#photoSubList div');
		list.each(function(element) {
			var fx = new Fx.Morph(element, {duration:200, wait:false});
			element.addEvent('mouseenter', function(){fx.start({'padding-left': 5});}); //, 'background-color': '#FFE1CC'
			element.addEvent('mouseleave', function(){fx.start({'padding-left': 0});}); //, 'background-color': '#FFFFFF'
		});
		var list = $$('#allSubList div');
		list.each(function(element) {
			var fx = new Fx.Morph(element, {duration:200, wait:false});
			element.addEvent('mouseenter', function(){fx.start({'padding-left': 5});}); //, 'background-color': '#E5E5E5'
			element.addEvent('mouseleave', function(){fx.start({'padding-left': 0});}); //, 'background-color': '#FFFFFF'
		});
		
		//SELECT LIST
		//selectList = $('selectlist_id'); 
		
		//MAIN
		mainListSlide = new Fx.Slide('mainList', { mode:'vertical', duration:1000 });

		//SCREEN
		screenSlide = new Fx.Slide('screenContainer', { mode:'vertical', duration:1000 });

		//DESCRIPTION
		fxDesc = new Fx.Tween('description',{duration: 1000});
		
		//AUDIO SLIDE
		$('audioList').setStyle('display','block');
		audioListSlide = new Fx.Slide('audioList', { mode:'vertical', duration:1000 });
		audioListSlide.hide();
		$('mainAudioBtn').addEvent('click', function() {
			activeAreaSlide = audioListSlide;
			activeSubList = $('audioSubList')
			showSubArea(audioListSlide, activeSubList);
			return false;
		});
		
		//BUZZ SLIDE
		$('buzzList').setStyle('display','block');
		buzzListSlide = new Fx.Slide('buzzList', { mode:'vertical', duration:1000 });
		buzzListSlide.hide();
		$('mainBuzzBtn').addEvent('click', function() {
			activeAreaSlide = buzzListSlide;
			activeSubList = $('buzzSubList')
			showSubArea(buzzListSlide, activeSubList);
			return false;
		});
		
		//VIDEO SLIDE
		$('videoList').setStyle('display','block');
		videoListSlide = new Fx.Slide('videoList', { mode:'vertical', duration:1000 });
		videoListSlide.hide();
		$('mainVideoBtn').addEvent('click', function() {
			activeAreaSlide = videoListSlide;
			activeSubList = $('videoSubList')
			showSubArea(videoListSlide, activeSubList);
			return false;
		});
		
		//PHOTO SLIDE
		$('photoList').setStyle('display','block');
		photoListSlide = new Fx.Slide('photoList', { mode:'vertical', duration:1000 });
		photoListSlide.hide();
		$('mainPhotoBtn').addEvent('click', function() {
			activeAreaSlide = photoListSlide;
			activeSubList = $('photoSubList')
			showSubArea(photoListSlide, activeSubList);
			return false;
		});
		
		//ALL SLIDE
		$('allList').setStyle('display','block');
		allListSlide = new Fx.Slide('allList', { mode:'vertical', duration:1000 });
		allListSlide.hide();
//		$('allMediaLink').addEvent('click', function() {
//			activeAreaSlide = allListSlide;
//			activeSubList = $('allSubList')
//			showSubArea(allListSlide, activeSubList);
//			return false;
//		});


		$('audioBack').addEvent('click', function() {
			returnMainMenu();
			return false;
		});
		$('buzzBack').addEvent('click', function() {
			returnMainMenu();
			return false;
		});
		$('videoBack').addEvent('click', function() {
			returnMainMenu();
			return false;
		});
		$('photoBack').addEvent('click', function() {
			returnMainMenu();
			return false;
		});

		//CONTROLLER FLASH OBJECT
		if(Browser.Plugins.Flash.version >= 9) {
			swfController = new Swiff('controller.swf', { 
				id: 'swfController',   
				width: 576,
				height: 357,
				container: $('controllerContainer'),
				params: {wMode: 'opaque', allowFullScreen: 'true'},
				vars: {},
				callBacks: {}
			});
		}

		//CIVIC CENTER HOME LINK
		$('homeLink').addEvent('click', function() {
			return returnHome();						 
		}); 

		//CIVIC CENTER LOGO LINK
		$('logoLink').addEvent('click', function() {
			return returnHome();						 
		}); 
		
		//TICKET INFO LINK
		if($('showInfoLink') != null) {
			$('showInfoLink').addEvent('click', function() {
				if (typeof(window.opener) != 'undefined' && window.opener != null) {
					try { 
						window.opener.location.href = $('showInfoLink').href; 
						window.opener.focus();
					} catch(err) { return true; }
					return false;
				} else {
					return true;
				}
			});
		}
		
		//EMAIL CLUB INFO LINK
		if($('emailClubLink') != null) {
			$('emailClubLink').addEvent('click', function() {
				if (typeof(window.opener) != 'undefined' && window.opener != null) {
					try { 
						window.opener.location.href = $('emailClubLink').href; 
						window.opener.focus();
					} catch(err) { return true; }
					return false;
				} else {
					return true;
				}
			});
		}
		
		//DROP DOWN SELECTION CHANGE
		$('list_id').addEvent('change', function() {
			if(this.value != "" && this.value != null) {
				location.href='experience_center.php?l=' + this.value;
			}
		});

		//FORMAT SELECT BOX
		if(!ie6) {
			Custom.init();
		}
	
		//ADJUST LIST FOR SAFARI
		if(Browser.Engine.gecko) {
			$('list_id').setStyle('margin-top','-5px');
		}

	});
	
	//NAVIGATE TO OPENING WINDOW OR OPEN HOME PAGE
	function returnHome() {
		if (typeof(window.opener) != 'undefined' && window.opener != null) {
			try { window.opener.focus(); }
			catch(err) { return true; }
			return false;
		} else {
			return true;
		}
	}
	
	//SUB NAVIGATION
	function showSubArea(slide,subList) {
		if(!ie6) {
			$('selectlist_id').fade('out');
		} else {
			$('list_id').setStyle('opacity',0);
		}
		mainListSlide.slideOut().chain(
			function() {
				slide.slideIn().chain(
					function() {
						//activeSubList.style.overflow = 'auto';
						activeSubList.setStyle('overflow','auto');
					}
				);
			}
		);
	}
	
	//RETURN TO MAIN MENU
	function returnMainMenu() {
		//activeSubList.style.overflow = 'hidden';
		activeSubList.setStyle('overflow','hidden');
		activeAreaSlide.slideOut().chain(
			function() {
				mainListSlide.slideIn().chain(
					function() {
						if(!ie6) {
							$('selectlist_id').fade('in');
						} else {
							$('list_id').setStyle('opacity',1);	
						}
					}
				);
			}
		);
		activeAreaSlide = null;
		activeSubList = null;
	}

	//SET DESCRIPTION
	function setDescription(desc) {
		new Fx.Morph($('descContent'), 'opacity', {duration: 750} ).start(0).chain(
			function() {
				$('descContent').set('html', desc);
				new Fx.Morph($('descContent'), 'opacity', {duration: 750} ).start(1);
			}
		);
	}
	
	function loadAudio(val1,val2,val3) {
		if(buzzStatus) {
			fxDesc.start( 'height', 40);
			screenSlide.slideIn();
			buzzStatus = false;
		}
		Swiff.remote(swfController.toElement(), 'loadAudio', val1, val2, val3); 
	}

	function loadVideo(val1,val2,val3) {
		clearBuzz();
		Swiff.remote(swfController.toElement(), 'loadVideo', val1, val2, val3); 
	}
	
	function loadPhoto(val1) {
		clearBuzz();
		Swiff.remote(swfController.toElement(), 'loadPhoto', val1); 
	}
	
	function loadBuzz(buzz) {
		stopAllMedia();
		var req = new Request.HTML({
			url:'getPost.php', 
			method: 'post',
			data: 'buzz=' + buzz,
			onSuccess: function(responseTree, responseElements, responseHTML) {
				screenSlide.slideOut();
				fxDesc.start('height', 415);
				buzzStatus = true;
				setDescription(responseHTML);
			},
			onFailure: function() {
				alert('The request failed');
			}
		}).send();
		return false;		
	}
	
	function clearBuzz() {
		if(buzzStatus) {
			$('descContent').set('html', '');
			fxDesc.start('height', 40);
			screenSlide.slideIn();
			buzzStatus = false;
		}
	}

	function stopAllMedia() {
		Swiff.remote(swfController.toElement(), 'hideAudio');
		Swiff.remote(swfController.toElement(), 'hideVideo');
		Swiff.remote(swfController.toElement(), 'hidePhoto');
	}

