// Loading CSS ***********************************************************

	//Setting of CSS
		//url
		var urlBegin ="<link rel='stylesheet' media='screen' type='text/css' href='css/";
		var urlEnd ="'>";

		//Dojo CSS
		var dojoCss = "dialog.css";
		var linkdojoCss = urlBegin+dojoCss+urlEnd;

		//Graphic charter / skin
		//	include : colors and font style for texts, links, colors or images of backgrounds and borders and all about the skin/charter
		var styleCss = "skinDefault.css";
		var linkStyleCss = urlBegin+styleCss+urlEnd;

		//Structure
		//	used for page layout : no graphical elements, only float, width, height, margin, overflow...
		var structureCss = "structure.css";
		var structureIe6Css = "structure_Ie6.css";

		//Special
		//	CSS for each browser
		var specialeCss = "speciale.css";
		var specialeFirefoxCss = "speciale_Firefox.css";
		var specialeFirefox3Css = "speciale_Firefox3.css";		
		var specialeIe7Css = "speciale_Ie7.css";
		var specialeOperaCss = "speciale_Opera.css";
		var specialeSafariCss = "speciale_Safari.css"


//alert(" navigator.appName:" +  navigator.appName + "\nnavigator.appVersion:" + navigator.appVersion);

	//Loading
		//Dojo
		document.write(linkdojoCss);
		//Loading CSS in function browser
		var nomnav = navigator.appName;
		if (nomnav == 'Microsoft Internet Explorer') {
			var ms = navigator.appVersion.indexOf("MSIE");
			var nav_version = (parseInt(navigator.appVersion.substring(ms+5, ms+6)));
			if (nav_version > 6){
				// Internet Explorer 7 and +
				document.write(urlBegin+structureCss+urlEnd);
				document.write(urlBegin+specialeIe7Css+urlEnd);
				//alert("IE7 css");
			} else {
				// Internet Explorer 6 and -
				document.write(urlBegin+structureIe6Css+urlEnd);
				//alert("IE6 css");
			}
		} else if ((new String(navigator.appVersion)).toLowerCase().indexOf("safari") >=0){
			// Safari
			//	alert("safari");
				try{
					document.write(urlBegin+structureCss+urlEnd);
					document.write(urlBegin+specialeSafariCss+urlEnd);
				}catch(e){
			//		alert("error while loading safari css:" + e);
				}

		} else if ((navigator.userAgent.indexOf("Mozilla") != -1)||(navigator.userAgent.indexOf("mozilla") != -1)){
			// Mozilla Firefox
			//@author Parra Mathieu
			//css loader for firefox 3
  			var ff = navigator.userAgent.indexOf("Firefox");
            var nav_version = (parseInt(navigator.userAgent.substring(ff+8, ff+9)));
			if (nav_version < 3){
				document.write(urlBegin+structureCss+urlEnd);
				document.write(urlBegin+specialeFirefoxCss+urlEnd);
			}else {
				document.write(urlBegin+structureCss+urlEnd);
				document.write(urlBegin+specialeFirefox3Css+urlEnd);				
			}
		} else if ((navigator.userAgent.indexOf("Opera")!=-1)||(navigator.userAgent.indexOf("opera")!=-1)){
			// Opera
				document.write(urlBegin+structureCss+urlEnd);
				document.write(urlBegin+specialeOperaCss+urlEnd);
				//alert("Opera");
		} else {
			// Other browsers
				document.write(urlBegin+structureCss+urlEnd);
				document.write(urlBegin+specialeCss+urlEnd);
				//alert("Other");
			}

		//Style
		document.write(linkStyleCss);