// JavaScript Document
/************* GET VIEWPORT SIZE **********/
function getViewportSize() {
	var size = [0, 0];
	if (typeof window.innerWidth != 'undefined') {
		size = [ window.innerWidth, window.innerHeight ];
	} else if (typeof	document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0)	{
		size = [ document.documentElement.clientWidth, document.documentElement.clientHeight ];
	} else	{
		size = [ document.getElementsByTagName('body')[0].clientWidth, document.getElementsByTagName('body')[0].clientHeight ];
	}
	return size;				
}
/************* NAV SECONDAIRE **********/
function place_navsecond(param) {
	if(param!='content_home') {
		$('navsecond').setStyles({'display':'block','visibility':'visible'});
		$('navsecond').set('tween', {duration: 1000});
		$('navsecond').tween('opacity',[0,1]);
	}
}
/*********** GET ANCRE **************/
function get_ancre() {
	var url = window.location.href;
	var longueur_url = url.length
	var search_url = url.lastIndexOf('#');
	var pos_url = search_url+1;
	var ancre = url.substring(pos_url,longueur_url);
	return ancre;
}
