// JavaScript Document		
		var warpingAlready = 0; //Initalize variable to determine if we're already warping divs
		
		function warpSeries(outgoingSeries, seriesToDisplay) {
			while (warpingAlready == 0) {
				warpingAlready = 1; //Declare that we're warping so user can't start a new warp by clicking twice
			
				new Effect.Parallel([
					new Effect.Move(outgoingSeries, {sync:true, x:-400, y:0, mode:'relative'}),
					new Effect.Opacity(outgoingSeries, {sync:true, from:1, to:0})
				], {
					duration:.5
				});
				
				setTimeout(function(){
					document.getElementById(outgoingSeries).style.display = "none";  //Toggle the display property to prevent overlapping click areas between different DIVs
				}, 500);
				
				setTimeout(function(){
					document.getElementById(seriesToDisplay).style.display = "block";
					
					new Effect.Parallel([
						new Effect.Move(seriesToDisplay, {sync:true, x:-400, y:0, mode:'relative'}),
						new Effect.Opacity(seriesToDisplay, {sync:true, from:0, to:1})
					], {
						duration:.5
					});
				}, 200);
				
				setTimeout(function(){warpingAlready = 0;}, 600);	
			}			
		}
		
		function warpSeriesBack(outgoingSeries, seriesToDisplay) {
			while (warpingAlready == 0){
				warpingAlready = 1; //Delcare that we're warping so user can't start a new warp by clicking twice
				
				new Effect.Parallel([
					new Effect.Move(outgoingSeries, {sync:true, x:400, y:0, mode:'relative'}),
					new Effect.Opacity(outgoingSeries, {sync:true, from:1, to:0})
				], {
					duration:.5
				});
				
				setTimeout(function(){
					document.getElementById(outgoingSeries).style.display = "none";
				}, 500);
				
				setTimeout(function(){
					document.getElementById(seriesToDisplay).style.display = "block";
					
					new Effect.Parallel([
						new Effect.Move(seriesToDisplay, {sync:true, x:400, y:0, mode:'relative'}),
						new Effect.Opacity(seriesToDisplay, {sync:true, from:0, to:1})
					], {
						duration:.5
					});
					}, 200);
					
				setTimeout(function(){warpingAlready = 0;}, 600);
			}			
		}
