function main_video_multi_content(vimeoID, width, height, title, description) { var content = "
"; // disabled: webkitallowfullscreen mozallowfullscreen allowfullscreen if (title) { content += "

" + title + "

"; content += "

Watch "+ title +" on Vimeo

"; } if (description) { content += "

" + description + "

"; } return content; } function main_video_multi_fire_manual(vimeoID, width, height, title, description, previous, next) { $.fn.bpModal({ theme: "main_video_multi", size: "large", scale: false, animation: "fadeInUp", content: main_video_multi_content(vimeoID, width, height, title, description), previous: 0, next: next, previous: previous }); return false; } function main_video_multi_fire_index(videos, i) { var jVideos = $(videos); var video = jVideos.get(i); var previous; if (i > 0) { previous = 'main_video_multi_fire_index(\'' + videos + "\', " + (i-1) + ')'; } var next; if (jVideos.size() > i + 1) { next = 'main_video_multi_fire_index(\'' + videos + "\', " + (i+1) + ')'; } if (video ) { main_video_multi_fire_manual(video.getAttribute("data-vimeoID"), video.getAttribute("data-width"), video.getAttribute("data-height"), video.getAttribute("data-title"), video.getAttribute("data-description"), previous, next); } } $(function() { $('.main_video_multi .switch').click(function() { var answer = $(this.getAttribute("data-target")); var self = $(this); if (answer.css('display') == 'none') { self.children('.open').fadeOut(); self.children('.close').fadeIn(); answer.slideDown('slow'); } else { self.children('.open').fadeIn(); self.children('.close').fadeOut(); answer.slideUp('slow'); } }); });