function ShowFlash(swf, hauteur, largeur, couleur, nom) {

	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" ");
	if (largeur!='')
		document.write("width=\""+largeur+"\" ");
	if (hauteur!='')
		document.write("height=\""+hauteur+"\"");
	document.write("><param name=\"movie\" value=\""+swf+"\" />");
	document.write("<param name=\"quality\" value=\"high\" />");
	document.write("<embed src=\""+swf+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" ");
	if (largeur!='')
		document.write("width=\""+largeur+"\" ");
	if (hauteur!='')
		document.write("height=\""+hauteur+"\"");
	document.write("></embed></object>");
}


function MoveDivDown(myDiv) {
	if(myDiv) {
		var divHeight	  = $(myDiv).up(0).getHeight();
		var divMarginTop  = Math.abs(parseInt($(myDiv).getStyle('margin-top')));
		var contentHeight = $(myDiv).getHeight();							
		var top = 0;


		if((divMarginTop + (divHeight * 2)) > contentHeight) {
			top = divMarginTop + (contentHeight - (divMarginTop + divHeight));
		} else {
			if(divMarginTop == 0) {
				if((divHeight * 2) > contentHeight) {
					top = contentHeight - divHeight;
				} else {
					top = divMarginTop + divHeight;
				}
			} else {
				top = divMarginTop + divHeight;
			}
		}

		if((divMarginTop + divHeight) == contentHeight)
			top = 0;	
						 				
		new Effect.Morph(myDiv, {	
			style: {
				'margin-top' : -top +'px'
			}, duration: 0.8
		});
	}
	
	return false;	
}


function MoveDivUp(myDiv) {
	if(myDiv) {
		var divHeight	  = $(myDiv).up(0).getHeight();
		var divMarginTop  = Math.abs(parseInt($(myDiv).getStyle('margin-top')));
		var contentHeight = $(myDiv).getHeight();
		var top = 0;			
		
		if(divMarginTop == 0) {
			top = contentHeight - divHeight;
		} else {
			if((divMarginTop - divHeight) < 0) {			
				top = 0;		
			} else {
				top = divMarginTop - divHeight;
			}
		}
		
		new Effect.Morph(myDiv, {
			style: {
				'margin-top' : -top +'px'
			}, duration: 0.8
		});
	}
	
	return false;	
}


function moveBlocDown(myDiv) {
	if(myDiv) {
		var divHeight = $(myDiv).up(0).getHeight();
		var maxHeight = $(myDiv).getHeight();							
		
		var top = parseInt($(myDiv).getStyle('margin-top'));	
		top -= divHeight;
			
		if((maxHeight + top) <= 0) {
			top = 0;
		}		
						 				
		new Effect.Morph(myDiv, {
			style: {
				'margin-top' : top +'px'
			}, duration: 0.8
		});
	}
	
	return false;	
}


function moveBlocUp(myDiv) {
	if(myDiv) {
		var divHeight = $(myDiv).up(0).getHeight();
		var maxHeight = $(myDiv).getHeight();
		
		var top = parseInt($(myDiv).getStyle('margin-top'));
		top += divHeight;				
		
		if(top == divHeight) {			
			top = -maxHeight + divHeight;		
		}
		else if( top > 0)
		{
			top = 0;
		}		
							 				
		new Effect.Morph(myDiv, {	
			style: {
				'margin-top' : top+'px'
			}, duration: 0.8
		});
	}
	
	return false;	
}