function getScreenDimension(){var C=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
var B=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
var D=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
var A=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
return{t:C,l:B,h:D,w:A}
}dojo.declare("FloatingLabel",[],{domNode:null,visible:false,anim:null,constructor:function(A){dojo.mixin(this,A);
if(this.domNode==null){this.domNode=dojo.create("div",{style:{display:"block",position:"absolute",zindex:this.zindex||"10000",top:this.top||"0px",left:this.left||"0px"},id:"FloatingLabel",innerHTML:this.message})
}},show:function(E,D){E?this.setMessage(E):0;
var C=dojo.marginBox(this.domNode);
if(!D){var A=getScreenDimension();
C.l=A.l+(A.w/2)-(C.w/2);
C.t=A.t+(A.h/2)-(C.h/2)
}else{var B=dojo.byId(D);
console.log(dojo.toJson(dojo.marginBox(B)));
relBox=dojo.marginBox(B);
C.l=relBox.l+relBox.w+10;
C.t=relBox.t
}dojo.marginBox(this.domNode,C);
this.visible=true
},hide:function(){if(this.visible){this.visible=false;
var E=this.domNode;
var D=dojo.marginBox(this.domNode);
var B=getScreenDimension();
var A=D.w+D.l+10000;
var C=D.h+D.t+10000;
D.l=-1*A;
D.t=-1*C;
dojo.marginBox(this.domNode,D)
}},setMessage:function(A){this.domNode.innerHTML=A
},setVisible:function(A){A?this.show():this.hide()
}});
var dialog=null;
function showMessage(B,A){if(dialog==null){dialog=new FloatingLabel()
}if(A){A=dojo.byId(A);
dojo.place(dialog.domNode,A.parentNode,"last")
}else{dojo.place(dialog.domNode,dojo.body(),"last")
}dialog.show(B,A)
}function hideMessage(){if(dialog){dialog.hide()
}}var oldContent=null;
var previousNode=null;
function expandDescriptionMessage(A,C,B){colapseDescriptionMessage();
oldContent=C.innerHTML;
previousNode=C;
C.innerHTML=document.getElementById(A).innerHTML
}function colapseDescriptionMessage(){if(previousNode){previousNode.innerHTML=oldContent;
previousNode=null
}}function nextAvis(){if(currentIndex==avisClients.length-1){toggleNavigationLinks();
return 
}if(avisClients.length>0){currentIndex++;
showAvisClient(currentIndex)
}toggleNavigationLinks()
}function prevAvis(){if(currentIndex==0){toggleNavigationLinks();
return 
}if(avisClients.length>0){currentIndex--;
showAvisClient(currentIndex)
}toggleNavigationLinks()
}function toggleNavigationLinks(){var B="inline";
var A="inline";
if(currentIndex==avisClients.length-1){A="none"
}if(currentIndex==0){B="none"
}document.getElementById("precedentNavigationLien").style.display=B;
document.getElementById("suivantNavigationLien").style.display=A
}function showAvisClient(A){document.getElementById("avisDescription").innerHTML=avisClients[A].description;
document.getElementById("avisNomClient").innerHTML=avisClients[A].nomClient
}function buildSearchLink(){var B=document.getElementById("destination").options[document.getElementById("destination").selectedIndex].id;
var E=document.getElementById("destination").options[document.getElementById("destination").selectedIndex].value;
var G="0";
var A="0";
if(E.indexOf("-")!=-1){G=E.substring(0,E.indexOf("-"));
document.getElementById("destination").value=E.substring(0,E.indexOf("-"));
A=E.substring(E.indexOf("-")+1,E.length);
E=E.substring(E.indexOf("-")+1,E.length);
document.getElementById("comparateurForm").zone.value=E
}else{G=E;
document.getElementById("destination").value=E
}var D=document.getElementById("navireCrit").options[document.getElementById("navireCrit").selectedIndex].id;
var F=document.getElementById("navireCrit").options[document.getElementById("navireCrit").selectedIndex].value;
var C="";
if(E!="0"){C="croisieres/croisiere-"+B+"/destination,"+G+","+A+"/"
}else{if(F!="0"){C="croisieres/croisiere-"+D+"/navire,"+F+"/"
}else{C="croisieres/croisiere/destination,0,0/"
}}document.getElementById("comparateurForm").action=document.getElementById("comparateurForm").action+C;
document.getElementById("moisdepart").value=simpleDate(document.getElementById("moisdepart").value)
}function submitSearchForm(){var A=document.getElementById("comparateurForm").action;
buildSearchLink();
document.getElementById("comparateurForm").submit();
document.getElementById("comparateurForm").action=A
}function updatePageNumber(A){document.getElementById("pageNo").value=A;
document.getElementById("hiddenForm").submit()
}function size(C){var B=document.getElementById(C);
H=getHeight(C);
T=getY(C);
var A=H+T;
regleCSS(A)
}function getHeight(A){return document.getElementById(A).offsetHeight
}function getY(A){return document.getElementById(A).offsetTop
}function regleCSS(A){if(document.getElementById("spacer_header")){var B=document.getElementById("spacer_header");
B.style.height=A+"px"
}}function isThematiquePage(){var B=new RegExp(/.*[\/]{1}croisieres[\/]{1}croisiere([-\w\n]*)[\/]{1}thematique.*/i);
var A=window.location+"";
if(A.match(B)){return true
}else{return false
}}function isThematiqueMiniCroisierePage(){var B=new RegExp(/.*[\/]{1}croisieres[\/]{1}croisiere([-\w\n]*)[\/]{1}thematique,3/i);
var A=window.location+"";
if(A.match(B)){return true
}else{return false
}}function isDestinationPage(){var B=new RegExp(/.*[\/]{1}croisieres[\/]{1}croisiere([-\w\n]*)[\/]{1}destination.*/i);
var A=window.location+"";
if(A.match(B)){return true
}else{return false
}}function isCompagniePage(){var B=new RegExp(/.*[\/]{1}croisieres[\/]{1}croisiere([-\w\n]*)[\/]{1}compagnie.*/i);
var A=window.location+"";
if(A.match(B)){return true
}else{return false
}}function isNavirePage(){var B=new RegExp(/.*[\/]{1}croisieres[\/]{1}croisiere([-\w\n]*)[\/]{1}navire.*/i);
var A=window.location+"";
if(A.match(B)){return true
}else{return false
}}function deleteDestinationCriteria(G,F,D,A,B,E){showMessage(B);
var C=document.getElementById("hiddenForm").action;
if(C.indexOf("async-results/")!=-1){C=C.substring(0,C.indexOf("async-results/"))
}if(G=="destination"){document.getElementById("hiddenForm").destination.value="0";
document.getElementById("hiddenForm").zone.value="0";
document.getElementById("hiddenForm").pageNo.value=1;
if(isDestinationPage()){C=C.substring(0,C.indexOf("croisieres/croisiere"));
C=C.concat("croisieres/croisiere");
if(A!=-1){C=C+"-"+getMoisName(A,E)+"/destination,0,0/mois,"+A+"/"
}else{C=C+"/destination,0,0/"
}}}if(G=="zone"){document.getElementById("hiddenForm").zone.value="0";
document.getElementById("hiddenForm").value=1;
if(isDestinationPage()){C=C.substring(0,C.indexOf("croisieres/croisiere"));
C=C.concat("croisieres/croisiere");
if(A!=-1){C=C+"-"+D+"-"+getMoisName(A,E)+"/destination,"+F+",0/mois,"+A+"/"
}else{C=C+"-"+D+"/destination,"+F+",0/"
}}}document.getElementById("hiddenForm").action=C;
document.getElementById("hiddenForm").submit()
}function deleteNavireCriteria(F,G,D,A,B,E){showMessage(B);
var C=document.getElementById("hiddenForm").action;
if(C.indexOf("async-results/")!=-1){C=C.substring(0,C.indexOf("async-results/"))
}if((isNavirePage()||isThematiquePage())&&!isThematiqueMiniCroisierePage()){C=C.substring(0,C.indexOf("croisieres/croisiere"));
C=C.concat("croisieres/croisiere");
if(F!="vide"){C=C.concat("-"+F)
}if(A!=-1){C=C+"-"+getMoisName(A,E)+"/destination,"+G+","+D+"/mois,"+A+"/"
}else{C=C+"/destination,"+G+","+D+"/"
}}document.getElementById("hiddenForm").action=C;
document.getElementById("hiddenForm").navire.value="0";
document.getElementById("hiddenForm").pageNo.value=1;
document.getElementById("hiddenForm").submit()
}function deleteArmateurCriteria(F,G,D,A,B,E){showMessage(B);
var C=document.getElementById("hiddenForm").action;
if(C.indexOf("async-results/")!=-1){C=C.substring(0,C.indexOf("async-results/"))
}if((isCompagniePage()||isThematiquePage())&&!isThematiqueMiniCroisierePage()){C=C.substring(0,C.indexOf("croisieres/croisiere"));
C=C.concat("croisieres/croisiere");
if(F!="vide"){C.concat("-"+F)
}if(A!=-1){C=C+"-"+getMoisName(A,E)+"/destination,"+G+","+D+"/mois,"+A+"/"
}else{C=C+"/destination,"+G+","+D+"/"
}}document.getElementById("hiddenForm").action=C;
document.getElementById("hiddenForm").compagnie.value="0";
document.getElementById("hiddenForm").pageNo.value=1;
document.getElementById("hiddenForm").submit()
}function deleteCriteria(P,B,Q,E){showMessage(Q);
var G=document.getElementById("hiddenForm").action;
var M="croisieres";
var D="croisiere";
var F="navire";
var A="compagnie";
var N="destination";
var I="thematique";
var C="croisiere-maritime";
var O="croisiere-fluviale";
var L="bons-plans-promotion-croisiere";
var K="croisiere-pas-cher";
if(E=="it"){M="crociera";
D="crociere";
F="navire";
A="compagnie";
N="destination";
I="thematique";
C="croisiere-maritime";
O="croisiere-fluviale";
L="bons-plans-promotion-croisiere";
K="croisiere-pas-cher"
}if(G.indexOf("async-results/")!=-1){G=G.substring(0,G.indexOf("async-results/"));
document.getElementById("hiddenForm").action=G
}switch(P){case"dateDepart":document.getElementById("hiddenForm").moisdepart.value="0";
if(G.indexOf("/mois,")!=-1){G=G.substring(0,G.indexOf("/mois,")+1);
if(G.indexOf("/"+N)!=-1){var J=G.split("/"+N);
if(J[0].lastIndexOf("-")!=-1){J[0]=J[0].substring(0,J[0].lastIndexOf("-"))
}G=J[0]+"/"+N+J[1]
}if(G.indexOf("/"+F)!=-1){var J=G.split("/"+F);
if(J[0].lastIndexOf("-")!=-1){J[0]=J[0].substring(0,J[0].lastIndexOf("-"))
}G=J[0]+"/"+F+J[1]
}if(G.indexOf("/"+A)!=-1){var J=G.split("/"+A);
if(J[0].lastIndexOf("-")!=-1){J[0]=J[0].substring(0,J[0].lastIndexOf("-"))
}G=J[0]+"/"+A+J[1]
}if(G.indexOf("/"+I)!=-1&&G.indexOf("/"+C)==-1&&G.indexOf("/"+O)==-1&&G.indexOf("/"+K)==-1){var J=G.split("/"+I);
if(J[0].lastIndexOf("-")!=-1){J[0]=J[0].substring(0,J[0].lastIndexOf("-"))
}G=J[0]+"/"+I+J[1]
}if(G.indexOf("/"+C)!=-1){G=G.substring(0,G.indexOf("/"+C));
G=G.concat("/"+C+"/")
}if(G.indexOf("/"+O)!=-1){G=G.substring(0,G.indexOf("/"+O));
G=G.concat("/"+O+"/")
}if(G.indexOf("/"+K)!=-1){G=G.substring(0,G.indexOf("/"+K));
G=G.concat("/"+L+"/")
}document.getElementById("hiddenForm").action=G
}break;
case"budget":document.getElementById("hiddenForm").budget.value="0";
break;
case"duree":document.getElementById("hiddenForm").duree.value="0";
if(isThematiqueMiniCroisierePage()){G=G.substring(0,G.indexOf(M+"/"+D));
G=G.concat(M+"/"+D+"/"+N+",0,0/");
document.getElementById("hiddenForm").action=G
}break;
case"avisNote":document.getElementById("hiddenForm").avisNote.value="0";
break
}document.getElementById("hiddenForm").pageNo.value=1;
document.getElementById("hiddenForm").submit()
}function updateArmateurCriteria(D,E,A,B){showMessage(B);
var C=document.getElementById("hiddenForm").action;
if(C.indexOf("async-results/")!=-1){C=C.substring(0,C.indexOf("async-results/"))
}if(isCompagniePage()){C=C.substring(0,C.indexOf("croisieres/croisiere"));
C=C.concat("croisieres/croisiere-");
C=C+D+"/compagnie,"+E+"/";
if(A!=-1){C=C+"mois,"+A+"/"
}}document.getElementById("hiddenForm").action=C;
document.getElementById("hiddenForm").compagnie.value=E;
document.getElementById("hiddenForm").navire.value="0";
document.getElementById("hiddenForm").pageNo.value=1;
document.getElementById("hiddenForm").submit()
}function updateNavireCriteria(B,A,C,D){showMessage(D);
showMessage(D);
var E=document.getElementById("hiddenForm").action;
if(E.indexOf("async-results/")!=-1){E=E.substring(0,E.indexOf("async-results/"))
}if(isNavirePage()){E=E.substring(0,E.indexOf("croisieres/croisiere"));
E=E.concat("croisieres/croisiere");
if(B.length>0){E=E.concat("-")
}if(C!=-1){E=E+B+"/navire,"+A+"/mois,"+C+"/"
}else{E=E+B+"/navire,"+A+"/"
}}document.getElementById("hiddenForm").action=E;
document.getElementById("hiddenForm").navire.value=A+"";
document.getElementById("hiddenForm").compagnie.value="0";
document.getElementById("hiddenForm").pageNo.value="1";
document.getElementById("hiddenForm").submit()
}function updateDestinationCriteria(G,A,F,B,C,E){showMessage(C);
if(G=="destination"){document.getElementById("hiddenForm").destination.value=F;
document.getElementById("hiddenForm").zone.value=0
}if(G=="zone"){document.getElementById("hiddenForm").zone.value=F
}document.getElementById("hiddenForm").pageNo.value=1;
var D=document.getElementById("hiddenForm").action;
if(D.indexOf("async-results/")!=-1){D=D.substring(0,D.indexOf("async-results/"))
}if(isDestinationPage()){D=D.substring(0,(D.indexOf("croisieres/croisiere")));
D=D.concat("croisieres/croisiere");
if(A.length>0){D=D.concat("-")
}if(G=="destination"){if(B!=-1){D=D+A+"-"+getMoisName(B,E)+"/destination,"+F+",0/mois,"+B+"/"
}else{D=D+A+"/destination,"+F+",0/"
}}else{if(B!=-1){D=D+A+"-"+getMoisName(B,E)+"/destination,"+document.getElementById("hiddenForm").destination.value+","+F+"/mois,"+B+"/"
}else{D=D+A+"/destination,"+document.getElementById("hiddenForm").destination.value+","+F+"/"
}}}document.getElementById("hiddenForm").action=D;
document.getElementById("hiddenForm").submit()
}function updateMoisDepartCriteria(B,C,P,E){showMessage(P);
var F="navire";
var A="compagnie";
var N="destination";
var J="thematique";
var D="croisiere-maritime";
var O="croisiere-fluviale";
var I="croisiere-derniere-minute";
var M="bons-plans-promotion-croisiere";
var L="croisiere-pas-cher";
if(E=="it"){croisieres="crociera";
croisiere="crociere";
F="navire";
A="compagnie";
N="destination";
J="thematique";
D="croisiere-maritime";
O="croisiere-fluviale";
I="croisiere-derniere-minute";
M="bons-plans-promotion-croisiere";
L="croisiere-pas-cher"
}var G=document.getElementById("hiddenForm").action;
if(G.indexOf("/"+N)!=-1){var K=G.split("/"+N);
K[1]="/"+N+K[1]
}if(G.indexOf("/"+F)!=-1){var K=G.split("/"+F);
K[1]="/"+F+K[1]
}if(G.indexOf("/"+A)!=-1){var K=G.split("/"+A);
K[1]="/"+A+K[1]
}if(G.indexOf("/"+J)!=-1){var K=G.split("/"+J);
K[1]="/"+J+K[1]
}if(G.indexOf("/"+D)!=-1&&G.indexOf("/"+J)==-1){var K=new Array();
K[0]=G.substring(0,G.length-1);
if(G.indexOf("/mois")!=-1){K[1]="/"+J+",1"+G.substring(G.indexOf("/mois"),G.length)
}else{K[1]="/"+J+",1/"
}}if(G.indexOf("/"+O)!=-1&&G.indexOf("/"+J)==-1){var K=new Array();
K[0]=G.substring(0,G.length-1);
if(G.indexOf("/mois")!=-1){K[1]="/"+J+",2"+G.substring(G.indexOf("/mois"),G.length)
}else{K[1]="/"+J+",2/"
}}if(G.indexOf("/"+I)!=-1&&G.indexOf("/"+J)==-1){var K=new Array();
K[0]=G.substring(0,G.length-1);
if(G.indexOf("/mois")!=-1){K[1]="/"+J+",10"+G.substring(G.indexOf("/mois"),G.length)
}else{K[1]="/"+J+",10/"
}}if(G.indexOf("/"+M)!=-1&&G.indexOf("/"+J)==-1){var K=new Array();
K[0]=G.substring(0,G.indexOf("/"+M))+"/"+L;
if(G.indexOf("/mois")!=-1){K[1]="/"+J+",9"+G.substring(G.indexOf("/mois"),G.length)
}else{K[1]="/"+J+",9/"
}}if(G.indexOf("/"+L)!=-1&&G.indexOf("/"+J)==-1){var K=new Array();
K[0]=G.substring(0,G.length-1);
if(G.indexOf("/mois")!=-1){K[1]="/"+J+",9"+G.substring(G.indexOf("/mois"),G.length)
}else{K[1]="/"+J+",9/"
}}if(G.indexOf("/mois")!=-1){if(K[0].lastIndexOf("-")!=-1){K[0]=K[0].substring(0,K[0].lastIndexOf("-"))
}G=K[0]+"-"+C+K[1];
G=G.substring(0,G.indexOf("/mois"))+"/mois,"+B+"/"
}else{G=K[0]+"-"+C+K[1];
G=G+"mois,"+B+"/"
}document.getElementById("hiddenForm").moisdepart.value="0";
document.getElementById("hiddenForm").action=G;
document.getElementById("hiddenForm").submit()
}function updateCriteria(G,S,R,K,A,D){showMessage(K);
var Q="croisieres";
var I="croisiere";
var N="navire";
var J="compagnie";
var O="destination";
var C="thematique";
var F="croisiere-maritime";
var B="croisiere-fluviale";
var E="croisiere-derniere-minute";
var M="bons-plans-promotion-croisiere";
if(D=="it"){Q="crociera";
I="crociere";
N="navire";
J="compagnie";
O="destination";
C="thematique";
F="croisiere-maritime";
B="croisiere-fluviale";
E="croisiere-derniere-minute";
M="bons-plans-promotion-croisiere"
}var P=document.getElementById("hiddenForm").action;
if(P.indexOf("async-results/")!=-1){P=P.substring(0,P.indexOf("async-results/"));
document.getElementById("hiddenForm").action=P
}switch(G){case"dateDepart":document.getElementById("hiddenForm").moisdepart.value=simpleDate(S);
break;
case"budget":document.getElementById("hiddenForm").budget.value=S;
break;
case"duree":document.getElementById("hiddenForm").duree.value=S;
if(isThematiqueMiniCroisierePage()){P=P.substring(0,P.indexOf(Q+"/"+I));
P=P.concat(Q+"/"+I+"/"+O+",0,0/");
document.getElementById("hiddenForm").action=P
}break;
case"avisNote":document.getElementById("hiddenForm").avisNote.value=S;
break;
case"navire":updateNavireCriteria(A,S,R,K);
break;
case"order":document.getElementById("hiddenForm").orderType.value=S;
break;
case"moisdepart":document.getElementById("hiddenForm").moisdepart.value=simpleDate(S);
if(P.indexOf("/mois,")!=-1){P=P.substring(0,P.indexOf("/mois,")+1);
if(P.indexOf("/"+O)!=-1){var L=P.split("/"+O);
if(L[0].lastIndexOf("-")!=-1){L[0]=L[0].substring(0,L[0].lastIndexOf("-"))
}P=L[0]+"/"+O+L[1]
}if(P.indexOf("/"+N)!=-1){var L=P.split("/"+N);
if(L[0].lastIndexOf("-")!=-1){L[0]=L[0].substring(0,L[0].lastIndexOf("-"))
}P=L[0]+"/"+N+L[1]
}if(P.indexOf("/"+J)!=-1){var L=P.split("/"+J);
if(L[0].lastIndexOf("-")!=-1){L[0]=L[0].substring(0,L[0].lastIndexOf("-"))
}P=L[0]+"/"+J+L[1]
}if(P.indexOf("/"+C)!=-1){var L=P.split("/"+C);
if(L[0].lastIndexOf("-")!=-1){L[0]=L[0].substring(0,L[0].lastIndexOf("-"))
}P=L[0]+"/"+C+L[1]
}document.getElementById("hiddenForm").action=P
}break
}if(G!="navire"){document.getElementById("hiddenForm").pageNo.value=1;
document.getElementById("hiddenForm").submit()
}}function verifyTravelsSelected(){var A=$('input[type=radio][name="travelIdsToCompareList"]:checked').length;
alert("nbOffres:"+A);
if((A<1)||(A>4)){alert("Comparez jusqu'� 4 offres")
}else{alert("Lancer la comparaison")
}}function showContent(D,B){var A=$("ul>li").length;
for(var C=1;
C<=A;
C++){$("li#tab"+C).removeClass("on")
}$("li#tab"+B).toggleClass("on");
htmlInclude=D+B+".htm";
$("#tabsContent").load(htmlInclude)
}function initGallery(B){if(B=="1"){var A="#slideshow"
}else{var A="#slideshow2"
}$("'+slider+'").serialScroll({items:"li",prev:"a.prev",next:"a.next",offset:-62,start:1,cycle:false,easing:"easeOutQuart",jump:true})
}function showPicture(D){var A=D.split("_")[0];
var C=D.split("_")[1];
var B=document.getElementById(D).getElementsByTagName("IMG")[0];
document.getElementById("photo_"+A).setAttribute("src",B.getAttribute("src"));
document.getElementById("photo_"+A).setAttribute("title",B.getAttribute("title"))
}function loadSlideshow(){initGallery("1");
initGallery("2");
if($("#slideshow").length!=0){showPicture("croisiere","0")
}if($("#slideshow2").length!=0){showPicture("navire","0")
}}function getMoisName(A,B){if(B=="fr"){switch(A){case 1:return"janvier";
case 2:return"fevrier";
case 3:return"mars";
case 4:return"avril";
case 5:return"mai";
case 6:return"juin";
case 7:return"juillet";
case 8:return"aout";
case 9:return"septembre";
case 10:return"octobre";
case 11:return"novembre";
case 12:return"decembre"
}}if(B=="it"){switch(A){case 1:return"gennaio";
case 2:return"febbraio";
case 3:return"marzo";
case 4:return"aprile";
case 5:return"maggio";
case 6:return"giugno";
case 7:return"luglio";
case 8:return"agosto";
case 9:return"settembre";
case 10:return"ottobre";
case 11:return"novembre";
case 12:return"dicembre"
}}};