/**
 * This function erase the help text of an input field
 * Ex. : the "mot cl? ou n? de r?f?rence" in the search field is erased when the field take focus
**/
function focus_help(obj, base_value)	{
	if (obj.value == base_value)	{
		obj.value = '' ;
	}
}

/**
 * Fonction de chargement des flashs...
**/
function load_flash(flash_url, width, height)	{
	var flash = '' ;

	flash += '<div id="flash" style="z-index:2">' ;	
	flash += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' ;
	flash += '	codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"' ; 
	flash += '	width="' + width + '" height="' + height + '" id="loading" align="middle">' ;
	flash += '	<param name="allowScriptAccess" value="sameDomain" />' ;
	flash += '	<param name="movie" value="' + flash_url + '" />' ;
	flash += '	<param name="quality" value="high" />' ;
	flash += '	<param name="wmode" value="transparent" />' ;
	flash += '	<embed src="' + flash_url + '" wmode="transparent"' ; 
	flash += '		quality="high" width="' + width + '" height="' + height + '" name="loading" ' ;
	flash += '		align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"' ; 
	flash += '		pluginspage="http://www.macromedia.com/go/getflashplayer" />' ;
	flash += '</object>' ;
	flash += '</div>' ;
	
	document.write(flash) ;
}
