tjq(document).ready(function() { tjq(window).click(function() { tjq("#person_selected").addClass("hide"); }); tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_from]" ).val(''); tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_to]" ).val(''); tjq("#bookingSearch_bookSearch #sel_persons").on("click", function(event) { event.stopPropagation(); tjq("#person_selected").css({ position: 'absolute', left: (tjq(this).offset().left+5), top: (tjq(this).offset().top+34) }); tjq("#person_selected").removeClass("hide"); }); tjq("#person_selected #btn_confirm").on("click", function(event) { event.stopPropagation(); var ages = ""; tjq('.mages_sel option:selected').each(function(){ if(tjq(this).val() != "") { ages += (ages!="") ? ","+tjq(this).val() : tjq(this).val(); } }); if(bs_checkAges( tjq('.mchildren_sel'), ages )) { tjq('#bookingSearch_madults').val(tjq('.madults_sel option:selected').val()); tjq('#bookingSearch_mchildren').val(tjq('.mchildren_sel option:selected').val()); tjq('#bookingSearch_mages').val(ages); var text = ""; if (tjq('#bookingSearch_madults').val() > 0) { text += tjq('#bookingSearch_madults').val(); } if (tjq('#bookingSearch_mchildren').val() > 0) { text += ' ' + tjq('#bookingSearch_mchildren').val(); } tjq("#bookingSearch_bookSearch #sel_persons > span").html(''); tjq("#bookingSearch_bookSearch #sel_persons > span").html(text); tjq("#bookingSearch_bookSearch #sel_persons small").html(''); if(tjq('#bookingSearch_mages').val() != "") { var printAges = tjq('#bookingSearch_mages').val(); tjq("#bookingSearch_bookSearch #sel_persons small").html('ans: ' + printAges.replace(/,/g ,', ')+''); } tjq("#person_selected").addClass("hide"); } }); var weekdays = [ "dim", "lun", "mar", "mer", "jeu", "ven", "sam" ]; var monthnames = [ "janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc." ]; tjq('#sel_calendar').daterangepicker({ "locale": { "format": "DD/MM/YYYY", "separator": " - ", "applyLabel": "Confirmer", "cancelLabel": "Annuler", "fromLabel": "From", "toLabel": "To", "customRangeLabel": "Custom", "weekLabel": "W", "daysOfWeek": [ "D","L","M","M","J","V","S" ], "monthNames": [ "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre" ], "firstDay": 1 }, "autoApply": true, "alwaysShowCalendars": true, "minDate": "12/08/2018" }, function(start, end, label) { var night = 'nuit'; var days = daysDifference(start,end); if( days > 1 ) { night = 'nuits'; } tjq('#sel_calendar').html(''+weekdays[start.format('d')]+'. '+start.format("D ") + monthnames[start.format('M')-1] + ' - ' + weekdays[end.format('d')]+'. '+end.format("D ") + monthnames[end.format('M')-1] + '' + days + ' ' + night +''); tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_from]" ).val(start.format('DD/MM/YYYY')); tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_to]" ).val(end.format('DD/MM/YYYY')); }); function daysDifference(d0, d1) { var diff = new Date(+d1).setHours(12) - new Date(+d0).setHours(12); return Math.round(diff/8.64e7); } }); tjq('#bookingSearch_dateUnknown').on('click', function() { if(tjq(this).is(':checked')) { tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_from]" ).val(''); tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_to]" ).val(''); } }); tjq('#bookingSearch_bookSearch') .on('change', '.bookingSearch_mchildren', function() { tjq('.new_bookingSearch_mages').remove(); for(i=1; i<=tjq('.bookingSearch_mchildren option:selected').val(); i++) { var $template = tjq('#bookingSearch_bookTemplate'), $clone = $template .clone() .removeClass('hide') .addClass('new_bookingSearch_mages') .removeAttr('id') .insertBefore($template), $option = $clone.find('[name="bookingSearch_mages[]"]'); } }); tjq('#person_selected').on("click", function(event) { event.stopPropagation(); }); tjq('#person_selected') .on('change', '.mchildren_sel', function(event) { event.stopPropagation(); tjq('.new_mages_sel').remove(); tjq('#mchildren_sel_custom').html(tjq('.mchildren_sel option:selected').val()); for(i=1; i <= tjq('.mchildren_sel option:selected').val(); i++) { var $template = tjq('#bookTemplate'), $clone = $template .clone() .removeClass('hide') .addClass('new_mages_sel') .removeAttr('id') .insertBefore($template), $option = $clone.find('[name="mages_sel[]"]'); $option.val(''); } }); tjq('#person_selected') .on('each', '.mchildren_sel', function(event) { event.stopPropagation(); tjq('.new_mages_sel').remove(); tjq('#mchildren_sel_custom').html(tjq('.mchildren_sel option:selected').val()); for(i=1; i <= tjq('.mchildren_sel option:selected').val(); i++) { var $template = tjq('#bookTemplate'), $clone = $template .clone() .removeClass('hide') .addClass('new_mages_sel') .removeAttr('id') .insertBefore($template), $option = $clone.find('[name="mages_sel[]"]'); $option.val(''); } }); tjq('#person_selected .mchildren_sel') .focus(function(event) { event.stopPropagation(); tjq('#mchildren_sel_custom').html(tjq('.mchildren_sel option:selected').val()); for(i=1; i <= (tjq('.mchildren_sel option:selected').val() - tjq('.new_mages_sel').length); i++) { var $template = tjq('#bookTemplate'), $clone = $template .clone() .removeClass('hide') .addClass('new_mages_sel') .removeAttr('id') .insertBefore($template), $option = $clone.find('[name="mages_sel[]"]'); $option.val(''); } }); var bs_date_from = tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_from]" ); var bs_date_to = tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_to]" ); var bs_children = tjq("#bookingSearch_mchildren").val(); var allFields = tjq( [] ).add( bs_date_from ).add( bs_date_to ); var dateRegex = /^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$/; function bs_checkRegexp( o, regexp ) { if ( !( regexp.test( o.val() ) ) ) { tjq('label[for="'+ o.attr('name') +'"]').css( "color", "#FFF" ); tjq('label[for="'+ o.attr('name') +'"]').css( "background-color", "#F00" ); return false; } else { tjq('label[for="'+ o.attr('name') +'"]').css( "color", "" ); tjq('label[for="'+ o.attr('name') +'"]').css( "background-color", "" ); return true; } } function bs_checkAges( o, o2 ) { var a_o2 = o2.split(","); if ((o.val() > 0) && ((o2 == '') || (o.val() != a_o2.length ))) { tjq('label[for="'+ o.attr('name') +'"]').css( "color", "#FFF" ); tjq('label[for="'+ o.attr('name') +'"]').css( "background-color", "#F00" ); return false; } else { tjq('label[for="'+ o.attr('name') +'"]').css( "color", "" ); tjq('label[for="'+ o.attr('name') +'"]').css( "background-color", "" ); return true; } } var bs_ChildrenAges = ""; function bs_searchDatesString(){ var searchInfoText = ""; var childrenText = ""; arrArr = tjq("#bookingSearch_bookSearch input[name=bookingSearch_date_from]").val().split("/"); arrDep = tjq("#bookingSearch_bookSearch input[name=bookingSearch_date_to]").val().split("/"); var jArr = new Date(arrArr[2], arrArr[1]-1, arrArr[0], 12, 0, 0, 0); var jDep = new Date(arrDep[2], arrDep[1]-1, arrDep[0], 13, 0, 0, 0); var arrayWeekdays = ["Di","Lu","Ma","Me","Je","Ve","Sa"]; var arrWeekday = arrayWeekdays[jArr.getDay()]; var depWeekday = arrayWeekdays[jDep.getDay()]; var nbOfNights = parseInt((jDep.getTime()-jArr.getTime())/(24*3600*1000)); if (nbOfNights==1){ nightsName = "nuit"; }else{ nightsName = "nuits"; } searchInfoText = arrArr[0] + '.' + arrArr[1] + ' (' + arrWeekday + ') - ' + arrDep[0] + '.' + arrDep[1] + ' (' + depWeekday + ')'; searchInfoText = searchInfoText + ', ' + nbOfNights + ' ' + nightsName; return searchInfoText; } function bs_searchPersonString(){ var searchInfoText = ""; var childrenText = ""; if(bs_ChildrenAges!=""){ arrChildren = bs_ChildrenAges.split(","); nbOfChildren = arrChildren.length; if(nbOfChildren>0){ childrenText = ', ' + nbOfChildren + ' Enfant(s) ('; newChildren = ""; for(ch=0;ch0) newChildren = newChildren + ","; newChildren = newChildren + "" + arrChildren[ch]; } arrNewChildren = newChildren.split(","); arrNewChildren.sort(function(a,b){return a-b}); newChildren = ""; for(nc=0;ncAgriH\u00f4tel Su Vrau<\/b>
Posada","city":"Posada","name":"AgriH\u00f4tel Su Vrau","seo":"agrihotel-su-vrau","type":"pg"},{"id":605,"value":"AgriRistoChic Resort Li Espi","label":"
AgriRistoChic Resort Li Espi<\/b>
Porto Pollo","city":"Porto Pollo","name":"AgriRistoChic Resort Li Espi","seo":"bed-and-breakfast-li-espi-palau","type":"pg"},{"id":330,"value":"Agrih\u00f4tel Morada","label":"Agrih\u00f4tel Morada<\/b>
Villa San Pietro","city":"Villa San Pietro","name":"Agrih\u00f4tel Morada","seo":"hotel-sa-prenda-villa-san-pietro","type":"pg"},{"id":853,"value":"Agriturismo Bonsai","label":"
Agriturismo Bonsai<\/b>
Alghero","city":"Alghero","name":"Agriturismo Bonsai","seo":"agriturismo-bonsai","type":"pg"},{"id":314,"value":"Agriturismo Ca' La Somara","label":"Agriturismo Ca' La Somara<\/b>
Arzachena","city":"Arzachena","name":"Agriturismo Ca' La Somara","seo":"bed-and-breakfast-ca-la-somara-arzachena","type":"pg"},{"id":999,"value":"Agriturismo Costa del Sud","label":"
Agriturismo Costa del Sud<\/b>
Teulada","city":"Teulada","name":"Agriturismo Costa del Sud","seo":"agriturismo-costa-del-sud","type":"pg"},{"id":419,"value":"Agriturismo Costiolu","label":"Agriturismo Costiolu<\/b>
Orune","city":"Orune","name":"Agriturismo Costiolu","seo":"agriturismo-costiolu-bitti-orune","type":"pg"},{"id":405,"value":"Agriturismo Guthiddai","label":"
Agriturismo Guthiddai<\/b>
Oliena","city":"Oliena","name":"Agriturismo Guthiddai","seo":"agriturismo-guthiddai-oliena","type":"pg"},{"id":840,"value":"Agriturismo I Mandorli","label":"Agriturismo I Mandorli<\/b>
Lotzorai","city":"Lotzorai","name":"Agriturismo I Mandorli","seo":"agriturismo-i-mandorli","type":"pg"},{"id":748,"value":"Agriturismo I Vigneti","label":"
Agriturismo I Vigneti<\/b>
Olmedo","city":"Olmedo","name":"Agriturismo I Vigneti","seo":"agriturismo-i-vigneti-olmedo","type":"pg"},{"id":417,"value":"Agriturismo Il Muto di Gallura","label":"Agriturismo Il Muto di Gallura<\/b>
Aggius","city":"Aggius","name":"Agriturismo Il Muto di Gallura","seo":"agriturismo-il-muto-di-gallura-aggius","type":"pg"},{"id":1133,"value":"Agriturismo Is Bisus","label":"
Agriturismo Is Bisus<\/b>
Castiadas","city":"Castiadas","name":"Agriturismo Is Bisus","seo":"agriturismo-is-bisus","type":"pg"},{"id":934,"value":"Agriturismo La Quercia","label":"Agriturismo La Quercia<\/b>
Arbus","city":"Arbus","name":"Agriturismo La Quercia","seo":"agriturismo-la-quercia","type":"pg"},{"id":1005,"value":"Agriturismo Neul\u00e8","label":"
Agriturismo Neul\u00e8<\/b>
Dorgali","city":"Dorgali","name":"Agriturismo Neul\u00e8","seo":"agriturismo-neule","type":"pg"},{"id":1185,"value":"Agriturismo Sa Mandra","label":"Agriturismo Sa Mandra<\/b>
Alghero","city":"Alghero","name":"Agriturismo Sa Mandra","seo":"agriturismo-sa-mandra","type":"pg"},{"id":410,"value":"Agriturismo Sa Murta","label":"
Agriturismo Sa Murta<\/b>
Sennariolo","city":"Sennariolo","name":"Agriturismo Sa Murta","seo":"agriturismo-sa-murta-sennariolo","type":"pg"},{"id":1032,"value":"Agriturismo Sa Perda Marcada","label":"Agriturismo Sa Perda Marcada<\/b>
Arbus","city":"Arbus","name":"Agriturismo Sa Perda Marcada","seo":"agriturismo-sa-perda-marcada","type":"pg"},{"id":434,"value":"Agriturismo Su Boschettu","label":"
Agriturismo Su Boschettu<\/b>
Pauli Arbarei","city":"Pauli Arbarei","name":"Agriturismo Su Boschettu","seo":"hotel-su-boschettu-pauli-arbarei","type":"pg"},{"id":1063,"value":"Agriturismo\/ B&B L'Aglientu","label":"Agriturismo\/ B&B L'Aglientu<\/b>
Azzani Loiri Porto San Paolo ","city":"Azzani Loiri Porto San Paolo ","name":"Agriturismo\/ B&B L'Aglientu","seo":"agriturismo-bb-laglientu","type":"pg"},{"id":1012,"value":"Appartement Birkin","label":"
Appartement Birkin<\/b>
Cagliari","city":"Cagliari","name":"Appartement Birkin","seo":"appartement-birkin","type":"pg"},{"id":414,"value":"Appartement Dentice","label":"Appartement Dentice<\/b>
La Caletta","city":"La Caletta","name":"Appartement Dentice","seo":"ferienwohnung-l-dettori-la-caletta","type":"pg"},{"id":385,"value":"Appartement Fragola","label":"
Appartement Fragola<\/b>
Bosa","city":"Bosa","name":"Appartement Fragola","seo":"ferienwohnung-fragola-bosa","type":"pg"},{"id":562,"value":"Appartement Frutta","label":"Appartement Frutta<\/b>
Alghero","city":"Alghero","name":"Appartement Frutta","seo":"ferienwohnung-frutta-alghero","type":"pg"},{"id":1034,"value":"Appartement Gabbianella","label":"
Appartement Gabbianella<\/b>
Cabras\/ Funtana Meiga","city":"Cabras\/ Funtana Meiga","name":"Appartement Gabbianella","seo":"appartement-gabbianella","type":"pg"},{"id":652,"value":"Appartement Gaviano 1","label":"Appartement Gaviano 1<\/b>
Cardedu","city":"Cardedu","name":"Appartement Gaviano 1","seo":"ferienwohnungen-gaviano-1-cardedu","type":"pg"},{"id":297,"value":"Appartement Gaviano 2","label":"
Appartement Gaviano 2<\/b>
Cardedu","city":"Cardedu","name":"Appartement Gaviano 2","seo":"ferienwohnungen-gaviano-2-cardedu","type":"pg"},{"id":925,"value":"Appartement I Venti - Trilo deluxe","label":"Appartement I Venti - Trilo deluxe<\/b>
Chia","city":"Chia","name":"Appartement I Venti - Trilo deluxe","seo":"appartement-i-venti--trilo-deluxe","type":"pg"},{"id":2288,"value":"Appartement Rosa","label":"
Appartement Rosa<\/b>
Is Mortorius","city":"Is Mortorius","name":"Appartement Rosa","seo":"appartement-rosa","type":"pg"},{"id":1105,"value":"Appartement Tradori","label":"Appartement Tradori<\/b>
Loc. Is Arenas\/ Narbolia","city":"Loc. Is Arenas\/ Narbolia","name":"Appartement Tradori","seo":"appartement-tradori","type":"pg"},{"id":316,"value":"Appartement Type 5","label":"
Appartement Type 5<\/b>
Costa Rei","city":"Costa Rei","name":"Appartement Type 5","seo":"ferienwohnung-typ-5-costa-rei","type":"pg"},{"id":318,"value":"Appartement Type 7c","label":"Appartement Type 7c<\/b>
Costa Rei","city":"Costa Rei","name":"Appartement Type 7c","seo":"ferienwohnung-typ-7c-costa-rei","type":"pg"},{"id":1136,"value":"Appartement-r\u00e9sidence Domus Cannigione","label":"
Appartement-r\u00e9sidence Domus Cannigione<\/b>
Cannigione","city":"Cannigione","name":"Appartement-r\u00e9sidence Domus Cannigione","seo":"appartement-residence-domus-cannigione","type":"pg"},{"id":1187,"value":"Appartements \"Residence Borgo Sa Marina\"","label":"Appartements \"Residence Borgo Sa Marina\"<\/b>
Barisardo","city":"Barisardo","name":"Appartements \"Residence Borgo Sa Marina\"","seo":"appartements-residence-borgo-sa-marina","type":"pg"},{"id":1099,"value":"Appartements Acacia","label":"
Appartements Acacia<\/b>
Cala Gonone","city":"Cala Gonone","name":"Appartements Acacia","seo":"appartements-acacia","type":"pg"},{"id":923,"value":"Appartements I Venti - Type bilo","label":"Appartements I Venti - Type bilo<\/b>
Chia","city":"Chia","name":"Appartements I Venti - Type bilo","seo":"appartements-i-venti--type-bilo","type":"pg"},{"id":924,"value":"Appartements I Venti - type trilo","label":"
Appartements I Venti - type trilo<\/b>
Chia","city":"Chia","name":"Appartements I Venti - type trilo","seo":"appartements-i-venti--type-trilo","type":"pg"},{"id":1025,"value":"Appartements Le Torri","label":"Appartements Le Torri<\/b>
Cagliari","city":"Cagliari","name":"Appartements Le Torri","seo":"appartements-le-torri","type":"pg"},{"id":1222,"value":"Appartements Le Zagare","label":"
Appartements Le Zagare<\/b>
San Teodoro","city":"San Teodoro","name":"Appartements Le Zagare","seo":"appartements-le-zagare","type":"pg"},{"id":1082,"value":"Appartements Mare di Ginepri","label":"Appartements Mare di Ginepri<\/b>
Badesi Mare","city":"Badesi Mare","name":"Appartements Mare di Ginepri","seo":"appartements-mare-di-ginepri","type":"pg"},{"id":863,"value":"Appartements Masone","label":"
Appartements Masone<\/b>
Castiadas","city":"Castiadas","name":"Appartements Masone","seo":"appartements-masone","type":"pg"},{"id":1182,"value":"Appartements Sa Fiorida","label":"Appartements Sa Fiorida<\/b>
La Ciaccia\/ Valledoria","city":"La Ciaccia\/ Valledoria","name":"Appartements Sa Fiorida","seo":"appartements-sa-fiorida","type":"pg"},{"id":1195,"value":"Appartements Sole Vacanze","label":"
Appartements Sole Vacanze<\/b>
La Ciaccia\/ Valledoria","city":"La Ciaccia\/ Valledoria","name":"Appartements Sole Vacanze","seo":"appartements-sole-vacanze","type":"pg"},{"id":650,"value":"Appartements Stazzi Giagumeddu - 2 pi\u00e8ces","label":"Appartements Stazzi Giagumeddu - 2 pi\u00e8ces<\/b>
Badesi","city":"Badesi","name":"Appartements Stazzi Giagumeddu - 2 pi\u00e8ces","seo":"ferienwohnungen-stazzi-giagumeddu-typ-bilo-badesi","type":"pg"},{"id":651,"value":"Appartements Stazzi Li Scalitti - 2 pi\u00e8ces","label":"
Appartements Stazzi Li Scalitti - 2 pi\u00e8ces<\/b>
Badesi","city":"Badesi","name":"Appartements Stazzi Li Scalitti - 2 pi\u00e8ces","seo":"ferienwohnungen-stazzi-li-scalitti-typ-bilo-badesi","type":"pg"},{"id":746,"value":"B&B Aigua","label":"B&B Aigua<\/b>
Alghero","city":"Alghero","name":"B&B Aigua","seo":"bed-and-breakfast-aigua-alghero","type":"pg"},{"id":1008,"value":"B&B Birkin","label":"
B&B Birkin<\/b>
Cagliari","city":"Cagliari","name":"B&B Birkin","seo":"bb-birkin","type":"pg"},{"id":583,"value":"B&B Il Quinto Moro","label":"B&B Il Quinto Moro<\/b>
Arbus","city":"Arbus","name":"B&B Il Quinto Moro","seo":"bed-and-breakfast-il-quinto-moro-arbus","type":"pg"},{"id":744,"value":"B&B La Tana di Cagliostro","label":"
B&B La Tana di Cagliostro<\/b>
Alghero","city":"Alghero","name":"B&B La Tana di Cagliostro","seo":"bed-and-breakfast-la-tana-di-cagliostro-alghero","type":"pg"},{"id":779,"value":"B&B Le Stanze di Patika","label":"B&B Le Stanze di Patika<\/b>
Tortol\u00ec","city":"Tortol\u00ec","name":"B&B Le Stanze di Patika","seo":"bed-and-breakfast-le-stanze-di-patika-tortoli","type":"pg"},{"id":572,"value":"B&B Monte Pino","label":"
B&B Monte Pino<\/b>
Priatu \/ Olbia","city":"Priatu \/ Olbia","name":"B&B Monte Pino","seo":"bed-and-breakfast-monte-pino-priatu-olbia","type":"pg"},{"id":197,"value":"B&B Nidi della Poiana","label":"B&B Nidi della Poiana<\/b>
Alghero","city":"Alghero","name":"B&B Nidi della Poiana","seo":"bed-and-breakfast-nidi-della-poiana-alghero","type":"pg"},{"id":1007,"value":"B&B Numero 3","label":"
B&B Numero 3<\/b>
Cagliari","city":"Cagliari","name":"B&B Numero 3","seo":"bb-numero-3","type":"pg"},{"id":571,"value":"B&B Piazza San Pantaleo","label":"B&B Piazza San Pantaleo<\/b>
Sorso","city":"Sorso","name":"B&B Piazza San Pantaleo","seo":"bed-and-breakfast-piazzasanpantaleo-sorso","type":"pg"},{"id":1023,"value":"B&B Rossofiore","label":"
B&B Rossofiore<\/b>
Castiadas","city":"Castiadas","name":"B&B Rossofiore","seo":"bb-rossofiore","type":"pg"},{"id":390,"value":"B&B S'Anninnia","label":"B&B S'Anninnia<\/b>
Gonnesa","city":"Gonnesa","name":"B&B S'Anninnia","seo":"bed-and-breakfast-s-anninnia-gonnesa","type":"pg"},{"id":1026,"value":"B&B Sa Cottilla","label":"
B&B Sa Cottilla<\/b>
Cabras","city":"Cabras","name":"B&B Sa Cottilla","seo":"bb-sa-cottilla","type":"pg"},{"id":679,"value":"B&B Sandalia","label":"B&B Sandalia<\/b>
Badesi\/ Muntiggioni","city":"Badesi\/ Muntiggioni","name":"B&B Sandalia","seo":"bed-and-breakfast-sandalia-badesi-muntiggioni","type":"pg"},{"id":393,"value":"B&B Sardinia Domus","label":"
B&B Sardinia Domus<\/b>
Cagliari","city":"Cagliari","name":"B&B Sardinia Domus","seo":"hotel-felice-cagliari","type":"pg"},{"id":437,"value":"B&B Stazzo Chivoni","label":"B&B Stazzo Chivoni<\/b>
Luogosanto","city":"Luogosanto","name":"B&B Stazzo Chivoni","seo":"bed-and-breakfast-stazzo-chivoni-luogosanto","type":"pg"},{"id":389,"value":"B&B Su Narboni Mannu","label":"
B&B Su Narboni Mannu<\/b>
Teulada","city":"Teulada","name":"B&B Su Narboni Mannu","seo":"bed-and-breakfast-su-narboni-mannu-teulada","type":"pg"},{"id":375,"value":"Boutique Hotel Lucrezia","label":"Boutique Hotel Lucrezia<\/b>
Riola Sardo","city":"Riola Sardo","name":"Boutique Hotel Lucrezia","seo":"hotel-lucrezia-riola-sardo","type":"pg"},{"id":1247,"value":"Brezza Marina Chambres De Luxe","label":"
Brezza Marina Chambres De Luxe<\/b>
Cagliari","city":"Cagliari","name":"Brezza Marina Chambres De Luxe","seo":"brezza-marina-chambres-de-luxe","type":"pg"},{"id":1248,"value":"Capo Boi Resort","label":"Capo Boi Resort<\/b>
Villasimius","city":"Villasimius","name":"Capo Boi Resort","seo":"capo-boi-resort","type":"pg"},{"id":935,"value":"Chambres d'h\u00f4tes Il Giardino Segreto","label":"
Chambres d'h\u00f4tes Il Giardino Segreto<\/b>
Cagliari","city":"Cagliari","name":"Chambres d'h\u00f4tes Il Giardino Segreto","seo":"chambres-dhotes-il-giardino-segreto","type":"pg"},{"id":278,"value":"Club Hotel Saraceno","label":"Club Hotel Saraceno<\/b>
Arbatax","city":"Arbatax","name":"Club Hotel Saraceno","seo":"hotel-club-saraceno-tortoli-gemiliano","type":"pg"},{"id":427,"value":"Country Hotel Mandra Edera","label":"
Country Hotel Mandra Edera<\/b>
Abbasanta","city":"Abbasanta","name":"Country Hotel Mandra Edera","seo":"hotel-mandra-edera-abbasanta","type":"pg"},{"id":745,"value":"Country H\u00f4tel Vessus","label":"Country H\u00f4tel Vessus<\/b>
Alghero","city":"Alghero","name":"Country H\u00f4tel Vessus","seo":"agriturismo-vessus-alghero","type":"pg"},{"id":1022,"value":"Country Resort Capo Nieddu","label":"
Country Resort Capo Nieddu<\/b>
S. Caterina di Pittinuri","city":"S. Caterina di Pittinuri","name":"Country Resort Capo Nieddu","seo":"country-resort-capo-nieddu","type":"pg"},{"id":977,"value":"Domus Olbia Inn","label":"Domus Olbia Inn<\/b>
Olbia ","city":"Olbia ","name":"Domus Olbia Inn","seo":"domus-olbia-inn","type":"pg"},{"id":663,"value":"Grand Soleil 45","label":"
Grand Soleil 45<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Grand Soleil 45","seo":"grand-soleil-45-marina-di-portisco","type":"pg"},{"id":188,"value":"Hotel & SPA Villa Las Tronas","label":"Hotel & SPA Villa Las Tronas<\/b>
Alghero","city":"Alghero","name":"Hotel & SPA Villa Las Tronas","seo":"hotel-villa-las-tronas-alghero","type":"pg"},{"id":381,"value":"Hotel \/ appartements Corte Fiorita - Albergo Diffuso","label":"
Hotel \/ appartements Corte Fiorita - Albergo Diffuso<\/b>
Bosa","city":"Bosa","name":"Hotel \/ appartements Corte Fiorita - Albergo Diffuso","seo":"hotel-appartements-corte-fiorita-albergo-diffuso-bosa","type":"pg"},{"id":243,"value":"Hotel Abi d'Oru","label":"Hotel Abi d'Oru<\/b>
Porto Rotondo","city":"Porto Rotondo","name":"Hotel Abi d'Oru","seo":"hotel-abi-d-oru-porto-rotondo","type":"pg"},{"id":227,"value":"Hotel Airone","label":"
Hotel Airone<\/b>
Golfo di Arzachena","city":"Golfo di Arzachena","name":"Hotel Airone","seo":"hotel-airone-golfo-di-arzachena","type":"pg"},{"id":689,"value":"Hotel Aldiola Country Resort","label":"Hotel Aldiola Country Resort<\/b>
Sant'Antonio di Gallura","city":"Sant'Antonio di Gallura","name":"Hotel Aldiola Country Resort","seo":"hotel-aldiola-country-resort-sant-antonio-di-gallura","type":"pg"},{"id":476,"value":"Hotel Alma di Alghero","label":"
Hotel Alma di Alghero<\/b>
Alghero","city":"Alghero","name":"Hotel Alma di Alghero","seo":"hotel-alma-di-alghero-alghero","type":"pg"},{"id":422,"value":"Hotel Antica Dimora del Gruccione - Albergo Diffuso","label":"Hotel Antica Dimora del Gruccione - Albergo Diffuso<\/b>
Santu Lussurgiu","city":"Santu Lussurgiu","name":"Hotel Antica Dimora del Gruccione - Albergo Diffuso","seo":"hotel-antica-dimora-del-gruccione-albergo-diffuso-santulussurgiu","type":"pg"},{"id":720,"value":"Hotel Antichi Ovili","label":"
Hotel Antichi Ovili<\/b>
Orroli","city":"Orroli","name":"Hotel Antichi Ovili","seo":"hotel-antichi-ovili-orroli","type":"pg"},{"id":339,"value":"Hotel Aquadulci","label":"Hotel Aquadulci<\/b>
Chia","city":"Chia","name":"Hotel Aquadulci","seo":"hotel-aquadulci-chia","type":"pg"},{"id":695,"value":"Hotel Arathena","label":"
Hotel Arathena<\/b>
San Pantaleo","city":"San Pantaleo","name":"Hotel Arathena","seo":"hotel-arathena-san-pantaleo","type":"pg"},{"id":331,"value":"Hotel Baia di Nora","label":"Hotel Baia di Nora<\/b>
Nora \/ Pula","city":"Nora \/ Pula","name":"Hotel Baia di Nora","seo":"hotel-baia-di-nora-nora-pula","type":"pg"},{"id":1013,"value":"Hotel Bajaloglia Resort","label":"
Hotel Bajaloglia Resort<\/b>
Castelsardo","city":"Castelsardo","name":"Hotel Bajaloglia Resort","seo":"hotel-bajaloglia-resort","type":"pg"},{"id":901,"value":"Hotel Belfiori","label":"Hotel Belfiori<\/b>
Torre dei Corsari","city":"Torre dei Corsari","name":"Hotel Belfiori","seo":"hotel-belfiori","type":"pg"},{"id":321,"value":"Hotel Cala Caterina","label":"
Hotel Cala Caterina<\/b>
Villasimius","city":"Villasimius","name":"Hotel Cala Caterina","seo":"hotel-cala-caterina-villasimius","type":"pg"},{"id":247,"value":"Hotel Cala Cuncheddi","label":"Hotel Cala Cuncheddi<\/b>
Olbia ","city":"Olbia ","name":"Hotel Cala Cuncheddi","seo":"hotel-li-cuncheddi-loc-capo-ceraso","type":"pg"},{"id":223,"value":"Hotel Capo d\u2019Orso Thalasso & SPA","label":"
Hotel Capo d\u2019Orso Thalasso & SPA<\/b>
Loc. Capo D\u00b4Orso","city":"Loc. Capo D\u00b4Orso","name":"Hotel Capo d\u2019Orso Thalasso & SPA","seo":"hotel-capo-d-orso-thalasso-spa-loc-capo-dorso","type":"pg"},{"id":718,"value":"Hotel Castellinaria","label":"Hotel Castellinaria<\/b>
Orroli","city":"Orroli","name":"Hotel Castellinaria","seo":"hotel-castellinaria-orroli","type":"pg"},{"id":185,"value":"Hotel Catalunya","label":"
Hotel Catalunya<\/b>
Alghero","city":"Alghero","name":"Hotel Catalunya","seo":"hotel-catalunya-alghero","type":"pg"},{"id":686,"value":"Hotel Costa Caddu","label":"Hotel Costa Caddu<\/b>
San Teodoro\/ Loc. Costa Caddu","city":"San Teodoro\/ Loc. Costa Caddu","name":"Hotel Costa Caddu","seo":"hotel-costa-caddu-san-teodoro-loc-costa-caddu","type":"pg"},{"id":464,"value":"Hotel Cruccuris Resort","label":"
Hotel Cruccuris Resort<\/b>
Villasimius","city":"Villasimius","name":"Hotel Cruccuris Resort","seo":"hotel-resort-cruccuris-villasimius","type":"pg"},{"id":402,"value":"Hotel Enis Monte Maccione","label":"Hotel Enis Monte Maccione<\/b>
Oliena","city":"Oliena","name":"Hotel Enis Monte Maccione","seo":"hotel-monte-maccione-oliena","type":"pg"},{"id":947,"value":"Hotel Fiore di Maggio","label":"
Hotel Fiore di Maggio<\/b>
Villasimius","city":"Villasimius","name":"Hotel Fiore di Maggio","seo":"hotel-fiore-di-maggio","type":"pg"},{"id":729,"value":"Hotel Funtana Abbas","label":"Hotel Funtana Abbas<\/b>
Sant'Antonio di Gallura","city":"Sant'Antonio di Gallura","name":"Hotel Funtana Abbas","seo":"hotel-funtana-abbas-sant-antonio-di-gallura","type":"pg"},{"id":648,"value":"Hotel Gabbiano Azzurro","label":"
Hotel Gabbiano Azzurro<\/b>
Golfo Aranci","city":"Golfo Aranci","name":"Hotel Gabbiano Azzurro","seo":"hotel-gabbiano-azzurro-golfo-aranci","type":"pg"},{"id":677,"value":"Hotel Garden Beach","label":"Hotel Garden Beach<\/b>
Castiadas","city":"Castiadas","name":"Hotel Garden Beach","seo":"hotel-garden-beach-cala-sinzias","type":"pg"},{"id":610,"value":"Hotel Giardino Corte Rubja","label":"
Hotel Giardino Corte Rubja<\/b>
Iglesias","city":"Iglesias","name":"Hotel Giardino Corte Rubja","seo":"hotel-corte-rubja-iglesias","type":"pg"},{"id":276,"value":"Hotel Il Vecchio Mulino","label":"Hotel Il Vecchio Mulino<\/b>
Arbatax","city":"Arbatax","name":"Hotel Il Vecchio Mulino","seo":"hotel-il-vecchio-mulino-arbatax","type":"pg"},{"id":831,"value":"Hotel L'Ulivo","label":"
Hotel L'Ulivo<\/b>
Girasole","city":"Girasole","name":"Hotel L'Ulivo","seo":"hotel-lulivo","type":"pg"},{"id":376,"value":"Hotel La Baja","label":"Hotel La Baja<\/b>
S. Caterina di Pittinuri","city":"S. Caterina di Pittinuri","name":"Hotel La Baja","seo":"hotel-la-baja-s-caterina-di-pittinuri","type":"pg"},{"id":277,"value":"Hotel La Bitta","label":"
Hotel La Bitta<\/b>
Tortol\u00ec \/ Porto Frailis","city":"Tortol\u00ec \/ Porto Frailis","name":"Hotel La Bitta","seo":"hotel-la-bitta-tortoli-porto-frailis","type":"pg"},{"id":219,"value":"Hotel La Funtana","label":"Hotel La Funtana<\/b>
Santa Teresa di Gallura","city":"Santa Teresa di Gallura","name":"Hotel La Funtana","seo":"hotel-la-funtana-santa-teresa-di-gallura","type":"pg"},{"id":1192,"value":"Hotel La Rosa dei Venti","label":"
Hotel La Rosa dei Venti<\/b>
Buggerru","city":"Buggerru","name":"Hotel La Rosa dei Venti","seo":"hotel-la-rosa-dei-venti","type":"pg"},{"id":294,"value":"Hotel La Torre","label":"Hotel La Torre<\/b>
Barisardo","city":"Barisardo","name":"Hotel La Torre","seo":"hotel-la-torre-barisardo","type":"pg"},{"id":738,"value":"Hotel Le Dune","label":"
Hotel Le Dune<\/b>
Arbus","city":"Arbus","name":"Hotel Le Dune","seo":"hotel-le-dune-piscinas","type":"pg"},{"id":1200,"value":"Hotel Maria Caderina","label":"Hotel Maria Caderina<\/b>
Posada","city":"Posada","name":"Hotel Maria Caderina","seo":"hotel-maria-caderina","type":"pg"},{"id":217,"value":"Hotel Marinedda Thalasso & SPA","label":"
Hotel Marinedda Thalasso & SPA<\/b>
Isola Rossa","city":"Isola Rossa","name":"Hotel Marinedda Thalasso & SPA","seo":"hotel-marinedda-thalasso-spa-isola-rossa","type":"pg"},{"id":773,"value":"Hotel Mariposas","label":"Hotel Mariposas<\/b>
Villasimius","city":"Villasimius","name":"Hotel Mariposas","seo":"hotel-mariposas-villasimius","type":"pg"},{"id":275,"value":"Hotel Monte Turri","label":"
Hotel Monte Turri<\/b>
Tortol\u00ec","city":"Tortol\u00ec","name":"Hotel Monte Turri","seo":"hotel-monte-turri-arbatax","type":"pg"},{"id":682,"value":"Hotel Monti di Mola","label":"Hotel Monti di Mola<\/b>
Loc. Abbiadori","city":"Loc. Abbiadori","name":"Hotel Monti di Mola","seo":"hotel-monti-di-mola-loc-abbiadori","type":"pg"},{"id":784,"value":"Hotel Nascar","label":"
Hotel Nascar<\/b>
Santa Maria Navarrese","city":"Santa Maria Navarrese","name":"Hotel Nascar","seo":"hotel-nascar-santa-maria-navarrese","type":"pg"},{"id":1176,"value":"Hotel Nautilus","label":"Hotel Nautilus<\/b>
Cagliari","city":"Cagliari","name":"Hotel Nautilus","seo":"hotel-nautilus","type":"pg"},{"id":676,"value":"Hotel Nicoletta","label":"
Hotel Nicoletta<\/b>
Santa Maria Navarrese","city":"Santa Maria Navarrese","name":"Hotel Nicoletta","seo":"hotel-nicoletta-santa-maria-navarrese","type":"pg"},{"id":470,"value":"Hotel Nora Club Hotel & SPA","label":"Hotel Nora Club Hotel & SPA<\/b>
Nora \/ Pula","city":"Nora \/ Pula","name":"Hotel Nora Club Hotel & SPA","seo":"hotel-nora-nora-pula","type":"pg"},{"id":775,"value":"Hotel Nuraghe Arvu Resort","label":"
Hotel Nuraghe Arvu Resort<\/b>
Cala Gonone","city":"Cala Gonone","name":"Hotel Nuraghe Arvu Resort","seo":"hotel-nuraghe-arvu-resort-cala-gonone","type":"pg"},{"id":249,"value":"Hotel Ollastu","label":"Hotel Ollastu<\/b>
Loc. Costa Corallina","city":"Loc. Costa Corallina","name":"Hotel Ollastu","seo":"hotel-ollastu-loc-costa-corallina","type":"pg"},{"id":377,"value":"Hotel Palazzo Sa Pischedda","label":"
Hotel Palazzo Sa Pischedda<\/b>
Bosa","city":"Bosa","name":"Hotel Palazzo Sa Pischedda","seo":"hotel-sa-pischedda-bosa","type":"pg"},{"id":688,"value":"Hotel Parco degli Ulivi","label":"Hotel Parco degli Ulivi<\/b>
Arzachena\/ Loc. Rena","city":"Arzachena\/ Loc. Rena","name":"Hotel Parco degli Ulivi","seo":"hotel-parco-degli-ulivi-arzachena-loc-rena","type":"pg"},{"id":396,"value":"Hotel Pausania Inn","label":"
Hotel Pausania Inn<\/b>
Tempio Pausania","city":"Tempio Pausania","name":"Hotel Pausania Inn","seo":"hotel-pausania-inn-tempio-pausania","type":"pg"},{"id":696,"value":"Hotel Relais Fenicottero Rosa","label":"Hotel Relais Fenicottero Rosa<\/b>
Porto San Paolo","city":"Porto San Paolo","name":"Hotel Relais Fenicottero Rosa","seo":"hotel-relais-fenicottero-rosa-porto-san-paolo","type":"pg"},{"id":216,"value":"Hotel Relax Thalasso & SPA Torreruja","label":"
Hotel Relax Thalasso & SPA Torreruja<\/b>
Isola Rossa","city":"Isola Rossa","name":"Hotel Relax Thalasso & SPA Torreruja","seo":"hotel-relax-torreruja-thalasso-spa-isola-rossa","type":"pg"},{"id":964,"value":"Hotel Resort Leda' d'Ittiri","label":"Hotel Resort Leda' d'Ittiri<\/b>
Alghero \/ Fertilia","city":"Alghero \/ Fertilia","name":"Hotel Resort Leda' d'Ittiri","seo":"hotel-resort-leda-dittiri","type":"pg"},{"id":727,"value":"Hotel Riviera - Carloforte","label":"
Hotel Riviera - Carloforte<\/b>
Carloforte","city":"Carloforte","name":"Hotel Riviera - Carloforte","seo":"hotel-riviera-carloforte-carloforte","type":"pg"},{"id":423,"value":"Hotel Sa Mola","label":"Hotel Sa Mola<\/b>
Bonarcado","city":"Bonarcado","name":"Hotel Sa Mola","seo":"hotel-residence-sa-mola-bonarcado","type":"pg"},{"id":433,"value":"Hotel Sa Muredda","label":"
Hotel Sa Muredda<\/b>
Villanovaforru","city":"Villanovaforru","name":"Hotel Sa Muredda","seo":"hotel-sa-muredda-villanovaforru","type":"pg"},{"id":323,"value":"Hotel Simius Playa","label":"Hotel Simius Playa<\/b>
Villasimius","city":"Villasimius","name":"Hotel Simius Playa","seo":"hotel-simius-playa-villasimius","type":"pg"},{"id":861,"value":"Hotel Spartivento","label":"
Hotel Spartivento<\/b>
Chia","city":"Chia","name":"Hotel Spartivento","seo":"hotel-spartivento","type":"pg"},{"id":767,"value":"Hotel Speraesole","label":"Hotel Speraesole<\/b>
Loc. Murta Maria \/ Olbia","city":"Loc. Murta Maria \/ Olbia","name":"Hotel Speraesole","seo":"hotel-speraesole-loc-murta-maria-olbia","type":"pg"},{"id":940,"value":"Hotel Spiagge SanPietro Design Resort","label":"
Hotel Spiagge SanPietro Design Resort<\/b>
Castiadas","city":"Castiadas","name":"Hotel Spiagge SanPietro Design Resort","seo":"hotel-spiagge-sanpietro-design-resort","type":"pg"},{"id":244,"value":"Hotel Stefania","label":"Hotel Stefania<\/b>
Loc. Pittulongu \/ Olbia","city":"Loc. Pittulongu \/ Olbia","name":"Hotel Stefania","seo":"hotel-stefania-loc-pittulongu-olbia","type":"pg"},{"id":739,"value":"Hotel Stella Maris","label":"
Hotel Stella Maris<\/b>
Villasimius","city":"Villasimius","name":"Hotel Stella Maris","seo":"hotel-stella-maris-villasimius","type":"pg"},{"id":772,"value":"Hotel Su Baione***","label":"Hotel Su Baione***<\/b>
Abbasanta","city":"Abbasanta","name":"Hotel Su Baione***","seo":"hotel-su-baione-abbasanta","type":"pg"},{"id":399,"value":"Hotel Su Gologone Country Resort","label":"
Hotel Su Gologone Country Resort<\/b>
Oliena","city":"Oliena","name":"Hotel Su Gologone Country Resort","seo":"hotel-su-gologone-oliena","type":"pg"},{"id":832,"value":"Hotel S\u00b4Abba e Sa Murta","label":"Hotel S\u00b4Abba e Sa Murta<\/b>
Tortol\u00ec\/ Cea","city":"Tortol\u00ec\/ Cea","name":"Hotel S\u00b4Abba e Sa Murta","seo":"hotel-sabba-e-sa-murta","type":"pg"},{"id":802,"value":"Hotel S\u00b4Acqua Sassa Resort","label":"
Hotel S\u00b4Acqua Sassa Resort<\/b>
Teulada","city":"Teulada","name":"Hotel S\u00b4Acqua Sassa Resort","seo":"hotel-sacqua-sassa-resort","type":"pg"},{"id":306,"value":"Hotel Tenuta Pilastru Spa","label":"Hotel Tenuta Pilastru Spa<\/b>
Arzachena","city":"Arzachena","name":"Hotel Tenuta Pilastru Spa","seo":"hotel-tenuta-pilastru-arzachena","type":"pg"},{"id":246,"value":"Hotel The Pelican Beach Resort & Spa","label":"
Hotel The Pelican Beach Resort & Spa<\/b>
Loc. Pittulongu \/ Olbia","city":"Loc. Pittulongu \/ Olbia","name":"Hotel The Pelican Beach Resort & Spa","seo":"hotel-pellicano-d-oro-loc-pittulongu-olbia","type":"pg"},{"id":827,"value":"Hotel Villa Asfodeli - Albergo Diffuso","label":"Hotel Villa Asfodeli - Albergo Diffuso<\/b>
Tresnuraghes","city":"Tresnuraghes","name":"Hotel Villa Asfodeli - Albergo Diffuso","seo":"hotel-villa-asfodeli--albergo-diffuso","type":"pg"},{"id":774,"value":"Hotel Villa Barbarina","label":"
Hotel Villa Barbarina<\/b>
Alghero","city":"Alghero","name":"Hotel Villa Barbarina","seo":"hotel-villa-barbarina-alghero","type":"pg"},{"id":374,"value":"Hotel Villa Canu","label":"Hotel Villa Canu<\/b>
Cabras","city":"Cabras","name":"Hotel Villa Canu","seo":"hotel-villa-canu-cabras","type":"pg"},{"id":714,"value":"Hotel Villa Gustui Maris","label":"
Hotel Villa Gustui Maris<\/b>
Cala Gonone","city":"Cala Gonone","name":"Hotel Villa Gustui Maris","seo":"hotel-villa-gustui-maris-cala-gonone","type":"pg"},{"id":704,"value":"Hotel Villa Madau","label":"Hotel Villa Madau<\/b>
Pula","city":"Pula","name":"Hotel Villa Madau","seo":"hotel-villa-madau-pula","type":"pg"},{"id":782,"value":"Hotel Villa del Golfo & SPA Relais","label":"
Hotel Villa del Golfo & SPA Relais<\/b>
Cannigione","city":"Cannigione","name":"Hotel Villa del Golfo & SPA Relais","seo":"hotel-villa-del-golfo-relais-cannigione","type":"pg"},{"id":946,"value":"Hotel Villaggio Sabbie d\u00b4Oro","label":"Hotel Villaggio Sabbie d\u00b4Oro<\/b>
Torre dei Corsari","city":"Torre dei Corsari","name":"Hotel Villaggio Sabbie d\u00b4Oro","seo":"hotel-villaggio-sabbie-doro","type":"pg"},{"id":1084,"value":"H\u00f4tel Aquae Sinis - Albergo Diffuso","label":"
H\u00f4tel Aquae Sinis - Albergo Diffuso<\/b>
Cabras","city":"Cabras","name":"H\u00f4tel Aquae Sinis - Albergo Diffuso","seo":"hotel-aquae-sinis--albergo-diffuso","type":"pg"},{"id":1125,"value":"H\u00f4tel Belvir","label":"H\u00f4tel Belvir<\/b>
Villasimius","city":"Villasimius","name":"H\u00f4tel Belvir","seo":"hotel-belvir","type":"pg"},{"id":1065,"value":"H\u00f4tel Bia Maore","label":"
H\u00f4tel Bia Maore<\/b>
Baunei","city":"Baunei","name":"H\u00f4tel Bia Maore","seo":"hotel-bia-maore","type":"pg"},{"id":270,"value":"H\u00f4tel Bue Marino","label":"H\u00f4tel Bue Marino<\/b>
Cala Gonone","city":"Cala Gonone","name":"H\u00f4tel Bue Marino","seo":"hotel-bue-marino-cala-gonone","type":"pg"},{"id":1119,"value":"H\u00f4tel Club Li Cupulatti","label":"
H\u00f4tel Club Li Cupulatti<\/b>
Budoni\/ Agrustos","city":"Budoni\/ Agrustos","name":"H\u00f4tel Club Li Cupulatti","seo":"hotel-club-li-cupulatti","type":"pg"},{"id":1174,"value":"H\u00f4tel Club Ragno d'Oro","label":"H\u00f4tel Club Ragno d'Oro<\/b>
Loc. Vignola Mare - Aglientu","city":"Loc. Vignola Mare - Aglientu","name":"H\u00f4tel Club Ragno d'Oro","seo":"hotel-club-ragno-doro","type":"pg"},{"id":269,"value":"H\u00f4tel Costa Dorada","label":"
H\u00f4tel Costa Dorada<\/b>
Cala Gonone","city":"Cala Gonone","name":"H\u00f4tel Costa Dorada","seo":"hotel-costa-dorada-cala-gonone","type":"pg"},{"id":220,"value":"H\u00f4tel La Coluccia","label":"H\u00f4tel La Coluccia<\/b>
Santa Teresa di Gallura","city":"Santa Teresa di Gallura","name":"H\u00f4tel La Coluccia","seo":"hotel-la-coluccia-santa-teresa-di-gallura","type":"pg"},{"id":790,"value":"H\u00f4tel Lanthia Resort","label":"
H\u00f4tel Lanthia Resort<\/b>
Santa Maria Navarrese","city":"Santa Maria Navarrese","name":"H\u00f4tel Lanthia Resort","seo":"hotel-lanthia-resort-santa-maria-navarrese","type":"pg"},{"id":346,"value":"H\u00f4tel Luci del Faro","label":"H\u00f4tel Luci del Faro<\/b>
Calasetta","city":"Calasetta","name":"H\u00f4tel Luci del Faro","seo":"hotel-luci-del-faro-calasetta","type":"pg"},{"id":1024,"value":"H\u00f4tel Mannois - Albergo Diffuso","label":"
H\u00f4tel Mannois - Albergo Diffuso<\/b>
Orosei","city":"Orosei","name":"H\u00f4tel Mannois - Albergo Diffuso","seo":"hotel-mannois--albergo-diffuso","type":"pg"},{"id":1140,"value":"H\u00f4tel Paradise Resort Sardegna","label":"H\u00f4tel Paradise Resort Sardegna<\/b>
San Teodoro","city":"San Teodoro","name":"H\u00f4tel Paradise Resort Sardegna","seo":"hotel-paradise-resort-sardegna","type":"pg"},{"id":242,"value":"H\u00f4tel Rocce Sarde","label":"
H\u00f4tel Rocce Sarde<\/b>
San Pantaleo","city":"San Pantaleo","name":"H\u00f4tel Rocce Sarde","seo":"hotel-rocce-sarde-san-pantaleo","type":"pg"},{"id":1193,"value":"H\u00f4tel Tartaruga Bianca","label":"H\u00f4tel Tartaruga Bianca<\/b>
La Ciaccia\/ Valledoria","city":"La Ciaccia\/ Valledoria","name":"H\u00f4tel Tartaruga Bianca","seo":"hotel-tartaruga-bianca","type":"pg"},{"id":1103,"value":"Jazz Hotel","label":"
Jazz Hotel<\/b>
Olbia ","city":"Olbia ","name":"Jazz Hotel","seo":"jazz-hotel","type":"pg"},{"id":332,"value":"Lantana Resort","label":"Lantana Resort<\/b>
Nora \/ Pula","city":"Nora \/ Pula","name":"Lantana Resort","seo":"hotel-residence-lantana-nora-pula","type":"pg"},{"id":665,"value":"Maby II - Excursion de la journ\u00e9e","label":"
Maby II - Excursion de la journ\u00e9e<\/b>
Villasimius","city":"Villasimius","name":"Maby II - Excursion de la journ\u00e9e","seo":"maby-ii-tagesausflug-villasimius","type":"pg"},{"id":315,"value":"Maison 2A","label":"Maison 2A<\/b>
Costa Rei","city":"Costa Rei","name":"Maison 2A","seo":"maison-type-2a-costa-rei","type":"pg"},{"id":998,"value":"Maison Ada","label":"
Maison Ada<\/b>
Is Molas \/ Pula","city":"Is Molas \/ Pula","name":"Maison Ada","seo":"maison-ada","type":"pg"},{"id":1086,"value":"Maison Aglientina","label":"Maison Aglientina<\/b>
San Pantaleo","city":"San Pantaleo","name":"Maison Aglientina","seo":"maison-aglientina","type":"pg"},{"id":1213,"value":"Maison Antonella","label":"
Maison Antonella<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Antonella","seo":"maison-antonella","type":"pg"},{"id":1038,"value":"Maison Bellavista","label":"Maison Bellavista<\/b>
Villasimius","city":"Villasimius","name":"Maison Bellavista","seo":"maison-bellavista","type":"pg"},{"id":213,"value":"Maison Bianca","label":"
Maison Bianca<\/b>
Badesi","city":"Badesi","name":"Maison Bianca","seo":"ferienhaus-bianca-badesi","type":"pg"},{"id":303,"value":"Maison Borla","label":"Maison Borla<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Borla","seo":"ferienhaus-borla-costa-rei","type":"pg"},{"id":982,"value":"Maison Carrubo","label":"
Maison Carrubo<\/b>
Castiadas","city":"Castiadas","name":"Maison Carrubo","seo":"maison-carrubo","type":"pg"},{"id":801,"value":"Maison Eleonora","label":"Maison Eleonora<\/b>
Is Molas \/ Pula","city":"Is Molas \/ Pula","name":"Maison Eleonora","seo":"maison-eleonora","type":"pg"},{"id":974,"value":"Maison Gigli","label":"
Maison Gigli<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Gigli","seo":"maison-gigli","type":"pg"},{"id":866,"value":"Maison Ginestra","label":"Maison Ginestra<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Ginestra","seo":"maison-ginestra","type":"pg"},{"id":1094,"value":"Maison Ginestre 58","label":"
Maison Ginestre 58<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Ginestre 58","seo":"maison-ginestre-58","type":"pg"},{"id":1041,"value":"Maison Ginestrella 57","label":"Maison Ginestrella 57<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Ginestrella 57","seo":"maison-ginestrella-57","type":"pg"},{"id":972,"value":"Maison Giuseppe","label":"
Maison Giuseppe<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Giuseppe","seo":"maison-giuseppe","type":"pg"},{"id":852,"value":"Maison I Ginepri","label":"Maison I Ginepri<\/b>
Costa Rei","city":"Costa Rei","name":"Maison I Ginepri","seo":"maison-i-ginepri","type":"pg"},{"id":1130,"value":"Maison Laguna","label":"
Maison Laguna<\/b>
Villasimius","city":"Villasimius","name":"Maison Laguna","seo":"maison-laguna","type":"pg"},{"id":1147,"value":"Maison Luna","label":"Maison Luna<\/b>
Villasimius","city":"Villasimius","name":"Maison Luna","seo":"maison-luna","type":"pg"},{"id":1145,"value":"Maison Mandara","label":"
Maison Mandara<\/b>
Torre delle Stelle","city":"Torre delle Stelle","name":"Maison Mandara","seo":"maison-mandara","type":"pg"},{"id":2252,"value":"Maison Mari","label":"Maison Mari<\/b>
Villasimius","city":"Villasimius","name":"Maison Mari","seo":"maison-mari","type":"pg"},{"id":799,"value":"Maison Miramare Boutique Hotel","label":"
Maison Miramare Boutique Hotel<\/b>
Cagliari","city":"Cagliari","name":"Maison Miramare Boutique Hotel","seo":"maison-miramare-boutique-hotel","type":"pg"},{"id":1004,"value":"Maison Moru","label":"Maison Moru<\/b>
Geremeas\/ Loc. Kala e Moru","city":"Geremeas\/ Loc. Kala e Moru","name":"Maison Moru","seo":"maison-moru","type":"pg"},{"id":1074,"value":"Maison Residenza Rotondo","label":"
Maison Residenza Rotondo<\/b>
Porto Rotondo","city":"Porto Rotondo","name":"Maison Residenza Rotondo","seo":"maison-residenza-rotondo","type":"pg"},{"id":1021,"value":"Maison Rubino","label":"Maison Rubino<\/b>
Torre delle Stelle","city":"Torre delle Stelle","name":"Maison Rubino","seo":"maison-rubino","type":"pg"},{"id":871,"value":"Maison Ruxi","label":"
Maison Ruxi<\/b>
Villasimius","city":"Villasimius","name":"Maison Ruxi","seo":"maison-ruxi","type":"pg"},{"id":1050,"value":"Maison Santo Stefano","label":"Maison Santo Stefano<\/b>
Villasimius","city":"Villasimius","name":"Maison Santo Stefano","seo":"maison-santo-stefano","type":"pg"},{"id":1088,"value":"Maison Stazzu San Pantaleo","label":"
Maison Stazzu San Pantaleo<\/b>
San Pantaleo","city":"San Pantaleo","name":"Maison Stazzu San Pantaleo","seo":"maison-stazzu-san-pantaleo","type":"pg"},{"id":310,"value":"Maison Stefania A","label":"Maison Stefania A<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Stefania A","seo":"ferienhaus-stefania-a-costa-rei","type":"pg"},{"id":939,"value":"Maison Stefania","label":"
Maison Stefania<\/b>
Is Molas \/ Pula","city":"Is Molas \/ Pula","name":"Maison Stefania","seo":"maison-stefania","type":"pg"},{"id":1206,"value":"Maison Tharros","label":"Maison Tharros<\/b>
Cabras\/ S. Giovanni di Sinis","city":"Cabras\/ S. Giovanni di Sinis","name":"Maison Tharros","seo":"maison-tharros","type":"pg"},{"id":212,"value":"Maison Turchese","label":"
Maison Turchese<\/b>
Badesi","city":"Badesi","name":"Maison Turchese","seo":"ferienhaus-turchese-badesi-mare","type":"pg"},{"id":313,"value":"Maison Type 1","label":"Maison Type 1<\/b>
Costa Rei","city":"Costa Rei","name":"Maison Type 1","seo":"maison-de-vacances-type-1-costa-rei","type":"pg"},{"id":710,"value":"Maison d'h\u00f4tes Casa Camboni","label":"
Maison d'h\u00f4tes Casa Camboni<\/b>
San Vito","city":"San Vito","name":"Maison d'h\u00f4tes Casa Camboni","seo":"bed-and-breakfast-i-glicini-san-vito","type":"pg"},{"id":1135,"value":"Maison d'h\u00f4tes S`Obreschida","label":"Maison d'h\u00f4tes S`Obreschida<\/b>
Castiadas","city":"Castiadas","name":"Maison d'h\u00f4tes S`Obreschida","seo":"maison-dhotes-sobreschida","type":"pg"},{"id":1205,"value":"Maison del Capo","label":"
Maison del Capo<\/b>
Villasimius","city":"Villasimius","name":"Maison del Capo","seo":"maison-del-capo","type":"pg"},{"id":694,"value":"Maison type Agave","label":"Maison type Agave<\/b>
Costa Rei","city":"Costa Rei","name":"Maison type Agave","seo":"maison-type-agave-costa-rei","type":"pg"},{"id":933,"value":"Maisons Is Cannisonis","label":"
Maisons Is Cannisonis<\/b>
Torre dei Corsari","city":"Torre dei Corsari","name":"Maisons Is Cannisonis","seo":"maisons-is-cannisonis","type":"pg"},{"id":847,"value":"Maisons Tucul","label":"Maisons Tucul<\/b>
Chia","city":"Chia","name":"Maisons Tucul","seo":"maisons-tucul","type":"pg"},{"id":557,"value":"Resort Cala di Falco","label":"
Resort Cala di Falco<\/b>
Cannigione","city":"Cannigione","name":"Resort Cala di Falco","seo":"hotel-cala-di-falco-cannigione","type":"pg"},{"id":1178,"value":"Resort Le Saline - Palau","label":"Resort Le Saline - Palau<\/b>
Loc. Cala Lepre","city":"Loc. Cala Lepre","name":"Resort Le Saline - Palau","seo":"resort-le-saline--palau","type":"pg"},{"id":640,"value":"R\u00e9sidence Fenicia","label":"
R\u00e9sidence Fenicia<\/b>
Villasimius","city":"Villasimius","name":"R\u00e9sidence Fenicia","seo":"residence-fenicia-villasimius","type":"pg"},{"id":1037,"value":"R\u00e9sidence H\u00f4teli\u00e8re Budoni 2","label":"R\u00e9sidence H\u00f4teli\u00e8re Budoni 2<\/b>
Budoni","city":"Budoni","name":"R\u00e9sidence H\u00f4teli\u00e8re Budoni 2","seo":"residence-hoteliere-budoni-2","type":"pg"},{"id":1212,"value":"R\u00e9sidence H\u00f4teli\u00e8re Cala Paradiso","label":"
R\u00e9sidence H\u00f4teli\u00e8re Cala Paradiso<\/b>
San Teodoro","city":"San Teodoro","name":"R\u00e9sidence H\u00f4teli\u00e8re Cala Paradiso","seo":"residence-hoteliere-cala-paradiso","type":"pg"},{"id":750,"value":"R\u00e9sidence H\u00f4teli\u00e8re La Fontana dei Desideri","label":"R\u00e9sidence H\u00f4teli\u00e8re La Fontana dei Desideri<\/b>
Alghero","city":"Alghero","name":"R\u00e9sidence H\u00f4teli\u00e8re La Fontana dei Desideri","seo":"apartmenthotel-la-fontana-dei-desideri-alghero","type":"pg"},{"id":324,"value":"R\u00e9sidence H\u00f4teli\u00e8re Le Bouganville","label":"
R\u00e9sidence H\u00f4teli\u00e8re Le Bouganville<\/b>
Villasimius","city":"Villasimius","name":"R\u00e9sidence H\u00f4teli\u00e8re Le Bouganville","seo":"residence-le-bouganville-villasimius","type":"pg"},{"id":749,"value":"R\u00e9sidence H\u00f4teli\u00e8re Podere Monte Sixeri","label":"R\u00e9sidence H\u00f4teli\u00e8re Podere Monte Sixeri<\/b>
Alghero","city":"Alghero","name":"R\u00e9sidence H\u00f4teli\u00e8re Podere Monte Sixeri","seo":"appartement-hotel-monte-sixeri-alghero","type":"pg"},{"id":862,"value":"R\u00e9sidence H\u00f4teli\u00e8re Porto Giunco","label":"
R\u00e9sidence H\u00f4teli\u00e8re Porto Giunco<\/b>
Villasimius","city":"Villasimius","name":"R\u00e9sidence H\u00f4teli\u00e8re Porto Giunco","seo":"residence-hoteliere-porto-giunco","type":"pg"},{"id":776,"value":"R\u00e9sidence Linnas Siccas","label":"R\u00e9sidence Linnas Siccas<\/b>
Orosei","city":"Orosei","name":"R\u00e9sidence Linnas Siccas","seo":"ferienwohnungen-typ-sisula-manna-orosei","type":"pg"},{"id":274,"value":"R\u00e9sidence h\u00f4teli\u00e8re Borgo degli Ulivi","label":"
R\u00e9sidence h\u00f4teli\u00e8re Borgo degli Ulivi<\/b>
Arbatax","city":"Arbatax","name":"R\u00e9sidence h\u00f4teli\u00e8re Borgo degli Ulivi","seo":"residence-borgo-degli-ulivi-arbatax","type":"pg"},{"id":229,"value":"R\u00e9sidence h\u00f4teli\u00e8re Capriccioli","label":"R\u00e9sidence h\u00f4teli\u00e8re Capriccioli<\/b>
Loc. Capriccioli","city":"Loc. Capriccioli","name":"R\u00e9sidence h\u00f4teli\u00e8re Capriccioli","seo":"residence-capriccioli-loc-capriccioli","type":"pg"},{"id":224,"value":"R\u00e9sidence h\u00f4teli\u00e8re Il Mirto","label":"
R\u00e9sidence h\u00f4teli\u00e8re Il Mirto<\/b>
Loc. Cala Capra","city":"Loc. Cala Capra","name":"R\u00e9sidence h\u00f4teli\u00e8re Il Mirto","seo":"residence-il-mirto-loc-cala-capra","type":"pg"},{"id":706,"value":"R\u00e9sidence h\u00f4teli\u00e8re Rocce Sarde","label":"R\u00e9sidence h\u00f4teli\u00e8re Rocce Sarde<\/b>
San Pantaleo","city":"San Pantaleo","name":"R\u00e9sidence h\u00f4teli\u00e8re Rocce Sarde","seo":"apartmenthotel-rocce-sarde-san-pantaleo","type":"pg"},{"id":226,"value":"Stelle Marine Hotel & Resort","label":"
Stelle Marine Hotel & Resort<\/b>
Cannigione","city":"Cannigione","name":"Stelle Marine Hotel & Resort","seo":"hotel-stelle-marine-cannigione","type":"pg"},{"id":655,"value":"Sun Odyssey 35","label":"Sun Odyssey 35<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Sun Odyssey 35","seo":"sun-odyssey-35-marina-di-portisco","type":"pg"},{"id":668,"value":"Sun Odyssey 36i","label":"
Sun Odyssey 36i<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Sun Odyssey 36i","seo":"sun-odyssey-36i-marina-di-portisco","type":"pg"},{"id":669,"value":"Sun Odyssey 39i","label":"Sun Odyssey 39i<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Sun Odyssey 39i","seo":"sun-odyssey-39i-marina-di-portisco","type":"pg"},{"id":671,"value":"Sun Odyssey 42i Performance","label":"
Sun Odyssey 42i Performance<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Sun Odyssey 42i Performance","seo":"sun-odyssey-42i-performance-marina-di-portisco","type":"pg"},{"id":658,"value":"Sun Odyssey 43","label":"Sun Odyssey 43<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Sun Odyssey 43","seo":"sun-odyssey-43-marina-di-portisco","type":"pg"},{"id":816,"value":"Sun Odyssey 49i","label":"
Sun Odyssey 49i<\/b>
Marina di Portisco","city":"Marina di Portisco","name":"Sun Odyssey 49i","seo":"sun-odyssey-49i","type":"pg"},{"id":261,"value":"Tirreno Resort","label":"Tirreno Resort<\/b>
Orosei \/ Cala Liberotto","city":"Orosei \/ Cala Liberotto","name":"Tirreno Resort","seo":"clubhotel-tirreno-orosei-cala-liberotto","type":"pg"},{"id":1044,"value":"Torre hotel","label":"
Torre hotel<\/b>
Torre dei Corsari","city":"Torre dei Corsari","name":"Torre hotel","seo":"torre-hotel","type":"pg"},{"id":1152,"value":"Villa Bellavista Soffi","label":"Villa Bellavista Soffi<\/b>
San Pantaleo","city":"San Pantaleo","name":"Villa Bellavista Soffi","seo":"villa-bellavista-soffi","type":"pg"},{"id":1069,"value":"Villa Capo Coda Cavallo","label":"
Villa Capo Coda Cavallo<\/b>
Loc. Capo Coda Cavallo","city":"Loc. Capo Coda Cavallo","name":"Villa Capo Coda Cavallo","seo":"villa-capo-coda-cavallo","type":"pg"},{"id":328,"value":"Villa Maria","label":"Villa Maria<\/b>
Torre delle Stelle","city":"Torre delle Stelle","name":"Villa Maria","seo":"villa-maria-torre-delle-stelle","type":"pg"},{"id":1059,"value":"Villa Mosca Charming House","label":"
Villa Mosca Charming House<\/b>
Alghero","city":"Alghero","name":"Villa Mosca Charming House","seo":"villa-mosca-charming-house","type":"pg"},{"id":302,"value":"Villa Paola","label":"Villa Paola<\/b>
San Priamo","city":"San Priamo","name":"Villa Paola","seo":"villa-francesco-san-priamo","type":"pg"},{"id":1110,"value":"Villa Ulivo","label":"
Villa Ulivo<\/b>
Alghero","city":"Alghero","name":"Villa Ulivo","seo":"villa-ulivo","type":"pg"},{"id":1209,"value":"Village Vacances 4 Mori","label":"Village Vacances 4 Mori<\/b>
Muravera","city":"Muravera","name":"Village Vacances 4 Mori","seo":"village-vacances-4-mori","type":"pg"},{"id":0,"value":"Toute la Sardaigne","label":"
Toute la Sardaigne<\/b>
(la recherche dure auprès 3 min.)","city":"Toute la Sardaigne","name":"Toute la Sardaigne","seo":"sardaigne","type":"all"}]; tjq( "#bookingSearch_Name" ).autocomplete({ minLength: 0, source: function(request, response) { response( tjq.map( jsonfile, function( item ) { if(item.label.toLowerCase().indexOf(request.term.toLowerCase()) >= 0){ return { label: item.label, value: item.value, id: item.id, name: item.name, seo: item.seo, type: item.type } } else return; })) }, select: function( event, ui ) { tjq( "#bookingSearch_Name" ).val( ui.item.name ); tjq( "#bookingSearch_ID" ).val( ui.item.id ); tjq( "#bookingSearch_Type" ).val( ui.item.type ); tjq( "#bookingSearch_Seo" ).val( ui.item.seo ); }, change: function (event, ui) { if(!ui.item){ } }, focus: function (event, ui) { return false; } }).data("ui-autocomplete")._renderItem = function (ul, item) { return tjq("
  • ") .data("item.autocomplete", item) .append("" + item.label + "") .appendTo(ul); }; }); tjq("#bookingSearch_Name").keyup(function(event) { if (event.keyCode === 10 || event.keyCode === 13) {} else { tjq("#bookingSearch_ID").val(''); tjq("#bookingSearch_Type").val(''); tjq("#bookingSearch_Seo").val(''); } }); function goToBookingsearch() { var bs_ChildrenAges = ""; var bs_Services = ""; var bs_date_from = tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_from]" ); var bs_date_to = tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_to]" ); var bs_children = tjq("#bookingSearch_mchildren"); var bs_adults = tjq("#bookingSearch_madults"); var bs_id = tjq("#bookingSearch_ID"); var bs_type = tjq("#bookingSearch_Type"); var bs_seo = tjq("#bookingSearch_Seo"); var bs_name = tjq("#bookingSearch_Name"); bs_ChildrenAges = tjq("#bookingSearch_mages").val(); if(bs_children.val() > 0 && bs_ChildrenAges !== undefined) { } else { bs_ChildrenAges = ''; tjq('.bookingSearch_mages option:selected').each(function(){ if(tjq(this).val() != "") { bs_ChildrenAges += (bs_ChildrenAges!="") ? ","+tjq(this).val() : tjq(this).val(); } }); } bs_Services = tjq("#bstype_select").val(); if(bs_Services == undefined || bs_Services == '') { bs_Services = '295,305,312,294,312,300,301'; } var target = ""; var variables = ""; variables += (bs_date_from.val() != "") ? '&bs_from='+bs_date_from.val() : "&showab=1"; variables += (bs_date_to.val() != "") ? '&bs_to='+bs_date_to.val() : ""; variables += (bs_adults.val() != "") ? '&bs_adults='+bs_adults.val() : ""; variables += (bs_children.val() != "") ? '&bs_childs='+bs_children.val() : ""; variables += (bs_ChildrenAges != "") ? '&bs_ages='+bs_ChildrenAges : ""; if(bs_type.val()!="pg") { variables += (bs_Services != "") ? '&services='+bs_Services : ""; if(bs_name.val() != "") { variables += (bs_name.val() != "") ? '&bs_name='+bs_name.val() : ""; variables += (bs_id.val() != "") ? '&bs_id='+bs_id.val() : ""; variables += (bs_type.val() != "") ? '&bs_type='+bs_type.val() : ""; variables += (bs_seo.val() != "") ? '&bs_seo='+bs_seo.val() : ""; } else { bs_type.val(""); } } var url = ""; if(bs_type.val() !== ''){ switch(bs_type.val()) { case "pg" : if(variables!="") variables = "" + variables; url = '/page/'+bs_id.val()+'/'+bs_seo.val()+'/' + variables; target = "_blank"; break; case "ci" : variables = "?city=" + bs_id.val() + variables; url = '/booking-recherche/'+bs_seo.val()+'/' + variables; break; case "cg" : variables = "?city=" + bs_id.val() + variables; url = '/booking-recherche/'+bs_seo.val()+'/' + variables; break; case "re" : variables = "?region=" + bs_id.val() + variables; url = '/booking-recherche/'+bs_seo.val()+'/'+ variables; break; case "all" : url = "/booking-recherche/"+variables; break; } }else{ url = "/booking-recherche/"+variables; } if(url!="") { tjq('#bookingSearch_bookSearch').attr("action",url); tjq('#bookingSearch_bookSearch').attr("target",target); tjq('#bookingSearch_bookSearch').submit(); tjq( "#bookingSearch_Name" ).val(''); tjq( "#bookingSearch_ID" ).val(''); tjq( "#bookingSearch_Type" ).val(''); tjq( "#bookingSearch_Seo" ).val(''); } else { } } tjq( "#buttonBookingSearch" ).on( "click", function( event ) { if((tjq("#bookingSearch_Name").val()!="") && (tjq("#bookingSearch_ID").val() == "")) { tjq.ajax({ type: "POST", url: "/getfirstresult/", dataType : "json", data: { name: tjq("#bookingSearch_Name").val(), forceNoCacheJS: (new Date().valueOf()) } }).done(function (data) { tjq("#bookingSearch_ID").val(data.id); tjq("#bookingSearch_Type").val(data.type); tjq("#bookingSearch_Seo").val(data.seo); tjq("#bookingSearch_Name").val(data.name); goToBookingsearch(); }); } else { goToBookingsearch(); } }); tjq( "#buttonBookingSearchXXXXXXXX" ).on( "click", function( event ) { var bs_ChildrenAges = ""; var bs_Services = ""; var bs_date_from = tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_from]" ); var bs_date_to = tjq( "#bookingSearch_bookSearch input[name=bookingSearch_date_to]" ); var bs_children = tjq("#bookingSearch_mchildren"); var bs_adults = tjq("#bookingSearch_madults"); var bs_id = tjq("#bookingSearch_ID"); var bs_type = tjq("#bookingSearch_Type"); var bs_seo = tjq("#bookingSearch_Seo"); var bs_name = tjq("#bookingSearch_Name"); bs_ChildrenAges = tjq("#bookingSearch_mages").val(); bs_Services = tjq("#bstype_select").val(); if(bs_Services == undefined || bs_Services == '') { bs_Services = '295,305,312,294,312,300,301'; } var target = ""; var variables = ""; variables += (bs_date_from.val() != "") ? '&bs_from='+bs_date_from.val() : "&showab=1"; variables += (bs_date_to.val() != "") ? '&bs_to='+bs_date_to.val() : ""; variables += (bs_adults.val() != "") ? '&bs_adults='+bs_adults.val() : ""; variables += (bs_children.val() != "") ? '&bs_childs='+bs_children.val() : ""; variables += (bs_ChildrenAges != "") ? '&bs_ages='+bs_ChildrenAges : ""; if(bs_type.val()!="pg") { variables += (bs_Services != "") ? '&services='+bs_Services : ""; if(bs_name.val() != "") { variables += (bs_name.val() != "") ? '&bs_name='+bs_name.val() : ""; variables += (bs_id.val() != "") ? '&bs_id='+bs_id.val() : ""; variables += (bs_type.val() != "") ? '&bs_type='+bs_type.val() : ""; variables += (bs_seo.val() != "") ? '&bs_seo='+bs_seo.val() : ""; } else { bs_type.val(""); } } var url = ""; if(bs_type.val() !== ''){ switch(bs_type.val()) { case "pg" : if(variables!="") variables = "" + variables; url = '/page/'+bs_id.val()+'/'+bs_seo.val()+'/' + variables; target = "_blank"; break; case "ci" : variables = "?city=" + bs_id.val() + variables; url = '/booking-recherche/'+bs_seo.val()+'/' + variables; break; case "cg" : variables = "?city=" + bs_id.val() + variables; url = '/booking-recherche/'+bs_seo.val()+'/' + variables; break; case "re" : variables = "?region=" + bs_id.val() + variables; url = '/booking-recherche/'+bs_seo.val()+'/'+ variables; break; } }else{ url = "/booking-recherche/"+variables; } if(url!="") { tjq('#bookingSearch_bookSearch').attr("action",url); tjq('#bookingSearch_bookSearch').attr("target",target); tjq('#bookingSearch_bookSearch').submit(); tjq( "#bookingSearch_Name" ).val(''); tjq( "#bookingSearch_ID" ).val(''); tjq( "#bookingSearch_Type" ).val(''); tjq( "#bookingSearch_Seo" ).val(''); } else { event.preventDefault(); } }); var xTriggered = 0; tjq( "#bookingSearch_Name" ).keypress(function( event ) { if (event.keyCode === 10 || event.keyCode === 13) { event.preventDefault(); tjq( "#buttonBookingSearch" ).click(); } });