/*
	Global JS / Conception et developpement www.wilhemarnoldy.fr
*/


/*
	On load
*/
//window.addEvent('domready', setActiveStyleSheet);

/*
	Blur link pour firefox
*/
function blurLink(theObject){
	theObject.blur();
}
/*
	Fonction goto pour flash et div
*/
function goTo(url){
	window.location.href=url
}
/*
	Fonction de validation de la resolution
*/
function checkRes(){	
	if ( screen.width<=1024) {
		return true;
	}
}
/*
	Affichage ou non du style pour petite resolution
*/

function setActiveStyleSheet() {
	var i, a, main;
	for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
		if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") == "lowres" ) {
			a.disabled = true;
		    if ( checkRes() == true ) a.disabled = false;
		}
	}
}
