function init(){
    var manager = new jsAnimManager(30);
	var shroomR = document.getElementById("smallRed"); 
	var shroomB = document.getElementById("smallBlue");
	var shroomY = document.getElementById("smallYellow");
	var shroomP = document.getElementById("smallPink");
	var shroomG = document.getElementById("smallGreen"); 
  
	manager.registerPosition("smallRed");  
	manager.registerPosition("smallBlue");  
	manager.registerPosition("smallYellow");  
	manager.registerPosition("smallPink");  
	manager.registerPosition("smallGreen");  
	
	shroomR.setPosition(0,60); 
	shroomB.setPosition(12,68);
	shroomY.setPosition(7,60);
	shroomP.setPosition(4,48);
	shroomG.setPosition(20,57);
	
	//shroomR.setPosition(0,60); 
	//shroomB.setPosition(12,68);
	//shroomY.setPosition(7,60);
	//shroomP.setPosition(4,48);
	//shroomG.setPosition(20,57);
	  
	var animR = manager.createAnimObject("smallRed");  
	var animB = manager.createAnimObject("smallBlue");  
	var animY = manager.createAnimObject("smallYellow");  
	var animP = manager.createAnimObject("smallPink");  
	var animG = manager.createAnimObject("smallGreen");  
	  
	function animate(){
		animR.add({property: Prop.wait, duration: 1000}); 
		animR.add({property: Prop.positionSemicircle(false),   
			to: new Pos(-110,-55), duration: 2000, ease: jsAnimEase.parabolicPos
		});   
		animR.add({property: Prop.positionSemicircle(false),   
			to: new Pos(-20,80), duration: 2000, ease: jsAnimEase.parabolicNeg
		}); 
		
		animB.add({property: Prop.wait, duration: 1000});  
		animB.add({property: Prop.positionSemicircle(false),   
			to: new Pos(110,55), duration: 2000, ease: jsAnimEase.parabolicPos
		});   
		animB.add({property: Prop.positionSemicircle(false),   
			to: new Pos(32,78), duration: 2000, ease: jsAnimEase.parabolicNeg
		}); 
		
		animY.add({property: Prop.wait, duration: 1000}); 
		animY.add({property: Prop.positionSemicircle(false),   
			to: new Pos(-110,0), duration: 2000, ease: jsAnimEase.parabolicPos
		});     
		animY.add({property: Prop.positionSemicircle(false),   
			to: new Pos(7,60), duration: 2000, ease: jsAnimEase.parabolicNeg
		}); 
		
		animP.add({property: Prop.wait, duration: 1000});  
		animP.add({property: Prop.positionSemicircle(false),   
			to: new Pos(0,-55), duration: 2000, ease: jsAnimEase.parabolicPos
		});  
		animP.add({property: Prop.positionSemicircle(false),   
			to: new Pos(-4,28), duration: 2000, ease: jsAnimEase.parabolicNeg
		});
		
		animG.add({property: Prop.wait, duration: 1000}); 
		animG.add({property: Prop.positionSemicircle(false),   
			to: new Pos(110,-55), duration: 2000, ease: jsAnimEase.parabolicPos
		});      
		animG.add({property: Prop.positionSemicircle(false),   
			to: new Pos(40,37), duration: 2000, ease: jsAnimEase.parabolicNeg
		}); 
	}
	animate();
	
}
function initFront(){
	var opcTested = Modernizr.opacity;
	if(opcTested == true){
		var manager = new jsAnimManager(30);
		var shroomR = document.getElementById("mediumRed"); 
		var shroomB = document.getElementById("mediumBlue");
		var shroomY = document.getElementById("mediumYellow");
		var shroomP = document.getElementById("mediumPink");
		var shroomG = document.getElementById("mediumGreen"); 
		
		var sShroomR = document.getElementById("smallRed"); 
		var sShroomB = document.getElementById("smallBlue");
		var sShroomY = document.getElementById("smallYellow");
		var sShroomP = document.getElementById("smallPink");
		var sShroomG = document.getElementById("smallGreen"); 
		
		$('#mediumRed,#mediumBlue,#mediumYellow,#mediumPink,#mediumGreen').show();
	  
		manager.registerPosition("mediumRed"); 
		manager.registerPosition("mediumBlue"); 
		manager.registerPosition("mediumYellow"); 
		manager.registerPosition("mediumPink"); 
		manager.registerPosition("mediumGreen"); 
		
		manager.registerPosition("smallRed"); 
		manager.registerPosition("smallBlue"); 
		manager.registerPosition("smallYellow"); 
		manager.registerPosition("smallPink"); 
		manager.registerPosition("smallGreen"); 
		
		shroomR.setPosition(-500,-250);  
		shroomB.setPosition(0,300);
		shroomY.setPosition(100,250);
		shroomP.setPosition(0,-250);
		shroomG.setPosition(500,-100);
				
		sShroomR.setPosition(-20,80);  
		sShroomB.setPosition(32,78);
		sShroomY.setPosition(7,60);
		sShroomP.setPosition(-4,28);
		sShroomG.setPosition(40,37);
		
		//shroomR.setPosition(0,57);  
		//shroomB.setPosition(12,65);
		//shroomY.setPosition(7,57);
		//shroomP.setPosition(4,45);
		//shroomG.setPosition(20,54);
		  
		var animR = manager.createAnimObject("mediumRed");  
		var animB = manager.createAnimObject("mediumBlue");  
		var animY = manager.createAnimObject("mediumYellow");  
		var animP = manager.createAnimObject("mediumPink");  
		var animG = manager.createAnimObject("mediumGreen");  
		  
		function animateFront(){
			animR.add({property: Prop.wait, duration: 250}); 
			animR.add({property: Prop.positionSemicircle(false),   
				to: new Pos(-2,54), duration: 3000, ease: jsAnimEase.parabolicNeg
			}); 
			
			animB.add({property: Prop.wait, duration: 250});  
			animB.add({property: Prop.positionSemicircle(false),   
				to: new Pos(10,62), duration: 3000, ease: jsAnimEase.parabolicNeg
			});  
			
			animY.add({property: Prop.wait, duration: 250}); 
			animY.add({property: Prop.positionSemicircle(false),   
				to: new Pos(4,56), duration: 3000, ease: jsAnimEase.parabolicNeg
			});  
			
			animP.add({property: Prop.wait, duration: 250});  
			animP.add({property: Prop.positionSemicircle(false),   
				to: new Pos(3,41), duration: 3000, ease: jsAnimEase.parabolicNeg
			});  
			
			animG.add({property: Prop.wait, duration: 250}); 
			animG.add({property: Prop.positionSemicircle(false),   
				to: new Pos(16,50), duration: 3000, ease: jsAnimEase.parabolicNeg
			}); 
		}
		animateFront();
	} else {
		$('#mediumRed,#mediumBlue,#mediumYellow,#mediumPink,#mediumGreen').show();		
	}
    
}
