jQuery(document).ready(function($){ $(window).load(function(){ $('.slider-shortcode').each(function(){ var $this = $(this), autoslideOn = $this.attr("data-autoslide_on") || 0, autoslideInterval = $this.attr("data-autoslide") || 7000; if(autoslideOn == "0") { autoslideOn = false; } else if (autoslideOn == "1") { autoslideOn = true; } $(this).fitVids().flexslider({ animation: "fade", smoothHeight: true, slideshow : autoslideOn, slideshowSpeed : autoslideInterval, start: function(slider){ $('iframe').attr('id', 'player_1'); $('.flexslider .html-caption', $_currentPage).css({ 'visibility':'visible' }) var $_currentPage = $('.flex-active-slide'); } }); $('.flex-direction-nav').hide(); $this.hover(function(){ $('.flex-direction-nav', this).stop().fadeTo(300, 1); }, function () { $('.flex-direction-nav', this).stop().fadeTo(300, 0); }); hoverArrows(); }); }); }); jQuery(document).ready(function($) { $(".toggle").find(' a.question').on('click', function (event) { event.preventDefault(); $(this).toggleClass("act"); $(this).next("div.answer").slideToggle("fast"); }); }); jQuery().ready(function(){ // simple accordion jQuery('.list1a').accordion(); jQuery('.list1b').accordion({ header: 'a.accheader', autoheight: false }); }); /*Tabs*/ jQuery(function($) { $(".tab").organicTabs({ "speed": 200 }); }); (function($){ /*Tooltip*/ function simple_tooltip(target_items, name){ $(target_items).each(function(i){ $("body").append("