var objPopup="";function selectRow(G,F){if((!F&&objPopup)||(F&&objPopup&&objPopup!=F)){closeNewPopupArea(objPopup)}var C=document.getElementsByTagName("table");for(var E=0;E<C.length;E++){var B=C[E];if(B.className=="qxFormTable"||B.className=="qxRiepilogoTable"){var A=B.tBodies[0];for(var D=0;D<A.rows.length;D++){A.rows[D].style.backgroundColor="#ffffff"}G.style.backgroundColor="#e8ebf1"}}}function selectRowById(B,A){selectRow(document.getElementById(B),A)}function newPopupArea(A,B){if(objPopup&&objPopup==B){closeNewPopupArea(objPopup)}else{if(objPopup){closeNewPopupArea(objPopup)}objPopup=B;PopupArea(A,B)}}function closeNewPopupArea(A){jsAreaClose(A);objPopup=""}function newIndirectPopupArea(I,J,H,F){if(objPopup){closeNewPopupArea(objPopup)}try{var K;if(I.srcElement!=null){K=I.srcElement.id}else{K=I.currentTarget.id}var G=document.getElementById(K);var E=findPosX(G);if(E!=""&&E!=null){E=E+G.offsetWidth+5}var C=findPosY(G);var D=document.getElementById("HelpShim");if(D.style.display=="none"){if(document.layers){posx=E;posy=C;xMousePosMax=window.innerWidth+window.pageXOffset;yMousePosMax=window.innerHeight+window.pageYOffset}else{if(document.all){posx=E+document.body.scrollLeft;posy=C+document.body.scrollTop;xMousePosMax=document.body.clientWidth+document.body.scrollLeft;yMousePosMax=document.body.clientHeight+document.body.scrollTop}else{posx=E;posy=C;xMousePosMax=window.innerWidth+window.pageXOffset;yMousePosMax=window.innerHeight+window.pageYOffset}}posx=posx+H;posy=posy+F;if((posx*1)+309>xMousePosMax*1){posx=(xMousePosMax*1)-329}var A=GetArea(J);A.popareaup(posx,posy);var B=document.getElementById(J);D.style.height=B.scrollHeight+(B.offsetHeight-B.clientHeight);D.style.width=B.scrollWidth+(B.offsetWidth-B.clientWidth)-20;objPopup=J}else{this.document.focus()}}catch(I){}}function resizeQuixa(){if(typeof (resizePriv)!="undefined"){resizePriv()}}var arrSezioniRecuperoPrev=["sezSituazioneAssicurativa","ctl00_ContentPlaceHolderMainArea_SimulatorContentPlaceHolderMainArea1_ucQuoteSave_trTableContr","sezLocanteVincolante","sezCaratteristicheMoto","sezDatiProprietarioVeicolo","ctl00_ContentPlaceHolderMainArea_SimulatorContentPlaceHolderMainArea1_ucVehicleData_sezCaratteristicheVeicolo","sezGaranzie1"];function contraiEspandi(A){var B;var C=window.location.href;if(C.indexOf("/simulator.aspx?recuperar=")!=-1){document.getElementById("img_"+A).style.display="block";B=document.getElementById(A);if(!B){return }else{if(B.style.display=="none"){espandiSez(A)}else{contraiSez(A)}}}else{}}function espandiSez(A){var C=document.getElementById(A);if(!C){return }C.style.display="";var B=document.getElementById("img_"+A);var D=B.getAttribute("src");D=D.replace(/b_espandi.gif/,"b_contrai.gif");B.setAttribute("src",D)}function contraiSez(A){var C=document.getElementById(A);if(!C){return }C.style.display="none";var B=document.getElementById("img_"+A);var D=B.getAttribute("src");D=D.replace(/b_contrai.gif/,"b_espandi.gif");B.setAttribute("src",D)}function contraiEspandiTutto(D){var A=document.getElementById("a_contraiEspandiTutto");var B=document.getElementById("img_contraiEspandiTutto");var C=B.getAttribute("src");if(C.indexOf("b_espandi.gif")>=0){C=C.replace(/b_espandi.gif/,"b_contrai.gif");B.setAttribute("src",C);A.innerHTML="Contrai tutte le voci";espandiTutto(D)}else{C=C.replace(/b_contrai.gif/,"b_espandi.gif");B.setAttribute("src",C);A.innerHTML="Espandi tutte le voci";contraiTutto(D)}}function espandiTutto(C){for(var A=0;A<arrSezioniRecuperoPrev.length;A++){try{if(C!=null&&C&&arrSezioniRecuperoPrev[A]=="ctl00_ContentPlaceHolderMainArea_SimulatorContentPlaceHolderMainArea1_ucVehicleData_sezCaratteristicheVeicolo"){break}else{espandiSez(arrSezioniRecuperoPrev[A])}}catch(B){}}}function contraiTutto(C){for(var A=0;A<arrSezioniRecuperoPrev.length;A++){try{if(C!=null&&C&&arrSezioniRecuperoPrev[A]=="ctl00_ContentPlaceHolderMainArea_SimulatorContentPlaceHolderMainArea1_ucVehicleData_sezCaratteristicheVeicolo"){break}else{contraiSez(arrSezioniRecuperoPrev[A])}}catch(B){}}};