(function(){"use strict";for(var a,e=function(){},b="assert clear count debug dir dirxml error exception group groupCollapsed groupEnd info log markTimeline profile profileEnd table time timeEnd timeStamp trace warn".split(" "),c=b.length,d=window.console=window.console||{};c--;) a=b[c],d[a]||(d[a]=e);jQuery(window).ready(function($){var wi=$(window).width();$(window).resize(function(){$('#mi-nav').height(($('#mi-nav a').length-1)*($('#mi-nav a').outerHeight()+parseInt($('#mi-nav a').css('margin-bottom'))));});$('.open-close-btn').click(function(){if($('.featured-overlay').hasClass('closed')){$('.opener-area').css('left','-100px');setTimeout(function(){$('.featured-overlay').css('left','0').removeClass('closed');},300);}else{$('.featured-overlay').css('left','-40%').addClass('closed');setTimeout(function(){$('.opener-area').css('left','0px');},300);}});if($(".partners-carousel .owl-carousel").length){$(".partners-carousel .owl-carousel").owlCarousel({autoplay:true,loop:true,margin:25,dots:true,nav:false,navText:["",""],responsive:{0:{items:1},479:{items:2},768:{items:3},991:{items:5},1024:{items:6}}});} if($(".img-carousel").length){$(".img-carousel").owlCarousel({autoplay:true,loop:true,margin:25,dots:true,nav:false,navText:["",""],responsive:{0:{items:1},479:{items:1},768:{items:1},991:{items:1},1024:{items:1}}});} if($(".faq-filters").length){$(".faq-filters li").on('click',function(event){event.preventDefault();if($(this).hasClass('active')){$(this).removeClass('active');} else{$(this).addClass('active');}});}});jQuery(window).ready(function($){var first1='#special-offers';var second1='#mi-slider img';var window_width=$(window).width();if(window_width<9999){$(first1).height()>$(second1).height()?$(second1).height($(first1).height()):$(first1).height($(second1).height());} if($('.section-amazing-tours').length>0){$('.section-amazing-tours .items-holder').carouFredSel({auto:false,responsive:true});$(".section-amazing-tours .next").click(function(event){event.preventDefault();$('.section-amazing-tours .items-holder').trigger("next",1);});$(".section-amazing-tours .previous").click(function(event){event.preventDefault();$('.section-amazing-tours .items-holder').trigger("prev",1);});} if($('#frame').length>0){$('#frame').sly({scrollBar:$('#scrollBar'),dragHandle:1,easing:'easeOutExpo',dragging:1,scrollBy:20,cycleBy:'items'});} if($('.single-slider').length>0){var singlePSlider=$('.single-slider').carouFredSel({auto:false});$(".single-slider-holder .main-slide-nav .next-btn").click(function(event){event.preventDefault();$('.single-slider').trigger("next",1);});$(".single-slider-holder .main-slide-nav .prev-btn").click(function(event){event.preventDefault();$('.single-slider').trigger("prev",1);});} if($('.single-slider-thumb-gallery').length>0){$('.single-slider-thumb-gallery ul').carouFredSel({auto:false,circular:true});$(".single-slider-thumb-gallery .next-btn").click(function(event){event.preventDefault();$('.single-slider-thumb-gallery ul').trigger("next",1);});$(".single-slider-thumb-gallery .prev-btn").click(function(event){event.preventDefault();$('.single-slider-thumb-gallery ul').trigger("prev",1);});$(".single-slider-thumb-gallery .horizontal-gallery-item").click(function(event){event.preventDefault();var tid=$(this).attr('href');var targetSlide=$(".single-slider "+tid);singlePSlider.trigger('slideTo',targetSlide);});} if($('.bar-item').length>0){$('.bar-item').each(function(){var bar=$(this).find('.bar');var w=bar.attr('data-width');bar.append('
');bar.find('.pbar').delay($(this).index()*200).animate({width:w},1000,'easeOutBack');});} if($("#sliderz").length>0){$("#sliderz").rangeSlider();} if($('#Grid').length>0){$('#Grid').mixitup();} if($('.destination-lists').length>0&&$(window).width()>779){var $container=$('.destination-lists');$container.masonry({itemSelector:'.destination'});setTimeout(function(){$container.masonry('reloadItems');},500);} $("#date_depart").datepicker({minDate:0,defaultDate:"+1w",numberOfMonths:1,dateFormat:'dd/mm/yy',onSelect:function(){},onClose:function(selectedDate){$("#date_retour").datepicker("option","minDate",selectedDate);}});$("#date_retour").datepicker({minDate:0,defaultDate:"+1w",numberOfMonths:1,dateFormat:'dd/mm/yy',onSelect:function(){},onClose:function(){}});if($('#mi-slider').length>0){$('#mi-nav').height(($('#mi-nav a').length-1)*($('#mi-nav a').outerHeight()+parseInt($('#mi-nav a').css('margin-bottom'))));jQuery('#mi-slider').catslider();$('#mi-slider ul li').each(function(){var el=$(this).find('a');var img=el.find('img');el.css('background-image','url('+img.attr('src')+')');img.remove();});} if($('#top-slider').length>0){jQuery('#top-slider').flexslider({animation:"slide"});} if($('#sliding-testimony').length>0){jQuery('#sliding-testimony').flexslider({animation:"fade",controlNav:false,});} if($('.star').length>0){if($('.star.big').length>0){$('.star').raty({space:false,starOff:'images/star-big-off.png',starOn:'images/star-big-on.png',score:function(){return $(this).attr('data-score');}});}else{$('.star').raty({space:false,starOff:'images/star-off.png',starOn:'images/star-on.png',score:function(){return $(this).attr('data-score');}});}} var mapCreated=false;if($('.tab-holder').length>0){$('.nav-tabs a').click(function(e){e.preventDefault();$(this).tab('show');if($('.tab-pane.active#map').length>0){createHotelMap();mapCreated=true;}});} $('input,textarea').focus(function(){$(this).data('placeholder',$(this).attr('placeholder')) $(this).attr('placeholder','');});$('input,textarea').blur(function(){$(this).attr('placeholder',$(this).data('placeholder'));});var mapIsNotActive=true;var homeLang=53.479324;var homeLat=-2.248485;var homeAddress="

Traveline House

Trafford Wharf Road, Manchester M17 1AB,
United Kingdom
+44 161 835 3500";function initializeMap(holderID,lang,lat,address){var secheltLoc=new google.maps.LatLng(lang,lat);var myMapOptions={zoom:14,center:secheltLoc,mapTypeId:google.maps.MapTypeId.ROADMAP,disableDefaultUI:true};var theMap=new google.maps.Map(document.getElementById(holderID),myMapOptions);var marker=new google.maps.Marker({map:theMap,draggable:true,position:new google.maps.LatLng(lang,lat),visible:true});var boxText=document.createElement("div");boxText.style.cssText="margin-top: 8px; background-color:#85c616; color:#ffffff; padding: 20px;";boxText.innerHTML=address;var myOptions={content:boxText,disableAutoPan:false,maxWidth:0,pixelOffset:new google.maps.Size(-26,-860),zIndex:null,boxStyle:{opacity:1,width:"290px"},closeBoxMargin:"10px 2px 2px 2px",closeBoxURL:"http://www.google.com/intl/en_us/mapfiles/close.gif",infoBoxClearance:new google.maps.Size(1,1),isHidden:false,pane:"floatPane",enableEventPropagation:false};google.maps.event.addListener(marker,"click",function(e){ib.open(theMap,this);});var ib=new InfoBox(myOptions);ib.open(theMap,marker);} if($('#map_canvas').length>0){google.maps.event.addDomListener(window,'load',initializeMap('map_canvas',homeLang,homeLat,homeAddress));$("#map_canvas").fitMaps();} function createHotelMap(){if(!mapCreated){var el=$('.hotel-map-holder');google.maps.event.addDomListener(window,'load',initializeMap('hotel-map',el.attr('data-lang'),el.attr('data-lat'),el.attr('data-info')));}} if($(".custom-checkbox").length>0){$(".custom-checkbox").screwDefaultButtons({image:'url("images/checkbox.png")',width:16,height:16});} if($(".hotel-type-filter-widget input:checkbox").length>0){$(".hotel-type-filter-widget input:checkbox").screwDefaultButtons({image:'url("images/checkbox.png")',width:16,height:16});} if($(".rating-filter-widget input:checkbox").length>0){$(".rating-filter-widget input:checkbox").screwDefaultButtons({image:'url("images/checkbox.png")',width:16,height:16});} $('.top-drop-menu').change(function(){var loc=($(this).find('option:selected').val());window.location=loc;});if($(".chosen-select").length>0){$(".chosen-select").chosen({max_selected_options:5});} if($(".custom-select").length>0){$(".custom-select").chosen({disable_search_threshold:10});} $('.toggle-menu').click(function(e){e.preventDefault();var el=$(this);el.toggleClass('active');if(el.hasClass('active')){$('.toggle-menu-holder .menu-body').removeClass('closed').addClass('opened');}else{$('.toggle-menu-holder .menu-body').removeClass('opened').addClass('closed');}});$('#StyleSwitcher .switcher-btn').click(function(){'use strict';$('#StyleSwitcher').toggleClass('open');return false;});$('.color-switch').click(function(){'use strict';var title=jQuery(this).attr('title');jQuery('#color-switch').attr('href','css/colors/'+title+'.css');return false;});});$(window).bind("load",function(){$('#status').fadeOut();$('#preloader').delay(1000).fadeOut('slow');$('body').delay(1000).css({'overflow-x':'hidden'}).css({'overflow-y':'auto'});});})();var switcher='
';$('body').append('');$('.switcher-colors a').click(function(e){e.preventDefault();var title=$(this).attr('title');chooseStyle(title,60);});$('.goto-top').click(function(e){e.preventDefault();$('html,body').animate({scrollTop:0},2000);});$(window).scroll(function(e){var nav_anchor=$("#header");var gotop=$(document);if($(this).scrollTop()>=gotop.height()/2){$('.goto-top').css({'opacity':1});}else if($(this).scrollTop()=100&&nav_anchor.css('position')!='fixed'&&!nav_anchor.hasClass('fixed-menu')) {nav_anchor.css({'position':'fixed','top':'100px','opacity':'1','z-index':'9999'});setTimeout(function(){nav_anchor.addClass('splited');nav_anchor.addClass('hover_head');},0);} else if($(this).scrollTop()<100&&nav_anchor.css('position')!='relative'&&!nav_anchor.hasClass('fixed-menu')) {nav_anchor.css({'top':'0px','opacity':'1'});setTimeout(function(){nav_anchor.css({'position':'relative'}).removeClass('splited');},0);nav_anchor.removeClass('hover_head');}}); if(typeof Object.create!=="function"){Object.create=function(obj){function F(){};F.prototype=obj;return new F();};} (function($,window,document,undefined){var Carousel={init:function(options,el){var base=this;base.options=$.extend({},$.fn.owlCarousel.options,options);var elem=el;var $elem=$(el);base.$elem=$elem;base.loadContent()},loadContent:function(){var base=this;if(typeof base.options.beforeInit==="function"){base.options.beforeInit.apply(this,[base.$elem]);} if(typeof base.options.jsonPath==="string"){var url=base.options.jsonPath;function getData(data){if(typeof base.options.jsonSuccess==="function"){base.options.jsonSuccess.apply(this,[data]);}else{var content="";for(var i in data["owl"]){content+=data["owl"][i]["item"];} base.$elem.html(content);} base.logIn();} $.getJSON(url,getData);}else{base.logIn();}},logIn:function(){var base=this;base.baseClass();base.$elem.css({opacity:0}) base.checkTouch();base.eventTypes();base.support3d();base.wrapperWidth=0;base.currentSlide=0;base.userItems=base.$elem.children();base.itemsAmount=base.userItems.length;base.wrapItems();base.owlItems=base.$elem.find(".owl-item");base.owlWrapper=base.$elem.find(".owl-wrapper");base.orignalItems=base.options.items;base.playDirection="next";base.checkVisible;base.onStartup();base.customEvents();},onStartup:function(){var base=this;base.updateItems();base.calculateAll();base.buildControls();base.updateControls();base.response();base.moveEvents();base.stopOnHover();if(base.options.autoPlay===true){base.options.autoPlay=5000;} base.play();base.$elem.find(".owl-wrapper").css("display","block") if(!base.$elem.is(":visible")){base.watchVisibility();}else{setTimeout(function(){base.$elem.animate({opacity:1},200);},10);} base.onstartup=false;base.eachMoveUpdate();if(typeof base.options.afterInit==="function"){base.options.afterInit.apply(this,[base.$elem]);}},eachMoveUpdate:function(){var base=this;if(base.options.lazyLoad===true){base.lazyLoad();} if(base.options.autoHeight===true){base.autoHeight();} if(base.options.addClassActive===true){base.addClassActive();} if(typeof base.options.afterAction==="function"){base.options.afterAction.apply(this,[base.$elem]);}},updateVars:function(){var base=this;base.watchVisibility();base.updateItems();base.calculateAll();base.updatePosition();base.updateControls();base.eachMoveUpdate();},reload:function(elements){var base=this;setTimeout(function(){base.updateVars();},0)},watchVisibility:function(){var base=this;clearInterval(base.checkVisible);if(!base.$elem.is(":visible")){base.$elem.css({opacity:0});clearInterval(base.autoPlaySpeed);}else{return false;} base.checkVisible=setInterval(function(){if(base.$elem.is(":visible")){base.reload();base.$elem.animate({opacity:1},200);clearInterval(base.checkVisible);}},500);},wrapItems:function(){var base=this;base.userItems.wrapAll("
").wrap("
");base.$elem.find(".owl-wrapper").wrap("
");base.wrapperOuter=base.$elem.find(".owl-wrapper-outer");base.$elem.css("display","block");},baseClass:function(){var base=this;var hasBaseClass=base.$elem.hasClass(base.options.baseClass);var hasThemeClass=base.$elem.hasClass(base.options.theme);if(!hasBaseClass){base.$elem.addClass(base.options.baseClass);} if(!hasThemeClass){base.$elem.addClass(base.options.theme);}},updateItems:function(){var base=this;if(base.options.responsive===false){return false;} if(base.options.singleItem===true){base.options.items=base.orignalItems=1;base.options.itemsDesktop=false;base.options.itemsDesktopSmall=false;base.options.itemsTablet=false;base.options.itemsMobile=false;return false;} var width=$(window).width();if(width>(base.options.itemsDesktop[0]||base.orignalItems)){base.options.items=base.orignalItems} if(width<=base.options.itemsDesktop[0]&&base.options.itemsDesktop!==false){base.options.items=base.options.itemsDesktop[1];} if(width<=base.options.itemsDesktopSmall[0]&&base.options.itemsDesktopSmall!==false){base.options.items=base.options.itemsDesktopSmall[1];} if(width<=base.options.itemsTablet[0]&&base.options.itemsTablet!==false){base.options.items=base.options.itemsTablet[1];} if(width<=base.options.itemsMobile[0]&&base.options.itemsMobile!==false){base.options.items=base.options.itemsMobile[1];} if(base.options.items>base.itemsAmount){base.options.items=base.itemsAmount;}},response:function(){var base=this,smallDelay;if(base.options.responsive!==true){return false} var lastWindowWidth=$(window).width();$(window).resize(function(){if($(window).width()!==lastWindowWidth){if(base.options.autoPlay!==false){clearInterval(base.autoPlaySpeed);} clearTimeout(smallDelay);smallDelay=setTimeout(function(){lastWindowWidth=$(window).width();base.updateVars();},base.options.responsiveRefreshRate);}})},updatePosition:function(){var base=this;if(base.support3d===true){if(base.positionsInArray[base.currentSlide]>base.maximumPixels){base.transition3d(base.positionsInArray[base.currentSlide]);}else{base.transition3d(0);base.currentSlide=0;}}else{if(base.positionsInArray[base.currentSlide]>base.maximumPixels){base.css2slide(base.positionsInArray[base.currentSlide]);}else{base.css2slide(0);base.currentSlide=0;}} if(base.options.autoPlay!==false){base.checkAp();}},appendItemsSizes:function(){var base=this;var roundPages=0;var lastItem=base.itemsAmount-base.options.items;base.owlItems.each(function(index){$(this).css({"width":base.itemWidth}).data("owl-item",Number(index));if(index%base.options.items===0||index===lastItem){if(!(index>lastItem)){roundPages+=1;}} $(this).data("owl-roundPages",roundPages);});},appendWrapperSizes:function(){var base=this;var width=0;var width=base.owlItems.length*base.itemWidth;base.owlWrapper.css({"width":width*2,"left":0});base.appendItemsSizes();},calculateAll:function(){var base=this;base.calculateWidth();base.appendWrapperSizes();base.loops();base.max();},calculateWidth:function(){var base=this;base.itemWidth=Math.round(base.$elem.width()/base.options.items)},max:function(){var base=this;base.maximumSlide=base.itemsAmount-base.options.items;var maximum=(base.itemsAmount*base.itemWidth)-base.options.items*base.itemWidth;maximum=maximum*-1 base.maximumPixels=maximum;return maximum;},min:function(){return 0;},loops:function(){var base=this;base.positionsInArray=[0];var elWidth=0;for(var i=0;i").toggleClass("clickable",!base.isTouch).appendTo(base.$elem);} if(base.options.pagination===true){base.buildPagination();} if(base.options.navigation===true){base.buildButtons();}},buildButtons:function(){var base=this;var buttonsWrapper=$("
") base.owlControls.append(buttonsWrapper);base.buttonPrev=$("
",{"class":"owl-prev","html":base.options.navigationText[0]||""});base.buttonNext=$("
",{"class":"owl-next","html":base.options.navigationText[1]||""});buttonsWrapper.append(base.buttonPrev).append(base.buttonNext);buttonsWrapper.on("touchend.owlControls mouseup.owlControls","div[class^=\"owl\"]",function(event){event.preventDefault();if($(this).hasClass("owl-next")){base.next();}else{base.prev();}})},buildPagination:function(){var base=this;base.paginationWrapper=$("
");base.owlControls.append(base.paginationWrapper);base.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(event){event.preventDefault();if(Number($(this).data("owl-page"))!==base.currentSlide){base.goTo(Number($(this).data("owl-page")),true);}});},updatePagination:function(){var base=this;if(base.options.pagination===false){return false;} base.paginationWrapper.html("");var counter=0;var lastPage=base.itemsAmount-base.itemsAmount%base.options.items;for(var i=0;i",{"class":"owl-page"});var paginationButtonInner=$("",{"text":base.options.paginationNumbers===true?counter:"","class":base.options.paginationNumbers===true?"owl-numbers":""});paginationButton.append(paginationButtonInner);paginationButton.data("owl-page",lastPage===i?lastItem:i);paginationButton.data("owl-roundPages",counter);base.paginationWrapper.append(paginationButton);}} base.checkPagination();},checkPagination:function(){var base=this;base.paginationWrapper.find(".owl-page").each(function(i,v){if($(this).data("owl-roundPages")===$(base.owlItems[base.currentSlide]).data("owl-roundPages")){base.paginationWrapper.find(".owl-page").removeClass("active");$(this).addClass("active");}});},checkNavigation:function(){var base=this;if(base.options.navigation===false){return false;} if(base.options.goToFirstNav===false){if(base.currentSlide===0&&base.maximumSlide===0){base.buttonPrev.addClass("disabled");base.buttonNext.addClass("disabled");}else if(base.currentSlide===0&&base.maximumSlide!==0){base.buttonPrev.addClass("disabled");base.buttonNext.removeClass("disabled");}else if(base.currentSlide===base.maximumSlide){base.buttonPrev.removeClass("disabled");base.buttonNext.addClass("disabled");}else if(base.currentSlide!==0&&base.currentSlide!==base.maximumSlide){base.buttonPrev.removeClass("disabled");base.buttonNext.removeClass("disabled");}}},updateControls:function(){var base=this;base.updatePagination();base.checkNavigation();if(base.owlControls){if(base.options.items===base.itemsAmount){base.owlControls.hide();}else{base.owlControls.show();}}},destroyControls:function(){var base=this;if(base.owlControls){base.owlControls.remove();}},next:function(speed){var base=this;base.currentSlide+=base.options.scrollPerPage===true?base.options.items:1;if(base.currentSlide>base.maximumSlide+(base.options.scrollPerPage==true?(base.options.items-1):0)){if(base.options.goToFirstNav===true){base.currentSlide=0;speed="goToFirst";}else{base.currentSlide=base.maximumSlide;return false;}} base.goTo(base.currentSlide,speed);},prev:function(speed){var base=this;if(base.options.scrollPerPage===true&&base.currentSlide>0&&base.currentSlide=base.maximumSlide){position=base.maximumSlide;} else if(position<=0){position=0;} base.currentSlide=position;var goToPixel=base.positionsInArray[position];if(base.support3d===true){base.isCss3Finish=false;if(pagination===true){base.swapTransitionSpeed("paginationSpeed");setTimeout(function(){base.isCss3Finish=true;},base.options.paginationSpeed);}else if(pagination==="goToFirst"){base.swapTransitionSpeed(base.options.goToFirstSpeed);setTimeout(function(){base.isCss3Finish=true;},base.options.goToFirstSpeed);}else{base.swapTransitionSpeed("slideSpeed");setTimeout(function(){base.isCss3Finish=true;},base.options.slideSpeed);} base.transition3d(goToPixel);}else{if(pagination===true){base.css2slide(goToPixel,base.options.paginationSpeed);}else if(pagination==="goToFirst"){base.css2slide(goToPixel,base.options.goToFirstSpeed);}else{base.css2slide(goToPixel,base.options.slideSpeed);}} if(base.options.pagination===true){base.checkPagination();} if(base.options.navigation===true){base.checkNavigation();} if(base.options.autoPlay!==false){base.checkAp();} base.eachMoveUpdate();if(typeof base.options.afterMove==="function"){base.options.afterMove.apply(this,[base.$elem]);}},stop:function(){var base=this;base.apStatus="stop";clearInterval(base.autoPlaySpeed);},checkAp:function(){var base=this;if(base.apStatus!=="stop"){base.play();}},play:function(){var base=this;base.apStatus="play";if(base.options.autoPlay===false){return false;} clearInterval(base.autoPlaySpeed);base.autoPlaySpeed=setInterval(function(){if(base.currentSlide0){base.prev(true);}else if(base.playDirection==="prev"&&base.currentSlide===0){base.playDirection="next";base.next(true);}},base.options.autoPlay);},swapTransitionSpeed:function(action){var base=this;if(action==="slideSpeed"){base.owlWrapper.css(base.addTransition(base.options.slideSpeed));}else if(action==="paginationSpeed"){base.owlWrapper.css(base.addTransition(base.options.paginationSpeed));}else if(typeof action!=="string"){base.owlWrapper.css(base.addTransition(action));}},addTransition:function(speed){var base=this;return{"-webkit-transition":"all "+speed+"ms ease","-moz-transition":"all "+speed+"ms ease","-o-transition":"all "+speed+"ms ease","transition":"all "+speed+"ms ease"};},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"","transition":""};},doTranslate:function(pixels){return{"-webkit-transform":"translate3d("+pixels+"px, 0px, 0px)","-moz-transform":"translate3d("+pixels+"px, 0px, 0px)","-o-transform":"translate3d("+pixels+"px, 0px, 0px)","-ms-transform":"translate3d("+pixels+"px, 0px, 0px)","transform":"translate3d("+pixels+"px, 0px,0px)"};},transition3d:function(value){var base=this;base.owlWrapper.css(base.doTranslate(value));},css2move:function(value){var base=this;base.owlWrapper.css({"left":value})},css2slide:function(value,speed){var base=this;base.isCssFinish=false;base.owlWrapper.stop(true,true).animate({"left":value},{duration:speed||base.options.slideSpeed,complete:function(){base.isCssFinish=true;}});},support3d:function(){var base=this;var sTranslate3D="translate3d(0px, 0px, 0px)";var eTemp=document.createElement("div");eTemp.style.cssText=" -moz-transform:"+sTranslate3D+"; -ms-transform:"+sTranslate3D+"; -o-transform:"+sTranslate3D+"; -webkit-transform:"+sTranslate3D+"; transform:"+sTranslate3D;var rxTranslate=/translate3d\(0px, 0px, 0px\)/g;var asSupport=eTemp.style.cssText.match(rxTranslate);var bHasSupport=(asSupport!==null&&asSupport.length===1);base.support3d=bHasSupport return bHasSupport;},checkTouch:function(){var base=this;base.isTouch='ontouchstart'in window||navigator.msMaxTouchPoints;},moveEvents:function(){var base=this;if(base.options.mouseDrag!==false||base.options.touchDrag!==false){base.gestures();base.disabledEvents();}},eventTypes:function(){var base=this;var types=["s","e","x"];base.ev_types={};if(base.options.mouseDrag===true&&base.options.touchDrag===true){types=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"];}else if(base.options.mouseDrag===false&&base.options.touchDrag===true){types=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"];}else if(base.options.mouseDrag===true&&base.options.touchDrag===false){types=["mousedown.owl","mousemove.owl","mouseup.owl"];} base.ev_types["start"]=types[0];base.ev_types["move"]=types[1];base.ev_types["end"]=types[2];},disabledEvents:function(){var base=this;base.$elem.on("dragstart.owl","img",function(event){event.preventDefault();});base.$elem.bind("mousedown.disableTextSelect",function(){return false;});},gestures:function(){var base=this;var locals={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null} base.isCssFinish=true;function getTouches(event){if(event.touches){return{x:event.touches[0].pageX,y:event.touches[0].pageY}}else{if(event.pageX!==undefined){return{x:event.pageX,y:event.pageY}}else{return{x:event.clientX,y:event.clientY}}}} function swapEvents(type){if(type==="on"){$(document).on(base.ev_types["move"],dragMove);$(document).on(base.ev_types["end"],dragEnd);}else if(type==="off"){$(document).off(base.ev_types["move"]);$(document).off(base.ev_types["end"]);}} function dragStart(event){var event=event.originalEvent||event||window.event;if(base.isCssFinish===false){return false;} if(base.isCss3Finish===false){return false;} if(base.options.autoPlay!==false){clearInterval(base.autoPlaySpeed);} if(base.isTouch!==true&&!base.owlWrapper.hasClass("grabbing")){base.owlWrapper.addClass("grabbing")} base.newPosX=0;base.newRelativeX=0;$(this).css(base.removeTransition());var position=$(this).position();locals.relativePos=position.left;locals.offsetX=getTouches(event).x-position.left;locals.offsetY=getTouches(event).y-position.top;swapEvents("on");locals.sliding=false;locals.targetElement=event.target||event.srcElement;} function dragMove(event){var event=event.originalEvent||event||window.event;base.newPosX=getTouches(event).x-locals.offsetX;base.newPosY=getTouches(event).y-locals.offsetY;base.newRelativeX=base.newPosX-locals.relativePos;if(typeof base.options.startDragging==="function"&&locals.dragging!==true&&base.newPosX!==0){locals.dragging=true;base.options.startDragging.apply(this);} if(base.newRelativeX>8||base.newRelativeX<-8&&base.isTouch===true){event.preventDefault?event.preventDefault():event.returnValue=false;locals.sliding=true;} if((base.newPosY>10||base.newPosY<-10)&&locals.sliding===false){$(document).off("touchmove.owl");} var minSwipe=function(){return base.newRelativeX/5;} var maxSwipe=function(){return base.maximumPixels+base.newRelativeX/5;} base.newPosX=Math.max(Math.min(base.newPosX,minSwipe()),maxSwipe());if(base.support3d===true){base.transition3d(base.newPosX);}else{base.css2move(base.newPosX);}} function dragEnd(event){var event=event.originalEvent||event||window.event;event.target=event.target||event.srcElement;locals.dragging=false;if(base.isTouch!==true){base.owlWrapper.removeClass("grabbing");} if(base.newPosX!==0){var newPosition=base.getNewPosition();base.goTo(newPosition);if(locals.targetElement===event.target&&base.isTouch!==true){$(event.target).on("click.disable",function(ev){ev.stopImmediatePropagation() ev.stopPropagation();ev.preventDefault();$(event.target).off("click.disable");});var handlers=$._data(event.target,"events")["click"];var owlStopEvent=handlers.pop();handlers.splice(0,0,owlStopEvent);}} swapEvents("off");} base.$elem.on(base.ev_types["start"],".owl-wrapper",dragStart);},clearEvents:function(){var base=this;base.$elem.off(".owl");$(document).off(".owl");},getNewPosition:function(){var base=this,newPosition;var newPosition=base.improveClosest();if(newPosition>base.maximumSlide){base.currentSlide=base.maximumSlide;newPosition=base.maximumSlide;}else if(base.newPosX>=0){newPosition=0;base.currentSlide=0;} return newPosition;},improveClosest:function(){var base=this;var array=base.positionsInArray;var goal=base.newPosX;var closest=null;$.each(array,function(i,v){if(goal-(base.itemWidth/20)>array[i+1]&&goal-(base.itemWidth/20)array[i+1]&&base.moveDirection()==="right"){closest=array[i+1];base.currentSlide=i+1;}});return base.currentSlide;},moveDirection:function(){var base=this,direction;if(base.newRelativeX<0){direction="right" base.playDirection="next"}else{direction="left" base.playDirection="prev"} return direction},customEvents:function(){var base=this;base.$elem.on("owl.next",function(){base.next();});base.$elem.on("owl.prev",function(){base.prev();});base.$elem.on("owl.play",function(event,speed){base.options.autoPlay=speed;base.play();base.hoverStatus="play";});base.$elem.on("owl.stop",function(){base.stop();base.hoverStatus="stop";});},stopOnHover:function(){var base=this;if(base.options.stopOnHover===true&&base.isTouch!==true&&base.options.autoPlay!==false){base.$elem.on("mouseover",function(){base.stop();});base.$elem.on("mouseout",function(){if(base.hoverStatus!=="stop"){base.play();}});}},lazyLoad:function(){var base=this;if(base.options.lazyLoad===false){return false;} for(var i=0;i=base.currentSlide;}else{follow=true;} if(follow&&itemNumber",""],goToFirstNav:true,scrollPerPage:false,pagination:true,paginationNumbers:false,responsive:true,responsiveRefreshRate:200,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:false,lazyFollow:true,autoHeight:false,jsonPath:false,jsonSuccess:false,mouseDrag:true,touchDrag:true,beforeInit:false,afterInit:false,beforeMove:false,afterMove:false,afterAction:false,startDragging:false,addClassActive:false};})(jQuery,window,document); // http://spin.js.org/#v2.3.2 !function(a,b){"object"==typeof module&&module.exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){"use strict";function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-"),f=.01+c/d*100,g=Math.max(1-(1-a)/b*(100-f),a),h=j.substring(0,j.indexOf("Animation")).toLowerCase(),i=h&&"-"+h+"-"||"";return m[e]||(k.insertRule("@"+i+"keyframes "+e+"{0%{opacity:"+g+"}"+f+"%{opacity:"+a+"}"+(f+.01)+"%{opacity:1}"+(f+b)%100+"%{opacity:"+a+"}100%{opacity:"+g+"}}",k.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;if(b=b.charAt(0).toUpperCase()+b.slice(1),void 0!==e[b])return b;for(d=0;d',c)}k.addRule(".spin-vml","behavior:url(#default#VML)"),h.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:k+" "+k,coordorigin:-j+" "+-j}),{width:k,height:k})}function h(a,h,i){b(m,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~h}),b(e(c("roundrect",{arcsize:d.corners}),{width:j,height:d.scale*d.width,left:d.scale*d.radius,top:-d.scale*d.width>>1,filter:i}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var i,j=d.scale*(d.length+d.width),k=2*d.scale*j,l=-(d.width+d.length)*d.scale*2+"px",m=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(i=1;i<=d.lines;i++)h(i,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(i=1;i<=d.lines;i++)h(i);return b(a,m)},h.prototype.opacity=function(a,b,c,d){var e=a.firstChild;d=d.shadow&&d.lines||0,e&&b+d>1)+"px"})}for(var i,k=0,l=(f.lines-1)*(1-f.direction)/2;k>1)+'px'})} for(;i',attr)} sheet.addRule('.spin-vml','behavior:url(#default#VML)') Spinner.prototype.lines=function(el,o){var r=o.scale*(o.length+o.width),s=o.scale*2*r function grp(){return css(vml('group',{coordsize:s+' '+s,coordorigin:-r+' '+-r}),{width:s,height:s})} var margin=-(o.width+o.length)*o.scale*2+'px',g=css(grp(),{position:'absolute',top:margin,left:margin}),i function seg(i,dx,filter){ins(g,ins(css(grp(),{rotation:360/o.lines*i+'deg',left:~~dx}),ins(css(vml('roundrect',{arcsize:o.corners}),{width:r,height:o.scale*o.width,left:o.scale*o.radius,top:-o.scale*o.width>>1,filter:filter}),vml('fill',{color:getColor(o.color,i),opacity:o.opacity}),vml('stroke',{opacity:0}))))} if(o.shadow) for(i=1;i<=o.lines;i++){seg(i,-2,'progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)')} for(i=1;i<=o.lines;i++)seg(i) return ins(el,g)} Spinner.prototype.opacity=function(el,i,val,o){var c=el.firstChild o=o.shadow&&o.lines||0 if(c&&i+oLoading...'); }, success: function (code_html, statut) { $("#ville_arrivee").html(code_html); }, error: function (resultat, statut, erreur) {} }); }); $("#ville_arrivee").change(function (e) { //var depart = $("#ville_depart option:selected").val(); var depart = $("#ville_depart").val(); var arrivee = $("#ville_arrivee option:selected").val(); var roudTrip = $("#frmMoteur input[name='round_trip']:checked").val(); $.ajax({ url: 'ajax/calendriers.cfm', type: 'POST', data: 'ville_depart=' + depart + '&ville_arrivee=' + arrivee + '&round_trip=' + roudTrip + '&token=' + _token, dataType: 'html', beforeSend: function (jqXHR) {}, success: function (code_html, statut) { $("#div_dates").html(code_html); var depart_min_day = $("#depart_min_day").val(); var depart_min_month = $("#depart_min_month").val(); var depart_min_year = $("#depart_min_year").val(); var depart_max_day = $("#depart_max_day").val(); var depart_max_month = $("#depart_max_month").val(); var depart_max_year = $("#depart_max_year").val(); var retour_min_day = $("#retour_min_day").val(); var retour_min_month = $("#retour_min_month").val(); var retour_min_year = $("#retour_min_year").val(); var retour_max_day = $("#retour_max_day").val(); var retour_max_month = $("#retour_max_month").val(); var retour_max_year = $("#retour_max_year").val(); $("#date_depart, #date_retour").datepicker("destroy"); $("#date_depart").datepicker({ minDate: new Date(depart_min_year, depart_min_month - 1, depart_min_day), maxDate: new Date(depart_max_year, depart_max_month - 1, depart_max_day), beforeShowDay: disableSpecificDates_depart, onClose: function (selectedDate) { if (selectedDate.length) { $("#date_retour").datepicker("option", "minDate", selectedDate) }; } }); $("#date_retour").datepicker({ minDate: new Date(retour_min_year, retour_min_month - 1, retour_min_day), maxDate: new Date(retour_max_year, retour_max_month - 1, retour_max_day), beforeShowDay: disableSpecificDates_retour, onClose: function (selectedDate) {} }); }, error: function (resultat, statut, erreur) {}, }); $("#div_ville_arrivee").find("button").attr('title',''); }); //**********home_carte_moteur.cfm*************************/// $("#btnReserver2").click(function(e) { e.preventDefault(); $("#div_timetable").show("slow"); //$("#frmMoteur2 textarea[name='DEBUG']").show("slow"); var depart = $("#ville_depart2").val(); var arrivee = $("#ville_arrivee2 option:selected").val(); var date_depart = $("#date_depart2").val(); var date_retour = $("#date_retour2").val(); //mettre à jour les infos cryptées à envoyer à Amadeus $.ajax({ url: 'ajax/time_table.cfm', type: 'POST', data: 'depart=' + depart + '&arrivee=' + arrivee + '&date_depart='+date_depart+'&date_retour='+date_retour, dataType: 'html', beforeSend: function (jqXHR) {}, success: function (data, statut) { data_temp = data.split('|'); $("#frmMoteur2 input[name='ENC']").val(data_temp[1]); $("#frmMoteur2 textarea[name='DEBUG']").val(data_temp[0]); $("#frmMoteur2").submit(); }, error: function (resultat, statut, erreur) {} }); console.log('Time-table call...'); //scrollTo div_timetable //$("#div_timetable") $('html,body').animate({ scrollTop: $("#div_timetable").offset().top-80}, 'slow'); }); $("#ville_depart2").change(); /*$("#ville_depart2").change(function (e) { var depart = $("#ville_depart2 option:selected").val(); var label = $("#div_ville_arrivee2").attr('data-title'); $.ajax({ url: 'ajax/get_destinations.cfm', type: 'POST', data: 'ville_depart=' + depart + '&label=' + encodeURIComponent(label) + '&langue='+lg, dataType: 'html', beforeSend: function (jqXHR) { $("#ville_arrivee2").html(''); }, success: function (code_html, statut) { $("#ville_arrivee2").html(code_html); }, error: function (resultat, statut, erreur) {} }); });*/ $("#ville_arrivee2").change(function (e) { //var depart = $("#ville_depart2 option:selected").val(); var depart = $("#ville_depart2").val(); var arrivee = $("#ville_arrivee2 option:selected").val(); //var roudTrip = $("#frmMoteur2 input[name='round_trip']:checked").val(); var roudTrip = 'R'; $.ajax({ url: 'ajax/calendriers.cfm', type: 'POST', data: 'ville_depart=' + depart + '&ville_arrivee=' + arrivee + '&round_trip=' + roudTrip + '&token=' + _token, dataType: 'html', beforeSend: function (jqXHR) {}, success: function (code_html, statut) { $("#div_dates2").html(code_html); var depart_min_day = $("#depart_min_day").val(); var depart_min_month = $("#depart_min_month").val(); var depart_min_year = $("#depart_min_year").val(); var depart_max_day = $("#depart_max_day").val(); var depart_max_month = $("#depart_max_month").val(); var depart_max_year = $("#depart_max_year").val(); var retour_min_day = $("#retour_min_day").val(); var retour_min_month = $("#retour_min_month").val(); var retour_min_year = $("#retour_min_year").val(); var retour_max_day = $("#retour_max_day").val(); var retour_max_month = $("#retour_max_month").val(); var retour_max_year = $("#retour_max_year").val(); $("#date_retour2").datepicker("destroy"); $("#date_retour2").datepicker({ minDate: new Date(retour_min_year, retour_min_month - 1, retour_min_day), maxDate: new Date(retour_max_year, retour_max_month - 1, retour_max_day), beforeShowDay: disableSpecificDates_retour, onClose: function (selectedDate) {} }); $("#date_depart2").datepicker("destroy"); $("#date_depart2").datepicker({ minDate: new Date(depart_min_year, depart_min_month - 1, depart_min_day), maxDate: new Date(depart_max_year, depart_max_month - 1, depart_max_day), beforeShowDay: disableSpecificDates_depart, onClose: function (selectedDate) { if (selectedDate.length) { $("#date_retour2").datepicker("option", "minDate", selectedDate) }; } }); }, error: function (resultat, statut, erreur) {} }); }); //**********home_carte_moteur.cfm*************************/// function ListGetAt(l, p, d) { if (!d) { d = ","; } return l.split(d)[p - 1]; } function ListLen(l, d) { if (typeof l == 'undefined') return 0; if (!d) { d = ","; } return l.split(d).length; } function FrDatesFormat(dates) { var jour = dates.getDate(); var mois = dates.getMonth() + 1; var annee = dates.getFullYear(); if (jour < 10) var jour = '0' + jour; if (mois < 10) var mois = '0' + mois; var date_formater = jour + '/' + mois + '/' + annee; return (date_formater); } function disableSpecificDates_depart(date) { var open_dates = $("#depart_open_dates").val(); if (open_dates != '') { list_length = ListLen(open_dates, ','); for (var i = 1; i <= list_length; i++) { var Date_Open = ListGetAt(open_dates, i, ','); var Date_Calendrier = FrDatesFormat(date); if (Date_Open == Date_Calendrier) { return [true, "", "Disponible"]; } } return [false, "", "Indisponible"]; } else return [true, "", "Disponible"]; } function disableSpecificDates_retour(date) { var open_dates = $("#retour_open_dates").val(); if (open_dates != '') { list_length = ListLen(open_dates, ','); for (var i = 1; i <= list_length; i++) { var Date_Open = ListGetAt(open_dates, i, ','); var Date_Calendrier = FrDatesFormat(date); if (Date_Open == Date_Calendrier) { return [true, "", "Disponible"]; } } return [false, "", "Indisponible"]; } else return [true, "", "Disponible"]; } jQuery.validator.messages.required = ""; $("#frmMoteur").validate({ submitHandler: function (form) { //console.log('submitHandler...'); if ($("input[id='abonne']").prop('checked')) { var data = $("#frmMoteur").serializeArray(); $.ajax({ url: 'ajax/check_abonnement.cfm', type: 'POST', data: data, dataType: 'html', success: function (code_html, statut) { var response = $.trim(code_html.split(';')[0]); var message = $.trim(code_html.split(';')[1]); var data = $.trim(code_html.split(';')[2]); var tel_abo = $.trim(data.split('!')[0]); var email_abo = $.trim(data.split('!')[1]); var daten_abo = $.trim(data.split('!')[2]); if (response == '[OK]') { $("#CONTACT_POINT_EMAIL_1").val(email_abo); $("#CONTACT_POINT_MOBILE").val(tel_abo); $("#DATE_OF_BIRTH_1").val(daten_abo); $("#CONTACT_POINT_HOME_PHONE").val(tel_abo); form.submit(); } else $("#div_message_abonne").html(message); }, error: function (resultat, statut, erreur) { return false; } }); } else if ($("input[id='corporate']").prop('checked')) { var data = 'corporate_code=' + $("#corporate_code").val(); $.ajax({ url: 'ajax/check_corporate.cfm', type: 'POST', data: data, dataType: 'html', success: function (code_html, statut) { //console.log(code_html); var response = $.trim(code_html.split(';')[0]); var message = $.trim(code_html.split(';')[1]); if ($.trim(response) == 'OK') { $("#div_message_corporate").html(''); form.submit(); } else $("#div_message_corporate").html(message); }, error: function (resultat, statut, erreur) { return false; } }); } else { form.submit(); } }, invalidHandler: function (event, validator) { console.log('invalidHandler...'); event.preventDefault(); }, rules: { ville_depart: { required: true }, ville_arrivee: { required: true }, date_depart: { required: true }, date_retour: { required: function () { var selected = $("input[name='round_trip']:checked").val(); if (selected == 'R') return true; else return false; } } }, messages: { ville_depart: "", ville_arrivee: "", date_depart: "", date_retour: "" } }); function count_passagers() { var cur_ad = parseInt($("#adultes").val()); var cur_en = parseInt($("#children").val()); var cur_bb = parseInt($("#infants").val()); var cur_se = parseInt($("#seniors").val()); var cur_je = parseInt($("#jeunes").val()); var total_passagers = parseInt(cur_ad + cur_en + cur_bb + cur_se + cur_je); nb_total_passagers = total_passagers; var total_passagers = total_passagers + ((total_passagers == 1) ? " " + t_passager : " " + t_passagers); $("#passagers").val(total_passagers); } $("#adultes, #children, #infants, #seniors, #jeunes").change(function (e) { count_passagers(); if ($("#adultes").val() == 0) { $("#abonne").prop("checked", false); $("#abonne").prop("disabled", true); } else { $("#abonne").prop("disabled", false); } if (nb_total_passagers == 0) { $("#btnReserver").removeClass('button'); $("#btnReserver").prop("disabled", true); } else { $("#btnReserver").prop("disabled", false); $("#btnReserver").addClass('button'); } }); $("input[type='submit']").show(); $("#abonne").change(function (e) { if ($("input[id='abonne']").prop('checked')) { $("input[id='corporate']").prop('checked', false); $("#pop_corporate").slideUp(); $("#abonne_nom, #abonne_prenom, #abonne_emd").addClass("required"); $("#pop_abonne").slideDown(); } else { $("#abonne_nom, #abonne_prenom, #abonne_emd").removeClass("required"); $("#pop_abonne").slideUp(); } }); $("#corporate").change(function (e) { if ($("input[id='corporate']").prop('checked')) { $("input[id='abonne']").prop('checked', false); $("#pop_abonne").slideUp(); $("#corporate_code").addClass("required"); $("#pop_corporate").slideDown(); } else { $("#corporate_code").removeClass("required"); $("#pop_corporate").slideUp(); } }); $("#passagers").click(function (e) { var abonne_is_checked = $("input[id='abonne']").prop('checked'); var corporate_is_checked = $("input[id='corporate']").prop('checked'); if ($("#demo").hasClass("collapse")) { $("#abonne,#corporate").prop("disabled", true); if (abonne_is_checked) { $("#pop_abonne").slideUp(); } if (corporate_is_checked) { $("#pop_corporate").slideUp(); } } else { $("#abonne, #corporate").prop("disabled", false); if (abonne_is_checked) { setTimeout(function () { $("#pop_abonne").slideDown(); }, 500); } if (corporate_is_checked) { setTimeout(function () { $("#pop_corporate").slideDown(); }, 500); } } }); $("#ville_depart").change(); $("input[name='round_trip']").click(function (e) { var selected = $("input[name='round_trip']:checked").val(); //console.log(selected); if (selected == 'R') { $("#date_retour").prop('disabled', false); $("#date_retour").removeClass('disableddiv'); } else { $("#date_retour").addClass('disableddiv'); $("#date_retour").prop('value', ''); $("#date_retour").prop('disabled', true); } }); $.datepicker.setDefaults( $.datepicker.regional[ '+client_langue+' ] ); }); setTimeout(function () { $('#our-travel').css("display", "block") }, 2000); $("#PARIS").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#PARIS").addClass("effet_from"); //$("#BERGERAC").addClass("effet_to"); //$("#PERIGUEUX").addClass("effet_to"); //$("#LIMOGES").addClass("effet_to"); //$("#PUYENVELAY").addClass("effet_to"); //$("#MENDE").addClass("effet_to"); $("#SAINTETIENNE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + SAINTETIENNE); } //svg_showLine('ORY','LAI,BES,UIP,LRT,NTE,BOD,BIQ,PUF,LDE,AGF,TLS,DCM,MPL,AUR,BVE,CFE,MLH,TLN,PGF,NCE,MRS,LYS'); }); $("#PARIS").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#PARIS").removeClass("effet_from"); //$("#BERGERAC").removeClass("effet_to"); //$("#PERIGUEUX").removeClass("effet_to"); //$("#LIMOGES").removeClass("effet_to"); //$("#PUYENVELAY").removeClass("effet_to"); //$("#MENDE").removeClass("effet_to"); $("#SAINTETIENNE").removeClass("effet_to"); svg_hideLine('ORY','LAI,BES,UIP,LRT,NTE,BOD,BIQ,PUF,LDE,AGF,TLS,DCM,MPL,AUR,BVE,CFE,MLH,TLN,PGF,NCE,MRS,LYS'); }); $("#BERGERAC").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#PARIS").addClass("effet_to"); $("#BERGERAC").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(BERGERAC); } }); $("#BERGERAC").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#BERGERAC").removeClass("effet_from"); //$("#PARIS").removeClass("effet_to"); }); $("#LIMOGES").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#PARIS").addClass("effet_to"); $("#LIMOGES").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + PARIS); } //svg_showLine('ORY','LAI,BES,UIP,LRT,NTE,BOD,BIQ,PUF,LDE,AGF,TLS,DCM,MPL,AUR,BVE,CFE,MLH,TLN,PGF,NCE,MRS,LYS'); }); $("#LIMOGES").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#LIMOGES").removeClass("effet_from"); $("#PARIS").removeClass("effet_to"); //svg_hideLine('ORY','LAI,BES,UIP,LRT,NTE,BOD,BIQ,PUF,LDE,AGF,TLS,DCM,MPL,AUR,BVE,CFE,MLH,TLN,PGF,NCE,MRS,LYS'); }); $("#PERIGUEUX").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#PARIS").addClass("effet_to"); $("#PERIGUEUX").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + PARIS); } }); $("#PERIGUEUX").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#PERIGUEUX").removeClass("effet_from"); $("#PARIS").removeClass("effet_to"); }); $("#METZ").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#METZ").addClass("effet_from"); $("#MARSEILLE").addClass("effet_to"); $("#TOULOUSE").addClass("effet_to"); //$("#LYON").addClass("effet_to"); //$("#NANTES").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MARSEILLE + " " + et + " " + TOULOUSE); } }); $("#METZ").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#METZ").removeClass("effet_from"); $("#MARSEILLE").removeClass("effet_to"); $("#TOULOUSE").removeClass("effet_to"); //$("#LYON").removeClass("effet_to"); //$("#NANTES").removeClass("effet_to"); }); $("#MARSEILLE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#METZ").addClass("effet_to"); $("#MARSEILLE").addClass("effet_from"); $("#MILAN").addClass("effet_to"); //$("#PAU").addClass("effet_to"); //$("#MULHOUSE").addClass("effet_to"); //$("#TOULOUSE").addClass("effet_to"); //$("#LYON").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + METZ); } //$("#LYON, #PARIS").mouseover(); //svg_showLine('ORY','MRS'); }); $("#MARSEILLE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#MARSEILLE").removeClass("effet_from"); $("#METZ").removeClass("effet_to"); $("#MILAN").removeClass("effet_to"); //$("#MULHOUSE").removeClass("effet_to"); //$("#TOULOUSE").removeClass("effet_to"); //$("#LYON").removeClass("effet_to"); //$("#LYON, #PARIS").mouseout(); //svg_hideLine('ORY','MRS'); }); $("#TOULOUSE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#METZ").addClass("effet_to"); $("#TOULOUSE").addClass("effet_from"); $("#FRIEDRICHSHAFEN").addClass("effet_to"); //$("#MARSEILLE").addClass("effet_to"); //$("#LIMOGES").addClass("effet_to"); //$("#CLERMONT_FERRAND").addClass("effet_to"); //$("#PUYENVELAY").addClass("effet_to"); $("#RENNES").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + METZ + ", " + FRIEDRICHSHAFEN + " " + et + " " + RENNES); } //svg_showLine('TLS','CFE,LPY,LIG'); }); $("#TOULOUSE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#TOULOUSE").removeClass("effet_from"); $("#METZ").removeClass("effet_to"); $("#FRIEDRICHSHAFEN").removeClass("effet_to"); //$("#MARSEILLE").removeClass("effet_to"); //$("#LIMOGES").removeClass("effet_to"); //$("#CLERMONT_FERRAND").removeClass("effet_to"); //$("#PUYENVELAY").removeClass("effet_to"); $("#RENNES").removeClass("effet_to"); //svg_hideLine('TLS','CFE,LPY,LIG'); }); $("#FRIEDRICHSHAFEN").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#TOULOUSE").addClass("effet_to"); $("#FRIEDRICHSHAFEN").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + TOULOUSE); } }); $("#FRIEDRICHSHAFEN").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#TOULOUSE").removeClass("effet_to"); $("#FRIEDRICHSHAFEN").removeClass("effet_from"); }); $("#MILAN").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#MILAN").addClass("effet_from"); //$("#NICE").addClass("effet_to"); $("#MARSEILLE").addClass("effet_to"); $("#LYON").addClass("effet_to"); $("#SAINTETIENNE").addClass("effet_to"); //$("#STRASBOURG").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MARSEILLE + ", " + LYON + " " + et + " " + SAINTETIENNE); } }); $("#MILAN").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#MILAN").removeClass("effet_from"); $("#MARSEILLE").removeClass("effet_to"); $("#TOULOUSE").removeClass("effet_to"); //$("#NICE").removeClass("effet_to"); $("#LYON").removeClass("effet_to"); $("#SAINTETIENNE").removeClass("effet_to"); //$("#STRASBOURG").removeClass("effet_to"); }); $("#MARSEILLE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#MILAN").addClass("effet_to"); $("#MARSEILLE").addClass("effet_from"); //$("#PAU").addClass("effet_to"); $("#METZ").addClass("effet_to"); $("#TOULOUSE").addClass("effet_to"); //$("#STRASBOURG").addClass("effet_to"); $("#MULHOUSE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MILAN + ", " + METZ + ", " + TOULOUSE + " " + et + " " + MULHOUSE); } }); $("#MARSEILLE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#MARSEILLE").removeClass("effet_from"); $("#MILAN").removeClass("effet_to"); //$("#PAU").removeClass("effet_to"); $("#METZ").removeClass("effet_to"); $("#TOULOUSE").removeClass("effet_to"); $("#MULHOUSE").removeClass("effet_to"); //$("#STRASBOURG").removeClass("effet_to"); $("#MULHOUSE").removeClass("effet_to"); }); $("#TOULOUSE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#FRIEDRICHSHAFEN").addClass("effet_to"); $("#MARSEILLE").addClass("effet_to"); $("#TOULOUSE").addClass("effet_from"); $("#METZ").addClass("effet_to"); $("#RENNES").addClass("effet_to"); $("#NICE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + METZ + ", " + MARSEILLE + ", " + RENNES + " " + et + " " + NICE); //$(".hoverinfo").append("
"+ vers + " " + CLERMONT_FERRAND + " via " + LYON); //$(".hoverinfo").append("
"+ vers + " " + LIMOGES + " " + et + " " + PUYENVELAY + " via " + PARIS); } }); $("#TOULOUSE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#TOULOUSE").removeClass("effet_from"); $("#METZ").removeClass("effet_to"); //$("#FRIEDRICHSHAFEN").removeClass("effet_to"); $("#MARSEILLE").removeClass("effet_to"); $("#RENNES").removeClass("effet_to"); $("#NICE").removeClass("effet_to"); }); $(".ZURICH").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#LYON").addClass("effet_to"); //$(".ZURICH").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LYON); } }); $(".ZURICH").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); //$(".ZURICH").removeClass("effet_from"); //$("#LYON").removeClass("effet_to"); }); $("#NICE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#MILAN").addClass("effet_to"); $("#NICE").addClass("effet_from"); //$("#MENDE").addClass("effet_to"); //$("#LIMOGES").addClass("effet_to"); //$("#CLERMONT_FERRAND").addClass("effet_to"); //$("#PUYENVELAY").addClass("effet_to"); //$("#PARIS, #LYON").mouseover(); $("#TOULOUSE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + TOULOUSE); } }); $("#NICE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#NICE").removeClass("effet_from"); //$("#MILAN").removeClass("effet_to"); //$("#LIMOGES").removeClass("effet_to"); //$("#CLERMONT_FERRAND").removeClass("effet_to"); //$("#PUYENVELAY").removeClass("effet_to"); //$("#MENDE").removeClass("effet_to"); //$("#PARIS, #LYON").mouseout(); $("#TOULOUSE").removeClass("effet_to"); }); $("#PAU").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#MARSEILLE").addClass("effet_to"); $("#PAU").addClass("effet_from"); //$("#LIMOGES").addClass("effet_to"); //$("#CLERMONT_FERRAND").addClass("effet_to"); //$("#PUYENVELAY").addClass("effet_to"); //$("#PARIS, #LYON").mouseover(); $("#LYON").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LYON); } //svg_showLine('PAU','LIG,CFE,LPY'); }); $("#PAU").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#PAU").removeClass("effet_from"); //$("#MARSEILLE").removeClass("effet_to"); //$("#LIMOGES").removeClass("effet_to"); //$("#CLERMONT_FERRAND").removeClass("effet_to"); //$("#PUYENVELAY").removeClass("effet_to"); //$("#PARIS, #LYON").mouseout(); //svg_hideLine('PAU','LIG,CFE,LPY'); $("#LYON").removeClass("effet_to"); }); $("#LYON").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#STUTTGART").addClass("effet_to"); //$(".ZURICH").addClass("effet_to"); //$("#METZ").addClass("effet_to"); $("#MILAN").addClass("effet_to"); //$("#CLERMONT_FERRAND").addClass("effet_to"); $("#BOLOGNE").addClass("effet_to"); //$("#LILLE").addClass("effet_to"); $("#PAU").addClass("effet_to"); $("#LYON").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MILAN + ", " + BOLOGNE + " " + et + " " + PAU); } }); $("#LYON").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#LYON").removeClass("effet_from"); //$("#STUTTGART").removeClass("effet_to"); //$(".ZURICH").removeClass("effet_to"); //$("#METZ").removeClass("effet_to"); $("#MILAN").removeClass("effet_to"); //$("#LILLE").removeClass("effet_to"); $("#PAU").removeClass("effet_to"); //$("#CLERMONT_FERRAND").removeClass("effet_to"); $("#BOLOGNE").removeClass("effet_to"); }); //ANDORRE $("#ANDORRE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#MARSEILLE").addClass("effet_to"); $("#ANDORRE").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MARSEILLE); } }); $("#ANDORRE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#ANDORRE").removeClass("effet_from"); $("#MARSEILLE").removeClass("effet_to"); }); //BOLOGNE $("#BOLOGNE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#LYON").addClass("effet_to"); $("#BOLOGNE").addClass("effet_from"); //$("#SAINTETIENNE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LYON); } }); $("#BOLOGNE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#BOLOGNE").removeClass("effet_from"); $("#LYON").removeClass("effet_to"); //$("#SAINTETIENNE").removeClass("effet_to"); }); //SAINT-ETIENNE $("#SAINTETIENNE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#SAINTETIENNE").addClass("effet_from"); //$("#PARIS").addClass("effet_to"); //$("#LILLE").addClass("effet_to"); //$("#STUTTGART").addClass("effet_to"); $("#MILAN").addClass("effet_to"); //$("#BOLOGNE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MILAN); } }); $("#SAINTETIENNE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#SAINTETIENNE").removeClass("effet_from"); //$("#PARIS").removeClass("effet_to"); //$("#LILLE").removeClass("effet_to"); //$("#STUTTGART").removeClass("effet_to"); $("#MILAN").removeClass("effet_to"); //$("#BOLOGNE").removeClass("effet_to"); }); //CAEN $("#CAEN").mouseover(function () { //svg_showLine('LYS','CFR'); $("#LYON").mouseover(); }); $("#CAEN").mouseout(function () { //svg_hideLine('LYS','CFR'); $("#LYON").mouseout(); }); //LA_ROCHELLE $("#LA_ROCHELLE").mouseover(function () { //svg_showLine('LYS','LRH'); $("#LYON").mouseover(); }); $("#LA_ROCHELLE").mouseout(function () { //svg_hideLine('LYS','LRH'); $("#LYON").mouseout(); }); //POITIERS $("#POITIERS").mouseover(function () { //svg_showLine('LYS','PIS'); $("#LYON").mouseover(); }); $("#POITIERS").mouseout(function () { //svg_hideLine('LYS','PIS'); $("#LYON").mouseout(); }); //RENNES $("#RENNES").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#RENNES").addClass("effet_from"); $("#TOULOUSE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + TOULOUSE); } }); $("#RENNES").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#RENNES").removeClass("effet_from"); $("#TOULOUSE").removeClass("effet_to"); }); //STRASBOURG $("#STRASBOURG").mouseover(function () { //svg_showLine('LYS','SXB'); //$("#LYON").mouseover(); }); $("#STRASBOURG").mouseout(function () { //svg_hideLine('LYS','SXB'); //$("#LYON").mouseout(); }); // CAEN : CFR // La Rochelle : LRH // Lille : LIL // Poitiers : PIS // Rennes : RNS // Strasbourg : SXB /*$("#CLERMONT_FERRAND").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#LYON").addClass("effet_to"); $("#CLERMONT_FERRAND").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LYON); } //svg_showLine('LYS','ORY,BOD,BES,CFR,LRH,LIL,MRS,ETZ,NTE,NCE,PAR,PUF,PIS,RNS,SXB,TLS'); }); $("#CLERMONT_FERRAND").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#CLERMONT_FERRAND").removeClass("effet_from"); $("#LYON").removeClass("effet_to"); //svg_hideLine('LYS','ORY,BOD,BES,CFR,LRH,LIL,MRS,ETZ,NTE,NCE,PAR,PUF,PIS,RNS,SXB,TLS'); });*/ $("#PUYENVELAY").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#PARIS").addClass("effet_to"); $("#PUYENVELAY").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(""); } //svg_showLine('ORY','LAI,BES,UIP,LRT,NTE,BOD,BIQ,PUF,LDE,AGF,TLS,DCM,MPL,AUR,BVE,CFE,MLH,TLN,PGF,NCE,MRS,LYS'); }); $("#PUYENVELAY").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#PUYENVELAY").removeClass("effet_from"); //$("#PARIS").removeClass("effet_to"); //svg_hideLine('ORY','LAI,BES,UIP,LRT,NTE,BOD,BIQ,PUF,LDE,AGF,TLS,DCM,MPL,AUR,BVE,CFE,MLH,TLN,PGF,NCE,MRS,LYS'); }); $("#MENDE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#PARIS").addClass("effet_to"); $("#MENDE").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(""); } }); $("#MENDE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#MENDE").removeClass("effet_from"); $("#PARIS").removeClass("effet_to"); }); $("#STUTTGART").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#LYON").addClass("effet_to"); $("#STUTTGART").addClass("effet_from"); $("#SAINTETIENNE").addClass("effet_to"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LYON + " " + et + " " + SAINTETIENNE); } }); $("#STUTTGART").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#STUTTGART").removeClass("effet_from"); $("#LYON").removeClass("effet_to"); $("#SAINTETIENNE").removeClass("effet_to"); }); $("#STRASBOURG").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#LILLE").addClass("effet_to"); //$("#MILAN").addClass("effet_to"); $("#MARSEILLE").addClass("effet_to"); $("#STRASBOURG").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MARSEILLE); } }); $("#STRASBOURG").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#STRASBOURG").removeClass("effet_from"); //$("#LILLE").removeClass("effet_to"); //$("#MILAN").removeClass("effet_to"); $("#MARSEILLE").removeClass("effet_to"); }); $("#LILLE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); //$("#STRASBOURG").addClass("effet_to"); //$("#BREST").addClass("effet_to"); $("#LYON").addClass("effet_to"); $("#SAINTETIENNE").addClass("effet_to"); $("#LILLE").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LYON + " " + et + " " + SAINTETIENNE); } }); $("#LILLE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#LILLE").removeClass("effet_from"); //$("#STRASBOURG").removeClass("effet_to"); //$("#BREST").removeClass("effet_to"); $("#LYON").removeClass("effet_to"); $("#SAINTETIENNE").removeClass("effet_to"); }); $("#MULHOUSE").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#MARSEILLE").addClass("effet_to"); //$("#LYON").addClass("effet_to"); $("#MULHOUSE").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + MARSEILLE); } }); $("#MULHOUSE").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#MULHOUSE").removeClass("effet_from"); $("#MARSEILLE").removeClass("effet_to"); //$("#LYON").removeClass("effet_to"); }); //LANNION $("#LANNION").mouseover(function () { svg_showLine('LAI','LPY'); }); $("#LANNION").mouseout(function () { svg_hideLine('LAI','LPY'); }); //BREST $("#BREST").mouseover(function () { $(".datamaps-hoverover").css("display", "block"); $("#LILLE").addClass("effet_to"); $("#BREST").addClass("effet_from"); document.onmousemove = suitsouris; function suitsouris(evenement) { if (navigator.appName == "Microsoft Internet Explorer") { var x = event.x + document.body.scrollLeft; var y = event.y + document.body.scrollTop; } else { var x = evenement.pageX; var y = evenement.pageY; } $(".datamaps-hoverover").css("left", (x + 15)); $(".datamaps-hoverover").css("top", (y)); $(".hoverinfo").html(vers + " " + LILLE); } }); $("#BREST").mouseout(function () { $(".datamaps-hoverover").css("display", "none"); $("#BREST").removeClass("effet_from"); $("#LILLE").removeClass("effet_to"); }); //QUIMPER $("#QUIMPER").mouseover(function () { svg_showLine('ORY','UIP'); $("#PARIS").mouseover(); }); $("#QUIMPER").mouseout(function () { svg_hideLine('ORY','UIP'); $("#PARIS").mouseout(); }); //LORIENT $("#LORIENT").mouseover(function () { svg_showLine('ORY','LRT'); $("#PARIS").mouseover(); }); $("#LORIENT").mouseout(function () { svg_hideLine('ORY','LRT'); $("#PARIS").mouseout(); }); //NANTES $("#NANTES").mouseover(function () { svg_showLine('ORY','NTE'); //$("#LIMOGES").addClass("effet_to"); //$("#CLERMONT_FERRAND").addClass("effet_to"); $("#PUYENVELAY").addClass("effet_to"); $("#PARIS, #LYON").mouseover(); }); $("#NANTES").mouseout(function () { svg_hideLine('ORY','NTE'); //$("#LIMOGES").removeClass("effet_to"); //$("#CLERMONT_FERRAND").removeClass("effet_to"); $("#PUYENVELAY").removeClass("effet_to"); $("#PARIS, #LYON").mouseout(); }); //BORDEAUX $("#BORDEAUX").mouseover(function () { svg_showLine('BOD','LPY,CFE'); $("#PARIS, #LYON").mouseover(); }); $("#BORDEAUX").mouseout(function () { svg_hideLine('BOD','LPY,CFE'); $("#PARIS, #LYON").mouseout(); }); //BIARRITZ $("#BIARRITZ").mouseover(function () { svg_showLine('BIQ','LPY'); $("#PARIS").mouseover(); }); $("#BIARRITZ").mouseout(function () { svg_hideLine('BIQ','LPY'); $("#PARIS").mouseout(); }); //LOURDES $("#LOURDES").mouseover(function () { svg_showLine('ORY','LDE'); $("#PARIS").mouseover(); }); $("#LOURDES").mouseout(function () { svg_hideLine('ORY','LDE'); $("#PARIS").mouseout(); }); //AGEN $("#AGEN").mouseover(function () { svg_showLine('AGF','LPY'); $("#PARIS").mouseover(); }); $("#AGEN").mouseout(function () { svg_hideLine('AGF','LPY'); $("#PARIS").mouseout(); }); //CASTRES $("#CASTRES").mouseover(function () { svg_showLine('ORY','DCM'); $("#PARIS").mouseover(); }); $("#CASTRES").mouseout(function () { svg_hideLine('ORY','DCM'); $("#PARIS").mouseout(); }); //MONTPILLIER $("#MONTPILLIER").mouseover(function () { svg_showLine('ORY','MPL'); $("#PARIS").mouseover(); }); $("#MONTPILLIER").mouseout(function () { svg_hideLine('ORY','MPL'); $("#PARIS").mouseout(); }); //AURILLAC $("#AURILLAC").mouseover(function () { svg_showLine('AUR','LPY'); $("#PARIS").mouseover(); }); $("#AURILLAC").mouseout(function () { svg_hideLine('AUR','LPY'); $("#PARIS").mouseout(); }); //BRIVES $("#BRIVES").mouseover(function () { svg_showLine('ORY','BVE'); $("#PARIS").mouseover(); }); $("#BRIVES").mouseout(function () { svg_hideLine('ORY','BVE'); $("#PARIS").mouseout(); }); //CLERMONT $("#CLERMONT").mouseover(function () { svg_showLine('ORY','CFE'); $("#PARIS").mouseover(); }); $("#CLERMONT").mouseout(function () { svg_hideLine('ORY','CFE'); $("#PARIS").mouseout(); }); //MULHOUSE $("#MULHOUSE").mouseover(function () { //svg_showLine('ORY','MLH'); //$("#PARIS").mouseover(); }); $("#MULHOUSE").mouseout(function () { //svg_hideLine('ORY','MLH'); //$("#PARIS").mouseout(); }); //TOULON $("#TOULON").mouseover(function () { svg_showLine('ORY','TLN'); $("#PARIS").mouseover(); }); $("#TOULON").mouseout(function () { svg_hideLine('ORY','TLN'); $("#PARIS").mouseout(); }); //PERPIGNAN $("#PERPIGNAN").mouseover(function () { svg_showLine('ORY','PGF'); $("#PARIS").mouseover(); }); $("#PERPIGNAN").mouseout(function () { svg_hideLine('ORY','PGF'); $("#PARIS").mouseout(); }); //BOLOGNE $("#BOLOGNE").mouseover(function () { svg_showLine('BLQ','LYS'); $("#LYON").mouseover(); }); $("#BOLOGNE").mouseout(function () { svg_hideLine('LYS','BLQ'); $("#LYON").mouseout(); }); $("span.MAP_FROM, a.MAP_FROM, circle.MAP_FROM").click(function () { var dep_iata = $(this).attr("data-iata"); var dep_name = $(this).text(); if (!dep_name.length) dep_name = $(this).attr('data-name'); //pour les points en SVG var lang = $("#langue").val(); $('.bloc_vers1').css("display", "block"); $('.bloc_vers2').css("display", "block"); $('.bloc_vers3').css("display", "block"); $('.row_bloc_vers1').css("height", "60px"); $('.row_bloc_vers2').css("height", "60px"); $('.row_bloc_vers3').css("height", "60px"); $.ajax({ type: 'POST', url: 'ajax/destination_blocks.cfm?idPage=' + _idPage, data: "dep_iata=" + dep_iata + "&dep_name=" + encodeURI(dep_name) + "&lang=" + lang, beforeSend: function () {}, success: function (data) { $('#_DETAIL').html(data); } }); $('#default_bloc').css("display", "none"); $('#_DETAIL').css("display", "none"); $('#loader_destination').css("display", "block"); setTimeout(function () { $('#loader_destination').css("display", "none") }, 1000); setTimeout(function () { $('#_DETAIL').css("display", "block") }, 1000); }); var opts = { lines: 17, length: 20, width: 5, radius: 20, scale: 1, corners: 1, color: '#E7BC6A', opacity: 0.25, rotate: 0, direction: 1, speed: 0.7, trail: 97, fps: 20, zIndex: 101, className: 'spinner', top: '50%', left: '50%', shadow: false, hwaccel: false, position: 'absolute' } var target = document.getElementById('loader_destination') var spinner = new Spinner(opts).spin(target); /*T15805 : utilisation des SVG*/ function svg_showLine(idFrom, listeTo, color){ //looper sur la liste des destinations var arrayTo = listeTo.split(','); for (i = 0; i < arrayTo.length; i++) { $('#'+idFrom+'_'+arrayTo[i]).attr('stroke',color); $( "circle[data-iata='"+arrayTo[i]+"']" ).attr("fill","black"); $( "circle[data-iata='"+arrayTo[i]+"']" ).attr("stroke","black"); $('#TXT2_'+arrayTo[i]).attr("fill","black").show(); //$('#TXT2_'+arrayTo[i]).show(); $('#TXT2_'+arrayTo[i]).attr("style","font-weight: bold; display: block !important; cursor: pointer;fill: black"); } //$('#TXT2_'+idFrom).attr("fill","black").show(); $('#TXT2_'+idFrom).attr("style","font-weight: bold; display: block !important; cursor: pointer;fill: black"); $( "circle[data-iata='"+idFrom+"']" ).attr("fill","black"); $( "circle[data-iata='"+idFrom+"']" ).attr("stroke","black"); $( "circle[data-iata='"+idFrom+"']" ).attr("r","4"); if (color.toUpperCase() =='RED') $("#legende_red_line").show(); if (color.toUpperCase() =='BLUE') $("#legende_blue_line").show(); } function svg_hideLine(idFrom, listeTo){ //looper sur la liste des destinations var arrayTo = listeTo.split(','); for (i = 0; i < arrayTo.length; i++) { $('#'+idFrom+'_'+arrayTo[i]).removeAttr('stroke'); $( "circle[data-iata='"+arrayTo[i]+"']" ).attr("fill","grey"); $( "circle[data-iata='"+arrayTo[i]+"']" ).attr("stroke","grey"); //$('#TXT2_'+arrayTo[i]).attr("fill","grey"); $('#TXT2_'+arrayTo[i]).attr("style","font-weight: bold; display: block !important; cursor: pointer;fill: grey"); $('#TXT_'+arrayTo[i]).hide(); } //$('#TXT2_'+idFrom).attr("fill","grey"); $('#TXT2_'+idFrom).attr("style","font-weight: bold; display: block !important; cursor: pointer;fill: grey"); $('#TXT_'+idFrom).hide(); $( "circle[data-iata='"+idFrom+"']" ).attr("fill","grey"); $( "circle[data-iata='"+idFrom+"']" ).attr("stroke","grey"); $( "circle[data-iata='"+idFrom+"']" ).attr("r","3"); $("#legende_red_line").hide(); $("#legende_blue_line").hide(); } //action sur menu départ de (annule et remplace la fonction $("#ville_depart").change()) $("ul.menuDestination1 > li a").click(function(e) { e.preventDefault(); $("#ville_depart").val( $(this).attr('data-iata') ); $("#selected_departde").text($(this).text().split('>')[1]); var depart = $(this).attr('data-iata'); var label = $("#div_ville_arrivee").attr('data-title'); $.ajax({ url: 'ajax/get_destinations.cfm', type: 'POST', data: 'ville_depart=' + depart + '&label=' + encodeURIComponent(label)+ '&lg2='+lg, dataType: 'html', beforeSend: function (jqXHR) { $("#ville_arrivee").html(''); }, success: function (code_html, statut) { $("#ville_arrivee").html(code_html); }, error: function (resultat, statut, erreur) {} }); $("#ville_arrivee").change(); }); //Toggle show/hide for Hop destinations $(".toggleHOP").click(function(e) { e.preventDefault(); //$("circle.HOP, line.HOP").toggle(); $(".carte_twin, .carte_twin_empty").toggle(); }); $('.selectpicker').selectpicker({ width:'200px', size:false }); $('.selectpicker').on('changed.bs.select', function (e) { //console.log( $(this).find("option:selected").text() ); //$("#ville_arrivee").change(); }); //**********home_carte_moteur.cfm*************************/// $("#ville_depart2").change(function(e) { var depart = $(this).val(); var label = $("#div_ville_arrivee2").attr('data-title'); $.ajax({ url: 'ajax/get_destinations2.cfm', type: 'POST', data: 'ville_depart2=' + depart + '&label=' + encodeURIComponent(label)+ '&lg2='+lg, dataType: 'html', beforeSend: function (jqXHR) { $("#ville_arrivee2").html(''); }, success: function (code_html, statut) { $("#ville_arrivee2").html(code_html); }, error: function (resultat, statut, erreur) {} }); $("#ville_arrivee2").change(); }); $("ul.menuDestination2 > li a").click(function(e) { $("#ville_depart2").val( $(this).attr('data-iata') ); $("#selected_departde2").text($(this).text().split('>')[1]); var depart = $(this).attr('data-iata'); var label = $("#div_ville_arrivee2").attr('data-title'); $.ajax({ url: 'ajax/get_destinations2.cfm', type: 'POST', data: 'ville_depart=' + depart + '&label=' + encodeURIComponent(label)+ '&lg2='+lg, dataType: 'html', beforeSend: function (jqXHR) { $("#ville_arrivee2").html(''); }, success: function (code_html, statut) { $("#ville_arrivee2").html(code_html); }, error: function (resultat, statut, erreur) {} }); $("#ville_arrivee2").change(); }); $(window).load(function() { $('.flexslider').flexslider({ animation: "slide" }); }); function enableDatePicker(){ //T25538 var arrivee = $("#ville_arrivee option:selected").val(); if(arrivee.length) $("#date_depart, #date_retour").removeAttr("disabled"); } /*$('#ville_arrivee2').selectpicker({ width:'97%', size:false, title: '', showSubtext: false });*/ //**********home_carte_moteur.cfm*************************/// $(window).load(function() { if(dep.length) $("#DEP-"+dep.toUpperCase()).click(); if(des.length) setTimeout(function(){ $("#DES-"+des.toUpperCase()).click(); }, 1000); }); $("#btnReserver").click(function(e) { e.preventDefault(); if ( ($("#adultes").val() == 0) && ($("#seniors").val() == 0) && ($("#children").val() > 0) ) { $( "#dialog-message" ).dialog({ modal: true, buttons: { Continuer: function() { $( this ).dialog( "close" ); //$("#frmMoteur").submit(); } }, width: 375, open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); } }); } else { $("#frmMoteur").submit(); } }); $( "#nos_desti" ).click(function() { $( ".nos_desti" ).show('normal'); $( ".espace_pro" ).hide('normal'); $( ".aviation" ).hide('normal'); $( ".prep_vot_voy" ).hide('normal'); $( ".offres_spec" ).hide('normal'); $( ".jour_j" ).hide('normal'); $( ".espace_presse" ).hide('normal'); }) $( "#prep_vot_voy" ).click(function() { $( ".prep_vot_voy" ).show('normal'); $( ".nos_desti" ).hide('normal'); $( ".espace_pro" ).hide('normal'); $( ".aviation" ).hide('normal'); $( ".offres_spec" ).hide('normal'); $( ".jour_j" ).hide('normal'); $( ".espace_presse" ).hide('normal'); }) $( "#espace_pro" ).click(function() { $( ".espace_pro" ).show('normal'); $( ".prep_vot_voy" ).hide('normal'); $( ".nos_desti" ).hide('normal'); $( ".aviation" ).hide('normal'); $( ".offres_spec" ).hide('normal'); $( ".jour_j" ).hide('normal'); $( ".espace_presse" ).hide('normal'); }) $( "#aviation" ).click(function() { $( ".aviation" ).show('normal'); $( ".prep_vot_voy" ).hide('normal'); $( ".nos_desti" ).hide('normal'); $( ".espace_pro" ).hide('normal'); $( ".offres_spec" ).hide('normal'); $( ".jour_j" ).hide('normal'); $( ".espace_presse" ).hide('normal'); }) $( "#espace_presse" ).click(function() { $( ".espace_presse" ).show('normal'); $( ".aviation" ).hide('normal'); $( ".prep_vot_voy" ).hide('normal'); $( ".nos_desti" ).hide('normal'); $( ".espace_pro" ).hide('normal'); $( ".offres_spec" ).hide('normal'); $( ".jour_j" ).hide('normal'); }) $( "#jour_j" ).click(function() { $( ".jour_j" ).show('normal'); $( ".offres_spec" ).hide('normal'); $( ".aviation" ).hide('normal'); $( ".prep_vot_voy" ).hide('normal'); $( ".nos_desti" ).hide('normal'); $( ".espace_pro" ).hide('normal'); $( ".espace_presse" ).hide('normal'); }) $( "#offres_spec" ).click(function() { $( ".jour_j" ).hide('normal'); $( ".offres_spec" ).show('normal'); $( ".aviation" ).hide('normal'); $( ".prep_vot_voy" ).hide('normal'); $( ".nos_desti" ).hide('normal'); $( ".espace_pro" ).hide('normal'); $( ".espace_presse" ).hide('normal'); }) function changerLaLangue(lg){ $("#langue2").val(lg); $("#frmLangueChange").attr("action", '/'+lg); $("#frmLangueChange").submit(); } //select option with images var ddData=[{text:"",value:"fr",selected:true,description:"",imageSrc:"images/fr.jpg"},{text:"",value:"en",selected:false,description:"",imageSrc:"images/bri.jpg"},{text:"",value:"it",selected:false,description:"",imageSrc:"images/it.jpg"},{text:"",value:"de",selected:false,description:"",imageSrc:"images/ger.jpg"}]; var old_select_langue = 'fr'; /*$('#nrml_langue').ddslick({ data: ddData, width: 65, imagePosition: "left", selectText: "Select your language", defaultSelectedIndex:0, onSelected: function (data) { if (old_select_langue != data.selectedData.value) { old_select_langue = data.selectedData.value; changerLaLangue(data.selectedData.value);} } });*/ /*! jQuery UI - v1.11.4 - 2016-04-04 * http://jqueryui.com * Includes: core.js, widget.js, mouse.js, position.js, tooltip.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e("img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/^(input|select|textarea|button|object)$/.test(r)?!t.disabled:"a"===r?t.href||s:s)&&i(t)}function i(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}e.ui=e.ui||{},e.extend(e.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({scrollParent:function(t){var i=this.css("position"),s="absolute"===i,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter(function(){var t=e(this);return s&&"static"===t.css("position")?!1:n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&a.length?a:e(this[0].ownerDocument||document)},uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}}):function(t,i,s){return!!e.data(t,s[3])},focusable:function(i){return t(i,!isNaN(e.attr(i,"tabindex")))},tabbable:function(i){var s=e.attr(i,"tabindex"),n=isNaN(s);return(n||s>=0)&&t(i,!n)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(t,i){function s(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"padding"+this))||0,s&&(i-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(i-=parseFloat(e.css(t,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],a=i.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+i]=function(t){return void 0===t?o["inner"+i].call(this):this.each(function(){e(this).css(a,s(this,t)+"px")})},e.fn["outer"+i]=function(t,n){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){e(this).css(a,s(this,t,!0,n)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,e.camelCase(i)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.fn.extend({focus:function(t){return function(i,s){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){e(t).focus(),s&&s.call(t)},i)}):t.apply(this,arguments)}}(e.fn.focus),disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var i,s,n=e(this[0]);n.length&&n[0]!==document;){if(i=n.css("position"),("absolute"===i||"relative"===i||"fixed"===i)&&(s=parseInt(n.css("zIndex"),10),!isNaN(s)&&0!==s))return s;n=n.parent()}return 0}}),e.ui.plugin={add:function(t,i,s){var n,a=e.ui[t].prototype;for(n in s)a.plugins[n]=a.plugins[n]||[],a.plugins[n].push([i,s[n]])},call:function(e,t,i,s){var n,a=e.plugins[t];if(a&&(s||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(n=0;a.length>n;n++)e.options[a[n][0]]&&a[n][1].apply(e.element,i)}};var s=0,n=Array.prototype.slice;e.cleanData=function(t){return function(i){var s,n,a;for(a=0;null!=(n=i[a]);a++)try{s=e._data(n,"events"),s&&s.remove&&e(n).triggerHandler("remove")}catch(o){}t(i)}}(e.cleanData),e.widget=function(t,i,s){var n,a,o,r,h={},l=t.split(".")[0];return t=t.split(".")[1],n=l+"-"+t,s||(s=i,i=e.Widget),e.expr[":"][n.toLowerCase()]=function(t){return!!e.data(t,n)},e[l]=e[l]||{},a=e[l][t],o=e[l][t]=function(e,t){return this._createWidget?(arguments.length&&this._createWidget(e,t),void 0):new o(e,t)},e.extend(o,a,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),r=new i,r.options=e.widget.extend({},r.options),e.each(s,function(t,s){return e.isFunction(s)?(h[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},n=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=n,t=s.apply(this,arguments),this._super=i,this._superApply=a,t}}(),void 0):(h[t]=s,void 0)}),o.prototype=e.widget.extend(r,{widgetEventPrefix:a?r.widgetEventPrefix||t:t},h,{constructor:o,namespace:l,widgetName:t,widgetFullName:n}),a?(e.each(a._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete a._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,s,a=n.call(arguments,1),o=0,r=a.length;r>o;o++)for(i in a[o])s=a[o][i],a[o].hasOwnProperty(i)&&void 0!==s&&(t[i]=e.isPlainObject(s)?e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(a){var o="string"==typeof a,r=n.call(arguments,1),h=this;return o?this.each(function(){var i,n=e.data(this,s);return"instance"===a?(h=n,!1):n?e.isFunction(n[a])&&"_"!==a.charAt(0)?(i=n[a].apply(n,r),i!==n&&void 0!==i?(h=i&&i.jquery?h.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; "+"attempted to call method '"+a+"'")}):(r.length&&(a=e.widget.extend.apply(null,[a].concat(r))),this.each(function(){var t=e.data(this,s);t?(t.option(a||{}),t._init&&t._init()):e.data(this,s,new i(a,this))})),h}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,a,o=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(o={},s=t.split("."),t=s.shift(),s.length){for(n=o[t]=e.widget.extend({},this.options[t]),a=0;s.length-1>a;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];o[t]=i}return this._setOptions(o),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,s){var n,a=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,function(s,o){function r(){return t||a.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof o?a[o]:o).apply(a,arguments):void 0}"string"!=typeof o&&(r.guid=o.guid=o.guid||r.guid||e.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+a.eventNamespace,u=h[2];u?n.delegate(u,l,r):i.bind(l,r)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(i).undelegate(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)}var s=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,s){var n,a,o=this.options[t];if(s=s||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!(e.isFunction(o)&&o.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){"string"==typeof n&&(n={effect:n});var o,r=n?n===!0||"number"==typeof n?i:n.effect||i:t;n=n||{},"number"==typeof n&&(n={duration:n}),o=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),o&&e.effects&&e.effects.effect[r]?s[t](n):r!==t&&s[r]?s[r](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}}),e.widget;var a=!1;e(document).mouseup(function(){a=!1}),e.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(i){return!0===e.data(i.target,t.widgetName+".preventClickEvent")?(e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!a){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,s=1===t.which,n="string"==typeof this.options.cancel&&t.target.nodeName?e(t.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),a=!0,!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button)return this._mouseUp(t);if(!t.which)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),a=!1,!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function t(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function s(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,i,s=e("
"),a=s.children()[0];return e("body").append(s),t=a.offsetWidth,s.css("overflow","scroll"),i=a.offsetWidth,t===i&&(i=s[0].clientWidth),s.remove(),n=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),n="scroll"===i||"auto"===i&&t.widthi?"left":t>0?"right":"center",vertical:0>a?"top":s>0?"bottom":"middle"};c>m&&m>r(t+i)&&(h.horizontal="center"),d>g&&g>r(s+a)&&(h.vertical="middle"),h.important=o(r(t),r(i))>o(r(s),r(a))?"horizontal":"vertical",n.using.call(this,e,h)}),u.offset(e.extend(M,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=e.left-t.collisionPosition.marginLeft,h=n-r,l=r+t.collisionWidth-a-n;t.collisionWidth>a?h>0&&0>=l?(i=e.left+h+t.collisionWidth-a-n,e.left+=h-i):e.left=l>0&&0>=h?n:h>l?n+a-t.collisionWidth:n:h>0?e.left+=h:l>0?e.left-=l:e.left=o(e.left-r,e.left)},top:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollTop:s.offset.top,a=t.within.height,r=e.top-t.collisionPosition.marginTop,h=n-r,l=r+t.collisionHeight-a-n;t.collisionHeight>a?h>0&&0>=l?(i=e.top+h+t.collisionHeight-a-n,e.top+=h-i):e.top=l>0&&0>=h?n:h>l?n+a-t.collisionHeight:n:h>0?e.top+=h:l>0?e.top-=l:e.top=o(e.top-r,e.top)}},flip:{left:function(e,t){var i,s,n=t.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,c=l+t.collisionWidth-o-h,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+d+p+f+t.collisionWidth-o-a,(0>i||r(u)>i)&&(e.left+=d+p+f)):c>0&&(s=e.left-t.collisionPosition.marginLeft+d+p+f-h,(s>0||c>r(s))&&(e.left+=d+p+f))},top:function(e,t){var i,s,n=t.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,c=l+t.collisionHeight-o-h,d="top"===t.my[1],p=d?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-o-a,(0>s||r(u)>s)&&(e.top+=p+f+m)):c>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,(i>0||c>r(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,n,o,r=document.getElementsByTagName("body")[0],h=document.createElement("div");t=document.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in s)t.style[o]=s[o];t.appendChild(h),i=r||document.documentElement,i.insertBefore(t,i.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",n=e(h).offset().left,a=n>10&&11>n,t.innerHTML="",i.removeChild(t)}()}(),e.ui.position,e.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var t=e(this).attr("title")||"";return e("
").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var s=(t.attr("aria-describedby")||"").split(/\s+/);s.push(i),t.data("ui-tooltip-id",i).attr("aria-describedby",e.trim(s.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),s=(t.attr("aria-describedby")||"").split(/\s+/),n=e.inArray(i,s);-1!==n&&s.splice(n,1),t.removeData("ui-tooltip-id"),s=e.trim(s.join(" ")),s?t.attr("aria-describedby",s):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=e("
").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,i){var s=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&e.each(this.tooltips,function(e,t){s._updateContent(t.element)}),void 0)},_disable:function(){var t=this;e.each(this.tooltips,function(i,s){var n=e.Event("blur");n.target=n.currentTarget=s.element[0],t.close(n,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var i=this,s=e(t?t.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&s.parents().each(function(){var t,s=e(this);s.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,i.close(t,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerCloseHandlers(t,s),this._updateContent(s,t))},_updateContent:function(e,t){var i,s=this.options.content,n=this,a=t?t.type:null;return"string"==typeof s?this._open(t,e,s):(i=s.call(e[0],function(i){n._delay(function(){e.data("ui-tooltip-open")&&(t&&(t.type=a),this._open(t,e,i))})}),i&&this._open(t,e,i),void 0)},_open:function(t,i,s){function n(e){l.of=e,o.is(":hidden")||o.position(l)}var a,o,r,h,l=e.extend({},this.options.position);if(s){if(a=this._find(i))return a.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),o=a.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),s.clone?(h=s.clone(),h.removeAttr("id").find("[id]").removeAttr("id")):h=s,e("
").html(h).appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:n}),n(t)):o.position(e.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){o.is(":visible")&&(n(l.of),clearInterval(r))},e.fx.interval)),this._trigger("open",t,{tooltip:o})}},_registerCloseHandlers:function(t,i){var s={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var s=e.Event(t);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(s.mouseleave="close"),t&&"focusin"!==t.type||(s.focusout="close"),this._on(!0,i,s)},close:function(t){var i,s=this,n=e(t?t.currentTarget:this.element),a=this._find(n);return a?(i=a.tooltip,a.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),a.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(e(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,i){e(i.element).attr("title",i.title),delete s.parents[t]}),a.closing=!0,this._trigger("close",t,{tooltip:i}),a.hiding||(a.closing=!1)),void 0):(n.removeData("ui-tooltip-open"),void 0)},_tooltip:function(t){var i=e("
").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),s=i.uniqueId().attr("id");return e("
").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,s){var n=e.Event("blur"),a=s.element;n.target=n.currentTarget=a[0],t.close(n,!0),e("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}});var o="ui-effects-",r=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var s=c[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(e,a){var o,r=a.re.exec(i),h=r&&a.parse(r),l=a.space||"rgba";return h?(o=s[l](h),s[u[l].cache]=o[u[l].cache],n=s._rgba=o._rgba,!1):t}),n.length?("0,0,0,0"===n.join()&&e.extend(n,a.transparent),s):a[i]}function n(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var a,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,s,n){return new e.Color.fn.parse(t,i,s,n)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},p=e("

")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(n,o,r,h){if(n===t)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=e(n).css(o),o=t);var c=this,d=e.type(n),p=this._rgba=[];return o!==t&&(n=[n,o,r,h],d="array"),"string"===d?this.parse(s(n)||a._default):"array"===d?(f(u.rgba.props,function(e,t){p[t.idx]=i(n[t.idx],t)}),this):"object"===d?(n instanceof l?f(u,function(e,t){n[t.cache]&&(c[t.cache]=n[t.cache].slice())}):f(u,function(t,s){var a=s.cache;f(s.props,function(e,t){if(!c[a]&&s.to){if("alpha"===e||null==n[e])return;c[a]=s.to(c._rgba)}c[a][t.idx]=i(n[e],t,!0)}),c[a]&&0>e.inArray(null,c[a].slice(0,3))&&(c[a][3]=1,s.from&&(c._rgba=s.from(c[a])))}),this):t},is:function(e){var i=l(e),s=!0,n=this;return f(u,function(e,a){var o,r=i[a.cache];return r&&(o=n[a.cache]||a.to&&a.to(n._rgba)||[],f(a.props,function(e,i){return null!=r[i.idx]?s=r[i.idx]===o[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),n=s._space(),a=u[n],o=0===this.alpha()?l("transparent"):this,r=o[a.cache]||a.to(o._rgba),h=r.slice();return s=s[a.cache],f(a.props,function(e,n){var a=n.idx,o=r[a],l=s[a],u=c[n.type]||{};null!==l&&(null===o?h[a]=l:(u.mod&&(l-o>u.mod/2?o+=u.mod:o-l>u.mod/2&&(o-=u.mod)),h[a]=i((l-o)*t+o,n)))}),this[n](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*n[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,n=e[1]/255,a=e[2]/255,o=e[3],r=Math.max(s,n,a),h=Math.min(s,n,a),l=r-h,u=r+h,c=.5*u;return t=h===r?0:s===r?60*(n-a)/l+360:n===r?60*(a-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=c?l/u:l/(2-u),[Math.round(t)%360,i,c,null==o?1:o]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],a=e[3],o=.5>=s?s*(1+i):s+i-s*i,r=2*s-o;return[Math.round(255*n(r,o,t+1/3)),Math.round(255*n(r,o,t)),Math.round(255*n(r,o,t-1/3)),a]},f(u,function(s,n){var a=n.props,o=n.cache,h=n.to,u=n.from;l.fn[s]=function(s){if(h&&!this[o]&&(this[o]=h(this._rgba)),s===t)return this[o].slice();var n,r=e.type(s),c="array"===r||"object"===r?s:arguments,d=this[o].slice();return f(a,function(e,t){var s=c["object"===r?e:t.idx];null==s&&(s=d[t.idx]),d[t.idx]=i(s,t)}),u?(n=l(u(d)),n[o]=d,n):l(d)},f(a,function(t,i){l.fn[t]||(l.fn[t]=function(n){var a,o=e.type(n),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===o?u:("function"===o&&(n=n.call(this,u),o=e.type(n)),null==n&&i.empty?this:("string"===o&&(a=r.exec(n),a&&(n=u+parseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,n){var a,o,r="";if("transparent"!==n&&("string"!==e.type(n)||(a=s(n)))){if(n=l(a||n),!d.rgba&&1!==n._rgba[3]){for(o="backgroundColor"===i?t.parentNode:t;(""===r||"transparent"===r)&&o&&o.style;)try{r=e.css(o,"backgroundColor"),o=o.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{t.style[i]=n}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(o),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},a=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(r),function(){function t(t){var i,s,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(a[e.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(a[i]=n[i]);return a}function i(t,i){var s,a,o={};for(s in i)a=i[s],t[s]!==a&&(n[s]||(e.fx.step[s]||!isNaN(parseFloat(a)))&&(o[s]=a));return o}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(r.style(e.elem,i,e.end),e.setAttr=!0) }}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(n,a,o,r){var h=e.speed(a,o,r);return this.queue(function(){var a,o=e(this),r=o.attr("class")||"",l=h.children?o.find("*").addBack():o;l=l.map(function(){var i=e(this);return{el:i,start:t(this)}}),a=function(){e.each(s,function(e,t){n[t]&&o[t+"Class"](n[t])})},a(),l=l.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),o.attr("class",r),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.call(o[0])})})},e.fn.extend({addClass:function(t){return function(i,s,n,a){return s?e.effects.animateClass.call(this,{add:i},s,n,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,n,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,n,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,n,a,o){return"boolean"==typeof s||void 0===s?n?e.effects.animateClass.call(this,s?{add:i}:{remove:i},n,a,o):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,n,a)}}(e.fn.toggleClass),switchClass:function(t,i,s,n,a){return e.effects.animateClass.call(this,{add:i,remove:t},s,n,a)}})}(),function(){function t(t,i,s,n){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(n=s,s=i,i={}),e.isFunction(s)&&(n=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=n||i.complete,t}function i(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.11.4",save:function(e,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(o+t[i],e[0].style[t[i]])},restore:function(e,t){var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(o+t[s]),void 0===i&&(i=""),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("

").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(o){a=document.body}return t.wrap(s),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(n),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,s,n){return n=n||{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(a)&&a.call(n[0]),e.isFunction(t)&&t()}var n=e(this),a=s.complete,r=s.mode;(n.is(":hidden")?"hide"===r:"show"===r)?(n[r](),i()):o.call(n[0],s,i)}var s=t.apply(this,arguments),n=s.mode,a=s.queue,o=e.effects.effect[s.effect];return e.fx.off||!o?n?this[n](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):a===!1?this.each(i):this.queue(a||"fx",i)},show:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)||"boolean"==typeof s)return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.effect.blind=function(t,i){var s,n,a,o=e(this),r=/up|down|vertical/,h=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(o,t.mode||"hide"),c=t.direction||"up",d=r.test(c),p=d?"height":"width",f=d?"top":"left",m=h.test(c),g={},v="show"===u;o.parent().is(".ui-effects-wrapper")?e.effects.save(o.parent(),l):e.effects.save(o,l),o.show(),s=e.effects.createWrapper(o).css({overflow:"hidden"}),n=s[p](),a=parseFloat(s.css(f))||0,g[p]=v?n:0,m||(o.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[f]=v?a:n+a),v&&(s.css(p,0),m||s.css(f,a+n)),s.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===u&&o.hide(),e.effects.restore(o,l),e.effects.removeWrapper(o),i()}})},e.effects.effect.bounce=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(o,t.mode||"effect"),l="hide"===h,u="show"===h,c=t.direction||"up",d=t.distance,p=t.times||5,f=2*p+(u||l?1:0),m=t.duration/f,g=t.easing,v="up"===c||"down"===c?"top":"left",_="up"===c||"left"===c,b=o.queue(),y=b.length;for((u||l)&&r.push("opacity"),e.effects.save(o,r),o.show(),e.effects.createWrapper(o),d||(d=o["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a={opacity:1},a[v]=0,o.css("opacity",0).css(v,_?2*-d:2*d).animate(a,m,g)),l&&(d/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(_?"-=":"+=")+d,o.animate(n,m,g).animate(a,m,g),d=l?2*d:d/2;l&&(n={opacity:0},n[v]=(_?"-=":"+=")+d,o.animate(n,m,g)),o.queue(function(){l&&o.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()}),y>1&&b.splice.apply(b,[1,0].concat(b.splice(y,f+1))),o.dequeue()},e.effects.effect.clip=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(o,t.mode||"hide"),l="show"===h,u=t.direction||"vertical",c="vertical"===u,d=c?"height":"width",p=c?"top":"left",f={};e.effects.save(o,r),o.show(),s=e.effects.createWrapper(o).css({overflow:"hidden"}),n="IMG"===o[0].tagName?s:o,a=n[d](),l&&(n.css(d,0),n.css(p,a/2)),f[d]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){l||o.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()}})},e.effects.effect.drop=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","opacity","height","width"],o=e.effects.setMode(n,t.mode||"hide"),r="show"===o,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h?"pos":"neg",c={opacity:r?1:0};e.effects.save(n,a),n.show(),e.effects.createWrapper(n),s=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,r&&n.css("opacity",0).css(l,"pos"===u?-s:s),c[l]=(r?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+s,n.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===c*d&&n()}function n(){p.css({visibility:"visible"}),e(b).remove(),m||p.hide(),i()}var a,o,r,h,l,u,c=t.pieces?Math.round(Math.sqrt(t.pieces)):3,d=c,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/d),_=Math.ceil(p.outerHeight()/c),b=[];for(a=0;c>a;a++)for(h=g.top+a*_,u=a-(c-1)/2,o=0;d>o;o++)r=g.left+o*v,l=o-(d-1)/2,p.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-o*v,top:-a*_}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:_,left:r+(m?l*v:0),top:h+(m?u*_:0),opacity:m?0:1}).animate({left:r+(m?0:l*v),top:h+(m?0:u*_),opacity:m?1:0},t.duration||500,t.easing,s)},e.effects.effect.fade=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},e.effects.effect.fold=function(t,i){var s,n,a=e(this),o=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(a,t.mode||"hide"),h="show"===r,l="hide"===r,u=t.size||15,c=/([0-9]+)%/.exec(u),d=!!t.horizFirst,p=h!==d,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(a,o),a.show(),s=e.effects.createWrapper(a).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],c&&(u=parseInt(c[1],10)/100*n[l?0:1]),h&&s.css(d?{height:0,width:u}:{height:u,width:0}),g[f[0]]=h?n[0]:u,v[f[1]]=h?n[1]:0,s.animate(g,m,t.easing).animate(v,m,t.easing,function(){l&&a.hide(),e.effects.restore(a,o),e.effects.removeWrapper(a),i()})},e.effects.effect.highlight=function(t,i){var s=e(this),n=["backgroundImage","backgroundColor","opacity"],a=e.effects.setMode(s,t.mode||"show"),o={backgroundColor:s.css("backgroundColor")};"hide"===a&&(o.opacity=0),e.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&s.hide(),e.effects.restore(s,n),i()}})},e.effects.effect.size=function(t,i){var s,n,a,o=e(this),r=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],u=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(o,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=o.css("position"),_=f?r:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&o.show(),s={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},"toggle"===t.mode&&"show"===p?(o.from=t.to||b,o.to=t.from||s):(o.from=t.from||("show"===p?b:s),o.to=t.to||("hide"===p?b:s)),a={from:{y:o.from.height/s.height,x:o.from.width/s.width},to:{y:o.to.height/s.height,x:o.to.width/s.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(_=_.concat(c),o.from=e.effects.setTransition(o,c,a.from.y,o.from),o.to=e.effects.setTransition(o,c,a.to.y,o.to)),a.from.x!==a.to.x&&(_=_.concat(d),o.from=e.effects.setTransition(o,d,a.from.x,o.from),o.to=e.effects.setTransition(o,d,a.to.x,o.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(_=_.concat(u).concat(l),o.from=e.effects.setTransition(o,u,a.from.y,o.from),o.to=e.effects.setTransition(o,u,a.to.y,o.to)),e.effects.save(o,_),o.show(),e.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),g&&(n=e.effects.getBaseline(g,s),o.from.top=(s.outerHeight-o.outerHeight())*n.y,o.from.left=(s.outerWidth-o.outerWidth())*n.x,o.to.top=(s.outerHeight-o.to.outerHeight)*n.y,o.to.left=(s.outerWidth-o.to.outerWidth)*n.x),o.css(o.from),("content"===m||"both"===m)&&(c=c.concat(["marginTop","marginBottom"]).concat(u),d=d.concat(["marginLeft","marginRight"]),l=r.concat(c).concat(d),o.find("*[width]").each(function(){var i=e(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,c,a.from.y,i.from),i.to=e.effects.setTransition(i,c,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,d,a.from.x,i.from),i.to=e.effects.setTransition(i,d,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,l)})})),o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===o.to.opacity&&o.css("opacity",o.from.opacity),"hide"===p&&o.hide(),e.effects.restore(o,_),f||("static"===v?o.css({position:"relative",top:o.to.top,left:o.to.left}):e.each(["top","left"],function(e,t){o.css(t,function(t,i){var s=parseInt(i,10),n=e?o.to.left:o.to.top;return"auto"===i?n+"px":s+n+"px"})})),e.effects.removeWrapper(o),i()}})},e.effects.effect.scale=function(t,i){var s=e(this),n=e.extend(!0,{},t),a=e.effects.setMode(s,t.mode||"effect"),o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===a?0:100),r=t.direction||"both",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},u={y:"horizontal"!==r?o/100:1,x:"vertical"!==r?o/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==a&&(n.origin=h||["middle","center"],n.restore=!0),n.from=t.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*u.y,width:l.width*u.x,outerHeight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},n.fade&&("show"===a&&(n.from.opacity=0,n.to.opacity=1),"hide"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},e.effects.effect.puff=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"hide"),a="hide"===n,o=parseInt(t.percent,10)||150,r=o/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?o:100,from:a?h:{height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r}}),s.effect(t)},e.effects.effect.pulsate=function(t,i){var s,n=e(this),a=e.effects.setMode(n,t.mode||"show"),o="show"===a,r="hide"===a,h=o||"hide"===a,l=2*(t.times||5)+(h?1:0),u=t.duration/l,c=0,d=n.queue(),p=d.length;for((o||!n.is(":visible"))&&(n.css("opacity",0).show(),c=1),s=1;l>s;s++)n.animate({opacity:c},u,t.easing),c=1-c;n.animate({opacity:c},u,t.easing),n.queue(function(){r&&n.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,l+1))),n.dequeue()},e.effects.effect.shake=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","height","width"],o=e.effects.setMode(n,t.mode||"effect"),r=t.direction||"left",h=t.distance||20,l=t.times||3,u=2*l+1,c=Math.round(t.duration/u),d="up"===r||"down"===r?"top":"left",p="up"===r||"left"===r,f={},m={},g={},v=n.queue(),_=v.length;for(e.effects.save(n,a),n.show(),e.effects.createWrapper(n),f[d]=(p?"-=":"+=")+h,m[d]=(p?"+=":"-=")+2*h,g[d]=(p?"-=":"+=")+2*h,n.animate(f,c,t.easing),s=1;l>s;s++)n.animate(m,c,t.easing).animate(g,c,t.easing);n.animate(m,c,t.easing).animate(f,c/2,t.easing).queue(function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}),_>1&&v.splice.apply(v,[1,0].concat(v.splice(_,u+1))),n.dequeue()},e.effects.effect.slide=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","width","height"],o=e.effects.setMode(n,t.mode||"show"),r="show"===o,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h,c={};e.effects.save(n,a),n.show(),s=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(n).css({overflow:"hidden"}),r&&n.css(l,u?isNaN(s)?"-"+s:-s:s),c[l]=(r?u?"+=":"-=":u?"-=":"+=")+s,n.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.transfer=function(t,i){var s=e(this),n=e(t.to),a="fixed"===n.css("position"),o=e("body"),r=a?o.scrollTop():0,h=a?o.scrollLeft():0,l=n.offset(),u={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},c=s.offset(),d=e("
").appendTo(document.body).addClass(t.className).css({top:c.top-r,left:c.left-h,height:s.innerHeight(),width:s.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){d.remove(),i()})}}); $(document).ready(function(){$("a.lg").click(function(e){e.preventDefault();changerLaLangue($(this).attr('href'));});$("#closePassager").click(function(e){$('.passagers.in').collapse('hide');$("#abonne").prop("disabled",false);$("#corporate").prop("disabled",false);});$("div.btn_reserver, div.btn_reserver_offre").click(function(e){var data=$(this).attr('data-engine');var from=data.split(',')[0];var to=data.split(',')[1];var rountrip=data.split(',')[2];function setArrival(){$("#ville_arrivee option[value='"+to+"']").prop("selected",true);} $("#ville_depart option[value='"+from+"']").prop("selected",true);$("#ville_depart").change();setTimeout(setArrival,1000);if(rountrip==1) $("input[name='round_trip'][value='R']").prop("checked",true);else $("input[name='round_trip'][value='O']").prop("checked",true);if($("#header").hasClass('splited')){var offset_top=0;}else var offset_top=50;$('html, body').stop().animate({scrollTop:$("#scrollto-moteur").offset().top-offset_top},1000);});$(document).tooltip();try{$("img.lazy").lazyload();}catch(err) {};$("#frm_newsletter").validate({submitHandler:function(form){var data=$("#frm_newsletter").serializeArray();$.ajax({url:'ajax/newsletter.cfm',type:'POST',data:data,dataType:'html',success:function(code_html,statut){var etat=$.trim(code_html.split(',')[0]);var message=$.trim(code_html.split(',')[1]);$("#msg_newsletter").html(message);},error:function(resultat,statut,erreur){$("#msg_newsletter").html(erreur);}});},invalidHandler:function(event,validator){},rules:{nom:{required:true},email:{required:true,email:true}},messages:{nom:"",email:""}});});