jQuery.noConflict(); // Make jquery work without conflicts with other frameworks (like Mootools, Prototype, etc...) jQuery(function() { // setup ul.tabs to work as tabs for each div directly under div.panes jQuery("ul.tabs").tabs("div.panes > div", {effect:'fade'}); }); jQuery(function() { jQuery(".tabs2 ul").tabs(".panes2 > div", {effect: 'fade', fadeOutSpeed: 400}); }); jQuery(function() { jQuery(".tabs3").tabs("div.tab-desc", {event:'mouseover'}); }); jQuery(function() { jQuery(".accordion").tabs(".accordion div.acc-pane", {tabs: 'h2', effect: 'slide', initialIndex: null}); }); jQuery(function() { jQuery('.horizontal-accordion').easyAccordion(); }); jQuery(function() { jQuery(".slidetabs").tabs(".content-slides > div", { // enable "cross-fading" effect effect: 'fade', fadeOutSpeed: "slow", // start from the beginning after the last tab rotate: true // use the slideshow plugin. It accepts its own configuration }).slideshow(); }); /** Tooltip Shortcode **/ function ctooltip(element, tposition, teffect, toffset, tdelay) { jQuery(function() { jQuery(element).tooltip({position:tposition, effect:teffect, offset:toffset, delay:tdelay}); }); } /* jQuery(function() { jQuery("img[rel]").overlay(); jQuery("#triggers2 img[rel]").overlay({effect: 'apple'}); }); */ function coverlay(element, ttarget, tfixed, teffect, ttop, tspeed, tclickclose, overlayColor) { jQuery(function() { if(ttarget == '') ttarget = '.overlay'; var triggers = jQuery(element).overlay({ target:ttarget, fixed: tfixed, effect:teffect, top:ttop, speed:tspeed, mask: {color: overlayColor,loadSpeed: 200,opacity: 0.9}, closeOnClick: tclickclose, onBeforeLoad: function() { this.getOverlay().appendTo('body'); } }); }); } function cexpose(tcolor, tspeed) { jQuery(function() { // assign a click event to the exposed element, using normal jQuery coding jQuery(".expose").click(function() { jQuery(this).expose({color:tcolor, loadSpeed:tspeed}); }); }); } jQuery(function() { jQuery("#vertical-scrollable").scrollable({ vertical: true, mousewheel: true }); }); jQuery(function(){ jQuery('#cgallery').slides({ container: 'cgallery_container', preload: true, preloadImage: 'img/loading.gif', play: 5000, pause: 2500, hoverPause: true, animationStart: function(){ jQuery('.caption').animate({ bottom:-35 },100); }, animationComplete: function(current){ jQuery('.caption').animate({ bottom:0 },200); if (window.console && console.log) { // example return of current slide number console.log(current); }; } }); }); jQuery(document).ready(function(){ jQuery('#slides').slides(); jQuery(document).ready(function(){ jQuery('ul.sf-menu').superfish({ autoArrows:false, dropShadows:false, animation:{opacity:'show'}}); jQuery("ul.sf-menu > li").addClass('top'); }); //jQuery('.floating-box').stickyfloat({ duration: 400 }); jQuery(".toggle-container").hide(); jQuery(".toggle-trigger").click(function(e){ e.preventDefault; jQuery(this).toggleClass("active").next().slideToggle("normal"); return false; }); });