
function getPropertyLang(jsObj){var JSON=$.toJSON(jsObj);var ajaxURL="/remotegateways/utilsremote.cfc";var postData="method=getPropertyLang&jsonLanguage="+JSON;var strReturnMsg='';$.ajax({type:"POST",url:ajaxURL,data:postData,success:function(msg){strReturnMsg=msg;},error:function(msg){},async:false});return strReturnMsg;}
function changeOverviewLanguage(lang,appLang)
{if(lang=='')
return;var objLangContent=new Object();objLangContent.propertyID=document.getElementById('propertyID').value;objLangContent.langCode=lang;objLangContent.appLangCode=appLang;objLangContent.type='overview';var strJSON=getPropertyLang(objLangContent);var langJSON=eval('('+strJSON+')');$("#overviewIntro").html(langJSON.INTRO);$("#overviewText").html(langJSON.DESCRIPTION);if(langJSON.ACCOMMODATION.length)
{$("#overviewAccommodationTitle").html('<strong>'+langJSON.ACCOMMODATIONTITLE+'</strong>');$("#overviewAccommodation").html(langJSON.ACCOMMODATION);$("#overviewAccommodation,#overviewAccommodationTitle").show();}else
{$("#overviewAccommodation,#overviewAccommodationTitle").hide();}
if(langJSON.LOCATION.length)
{$("#overviewLocationTitle").html('<strong>'+langJSON.LOCATIONTITLE+'</strong>');$("#overviewLocation").html(langJSON.LOCATION);$("#overviewLocation,#overviewLocationTitle").show();}else
{$("#overviewLocation,#overviewLocationTitle").hide();}
$('#overviewPane').jScrollPane({showArrows:true,scrollbarWidth:15,arrowSize:16});}
function changeImportantInfoLanguage(lang,appLang)
{if(lang=='')
return;var objLangContent=new Object();objLangContent.propertyID=document.getElementById('propertyID').value;objLangContent.langCode=lang;objLangContent.appLangCode=appLang;objLangContent.type='importantInfo';var strJSON=getPropertyLang(objLangContent);var langJSON=eval('('+strJSON+')');$("#importantInfoP").html(langJSON.EXTRAINFO);}
$(function(){if($('#overviewAccommodation')&&$('#overviewAccommodation').html().length==0){$("#overviewAccommodationTitle,#overviewAccommodation").hide();}
if($('#overviewLocation')&&$('#overviewLocation').html().length==0){$("#overviewLocationTitle,#overviewLocation").hide();}
$('#overviewPane').jScrollPane({showArrows:true,scrollbarWidth:15,arrowSize:16});});
