
	function showVideo(nom, largeur, hauteur) {

		var html;

		
		html = '<div align="center">';
		html += '<script type="text/javascript">';
		html += 'var flashvars = false;';
		html += 'var params = { flashvars: "&MM_ComponentVersion=1&skinName=assets/video/Skin&streamName='+nom+'&autoPlay=false&autoRewind=false",  salign: "lt",  quality: "high",  scale: "noscale", wmode: "transparent", allowfullscreen: "true"};';
		html += 'swfobject.embedSWF("assets/video/FLVPlayer.swf", "video_'+nom+'", "'+largeur+'", "'+hauteur+'", "9.0.0", "scripts/expressInstall.swf", flashvars, params);';
		html += '</script>';
		
		html += '<div id="video_'+nom+'">';
		html += '<p>Vous devez disposer de Flash pour visualiser la vidéo</p>';
		html += '<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>';
		html += '</div>';
		html += '</div>';
		
		
		document.write(html);
		
	}

		
		
		
		
		
		function getWindowHeight() {
    var windowHeight=0;
    if (typeof(window.innerHeight)=='number') {
		windowHeight=window.innerHeight;
    }
    else {
     	if (document.documentElement && document.documentElement.clientHeight) {
         		windowHeight = document.documentElement.clientHeight;
    	}else {
     		if (document.body&&document.body.clientHeight) {
         		windowHeight=document.body.clientHeight;
      		}
     	}
    }
    return windowHeight;
}


function getHeight(moins, mini){
		
		var height = getWindowHeight() - moins;
		
		if(height < mini)
			return mini;
		else
			return height;

}

function getWindowWidth() {
    var windowWidth=0;
    if (typeof(window.innerWidth)=='number') {
		windowWidth=window.innerWidth;
    }
    else {
     	if (document.documentElement && document.documentElement.clientWidth) {
         		windowWidth = document.documentElement.clientWidth;
    	}else {
     		if (document.body&&document.body.clientWidth) {
         		windowWidth=document.body.clientWidth;
      		}
     	}
    }
    return windowWidth;
}

function getHeight(moins, mini){
		
		var height = getWindowHeight() - hTotal - moins;
		
		if(height < mini)
			return mini;
		else
			return height;

}

function getWidth(pourcent){
	
	return Math.floor((getWindowWidth()-wTotal) * pourcent/100);

}

var deep = 0;
 
// affichage des éléments d'un object
function listObject(object, maxdeep) {
    var decal = '-- ';
    var textObject = "";
    for (var i in object) {
        // création de l'indentation
        var indent = "";
        for (var y = 0; y < deep; y++) indent += decal;
        // nom de la propriété
        textObject += "deep = " + deep + " : " + indent + "<b>" + i + "</b> : ";
        if (typeof(object[i]) == ("object") && deep < maxdeep) {
            deep++;
            textObject += "<br />" + listObject(object[i],  maxdeep);
            deep--;
        }
        else {
            // valeur de la propriété
            textObject += object[i] + "<br />";
        }
    }
    return (textObject);
}
 
// Affichage dans le div des éléments d'un object
function retourObj (object, deep) {
    var evalObject = eval(object);
    document.getElementById('infoObject').style.display = "";
    document.getElementById('infoObject').innerHTML = (object) ? listObject(evalObject, deep) : "Ce n'est pas un object";
}

