// fichier de test de resolution
// (c) 2010 ELOSI : Domitille Luez http://www.elosi.com

$(document).ready(function() {
	if(navigator.appName == "Opera"){
		$(".menu").css('width', 590);
	}
		
	$(".body").css('height', screen.height);
	if(navigator.appName == "Microsoft Internet Explorer" ){
		$(".body").css('height', screen.height-170);
		$("table").css('height', screen.height-170);
	}
	
	//reso inf 1280
	if (screen.width<=1152) {
		if(navigator.appName == "Microsoft Internet Explorer" ){
			$("body#accueil .head").css('height', '150px');
		}
		
		$("td.outils").css('overflow', 'hidden');
		if(screen.width>1024){
			$("td.content").css('padding-left', '4%');
		}else{
			$("td.content").css('padding-left', '0px');	
		}
		$("#cttPcp").css('height', '430px');
		if (screen.width<1024) {
			$(".img").css('width', '1025px');
			
			$(".page").css('overflow', 'visible');
			$(".window").css('margin-top', '-26px');
			$(".window").css('margin-left', '25px');	
			$("#cttPcp").css('height', '345px');
		}
		if (screen.width<=800) {
			$(".body").css('overflow', 'visible');
		}
		if (screen.width==1024) {
			$("td.content").css('min-width', '565px');
			$(".menu").css('width', '545px');
			$("#cttPcp").css('height', '350px');
			if(navigator.appName == "Microsoft Internet Explorer" ){
				$("#cttPcp").css('height', '350px');
				$(".window").css('margin-top', '0px');
				$(".window").css('margin-top', '-2px');
				$(".window").css('overflow', 'visible');
				$(".window").css('margin-left', '-23px');
			}
		}
	}
	
	// reso sup 1280
	if(screen.width>=1280){
		$("td.content").css('padding-left', '7%');
		
		if(navigator.appName == "Microsoft Internet Explorer" ){
			$("body#accueil .head").css('height', '150px');
		}		
		
		$("td.content").css('min-height','510px');
		
		// taille de l'écran supérieur à 1280 et hauteur sup 800
		if (screen.width>=1280 && screen.height>800) {
			if(navigator.appName == "Microsoft Internet Explorer" ){
				if(screen.height>960){
					$("#cttPcp").css('height', '620px');
				}else{
					$("#cttPcp").css('height', '580px');
				}
				$("td").css('zoom', '1');
			}else{
				$("#cttPcp").css('height', '580px');
			}
			
			$("td.content").css('min-width', '620px');
		}
	
		// resolution sup 1680
		if (screen.width>=1600) {
			$("td.content").css('min-width', '690px');
			$("td.content").css('padding-left', '10%');
			if(screen.height>=1024){
				$("#cttPcp").css('height', '630px');
			}else{
				$("#cttPcp").css('height', '530px');
			}
		}
	}
});
