function setNewsLetterLightBox(a){a=$.extend(a,{iframe:true,href:"#newsletterLB",width:730,height:525},{});$("#link-newsletterLB").colorbox(a)}function setSendFriendLightBox(a){a=$.extend(a,{href:"#sendFriendLB",width:583,height:390},{});$(".link-sendFriendLB").colorbox(a)}function setCaveLightBox(a){$(".link-caveFB").each(function(){var b="cave-lightbox-"+$(this).attr("rel");a=$.extend(a,{href:"#"+b,width:740,height:740},{});$(this).colorbox(a)})}function setImageLightBox(){if($.browser.msie){var b=0;var a=$.browser.version.split(".")[0];switch(a){case"8":b=616;break;default:b=654}defaultOption={opacity:0.6,scrolling:false,iframe:true,transition:"none",overlayClose:false,width:974,height:b}}else{defaultOption={opacity:0.6,scrolling:false,iframe:true,overlayClose:false,width:974,height:594}}}function setTypeDoneLightBox(a){defaultOption={href:a,open:true,inline:true,transition:"none",opacity:0.6,speed:300,scrolling:false,overlayClose:false,onOpen:function(){$("#cboxLoadingOverlay").remove();$("#cboxTitle").remove();$("#cboxCurrent").remove()},onComplete:function(){$("#cboxClose").hide()}};$.fn.colorbox(defaultOption)}function setCBLightBox(a){a=$.extend(a,{href:"#cbLB"},{});$("#link-cbLB").colorbox(a)}function setCloseLightBox(){$(".closed-button").click(function(){$.fn.colorbox.close();$(this).css({backgroundPosition:"left top"});if($(this).attr("id")=="button-cancel-plan-croisiere"){$(this).css({color:"#E56B10"})}if($(this).attr("id")=="button-cancel-plan-acces"){$(this).removeClass("button-cancel-plan-acces-hover")}return false})}$(document).ready(function(){var a={rel:"nofollow",inline:true,transition:"fade",opacity:0.6,speed:300,scrolling:false,overlayClose:false,onOpen:function(){$("#cboxLoadingOverlay").remove();$("#cboxTitle").remove();$("#cboxCurrent").remove()},onComplete:function(){$("#cboxClose").hide()}};setNewsLetterLightBox(a);setSendFriendLightBox(a);setCaveLightBox(a);setImageLightBox(a);setCBLightBox(a);setCloseLightBox()});
