function initShowLliNot(idL,nIni){trdContenidor('lliNotWin'+idL);showLliNot(idL,dataAvui,nIni);}function showLliNot(idL,ini,nIni){showNotsLliNot(idL,'-1','','',nIni);var tmp=_$('lliNotWin'+idL);tmp.style.visibility='visible';tmp.style.zIndex=zAct+1;}function clkRefLliNot(idL){if(_$('editNotCont')){document.body.appendChild(_$('contEditContNot'));}showLliNot(idL,dataAvui);}function clkConfLliNot(idL){showGetEditLliNot('',idL,'',dataAvui);}function clkNextLliNots(idL,dIni,nNot,nIni){showNotsLliNot(idL,dIni,nNot,'>=',nIni);}function clkPrevLliNots(idL,dIni,nNot,nIni){showNotsLliNot(idL,dIni,nNot,'<=',nIni);}function showNotsLliNot(idL,ini,nNot,comp,nIni,ordre){var idCont=document.getElementById('lliNotWin'+idL).parentNode.id;showGetLliNot(idCont,idL,nIni);}function moveSelPagLliNot(idL,dir,nPags,inc){var inc=inc||10;inc=inc*dir;var newLeft=parseInt(_$('selPagLliNot'+idL).style.left)+parseInt(inc);if(newLeft>0){newLeft=inc;}else{var leftMax=nPags*(-10);if(newLeft<=leftMax){return;}}_$('selPagLliNot'+idL).style.left=newLeft+'px';}function addCodiNotLliNot(idN,idCont,idL,shTit,shDes,shRes,shIni,shFi,shLloc,shForm,shLink,lang,lleg,afeg,edit,borr){var id=idN+'F'+idL;var txt='<div id="showNotWin'+idN+'F'+idL+'" idL="'+idL+'"  shForm="'+shForm+'"  class="mainNoticia'+shForm+'">';var tmpShRes=-1;if(shRes=='1'&&shDes!='1'){tmpShRes=1;}if(afeg>0){txt+='<div id="clkEditNot'+idN+'F'+idL+'" class="botoEditNot'+shForm+'" style="z-index:20;height:17px;">'+'<img class="imgEdit" src="'+PATH_WEB+'/imatges/edit01.png" onclick="clkEditShowNot(\''+idN+'\',\''+idL+'\',\''+tmpShRes+'\');"  />'+'<img class="imgEdit" src="'+PATH_WEB+'/imatges/editor/openWin01.png" onclick="clkEditNotLliNot(\''+idN+'\');"  />'+'</div>';}txt+='<div  id="showNotMain'+idN+'F'+idL+'" class="showNotMain'+shForm+'" border="0" cellspacing="0" >';if(shTit==1){txt+='<div id="titolShowNot'+idN+'F'+idL+'" colspan="4" class="titolShowNot'+shForm+'"></div>';}else{txt+='<div id="titolShowNot'+idN+'F'+idL+'" colspan="4" class="titolShowNot ocult'+shForm+'"></div>';}txt+='<div class="datesShowNot'+shForm+'">';if(shIni==1){txt+='<span id="dataIniShowNot'+idN+'F'+idL+'" class="dataIniShowNot'+shForm+'"></span>';}else{txt+='<span id="dataIniShowNot'+idN+'F'+idL+'" class="dataIniShowNot ocult'+shForm+'"></span>';}if(shFi==1){txt+='<span id="dataFiShowNot'+idN+'F'+idL+'" class="dataFiShowNot'+shForm+'"></span>';}else{txt+='<span id="dataFiShowNot'+idN+'F'+idL+'" class="dataFiShowNot ocult'+shForm+'"></span>';}txt+='</div>';if(shLloc==1){txt+='<div id="llocShowNot'+idN+'F'+idL+'" class="llocShowNot'+shForm+'"></div>';}else{txt+='<div id="llocShowNot'+idN+'F'+idL+'" class="llocShowNot ocult'+shForm+'"></div>';}if(shRes==1){txt+='<div id="resShowNot'+idN+'F'+idL+'" class="resShowNot'+shForm+'"></div>';}else{txt+='<div id="resShowNot'+idN+'F'+idL+'" class="resShowNot ocult'+shForm+'"></div>';}if(shDes==1){txt+='<div  id="descShowNot'+idN+'F'+idL+'" class="desShowNot'+shForm+'"></div>';}else{txt+='<div  id="descShowNot'+idN+'F'+idL+'" class="desShowNot ocult'+shForm+'"></div>';}if(shLink==1){txt+='<div id="linkShowNot'+idN+'F'+idL+'" class="linkShowNot'+shForm+'"></div>';}else{txt+='<div id="linkShowNot'+idN+'F'+idL+'" class="ocult'+shForm+'"></div>';}txt+='</div>  </div>';_$(idCont).innerHTML=txt;}function clkShowEditCssLliNot(){var idL=_$('editLliNotMain').getAttribute('idL');showGetEditCss(idL,'','llista_noticies');}
