function updateSeoContent(A){if(!A){A=getCommandValues()
}updateSeoContentFromCommand(A)
}function updateSeoContentFromCommand(D){var M=D.destinationCountries;
var J=D.destinationCities;
var I=D.departureCities;
var E="?";
for(var H=0;
H<M.length;
H++){if(E.length!=1){E+="&"
}E+="destinationCountries="+M[H]
}var B=E;
for(var H=0;
H<J.length;
H++){if(B.length!=1){B+="&"
}B+="destinationCities="+J[H]
}var L="&departureCities=";
for(var H=0;
H<I.length;
H++){if(H!=0){L+="&departureCities="
}L+=I[H]
}var A="&themeSpace="+D.themeSpace;
var G=((D.theme=="")?D.themeKis1:D.theme);
var K="&theme=";
if(G!=null){K+=G
}var C="&departureDate="+D.departureDate;
var F="&departureDateRange="+D.departureDateRange;
$("#description").load(detailLink("/showsearchresults-description"+E+A+K),function(){displayDescription()
});
$("#pictures").load(detailLink("/showsearchresults-pictures"+E),function(){displayGenericDiv("#pictures")
});
$("#weather").load(detailLink("/showsearchresults-weather"+B+C+F),function(){displayGenericDiv("#weather")
});
$("#meteocontent").load(detailLink("/showsearchresults-meteo"+B+C+F),function(){displayGenericDiv("#meteocontent")
});
$("#tauxdechange").load(detailLink("/showsearchresults-exchangerate"+E),function(){displayGenericDiv("#tauxdechange")
});
$("#pictureCountry").load(detailLink("/showsearchresults-picturecountry"+B),function(){displayGenericDiv("#pictureCountry")
});
$.getJSON(detailLink("/showsearchresults-map"+B+C+A+K+"&json=true"),function(N){if(N.empty){removeAllLabels(googleMap);
$("#map_canvas").hide()
}else{currentCountry=N.currentCountry;
if(googleMap==undefined){googleMap=initializeMap(N.empty,N.latLngCitiesHash,N.zoomLvl)
}else{removeAllLabels(googleMap);
drawMapInformation(googleMap,N.latLngCitiesHash,N.zoomLvl)
}}});
$("#mainofferscontent").load(detailLink("/showsearchresults-mainoffers"+B+A+K),function(){displayGenericDiv("#mainofferscontent")
});
$("#topdestinationcontent").load(detailLink("/showsearchresults-topdestination"+E+A+L),function(){displayGenericDiv("#topdestinationcontent")
});
$("#breadcrumb").load(detailLink("/showsearchresults-breadcrumb"+B+C+F+A+K+L),function(){displayGenericDiv("#breadcrumb")
});
$("#resultsSummary").load(detailLink("/showsearchresults-summary"+B+A+K+L),function(){displayGenericDiv("#resultsSummary")
})
}function displaySeoContentOnLoad(){displayDescription();
displayGenericDiv("#pictures");
displayGenericDiv("#mainofferscontent");
displayGenericDiv("#topdestinationcontent");
displayGenericDiv("#weather")
}function displayDescription(){displayGenericDiv("#description");
if($("#description").css("display")=="none"){$("#bestoffrescontent").show()
}else{$("#bestoffrescontent").hide()
}}function displayGenericDiv(A){if($.trim($(A).html())==""){$(A).css({display:"none"})
}else{$(A).css({display:""})
}}function verifyPictureAndWeather(){var B=$.trim($("#pictures").html())!="";
var A=$.trim($("#weather").html())!="";
if(A&&!B){$("#weather").css("display","none");
$("#weather").html("")
}else{if(B&&!A){$("#pictures").css("width","960px")
}else{$("#pictures").css("width","")
}}};