//eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6(!4){k 4={}}4.V=0(){5 3.14};4.U=0(){5 3.O};4.L=0(){5 3.J};4.H=0(){5 3.o};4.1a=0(){5 3.17};4.13=0(){5 3.11};4.T=0(){5 3.P};4.M=0(){5 3.u};4.K=0(a){5(3.u.I(a)!=-1)};4.G=0(){5 3.v};4.D=0(a){3.v=a};4.B=0(){5 3.9};4.18=0(a){3.9=a};4.16=0(a,b){6(z 3.9!="w"){3.9={}}3.9[a]=b};4.10=0(a){6(z 3.9=="w"){5 3.9[a]}5 Z};0 R(a,b,c){6(!b){b=h.n}6(!c){c=h.l}k d=t.s((h.n-b)/2);k e=t.s((h.l-c)/2);k f=7.N(a.m(\'8\'),"Q","F="+e+", S="+d+", n="+b+", l="+c+", E=j, C=j, W=j, X=j");f.Y();5 r}0 19(a){6(7.A){7.A()}q 6(a){7.i.8=a.m(\'8\')}6(a){5 r}}0 15(a){6(7.p&&7.p.x){7.p.x(g.o,g.i.8,\'\')}q 6(g.12&&7.y){7.y.1b(g.i.8,g.o)}q 6(a){7.i.8=a.m(\'8\')}6(a){5 r}}',62,74,'function|||this|pageHandler|return|if|window|href|marker|||||||document|screen|location|yes|var|height|getAttribute|width|title|sidebar|else|false|floor|Math|tags|topic|object|addPanel|external|typeof|print|getMarker|toolbar|setTopic|menubar|top|getTopic|getTitle|indexOf|lang|hasTag|getLang|getTags|open|ref|thread|popup|accessiblePopup|left|getThread|getRef|getId|resizable|scrollbars|focus|null|getMarkerParameter|keywords|all|getKeywords|id|accessibleAddToFavorite|setMarkerParameter|author|setMarker|accessiblePrint|getAuthor|AddFavorite'.split('|'),0,{}))
function getFieldValueByName (aFieldName)
{
    var value = '';

    var field = $("[name='formParam[" + aFieldName + "]']");

    if (field && field.length)
    {
        value = field[0].value;
    }

    return value;
}

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

if ((version >= 5.5 && version < 7) && (document.body) && (document.body.filters))
{
   for(var i=0; i<document.images.length; i++)
   {
      var img = document.images[i]
      var imgName = img.src.toUpperCase()
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
      {
         var imgID = (img.id) ? "id='" + img.id + "' " : ""
         var imgClass = (img.className) ? "class='" + img.className + "' " : ""
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
         var imgStyle = "display:inline-block;" + img.style.cssText
         if (img.align == "left") imgStyle = "float:left;" + imgStyle
         if (img.align == "right") imgStyle = "float:right;" + imgStyle
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
         var strNewHTML = "<span " + imgID + imgClass + imgTitle
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"
         img.outerHTML = strNewHTML
         i = i-1
      }
   }
}

//MENU SIDEBAR
$(document).ready( function () {
    
	// on ajoute la class "toggleSubMenu" sur les li de 1er niveau, si ce li posséde un 2éme niveau
	$("ul.navlist0 > li").each(function() {
		var nav = $(this);
		$(this).find('ul.navlist1').each(function() {
			nav.addClass("toggleSubMenu");
		});
	});
	
	// on cache le 2éme niveau, sauf les 1er niveau possédant la classe "open_at_load"
    $("li:not('.open_at_load') > ul.navlist1").hide();
    
    // évènement click sur les lien de 1er niveau
    $("li.toggleSubMenu > a").click( function ()
    {
        if ($(this).next("ul.navlist1:visible").length != 0)
        {
            $(this).next("ul.navlist1").slideUp("normal", function () 
            {
            	$(this).parent().removeClass("open") 
            });
        }
        else
        {
            $("ul.navlist1").slideUp("normal", function ()
            {
            	$(this).parent().removeClass("open")
            });
            $(this).next("ul.navlist1").slideDown("normal", function ()
            {
            	$(this).parent().addClass("open")
            });
        }

        return false;
    });
}) ;