		var content=new Array("mitigate", "secure", "consultants");
		var cctr = 1;
		var keepRunning = true;
				
		// Rotate content prior to human interaction
		function switchContent(){
			if (keepRunning){
				for (var rm in content){
					$("div.rotateContent div#"+content[rm]+"Content").fadeOut("fast");
					$("div.rotateControl div#"+content[rm]).removeClass("active");
				}
				cctr = (cctr == 2) ? 0 : (cctr + 1);
				$("div.rotateContent div#"+content[cctr]+"Content").fadeIn("fast");
				$("div.rotateControl div#"+content[cctr]).addClass("active");
				frameCSS();
				doRotate(content[cctr]);
				setTimeout('switchContent()', 9000);
			}
		}
		
		// Pop up controls from bottom of frame
		function rotateControls(){
			$("div.rotateControl").css({bottom:"-55px",opacity:"0"});
			$("div.rotateControl").animate({bottom:"0px",opacity:"1"}, 600);
		}
		
		// Create mouse over effects for the rotation controls
		function rotateRollover(){
			$("div.rotateControl div").mouseover(function(){
				$("div.rotateControl div#"+this.id).addClass("active");
			});
			$("div.rotateControl div").mouseout(function(){
				$("div.rotateControl div#"+this.id).removeClass("active");
			});
		}
		
		// On control click, end autorotation and rotate to appropriate frame; kick off frame's internal animation
		function rotateClick(){
			$("div.rotateControl div").click(function(){
				keepRunning = false;
				frameCSS();
				$("div.rotateControl div").removeClass("active");
				$("div.rotateControl div#"+this.id).addClass("active");
				$("div.rotateContent div").fadeOut("fast");
				$("div.rotateContent div#"+this.id+"Content").fadeIn("fast");
				doRotate(this.id);
			});
		}
		
		// Establish/reset CSS for each frame's internal pieces such as headline, button, etc. in terms of position and opacity
		function frameCSS() {
			$("div#consultantsContent img.headline").css({top:"60px",left:"30px",opacity:"0"});
			$("div#consultantsContent img.text").css({top:"150px",left:"30px",opacity:"0"});
			$("div#consultantsContent img.man").css({top:"0",right:"-30px",opacity:"1"});
			$("div#consultantsContent img.button").css({top:"190px",left:"10px",opacity:"0"});
			
			$("div#secureContent img#background").css({top:"0px",left:"0px",opacity:"0"});
			$("div#secureContent img#people").css({bottom:"0px",right:"-20px",opacity:"0"});
			$("div#secureContent img#crook").css({bottom:"0px",left:"230px",opacity:"0"});
			$("div#secureContent img.headline").css({top:"-250px",left:"45px",opacity:"0"});
			$("div#secureContent img.button").css({top:"200px",left:"100px",opacity:"0"});
			
			$("div#mitigateContent img.headline").css({top:"40px",left:"30px",opacity:"0"});
			$("div#mitigateContent img.text").css({top:"170px",left:"30px",opacity:"0"});
			$("div#mitigateContent img.button").css({top:"200px",left:"10px",opacity:"0"});
			$("div#mitigateContent img.logo").css({top:"180px",right:"10px",opacity:"0"});
		}
		
		// Define each frame's unique animations
		function doRotate(whichSection) {
			if (whichSection == "consultants"){
				// Stall animations
				$("div#consultantsContent img.headline").animate({opacity:"0"}, 500);
				$("div#consultantsContent img.text").animate({opacity:"0"}, 0);
				$("div#consultantsContent img.button").animate({top:"190px",left:"10px",opacity:"0"}, 2400);
				
				// Execute animations
				$("div#consultantsContent img.headline").animate({opacity:"1"}, 1200);
				$("div#consultantsContent img.text").animate({opacity:"1"}, 0);
				$("div#consultantsContent img.button").animate({top:"190px",left:"30px",opacity:"1"}, 800);
			}
			if (whichSection == "secure"){
				// Stall animations
				$("div#secureContent img#background").animate({opacity:"0"}, 200);
				$("div#secureContent img#people").animate({opacity:"0"}, 0);
				$("div#secureContent img#crook").animate({opacity:"0"}, 0);
				$("div#secureContent img.headline").animate({opacity:"0"}, 0);
				$("div#secureContent img.button").animate({opacity:"0"}, 2400);

				// Execute animations
				$("div#secureContent img#background").animate({right:"0px", opacity:"1"}, 1000);
				$("div#secureContent img#people").animate({right:"0px", opacity:"1"}, 0);
				$("div#secureContent img#crook").animate({left:"270px", opacity:"1"}, 0);
				$("div#secureContent img.headline").animate({opacity:"1"}, 0);
				$("div#secureContent img.button").animate({left:"80px",opacity:"1"}, 800);

			}
			if (whichSection == "mitigate"){
				// Stall animations
				$("div#mitigateContent img.headline").animate({opacity:"0"}, 500);
				$("div#mitigateContent img.text").animate({opacity:"0"}, 0);
				$("div#mitigateContent img.button").animate({top:"200px",left:"10px",opacity:"0"}, 2400);
				$("div#mitigateContent img.logo").animate({top:"180px",right:"10px",opacity:"0"}, 0);
				
				// Execute animations
				$("div#mitigateContent img.headline").animate({opacity:"1"}, 1200);
				$("div#mitigateContent img.text").animate({opacity:"1"}, 1200);
				$("div#mitigateContent img.button").animate({top:"200px",left:"30px",opacity:"1"}, 800);
				$("div#mitigateContent img.logo").animate({top:"180px",right:"30px",opacity:"1"}, 800);
			}
		}
		
		
		
