﻿	var Page = {
				initialize: function() {
			
					new SmoothScroll({
						transition: Fx.Transitions.Bounce.easeOut,
						fps: 60,
						duration: 3000
					});
					
					var accordion = new Fx.Accordion('h3.atStart', 'div.atStart', {
						opacity: false,
						alwaysHide : true, 
						start: 'all-closed',					 
						onBackground: function(toggler, element){
						}
					}, $('accordion'));
					 
					

					 
					var newTog = new Element('h3', {'class': 'toggler'}).setHTML('<a href="javascript:void(0);">Common descent</a>');
					 
					var newEl = new Element('div', {'class': 'element'}).setHTML('<p>A group of organisms is said to have common descent if they have a common ancestor. In biology, the theory of universal common descent proposes that all organisms on Earth are descended from a common ancestor or ancestral gene pool.</p><p>A theory of universal common descent based on evolutionary principles was proposed by Charles Darwin in his book The Origin of Species (1859), and later in The Descent of Man (1871). This theory is now generally accepted by biologists, and the last universal common ancestor (LUCA or LUA), that is, the most recent common ancestor of all currently living organisms, is believed to have appeared about 3.9 billion years ago. The theory of a common ancestor between all organisms is one of the principles of evolution, although for single cell organisms and viruses, single phylogeny is disputed</p>');
					 
					//accordion.addSection(newTog, newEl, 0);
					
					//initDock();
					new iFishEye({
						container: $("iFishEye_example_1"),   
    					useAxis: "both", 
						norm: "L2"
					});
					var siteTop = $('pageHeader');
					var siteBottom = $('pageFooter');
					var frog = $('frog');
		            var frogfx = new Fx.Styles(frog, {duration: 1000, 'transition': Fx.Transitions.Elastic.easeOut});
		            new Drag.Move(frog, {
			            onComplete: function(){
			                if(window.opera){
				                frogfx.start({'left': 0,'top': siteBottom.getTop()});
				            }else{
				                frogfx.start({'left': 0,'top': siteTop.getTop()});
				            }
			            }
		            });

 			}
		};
		window.addEvent("domready", Page.initialize);	

