

//------------------------------------DETECTIONS-----------------------------------------------------------





// convert all characters to lowercase to simplify testing 

var agt=navigator.userAgent.toLowerCase(); 



// *** BROWSER VERSION *** 

// Note: On IE5, these return 4, so use is_ie5up to detect IE5. 

var is_major = parseInt(navigator.appVersion); 

var is_minor = parseFloat(navigator.appVersion); 



// Note: Opera and WebTV spoof Navigator.  We do strict client detection. 

// If you want to allow spoofing, take out the tests for opera and webtv. 

var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 

	&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 

	&& (agt.indexOf('webtv')==-1)); 

var is_nav2 = (is_nav && (is_major == 2)); 

var is_nav3 = (is_nav && (is_major == 3)); 

var is_nav4 = (is_nav && (is_major == 4)); 

var is_nav4up = (is_nav && (is_major >= 4)); 

var is_navonly      = (is_nav && ((agt.indexOf(";nav") != -1) || 

		  (agt.indexOf("; nav") != -1)) ); 

var is_nav5 = (is_nav && (is_major == 5)); 

var is_nav5up = (is_nav && (is_major >= 5)); 



var is_ie   = (agt.indexOf("msie") != -1); 

var is_ie3  = (is_ie && (is_major < 4)); 

var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); 

var is_ie4up  = (is_ie  && (is_major >= 4)); 

var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); 

var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4); 

var is_ie7 = (is_ie && (is_major == 4) && (agt.indexOf("msie 7.0")!=-1) ); 







//------------------------------------DETECTIONS END-----------------------------------------------------------





//------------------------------------FONCTION PNG IE-----------------------------------------------------------

if(document.all && !is_ie7){

	document.write('<style type="text/css"><!-- img{ behavior: url(js/png.htc); } --></style>');

}

//------------------------------------FONCTION PNG IE END-----------------------------------------------------------





//------------------------------------FX SLIDE-----------------------------------------------------------

window.addEvent('domready', function(){

	var accordion = new Accordion('h3.atStart', 'div.atStart', {

		opacity: false,

		onActive: function(toggler, element){

			toggler.setStyle('color', '#ff3300');

		},



		onBackground: function(toggler, element){

			toggler.setStyle('color', '#222');

		}

	}, $('accordion'));





}); 

 

 

var newTog = new Element('h3', {'class': 'toggler'}).setHTML('Common descent');

 

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);
