balcony / terrace',folder:"0B3uQkKds1Z3XYnhHNGlOcnhmYnM/0-ksp5wAeD_wsJ5Zm3r9hSRA",link:"Two_Bedroom_Suite_Balcony_Terrace"+EXTENSION,tracker:"Two bedroom suite balcony / terrace",snippet:"Two_Bedroom_Suite_Balcony_Terrace",post:[{lang:GREEK,id:"4912614337134949452"},{lang:ENGLISH,id:"7428851802689562594"},{lang:FRENCH,id:"2806072967241090601"},{lang:ITALIAN,id:"5246060870986615711"}]}}})),$("h2",this).eq(3).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Suite Superior
balcony, panoramic sea view
',folder:"0B3uQkKds1Z3XMm4tUTVLNDgxeW8/0-jFAZ1VzqMTy94fYJ82D9Fw",link:"Superior_Suite_Balcony_Panoramic_Sea_View"+EXTENSION,tracker:"Superior suite balcony, panoramic sea view",snippet:"Superior_Suite_Balcony_Panoramic_Sea_View",post:[{lang:GREEK,id:"1856708595311857136"},{lang:ENGLISH,id:"416886102775104846"},{lang:FRENCH,id:"275557981537495479"},{lang:ITALIAN,id:"7270762690294056355"}]}}})),$("h2",this).eq(4).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Suite With Lounge
balcony, sea view
',folder:"1GdplmcBxuF8ShgQgkYknHL5_68Zep4ED",link:"Suite_With_Lounge_Balcony_Sea_View"+EXTENSION,tracker:"Suite with lounge balcony, sea view",snippet:"Suite_With_Lounge_Balcony_Sea_View",post:[{lang:GREEK,id:"4751039500560679414"},{lang:ENGLISH,id:"2392896369628700972"},{lang:FRENCH,id:"673340695390701765"},{lang:ITALIAN,id:"2252347767349934321"}]}}})),$("h2",this).eq(5).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Suite
balcony, sea view
',folder:"0B3uQkKds1Z3XN181VVFnVnAweGs/0-gf3jG9DctLThWwol6j64Bw",link:"Suite_Balcony_Sea_View"+EXTENSION,tracker:"Suite balcony, sea view",snippet:"Suite_Balcony_Sea_View",post:[{lang:GREEK,id:"5664797200589144451"},{lang:ENGLISH,id:"5170018172457946822"},{lang:FRENCH,id:"3389332481734331851"},{lang:ITALIAN,id:"7225794328321408506"}]}}})),$("h2",this).eq(6).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Suite Superior junior
terrace, panoramic sea view
',folder:"0B3uQkKds1Z3Xc1FacUpiRWhwWTQ/0-R67T5px4qdeV-zrbetJk3g",link:"Superior_Junior_Suite_Balcony_Panoramic_Sea_View"+EXTENSION,tracker:"Superior junior suite terrace, panoramic sea view",snippet:"Superior_Junior_Suite_Balcony_Panoramic_Sea_View",post:[{lang:GREEK,id:"331355126270514048"},{lang:ENGLISH,id:"7729267653312475021"},{lang:FRENCH,id:"5731544899278599972"},{lang:ITALIAN,id:"4962767092175509120"}]}}})),$("h2",this).eq(7).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Suite Junior
balcony, sea view
',folder:"0B3uQkKds1Z3XbjVSV3lEeWdTNnc/0-YFkkydc0AJxhjzERdQ4CDQ",link:"Junior_Suite_Balcony_Sea_View"+EXTENSION,tracker:"Junior suite balcony, sea view",snippet:"Junior_Suite_Balcony_Sea_View",post:[{lang:GREEK,id:"3732020990684946702"},{lang:ENGLISH,id:"18352575141338845"},{lang:FRENCH,id:"1263860377436662922"},{lang:ITALIAN,id:"4117324857125291246"}]}}})),$("h2",this).eq(8).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Suite Junior
balcony, town view
',folder:"0B3uQkKds1Z3XT3hfMlE1ZkdHNjg/0-_4edBrDJMfOyW8vT9VXj3A",link:"Junior_Suite_Balcony_Town_View"+EXTENSION,tracker:"Junior suite balcony, town view",snippet:"Junior_Suite_Balcony_Town_View",post:[{lang:GREEK,id:"3382684325072454981"},{lang:ENGLISH,id:"4909360772416119620"},{lang:FRENCH,id:"2646653368952620436"},{lang:ITALIAN,id:"453215363670229554"}]}}})),$("h2",this).eq(9).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Studio Superior
balcony, panoramic sea view
',folder:"0B3uQkKds1Z3XNkVobG54X3NNSXc/0-4A5UtpqhYcPQnTCD_iJMxw",link:"Superior_Studio_Balcony_Panoramic_Sea_View"+EXTENSION,tracker:"Superior studio balcony, panoramic sea view",snippet:"Superior_Studio_Balcony_Panoramic_Sea_View",post:[{lang:GREEK,id:"7010988011785611940"},{lang:ENGLISH,id:"6239365632174077624"},{lang:FRENCH,id:"8624094362025126524"},{lang:ITALIAN,id:"244183762107632599"}]}}})),$("h2",this).eq(10).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Studio Superior
balcony, pool view
',folder:"0B3uQkKds1Z3XWVN4VHFEU1FHdVU/0-XuutSU6IJXZpyOdYu1Biow",link:"Superior_Studio_Balcony_Pool_View"+EXTENSION,tracker:"Superior studio balcony, pool view",snippet:"Superior_Studio_Balcony_Pool_View",post:[{lang:GREEK,id:"2471588608462865101"},{lang:ENGLISH,id:"8815248027816069504"},{lang:FRENCH,id:"1810645799461047961"},{lang:ITALIAN,id:"5017312684956290277"}]}}})),$("h2",this).eq(11).trigger($.Event(EVENT_INIT,{gsmData:{data:{label:'
Studio
sea view
',folder:"0B3uQkKds1Z3XVnRQd0VCRUptNGc/0-CqGDLqU0L4lYyOW9pXV_yw",link:"Studio_Sea_View"+EXTENSION,tracker:"Studio sea view",snippet:"Studio_Sea_View",post:[{lang:GREEK,id:"8026418005008644973"},{lang:ENGLISH,id:"3242196242759104608"},{lang:FRENCH,id:"6465941631874940574"},{lang:ITALIAN,id:"5822160123237323404"}]}}})),$("h2",this).eq(a).trigger("ev.setActive"),this.getData=function(){var t=null;return $.each(e,function(){return!this.isSelected()||(t=this.getData(),!1)}),t},this},$.fn.gsmTdLang=function(){this.on(EVENT_SET_LANG,function(t){t.stopImmediatePropagation(),$.each($("div[id^='idTdItem']",this),function(){$(this).trigger($.Event(EVENT_SET_LANG,{gsmData:t.gsmData}))})}).on(EVENT_CLICKED,function(t){t.stopImmediatePropagation(),$(".gsmItem_Selected",this).trigger(EVENT_CLICKED)}).on(EVENT_NOTIFY,function(t){switch(t.stopImmediatePropagation(),t.gsmData.info){case EVENT_CLEAR:$.each($("div[id^='idTdItem']",this),function(){$(this).trigger(EVENT_CLEAR)});break;default:$(this).trigger($.Event(EVENT_EXTERN,{gsmData:t.gsmData}))}});var a=this;return $.fn.gsmItem_Lang=function(t){return $(this).data().actual={data:null},this.on(EVENT_INIT,function(t){t.stopImmediatePropagation(),$(this).data().actual.data=t.gsmData.data}).on(EVENT_SHOW,function(t){t.stopImmediatePropagation(),$(this).html($(this).data().actual.data.abbr)}).on(EVENT_SET_LANG,function(t){t.stopImmediatePropagation(),$(this).data().actual.data.abbr===t.gsmData.data.lang&&$(this).addClass("gsmItem_Selected")}).on(EVENT_CLEAR,function(t){t.stopImmediatePropagation(),$(this).removeClass("gsmItem_Selected")}).on(EVENT_CLICKED,function(t){t.stopImmediatePropagation(),$(this).hasClass("gsmItem_Selected")||($(this).trigger($.Event(EVENT_NOTIFY,{gsmData:{info:EVENT_CLEAR}})),$(this).addClass("gsmItem_Selected")),$(this).trigger($.Event(EVENT_NOTIFY,{gsmData:{info:EVENT_CLICKED,data:{lang:$(this).data().actual.data.abbr,bUserClicked:!!t.gsmData}}}))}).on("click",function(t){t.stopImmediatePropagation(),$(this).trigger($.Event(EVENT_CLICKED,{gsmData:{data:{bUserClicked:!0}}}))}),this},$.each($("div[id^='idTdItem']",this),function(){$(this).gsmItem_Lang().on(EVENT_EXTERN,function(t){t.stopImmediatePropagation(),a.trigger($.Event(EVENT_NOTIFY,{gsmData:t.gsmData}))})}),$("div",this).eq(0).trigger($.Event(EVENT_INIT,{gsmData:{data:{name:"Greek",abbr:GREEK}}})),$("div",this).eq(1).trigger($.Event(EVENT_INIT,{gsmData:{data:{name:"English",abbr:ENGLISH}}})),$("div",this).eq(2).trigger($.Event(EVENT_INIT,{gsmData:{data:{name:"French",abbr:FRENCH}}})),$("div",this).eq(3).trigger($.Event(EVENT_INIT,{gsmData:{data:{name:"Italian",abbr:ITALIAN}}})),$("#idBtnMenu",this).on("click",function(t){t.stopImmediatePropagation(),a.trigger($.Event(EVENT_NOTIFY,{gsmData:{info:EVENT_ROLL_DOWN}}))}),$.each($(".text-uppercase",this),function(){$(this).trigger(EVENT_SHOW)}),this.getSelected=function(){return $(".gsmItem_Selected",this).data().actual.data},this},$.gsmDtDrive=function(){var e=!1;return this.init=function(a){switch(e){case!0:$.isFunction(a)&&a();break;default:gapi.load("client",function(){gapi.client.init({apiKey:"AIzaSyCysjC6x1vJgbaUT72cjUAL1IaJ2rrgAK0",scope:["https://www.googleapis.com/auth/drive.readonly"],discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"]}).then(function(t){e=!0,$.isFunction(a)&&a()})})}},this.getList_Thumb=function(t,e){var i="=s"+(t.iSize?t.iSize:Math.max(screen.width,screen.height));switch(t.idFolder.split("/").length){case 1:this.init(function(){gapi.client.request({method:"GET",path:"https://www.googleapis.com/drive/v3/files",params:{q:"'"+t.idFolder.split("/")[0]+"' in parents",orderBy:"name",fields:"*"}}).execute(function(t){var a=[];$.each(t.files,function(){if("image"!==this.mimeType.split("/")[0])return!0;a.push(this.thumbnailLink.split("=s")[0]+i)}),e({data:a})})});break;default:this.init(function(){gapi.client.request({method:"GET",path:"https://www.googleapis.com/drive/v3/files",params:{q:"'"+t.idFolder.split("/")[0]+"' in parents",orderBy:"name",fields:"*"},headers:{"X-Goog-Drive-Resource-Keys":t.idFolder}}).execute(function(t){var a=[];$.each(t.files,function(){if("image"!==this.mimeType.split("/")[0])return!0;a.push(this.thumbnailLink.split("=s")[0]+i)}),e({data:a})})})}},this},$.fn.gsmESPA=function(){return $(this).data().actual={data:{lang:null,gr:{srcImg:"1MMUiNd5tFhaRkdDHEwf9FHT5XjGJOnsM",srcPDF:"1gRQ0zEjqo8HYWk7WotqISwY-Vfhr6zyo"},en:{srcImg:"1Hu-ESWoL7lpenc1EFy_BYZKyEH2-OD6S",srcPDF:"1w_nDN0z7PDBGEY75cI0pYAVH1GbxqJbb"}},get:function(){return{srcImg:"https://drive.google.com/uc?id="+(this.data.lang===GREEK?this.data.gr.srcImg:this.data.en.srcImg),srcPDF:"https://drive.google.com/uc?id="+(this.data.lang===GREEK?this.data.gr.srcPDF:this.data.en.srcPDF)}}},this.on(EVENT_UPDATE,function(t){t.stopImmediatePropagation(),$(this).data().actual.data.lang=t.gsmData.data.lang,$(this).attr({src:$(this).data().actual.get().srcImg})}).on("load",function(t){t.stopImmediatePropagation()}).on("click",function(t){t.stopImmediatePropagation(),$(this).trigger($.Event(EVENT_EXTERN,{gsmData:{data:$(this).data().actual.get().srcPDF}}))}),this},$.gsmDtTimer=function(t,a){t=$.extend({iTimeOut:6},t);var e=null,i=0;return this.start=function(){if(null===e)return e=setInterval(function(){a()},i),this},this.stop=function(){return clearInterval(e),e=null,this},this.reset=function(){return this.stop().start(),this},this.setTimeOut=function(t){return i=1e3*t,this},this.getTimeOut=function(){return i/1e3},this.isRunning=function(){return null!==e},i=1e3*t.iTimeOut,this},$.gsmDtBlogger=function(){return this.getPost=function(t,a){$.getJSON("https://www.googleapis.com/blogger/v3/blogs/469397442068228171/posts/"+t+"?key=AIzaSyCnyy3Nl1NhafLdIK9A9gwmYFQKBQhWVg0&callback=?",function(t){a({title:t.title,content:t.content})})},this},$.gsmDtTracker=function(){return this.trackPage=function(t){var a={page_title:t.page_title,send_to:"G-39HPWEM5K8"};t.page_location&&(a.page_location=t.page_location),t.page_path&&(a.page_path=t.page_path),gtag("event","page_view",a)},this.trackEvent=function(t){gtag("event","view_item",{event_category:t.strCategory,event_label:t.strLabel})},gtag("config","G-39HPWEM5K8",{send_page_view:!1}),this},$.fn.gsmLink=function(){var a={lang:null,data:null},e=null;$(this).on(EVENT_INIT,function(t){t.stopImmediatePropagation(),a.data=t.gsmData.data}).on(EVENT_ENABLE,function(t){switch(t.stopImmediatePropagation(),t.gsmData.data.bEnable){case!1:$(this).removeClass("gsmSelectable gsmItem_Hover").addClass("gsmDisabled text-dark");break;default:$(this).removeClass("gsmDisabled text-dark").removeClass("gsmSelectable gsmItem_Hover")}}).on(EVENT_CLEAR,function(t){t.stopImmediatePropagation(),$(this).removeClass("gsmItem_Selected")}).on(EVENT_UPDATE,function(t){switch(t.stopImmediatePropagation(),a.lang=t.gsmData.data.lang,e=null,$.each(a.data,function(){return a.lang!==this.lang||(e=this.label,!1)}),$(this).parent().css("opacity")){case"0":$(this).html(e),$(this).parent().fadeTo(TIME_FADE,OPACITY_MAX);break;default:$(this).parent().fadeTo(TIME_FADE,OPACITY_MIN,function(){$("h2",this).html(e),$(this).fadeTo(TIME_FADE,OPACITY_MAX)})}}).on("click",function(t){t.stopImmediatePropagation(),$(this).hasClass("gsmDisabled")||($(this).addClass("gsmItem_Selected"),$(this).trigger($.Event(EVENT_EXTERN,{gsmData:{data:i.getData()}})))});var i=this;return this.getLabel=function(){var t=null;return $.each(a.data,function(){return a.lang!==this.lang||(t=this.label,!1)}),t},this.getData=function(){var t=null;return $.each(a.data,function(){return a.lang!==this.lang||(t=this,!1)}),t},this.getData_Buffer=function(){return a},this},$.fn.gsmAggregator_GDP=function(){var i,n,s=null;this.on("ev.setGallery",function(t){t.stopImmediatePropagation(),r.trigger($.Event("ev.setGallery",{gsmData:t.gsmData}))}).on("ev.setPost",function(t){t.stopImmediatePropagation(),e.trigger($.Event("ev.setPost",{gsmData:t.gsmData}))}).on("ev.hide",function(t){t.stopImmediatePropagation(),e.trigger($.Event(EVENT_SET_DEFAULT,{gsmData:{data:{idPost:null}}}))}).on(EVENT_SET_DEFAULT,function(t){t.stopImmediatePropagation(),$.each([e,a,r],function(){$(this).trigger(EVENT_SET_DEFAULT)})}).on(EVENT_UPDATE,function(t){t.stopImmediatePropagation(),s=t.gsmData.data.lang,$.each([a,r,g],function(){$(this).trigger($.Event(EVENT_UPDATE,{gsmData:{data:{lang:s}}}))})}).on(EVENT_CLEAR,function(t){t.stopImmediatePropagation(),$.each([a,g],function(){$(this).trigger(EVENT_CLEAR)})}).on("ev.setCovidLabel",function(t){t.stopImmediatePropagation(),a.trigger($.Event("ev.setCovidLabel",{gsmData:t.gsmData}))}).on(EVENT_SET_DATA,function(t){t.stopImmediatePropagation(),a.trigger($.Event(EVENT_SET_DATA,{gsmData:{data:{lang:t.gsmData.data.gallery.lang,bCovid:t.gsmData.data.gallery.bCovid,post:t.gsmData.data.gallery.post}}})),r.trigger($.Event(EVENT_SET_DATA,{gsmData:{data:t.gsmData.data.gallery}}))}).on(EVENT_NOTIFY,function(t){switch(t.stopImmediatePropagation(),t.gsmData.info){case EVENT_CLEAR:$(this).trigger(EVENT_CLEAR);break;case EVENT_SHOW:e.trigger($.Event(EVENT_INIT,{gsmData:t.gsmData}));break;case EVENT_LINK:$(this).trigger($.Event(EVENT_EXTERN,{gsmData:t.gsmData}));break;case EVENT_CLICKED:$.each([a,g],function(){$(this).trigger(EVENT_CLEAR)})}});var o=this;$.fn.gsmPost_Shell=function(){this.on("ev.setPost",function(t){t.stopImmediatePropagation(),a.trigger($.Event(EVENT_INIT,{gsmData:t.gsmData}))}).on(EVENT_SET_DEFAULT,function(t){t.stopImmediatePropagation(),$(this).css({display:"none"}),a.trigger(EVENT_SET_DEFAULT)}).on(EVENT_SET_DATA,function(t){switch(t.stopImmediatePropagation(),t.gsmData.data.idPost){case null:"none"!==$(this).css("display")&&$(this).animate({height:"toggle",width:"toggle"},TIME_FADE);break;default:switch(a.trigger($.Event(EVENT_INIT,{gsmData:t.gsmData})),"5096925355511030956"===t.gsmData.data.idPost){case!0:$(this).css({display:"none"});break;default:"none"===$(this).css("display")&&$(this).animate({height:"toggle",width:"toggle"},TIME_FADE)}}}).on(EVENT_CLICKED,function(t){t.stopImmediatePropagation(),$(this).animate({height:"toggle",width:"toggle"},TIME_FADE)}).on(EVENT_SHOW,function(t){t.stopImmediatePropagation(),$(this).animate({height:"toggle",width:"toggle"},TIME_FADE)}).on(EVENT_NOTIFY,function(t){t.stopImmediatePropagation(),$(this).trigger($.Event(EVENT_EXTERN,{gsmData:t.gsmData}))}),$.fn.gsmPost_Contents=function(){$(this).data().actual={idPost:null};var a=this;return this.on(EVENT_SET_DEFAULT,function(t){t.stopImmediatePropagation(),$(this).html("")}).on(EVENT_INIT,function(t){t.stopImmediatePropagation(),$(this).data().actual.idPost=t.gsmData.data.idPost,$(this).trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_INIT}}))}).on(EVENT_CLEAR,function(t){t.stopImmediatePropagation(),$(this).html(""),$(this).trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_CLEAR}}))}).on(EVENT_SHOW,function(t){switch(t.stopImmediatePropagation(),t.gsmData.data.bShow){case!1:switch($(this).css("display")){case"none":$(this).trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_SHOW}}));break;default:$(this).fadeTo(TIME_FADE,OPACITY_MIN,function(){$(this).trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_SHOW}}))})}break;case!0:$(this).fadeTo(TIME_FADE,OPACITY_MAX,function(){$(this).trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_DONE}}))})}}).on(EVENT_LOAD,function(t){switch(t.stopImmediatePropagation(),$(this).data().actual.idPost){case void 0:case null:$(this).trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_DONE}}));break;default:e.getPost($(this).data().actual.idPost,function(t){a.html(t.content),a.trigger($.Event(EVENT_NEXT,{gsmData:{info:EVENT_LOAD}}))})}}).on(EVENT_NEXT,function(t){switch(t.stopImmediatePropagation(),t.gsmData.info){case EVENT_INIT:$(this).trigger($.Event(EVENT_SHOW,{gsmData:{data:{bShow:!1}}}));break;case EVENT_CLEAR:$(this).trigger(EVENT_LOAD);break;case EVENT_SHOW:$(this).trigger(EVENT_CLEAR);break;case EVENT_LOAD:$(this).trigger($.Event(EVENT_SHOW,{gsmData:{data:{bShow:!0}}}))}}),this};var e=new $.gsmDtBlogger,a=$("#idTdPost_Contents",this).gsmPost_Contents();return this};var e=$("#idTdPost_Shell").gsmPost_Shell();$.fn.gsmDetails=function(){var e="";$.fn.extend(this,$(this).gsmLink()).trigger($.Event(EVENT_INIT,{gsmData:{data:[{lang:ENGLISH,label:["Covid Policies","Details"],post:["5096925355511030956",null]},{lang:FRENCH,label:["Politiques Covid","Détails"],post:["3482911204271222230",null]},{lang:ITALIAN,label:["Politiche Covid","Dettagli"],post:["8975122593845742715",null]},{lang:GREEK,label:["Πολιτικές Covid","Λεπτομέριες"],post:["1946251658224639887",null]}]}})),this.off(EVENT_UPDATE).off("click").on(EVENT_SET_DEFAULT,function(t){t.stopImmediatePropagation(),$(this).removeClass("gsmItem_Selected").addClass("gsmDisabled")}).on(EVENT_UPDATE,function(t){t.stopImmediatePropagation(),$(this).data().actual.lang=t.gsmData.data.lang;var a=null;switch($.each(i.getData_Buffer().data,function(){return t.gsmData.data.lang!==this.lang||(a=this.label[1],!1)}),$(this).parent().css("opacity")){case"0":$(this).html(a),$(this).parent().fadeTo(TIME_FADE,OPACITY_MAX);break;default:$(this).parent().fadeTo(TIME_FADE,OPACITY_MIN,function(){i.html(a),$(this).fadeTo(TIME_FADE,OPACITY_MAX)})}}).on(EVENT_SET_DATA,function(t){if(t.stopImmediatePropagation(),t.gsmData.data.post){var a="";switch($.each(i.getData_Buffer().data,function(){if(t.gsmData.data.lang!==this.lang)return!0;switch(t.gsmData.data.bCovid){case!0:e=this.post[0],a=this.label[0];break;default:e=t.gsmData.data.post,a=this.label[1]}return!1}),i.html(a),i.trigger($.Event(EVENT_ENABLE,{gsmData:{data:{bEnable:null!==e}}})),e){case null:case void 0:$(this).removeClass("gsmItem_Selected").addClass("gsmDisabled");break;default:$(this).addClass("gsmItem_Selected").removeClass("gsmDisabled")}}else e=null,$(this).removeClass("gsmItem_Selected").addClass("gsmDisabled");$(this).trigger($.Event(EVENT_EXTERN,{gsmData:{data:{idPost:e}}}))}).on("click",function(t){switch(t.stopImmediatePropagation(),$(this).hasClass("gsmItem_Selected")){case!0:$(this).trigger($.Event(EVENT_EXTERN,{gsmData:{info:EVENT_CLICKED}}));break;default:$(this).trigger($.Event(EVENT_EXTERN,{gsmData:{data:{idPost:e}}}))}});var i=this;return this},$.fn.gsmGallery=function(){$.fn.extend(this,$(this).gsmLink()).trigger($.Event(EVENT_INIT,{gsmData:{data:[{lang:ENGLISH,label:"Gallery"},{lang:FRENCH,label:"Galerie"},{lang:ITALIAN,label:"Galleria"},{lang:GREEK,label:"Γαλαρία"}]}})),i=[],n=!0,s=void 0;var a=this,e=new $.gsmDtDrive;return this.on("ev.setGallery",function(t){t.stopImmediatePropagation(),n=t.gsmData.data.bOverview}).off("click").on(EVENT_SET_DEFAULT,function(t){t.stopImmediatePropagation(),$(this).removeClass("gsmItem_Selected").addClass("gsmDisabled"),n=!0}).on("ev.getLinks",function(t){switch(t.stopImmediatePropagation(),n){case!0:t=i.slice(0,4);break;default:t=i}$(this).trigger($.Event(EVENT_EXTERN,{gsmData:{data:t}}))}).on("click",function(t){t.stopImmediatePropagation(),$(this).hasClass("gsmDisabled")||(o.trigger($.Event(EVENT_NOTIFY,{gsmData:{info:EVENT_CLICKED}})),$(this).addClass("gsmItem_Selected"),n=!n,i.reverse(),$(this).trigger("ev.getLinks"))}).on(EVENT_SET_DATA,function(t){t.stopImmediatePropagation(),e.getList_Thumb({idFolder:t.gsmData.data.idFolder},function(t){i=t.data,n||i.reverse(),a.trigger($.Event(EVENT_ENABLE,{gsmData:{data:{bEnable:4
=this.data.length?0:e+1,this.data[e]}};this.on(EVENT_SET_DEFAULT,function(t){t.stopImmediatePropagation(),r.stop(),s=$("img:first",this).trigger($.Event(EVENT_CLEAR,{gsmData:{data:{bFront:!0}}})),o=$("img:last",this).trigger($.Event(EVENT_CLEAR,{gsmData:{data:{bFront:!1}}})),e=-1,i.data=[]}).on(EVENT_INIT,function(t){t.stopImmediatePropagation(),$(this).trigger(EVENT_SET_DEFAULT),i.data=t.gsmData.data,o.trigger($.Event(EVENT_LOAD,{gsmData:{data:{src:i.getSrc()}}}))}).on(EVENT_TOGGLE,function(t){t.stopImmediatePropagation(),s.trigger($.Event(EVENT_SHOW,{gsmData:{data:{bShow:!1}}})),o.trigger($.Event(EVENT_SHOW,{gsmData:{data:{bShow:!0}}}))}).on("ev.timedOut",function(t){t.stopImmediatePropagation(),$(this).trigger(EVENT_TOGGLE)}).on(EVENT_NOTIFY,function(t){switch(t.stopImmediatePropagation(),t.gsmData.info){case EVENT_LOAD:-1===parseInt(s.css("z-index"))&&$(this).trigger(EVENT_TOGGLE);break;case EVENT_SHOW:o.css({zIndex:1}),s.css({zIndex:-1}),a=o,o=s,s=a,r.start(),o.trigger($.Event(EVENT_LOAD,{gsmData:{data:{src:i.getSrc()}}}))}});var n=this,s=$("img:first",this).gsmTheImg().on(EVENT_EXTERN,function(t){t.stopImmediatePropagation(),n.trigger($.Event(EVENT_NOTIFY,{gsmData:t.gsmData}))}),o=$("img:last",this).gsmTheImg().on(EVENT_EXTERN,function(t){t.stopImmediatePropagation(),n.trigger($.Event(EVENT_NOTIFY,{gsmData:t.gsmData}))});return this.setType=function(t,a){switch(t){case!0:switch(parseInt($(this).css("opacity"))){case 0:n.trigger(EVENT_SET_DEFAULT).css({zIndex:0}).fadeTo(TIME_FADE,OPACITY_MAX,function(){$.isFunction(a)&&a()});break;default:$.isFunction(a)&&a()}break;default:switch(0=MAIN_OFFSET&&a.idMenu_Item<=MAIN_OFFSET+MAIN_MAX_ITEMS)n.trigger($.Event("ev.setGallery",{gsmData:{data:{bOverview:!0}}})),E.trigger($.Event("ev.setActive",{gsmData:{data:{idItem_Active:a.idMenu_Item-MAIN_OFFSET}}})),d.trigger($.Event("ev.setActive",{gsmData:{data:{item_Active:2}}})).trigger(EVENT_CLICKED);else if(a.idMenu_Item>=ACC_OFFSET&&a.idMenu_Item<=ACC_OFFSET+ACC_MAX_ITEMS)n.trigger($.Event("ev.setGallery",{gsmData:{data:{bOverview:!0}}})),E.trigger($.Event("ev.setActive",{gsmData:{data:{idItem_Active:a.idMenu_Item-ACC_OFFSET}}})),d.trigger($.Event("ev.setActive",{gsmData:{data:{item_Active:2}}})).trigger(EVENT_CLICKED);else{if(!(a.idMenu_Item>=ACC_OFFSET_GALLERY&&a.idMenu_Item<=ACC_OFFSET_GALLERY+ACC_MAX_ITEMS))return n.trigger($.Event("ev.setGallery",{gsmData:{data:{bOverview:!0}}})),d.trigger($.Event("ev.setActive",{gsmData:{data:{item_Active:0}}})).trigger(EVENT_CLICKED),this;n.trigger($.Event("ev.setGallery",{gsmData:{data:{bOverview:!1}}})),E.trigger($.Event("ev.setActive",{gsmData:{data:{idItem_Active:a.idMenu_Item-ACC_OFFSET_GALLERY}}})),d.trigger($.Event("ev.setActive",{gsmData:{data:{item_Active:2}}})).trigger(EVENT_CLICKED)}},$(document).ready(run)