function clsTrigger(){this._list=new Array()}clsTrigger.prototype.addFunc=function(a){this._list.push(a)};clsTrigger.prototype.Execute=function(){al=this._list.length;for(i=0;i<al;i++){eval(this._list[i])}};triggerOnLoad=new clsTrigger();function nullFunc(){}function animateExpand(g,b,d){el=document.getElementById(g);var c=parseInt(el.offsetWidth);var a=parseInt(el.offsetHeight);var f=50;if((a<d)||(c<b)){if(c<b){newwidth=c+f;if(newwidth>b){newwidth=b}el.style.width=newwidth+"px"}if(a<d){newheight=a+f;if(newheight>d){newheight=d}el.style.height=newheight+"px"}var e=setTimeout("animateExpand('"+g+"','"+b+"','"+d+"')",10)}else{clearTimeout(e)}}function cursorWait(a){if(a==""){document.body.style.cursor="wait"}else{el=document.getElementById(a);if(el!=null){el.style.cursor="wait"}}}function cursorDefault(a){if(a==""){document.body.style.cursor="default"}else{el=document.getElementById(a);if(el!=null){el.style.cursor="default"}}}function hide(a){el=document.getElementById(a);el.style.visibility="hidden"}function openWindow(c,b,a,d){a+=32;d+=96;wleft=(screen.width-a)/2;wtop=(screen.height-d)/2;var e=window.open(c,b,"width="+a+", height="+d+", left="+wleft+", top="+wtop+", location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");e.resizeTo(a,d);e.moveTo(wleft,wtop);e.focus()}function openWindowWithScroll(c,b,a,d){a+=32;d+=96;wleft=(screen.width-a)/2;wtop=(screen.height-d)/2;var e=window.open(c,b,"width="+a+", height="+d+", left="+wleft+", top="+wtop+", location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");e.resizeTo(a,d);e.moveTo(wleft,wtop);e.focus()}function show(a){el=document.getElementById(a);el.style.visibility="visible"}function loadScript(b){var a=document.createElement("script");a.src=b;a.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(a)}function closeJSWindow(){el=document.getElementById("jsWindow");if(el){el.parentNode.removeChild(el)}}function openJSWindow(f,e){closeJSWindow();jsWidth=250;jsHeight=220;var d=navigator.userAgent.toLowerCase();var c=d.indexOf("msie ");if(c>0){var b=parseInt(d.substring(c+5,d.indexOf(".",c)))}else{var b=0}if(c>0){winW=document.body.offsetWidth;winH=document.documentElement.clientHeight;if(winH==0){winH=document.body.offsetHeight}}else{winW=window.innerWidth;winH=window.innerHeight}jsLeft=(winW-parseInt(jsWidth))/2;if((b==0)||(b>=7)){jsTop=((winH-parseInt(jsHeight))/2)+document.documentElement.scrollTop}else{jsTop=((winH-parseInt(jsHeight))/2)+document.documentElement.scrollTop}win='<div style="position: absolute; left: '+jsLeft+"px; top: "+jsTop+'px" id="jsWindow">';win+='<table class="fonsNegre text textBlanc" style="width: '+jsWidth+"px; height: "+jsHeight+'px;" cellpadding="0" cellspacing="0">';win+='<tr style="height: 5px;" onmousedown="dragStart(event, \'jsWindow\')">';win+=' <td class="fonsBlanc" style="width: 5px; vertical-align: top;height: 5px "><img src="/templates/default/img/icones/marge_nw_negre.gif" width="5px" height="5px" /></td>';win+=' <td style="width: 100%;height: 5px"></td>';win+=' <td class="fonsBlanc" style="width: 5px; vertical-align: top;height: 5px"><img src="/templates/default/img/icones/marge_ne_negre.gif" width="5px" height="5px" /></td>';win+="</tr>";win+='<tr style="height: 10px;" onmousedown="dragStart(event, \'jsWindow\')">';win+="  <td></td>";win+='  <td style="vertical-align: top; cursor: pointer;"><div style="float: left">'+f+'</div><div style="float: right" onclick="closeJSWindow();">X</div></td>';win+="  <td></td>";win+="</tr>";win+="<tr>";win+='<td style="vertical-align: top; text-align: center; height: '+(jsHeight-20)+'px" colspan="3">';win+='<div style="background: #ffffff; color: #000000; margin-left: 5px; margin-right: 5px; width: '+(jsWidth-10)+'px; height: 100%; overflow: auto;">';win+=unescape(e);win+="</div>";win+="</td>";win+="</tr>";win+='<tr style="height: 5px;">';win+='<td class="fonsBlanc"style="width: 5px; vertical-align: bottom; height: 5px"><img src="/templates/default/img/icones/marge_sw_negre.gif" width="5px" height="5px" /></td>';win+='<td style="width: 100%; height: 5px"></td>';win+='<td class="fonsBlanc" style="width: 5px; vertical-align: bottom; height: 5px"><img src="/templates/default/img/icones/marge_se_negre.gif" width="5px" height="5px" /></td>';win+="</tr>";win+="</table>";win+="</div>";var a=document.createElement("div");a.innerHTML=win;document.getElementsByTagName("body")[0].appendChild(a);a.style.top=jsTop+"px";a.style.left=jsLeft+"px"}function jsAlert(a){content='<table class="centrat" style="margin-top: 50px;">';content+="<tr><td>"+a+"</td></tr>";content+='<tr><td style="text-align: center"><button onclick="closeJSWindow();" class="botoFormulari">Ok</button></td></tr>';content+="</table>";triggerOnLoad.addFunc("openJSWindow( 'Alerta', '"+escape(content)+"' );")}var IE=document.all?true:false;var mnuDisableHide=false;var mnuActiveRes=0;function showMenuCopiarDossier(d,b,a){var c=document.getElementById("divMnuDossiers");if(c==null){alert("mnu es Null")}if(IE){tempX=event.clientX+document.documentElement.scrollLeft;tempY=event.clientY+document.documentElement.scrollTop}else{tempX=d.pageX;tempY=d.pageY}c.style.position="absolute";c.style.visibility="visible";c.style.top=tempY+"px";c.style.left=tempX+"px";mnuDisableHide=true;mnuActiveRes=a}function hideMenuCopiarDossier(c,a){if(!mnuDisableHide){var b=document.getElementById("divMnuDossiers");if(b==null){alert("mnu es NULL")}b.style.visibility="hidden"}mnuDisableHide=false}function call(a){window.location.href=a}function rollover(a){a.className=a.className.replace(/_down/gi,"_up")}function rollout(a){a.className=a.className.replace(/_up/gi,"_down")}function rolloverImg(a){a.src=a.src.replace(/_down/gi,"_up")}function rolloutImg(a){a.src=a.src.replace(/_up/gi,"_down")}function rolloutBoto(a){el_e=document.getElementById(a+"_e");el_c=document.getElementById(a+"_c");el_d=document.getElementById(a+"_d");if(el_e){el_e.className="button_e_down"}if(el_c){el_c.className="button_c_down"}if(el_d){el_d.className="button_d_down"}}function rolloverBoto(a){el_e=document.getElementById(a+"_e");el_c=document.getElementById(a+"_c");el_d=document.getElementById(a+"_d");if(el_e){el_e.className="button_e_up"}if(el_c){el_c.className="button_c_up"}if(el_d){el_d.className="button_d_up"}}function rolloutEtapa(a,b){a.className="etapa_"+b+"_down"}function rolloverEtapa(a,b){a.className="etapa_"+b+"_up"}function rolloutExit(a){el=document.getElementById("btnExit");el.src=a+"/img/buttons/exit_down.gif"}function rolloverExit(a){el=document.getElementById("btnExit");el.src=a+"/img/buttons/exit_up.gif"}var activeFile=null;function rolloutFile(){if(activeFile!=null){el=document.getElementById(activeFile);el.className="file_item";activeFile=null}}function rolloverFile(a){el=document.getElementById(a);el.className="file_item_up";activeFile=a}var activeFolder=null;function rolloutFolder(a){if(activeFolder!=null){el=document.getElementById(activeFolder+"_img");el.src=el.src.replace(/_up/gi,"_down");activeFolder=null}}function rolloverFolder(a,b){el=document.getElementById(a+"_img");el.src=el.src.replace(/_down/gi,"_up");activeFolder=a}function rolloutMenu(a){el1=document.getElementById(a+"1");el2=document.getElementById(a+"2");el1.className=el1.className.replace(/up/gi,"down");el2.className=el2.className.replace(/up/gi,"down")}function rolloverMenu(a){el1=document.getElementById(a+"1");el2=document.getElementById(a+"2");el1.className=el1.className.replace(/down/gi,"up");el2.className=el2.className.replace(/down/gi,"up")}var activeMenuBarButton=null;function rolloutMenuBarButton(){if(activeMenuBarButton!=null){el1=document.getElementById(activeMenuBarButton+"1");el2=document.getElementById(activeMenuBarButton+"2");el3=document.getElementById(activeMenuBarButton+"3");elI=document.getElementById(activeMenuBarButton+"Img");el1.className="menubar_button_start";el2.className="menubar_button_body";el3.className="menubar_button_end";if(elI!=null){elI.src=elI.src.replace(/_up/gi,"_down")}activeMenuBarButton=null}}function rolloverMenuBarButton(a){el1=document.getElementById(a+"1");el2=document.getElementById(a+"2");el3=document.getElementById(a+"3");elI=document.getElementById(a+"Img");el1.className="menubar_button_start_up";el2.className="menubar_button_body_up";el3.className="menubar_button_end_up";if(elI!=null){elI.src=elI.src.replace(/_down/gi,"_up")}activeMenuBarButton=a};