function cutTitleText(divTarget)
{
	if(!divTarget)
		return 0;
	
	var spanList = document.getElementsByTagName("span"); 
	
	for(y=0;y<spanList.length;y++)
	{
		if(spanList[y].className == divTarget)
		{
			name = spanList[y].innerHTML;
			
			if(name)
				name = name.replace(/^\s+/g,'').replace(/\s+$/g,'');
			
			result="";
			cutValue = 5;
			cutCharAt = name.charAt(cutValue);
			
			//alert(cutCharAt);
			
			if(cutCharAt == " ")
			{
				//alert('white on');
				cutResult = cutValue;
				stringPart1 	= name.substring(0,cutResult);
				stringPart2 	= name.substring((cutResult+1),name.length);
				
				result='<div style="position:relative"><div style="color:#fffff;padding:3px 0 3px 0;position:absolute;top:0px;left:0px;background-color:#db001c;font-family:Arial">&nbsp;&nbsp;<h1 style="font-size:40px">' + stringPart1 + '</h1>&nbsp;&nbsp;</div><div style="color:#fffff;padding:3px 0 3px 0;position:absolute;top:45px;left:70px;background-color:#db001c;font-family:Arial">&nbsp;&nbsp;<h1 style="font-size:40px;font-weight:normal">' + stringPart2 + '</h1>&nbsp;&nbsp;</div><div style="position:absolute;top:40px;left:0px;width:82px;height:82px;"><img src="../design/00014/img/icone01.png" border="0"></div></div><br /><br /><br /><br /><br />'

			}
			else
			{
				//alert('no white on currrent pos 5');
				cutResult = 0;
				stringPart1 = "";
				stringPart2 = "";
				
				for(x=1;x<10;x++)
				{
					beforePos = cutValue - x;
					afterPos 	= cutValue + x;
					
					//alert(' TEST : avant : ' + beforePos + ' \'' + name.charAt(beforePos) + '\' - apres : ' + afterPos + ' : \'' + name.charAt(afterPos) + '\'');
					
					if(name.charAt(beforePos) == " ")
					{
						cutResult = beforePos;
						break;
					}
					if(name.charAt(afterPos) == " ")
					{
						cutResult = afterPos;
						break;
					}
				}
				
				if(cutResult == 0)
				{
					cutResult 		= cutValue;
					stringPart1 	= name.substring(0,cutResult) + "-";
					stringPart2 	= "-" + name.substring((cutResult),name.length);
				}
				else
				{
					stringPart1 	= name.substring(0,cutResult);
					stringPart2 	= name.substring((cutResult+1),name.length);
					
					result='<div style="position:relative"><div style="color:#fffff;padding:3px 0 3px 0;position:absolute;top:0px;left:0px;background-color:#db001c;font-family:Arial">&nbsp;&nbsp;<h1 style="font-size:40px">' + stringPart1 + '</h1>&nbsp;&nbsp;</div><div style="color:#fffff;padding:3px 0 3px 0;position:absolute;top:45px;left:70px;background-color:#db001c;font-family:Arial">&nbsp;&nbsp;<h1 style="font-size:40px;font-weight:normal">' + stringPart2 + '</h1>&nbsp;&nbsp;</div><div style="position:absolute;top:40px;left:0px;width:82px;height:82px;"><img src="../design/00014/img/icone01.png" border="0"></div></div><br /><br /><br /><br /><br />'
				}
			}
			
			spanList[y].innerHTML = result;
		}
	}
}

