window.addEvent('domready', function() {	
	new SlideGroup("ArtistPgSlideGroup");
});		//END: Window.AddEvent

var SlideGroup = new Class({
	options: {
	},

	//Create class instance
	//container = the first argument in "new SlideGroup" call in "window.addEvent("domready"..."
	initialize: function(container, options) {
		this.setOptions(options);
		this.container = $(container);
		this.noPhotosFrmHt = 20;
//		var photoTableHt = document.photoTableForm.height.value;
		
		this.PhotosFrmHt = 520;// + parseInt(photoTableHt);

		var cookieName = "";
		var cValue = "";
		
		if($('ArtistPgLogoImg')){
			//Add progress bar class so we can re-size the logo when done loading
/*			this.imgProgBar = new progBar();
			
			this.imgProgBar.setup_bar('hidden'); 	// call the function setup_bar() first
			//Periodically call: this.imgProgBar.progress_bar()
			this.timer = $clear(this.timer);
			this.timer = this._progBarUpdate.periodical(250, this);				
*/
			//Make logo hidden for now
//			$('ArtistPgLogo').setStyle('display', 'none');
//			$('ArtistPgLogo').setStyle('visibility', 'hidden');
			
			//Adjust dimensions for dumbass IE which doesn't support max-height, max-width
			//but, since we have to do it for IE, we have to do it for others as well
			//because the dimensions get morphed along with opacity below (and they must be,
			//otherwise, the transition is ugly)
			//Specify the function to execute after image re-size is finished
/*			this.srcHtWdObj = new HtWdObject();	//Object for passing values to/from AdjustImgSz (see definition below)
			this.srcHtWdObj.parent = this;
			this.srcHtWdObj.SetSz = true;
			this.ImgReSz = this._LogoImgFinish;

			//Scale the image to fit our slide size without distorting aspect ratio
			//(Call "_switchImgFinish" when finished)
			this.ReSzImgClass = new AdjustImgSzClass($('ArtistPgLogo'), 407, 534, this.srcHtWdObj);
			this.ReSzImgClass.LoadImg(false);			
*/
			}
		
		var curURLParam = location.search;
		cookieName = "prevURLParam";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			if(curURLParam != cValue){
				//Save current URL param
				document.cookie = cookieName+"="+curURLParam;
				//And, reset all of the slider cookies
				cookieName = "SlideVideo";
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
				cookieName = "SlidePhotos";
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
				cookieName = "SlideBackground";
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
				cookieName = "SlideWork";
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
//REMOVED		cookieName = "SlideGoals";
//				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
				cookieName = "SlideWhere";
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
				cookieName = "SlidePhilos";
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
				cookieName = "SlideOffer";				
				document.cookie = cookieName+"="+0; 	//Set "hide" status in a cookie
			}
		}
		
		//********************************************************************************
		//Offer Info
		var OfferVerticalSlide = new Fx.Slide('ArtistPgOfferInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
		
		var OfferSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlideOffer";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			OfferSlideStatus = cValue;
			
			if(OfferSlideStatus != ""){
				if(OfferSlideStatus == 1){			//Slide was visible before page was exited?
					OfferSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
					OfferVerticalSlide.slideIn();	//Make it visible again
				}
				else{								//Slide was hidden before page was exited?
					OfferSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
					OfferVerticalSlide.slideOut();	//Hide it again
				}
			}
			else{	//First time through, so hide it
				OfferSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
				OfferVerticalSlide.slideOut();
			}
		}

		$('ArtistPgOffer').addEvent('click', function(e){
			e.stop();
			cookieName = "SlideOffer";
			if(OfferSlideStatus == 0){
				OfferVerticalSlide.slideIn();
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
			}				
			else{
				OfferVerticalSlide.slideOut();
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}				
		});

		$('ArtistPgOffer').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgOffer').setStyle('color', '#444444');
		});

		$('ArtistPgOffer').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgOffer').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		OfferVerticalSlide.addEvent('complete', function() {
			if(OfferSlideStatus == 0)
				OfferSlideStatus = 1;
			else
				OfferSlideStatus = 0;
		});


		//********************************************************************************
		//Philos Info
		var PhilosVerticalSlide = new Fx.Slide('ArtistPgPhilosInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
		
		var PhilosSlideStatus = 1;	//1 means it's visibible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlidePhilos";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			PhilosSlideStatus = cValue;
			
			if(PhilosSlideStatus != ""){
				if(PhilosSlideStatus == 1){			//Slide was visible before page was exited?
					PhilosSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
					PhilosVerticalSlide.slideIn();	//Make it visible again
				}
				else{								//Slide was hidden before page was exited?
					PhilosSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
					PhilosVerticalSlide.slideOut();	//Hide it again
				}
			}
			else{	//First time through, so hide it
				PhilosSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
				PhilosVerticalSlide.slideOut();
			}
		}
		
		$('ArtistPgPhilos').addEvent('click', function(e){
			e.stop();
			cookieName = "SlidePhilos";
			if(PhilosSlideStatus == 0){
				PhilosVerticalSlide.slideIn();
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
			}				
			else{
				PhilosVerticalSlide.slideOut();
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}				
		});

		$('ArtistPgPhilos').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgPhilos').setStyle('color', '#444444');
		});

		$('ArtistPgPhilos').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgPhilos').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		PhilosVerticalSlide.addEvent('complete', function() {
			if(PhilosSlideStatus == 0)
				PhilosSlideStatus = 1;
			else
				PhilosSlideStatus = 0;
		});

		//********************************************************************************
		//Where Info
		var WhereVerticalSlide = new Fx.Slide('ArtistPgWhereInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
		
		
		var WhereSlideStatus = 1;	//1 means it's visibible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlideWhere";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			WhereSlideStatus = cValue;
			
			if(WhereSlideStatus != ""){
				if(WhereSlideStatus == 1){			//Slide was visible before page was exited?
					WhereSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
					WhereVerticalSlide.slideIn();	//Make it visible again
					(function(){	//Delay
						if($('artist_map_canvas')){		//Content in the container?
							$('artist_map_canvas').setStyle('opacity', '1');
							gMapClass.ShowMap();	//Get the map data from google
						}
					}).delay(600, this);																	

				}
				else{								//Slide was hidden before page was exited?
					WhereSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
					if($('artist_map_canvas'))	//Hide the map
						$('artist_map_canvas').setStyle('opacity', '0');					

					WhereVerticalSlide.slideOut();	//Hide it again
				}
			}
			else{	//First time through, so hide it
				WhereSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
				WhereVerticalSlide.slideOut();
			}
		}
		
		$('ArtistPgWhere').addEvent('click', function(e){
			e.stop();
			cookieName = "SlideWhere";
			if(WhereSlideStatus == 0){
				WhereVerticalSlide.slideIn();			//Show the info
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
				if($('artist_map_canvas'))	//Display the map
					$('artist_map_canvas').setStyle('opacity', '1');
				
				gMapClass.ShowMap();	//Get the map data from google
			}				
			else{
				if($('artist_map_canvas'))	//Hide the map
					$('artist_map_canvas').setStyle('opacity', '0');					
				WhereVerticalSlide.slideOut();			//Hide the info
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}				
		});

		$('ArtistPgWhere').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgWhere').setStyle('color', '#444444');
		});

		$('ArtistPgWhere').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgWhere').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		WhereVerticalSlide.addEvent('complete', function() {
			if(WhereSlideStatus == 0){
				WhereSlideStatus = 1;
//				$('artist_map_canvas').setStyle('height', '300px');					
			}				
			else{
				WhereSlideStatus = 0;
//				$('artist_map_canvas').setStyle('height', '0px');					
			}				
		});
		
		//********************************************************************************
		//Goals Info
/*		var GoalsVerticalSlide = new Fx.Slide('ArtistPgGoalsInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
		
		var GoalsSlideStatus = 1;	//1 means it's visibible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlideGoals";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			GoalsSlideStatus = cValue;
			
			if(GoalsSlideStatus != ""){
				if(GoalsSlideStatus == 1){			//Slide was visible before page was exited?
					GoalsSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
					GoalsVerticalSlide.slideIn();	//Make it visible again
				}
				else{								//Slide was hidden before page was exited?
					GoalsSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
					GoalsVerticalSlide.slideOut();	//Hide it again
				}
			}
			else{	//First time through, so hide it
				GoalsSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
				GoalsVerticalSlide.slideOut();
			}
		}
		
		$('ArtistPgGoals').addEvent('click', function(e){
			e.stop();
			cookieName = "SlideGoals";
			if(GoalsSlideStatus == 0){
				GoalsVerticalSlide.slideIn();
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
			}				
			else{
				GoalsVerticalSlide.slideOut();
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}				
		});

		$('ArtistPgGoals').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgGoals').setStyle('color', '#444444');
		});

		$('ArtistPgGoals').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgGoals').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		GoalsVerticalSlide.addEvent('complete', function() {
			if(GoalsSlideStatus == 0)
				GoalsSlideStatus = 1;
			else
				GoalsSlideStatus = 0;
		});
*/
		//********************************************************************************
		//Background Info
		var BackgroundVerticalSlide = new Fx.Slide('ArtistPgBackgroundInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
		
		var BackgroundSlideStatus = 1;	//1 means it's visibible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlideBackground";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			BackgroundSlideStatus = cValue;
			
			if(BackgroundSlideStatus != ""){
				if(BackgroundSlideStatus == 1){			//Slide was visible before page was exited?
					BackgroundSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
					BackgroundVerticalSlide.slideIn();	//Make it visible again
				}
				else{								//Slide was hidden before page was exited?
					BackgroundSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
					BackgroundVerticalSlide.slideOut();	//Hide it again
				}
			}
			else{	//First time through, so hide it
				BackgroundSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
				BackgroundVerticalSlide.slideOut();
			}
		}
		
		$('ArtistPgBackground').addEvent('click', function(e){
			e.stop();
			cookieName = "SlideBackground";
			if(BackgroundSlideStatus == 0){
				BackgroundVerticalSlide.slideIn();
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
			}				
			else{
				BackgroundVerticalSlide.slideOut();
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}				
		});

		$('ArtistPgBackground').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgBackground').setStyle('color', '#444444');
		});

		$('ArtistPgBackground').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgBackground').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		BackgroundVerticalSlide.addEvent('complete', function() {
			if(BackgroundSlideStatus == 0)
				BackgroundSlideStatus = 1;
			else
				BackgroundSlideStatus = 0;
		});
		
		//********************************************************************************
		//Works Info
		var WorkVerticalSlide = new Fx.Slide('ArtistPgWorkInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
		
		var WorkSlideStatus = 1;	//1 means it's visibible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlideWork";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			WorkSlideStatus = cValue;
			
			if(WorkSlideStatus != ""){
				if(WorkSlideStatus == 1){			//Slide was visible before page was exited?
					WorkSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
					WorkVerticalSlide.slideIn();	//Make it visible again
				}
				else{								//Slide was hidden before page was exited?
					WorkSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
					WorkVerticalSlide.slideOut();	//Hide it again
				}
			}
			else{	//First time through, so hide it
				WorkSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
				WorkVerticalSlide.slideOut();
			}
		}
		
		$('ArtistPgWork').addEvent('click', function(e){
			e.stop();
			cookieName = "SlideWork";
			if(WorkSlideStatus == 0){
				WorkVerticalSlide.slideIn();
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
			}				
			else{
				WorkVerticalSlide.slideOut();
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}				
		});

		$('ArtistPgWork').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgWork').setStyle('color', '#444444');
		});

		$('ArtistPgWork').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgWork').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		WorkVerticalSlide.addEvent('complete', function() {
			if(WorkSlideStatus == 0)
				WorkSlideStatus = 1;
			else
				WorkSlideStatus = 0;
		});
		
		//********************************************************************************
		//Photos Info
/*		var PhotosVerticalSlide = new Fx.Slide('PhotoCarouselInfo', 
			{
		    mode: 'vertical',
		    //Due to inheritance, all the [Fx][] options are available.
		    duration: 500,	//'long',
		    transition: Fx.Transitions.Bounce.easeOut		
		    }
		);
*/		
		PhotosVerticalSlide = new Fx.Morph('PhotoCarouselInfo', {duration: 800, transition: Fx.Transitions.Bounce.easeInOut});
		
		var PhotosSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)

		//Check if a cookie has been set with slide status
		cookieName = "SlidePhotos";
		if(typeof document.cookie != 'undefined'){
			cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
			PhotosSlideStatus = cValue;
			
			if(PhotosSlideStatus != ""){
				if(PhotosSlideStatus == 1){			//Slide was visible before page was exited?
					PhotosSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
//					PhotosVerticalSlide.slideIn();	//Make it visible again

					//Adjust the wrapper size based content availability
					var PhotoElements = $('PhotoCarouselInfo').getElements('div');
					if(!PhotoElements.length){
						this.maxPhotoSlideHt = this.noPhotosFrmHt;
						$('PhotoCarouselInfo').setStyle('background', 'none');
					}
					else
						this.maxPhotoSlideHt = this.PhotosFrmHt;

					PhotosVerticalSlide.start({
					    'height': [this.maxPhotoSlideHt],
					    'opacity': [1]           
					});
					(function(){	//Delay
						if($('photoSlideshow')){	//Content in the container, i.e. photos to display?
							$('photoSlideshow').setStyle('display', 'block');
						}
					}).delay(600, this);																	
				}
				else{								//Slide was hidden before page was exited?
					PhotosSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
//					PhotosVerticalSlide.slideOut();	//Hide it again
					PhotosVerticalSlide.start({
					    'height': [0],
					    'opacity': [0]           
					});
				}
			}
			else{	//First time through, so hide it
				PhotosSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
//				PhotosVerticalSlide.slideOut();
				PhotosVerticalSlide.start({
				    'height': [0],
				    'opacity': [0]           
				});
			}
		}
		
		$('ArtistPgPhotos').addEvent('click', function(e){
			e.stop();
			cookieName = "SlidePhotos";

			//Adjust the wrapper size based content availability
			var PhotoElements = $('PhotoCarouselInfo').getElements('div');
			this.noPhotosFrmHt = 20;
//			var photoTableHt = document.photoTableForm.height.value;
			
			this.PhotosFrmHt = 520;// + parseInt(photoTableHt);
			if(!PhotoElements.length){
				this.maxPhotoSlideHt = this.noPhotosFrmHt;
				$('PhotoCarouselInfo').setStyle('background', 'none');
			}
			else
				this.maxPhotoSlideHt = this.PhotosFrmHt;

			if(PhotosSlideStatus == 0){
				//Show all the photos
//				PhotosVerticalSlide.slideIn();
				PhotosVerticalSlide.start({
				    'height': [this.maxPhotoSlideHt],
				    'opacity': [1]
				});
				document.cookie = cookieName+"="+1; 	//Flag status in a cookie
				(function(){	//Delay
					if($('photoSlideshow'))	//Content in the container, i.e. photos to display?
						$('photoSlideshow').setStyle('display', 'block');					
				}).delay(600, this);																	
			}
			else{
				//Hide all the photos
				//Content in the container, i.e. photos to display?
				//(Otherwise, photoSlideshow will be undefined and cause error!
				if($('photoSlideshow'))	
					$('photoSlideshow').setStyle('display', 'none');	
//				PhotosVerticalSlide.slideOut();
				PhotosVerticalSlide.start({
				    'height': [0],
				    'opacity': [0]           				    
				});
				document.cookie = cookieName+"="+0; 	//Flag status in a cookie
			}
		});

		$('ArtistPgPhotos').addEvent('mouseleave', function(e){
			e.stop();
			$('ArtistPgPhotos').setStyle('color', '#444444');
		});

		$('ArtistPgPhotos').addEvent('mouseenter', function(e){
			e.stop();
			$('ArtistPgPhotos').setStyle('color', 'black');
		});

		// When Vertical Slide ends its transition, we check for its status
		// note that complete will not affect 'hide' and 'show' methods
		PhotosVerticalSlide.addEvent('complete', function() {
			if(PhotosSlideStatus == 0)
				PhotosSlideStatus = 1;
			else
				PhotosSlideStatus = 0;
		});

		//********************************************************************************
		//Video Info
		if($('ArtistPgVideoInfo')){
			
			var VideoVerticalSlide = new Fx.Slide('ArtistPgVideoInfo', 
				{
			    mode: 'vertical',
			    //Due to inheritance, all the [Fx][] options are available.
			    duration: 'long',
			    transition: Fx.Transitions.Bounce.easeOut		
			    }
			);
			
			var VideoSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
			
			//Check if a cookie has been set with slide status
			cookieName = "SlideVideo";
			if(typeof document.cookie != 'undefined'){
				cValue = (cValue=document.cookie.match(new RegExp("(^|;|\\s)"+cookieName+'=([^;]+);?'))) ? cValue[2] : "";
				VideoSlideStatus = cValue;
				
				if(VideoSlideStatus != ""){
					if(VideoSlideStatus == 1){			//Slide was visible before page was exited?
						VideoSlideStatus = 0;			//Trick the "onComplete" function into setting slide status
						VideoVerticalSlide.slideIn();	//Make it visible again
					}
					else{								//Slide was hidden before page was exited?
						VideoSlideStatus = 1;			//Trick the "onComplete" function into clearing slide status
						VideoVerticalSlide.slideOut();	//Hide it again
					}
				}
				else{	//First time through, so hide it
					VideoSlideStatus = 1;	//1 means it's visible, which it is on load, until it gets hidden (below)
					VideoVerticalSlide.slideOut();
				}
			}
			
			$('ArtistPgVideo').addEvent('click', function(e){
				e.stop();
				cookieName = "SlideVideo";

				if(VideoSlideStatus == 0){			
					VideoVerticalSlide.slideIn();			//Make it visible
					document.cookie = cookieName+"="+1; 	//Flag status in a cookie
				}
				else{
					VideoVerticalSlide.slideOut();
					document.cookie = cookieName+"="+0; 	//Flag status in a cookie
				}
			});
	
			$('ArtistPgVideo').addEvent('mouseleave', function(e){
				e.stop();
				$('ArtistPgVideo').setStyle('color', '#444444');
			});
	
			$('ArtistPgVideo').addEvent('mouseenter', function(e){
				e.stop();
				$('ArtistPgVideo').setStyle('color', 'black');
			});
	
			// When Vertical Slide ends its transition, we check for its status
			// note that complete will not affect 'hide' and 'show' methods
			VideoVerticalSlide.addEvent('complete', function() {
				if(VideoSlideStatus == 0)
					VideoSlideStatus = 1;
				else
					VideoSlideStatus = 0;
			});
		}	//END: if($('ArtistPgVideoInfo'))
	},	//END: initialize

/*	_LogoImgFinish: function(){
		//Make the logo visible
		$('ArtistPgLogo').setStyle('display', 'block');
		$('ArtistPgLogo').setStyle('visibility', 'visible');		
	}	//END: _LogoImgFinish: function()
*/	
/*	_progBarUpdate: function(){
		this.imgProgBar.progress_bar();
		if(this.imgProgBar.doneyet){	//Done loading images?
			this.timer = $clear(this.timer);	
			//Set the logo image size
			AdjustImgSz($('ArtistPgLogo'), 407, 534);
			//Make the logo visible
			$('ArtistPgLogo').setStyle('display', 'block');
			$('ArtistPgLogo').setStyle('visibility', 'visible');
		}
	}		//END: _progBarUpdate
*/	
});

SlideGroup.implement(new Events); // Implements addEvent(type, fn), fireEvent(type, [args], delay) and removeEvent(type, fn)
SlideGroup.implement(new Options);// Implements setOptions(defaults, options)

