function ReCenterSite()
{
	if (jQuery('#page').offset().left < 0 && jQuery('#page').css("left") != "0px")
	{
		jQuery('#page').css("left", "0px");
		jQuery('#page').css("margin-left", "0px");
	}
	else if (jQuery('#page').css("left") != currentCssLeft && jQuery('body').width() > 995)
	{
		jQuery('#page').css("left", currentCssLeft);
		jQuery('#page').css("margin-left", currentCssMarginLeft);
		jQuery('body').css("overflow-x", "hidden");
	}
} 

function PngIe6()
{
   if(jQuery.browser.msie && jQuery.browser.version == "6.0") {
    	jQuery("#page").find('img[src*=".png"]').css("behavior", 'url("/manager/media/script/siteControl/png/pngbehavior.htc")');
    	   
    }
}    

function ShowTemoignage()
	{
	

	jQuery("#content_text .summaryPost .bt_fulldesc").click (function () {		
    	var showType = jQuery(this).attr("type");
		var docid = jQuery(this).attr("article");
    	jQuery("#footer").css("visibility", "hidden");    	
    	jQuery("#plain_" + docid).toggle('middle', function() {    		
    		jQuery("#footer").css("visibility", "visible");
    		
    		// switcher le bouton show/hide
    		if (showType == "show")
    		{
    			jQuery("#bt_show_article_"+docid).hide();
    			jQuery("#bt_hide_article_"+docid).show();
    		}
    		else
    		{
    			jQuery("#bt_show_article_"+docid).show();
    			jQuery("#bt_hide_article_"+docid).hide();
    		}    
    		ResizeSiteHeight();
    	});    	
    });
    }
    
   /*depli un temoignage en fonction de l'id passer en GET dans l'url*/
 function ShowTemoignageId()
	{      
		 var nReq = location.search.substring(1,location.search.length);
		     var MaValeur = nReq.substring(nReq.indexOf("=")+1, nReq.length);
		     jQuery("#plain_" + MaValeur).toggle('middle', function() { 
				jQuery("#bt_show_article_"+MaValeur).hide();
				jQuery("#bt_hide_article_"+MaValeur).show();
		   		
		   		ResizeSiteHeight();
		   	});    
    }

