function expand_main_content(){
	/*main part*/
	var heights = new Array();
	if($("#homepage_bloc_gauche").height()!=null){
		heights.push(parseInt($("#homepage_bloc_gauche").height()));
	}
	if($("#homepage_bloc_droite").height()!=null){
		heights.push(parseInt($("#homepage_bloc_droite").height()));
	}
	if($("#CompoMsg").height()!=null){
		heights.push(parseInt($("#CompoMsg").height()));
	}
	jQuery.unique(heights);
	heights.reverse();
	$("#main_content").css({height:heights[0]+"px"});
}

function swtich_opacity(eltid){
if($("#"+eltid).css('opacity')==1){
	$("#"+eltid).fadeTo("fast", 0.20);
}else{
	$("#"+eltid).fadeTo("fast", 1);
}

}

function CreateTruncatePart(eltid,Mylength){
	$("#"+eltid).jTruncate({
			length: Mylength,
			minTrail: 10,
			moreText: '>>',
			lessText: '<<',
			ellipsisText: '...',
			moreAni: 'fast',
			lessAni: 'fast'
		})
}
