var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); jQuery.noConflict(); jQuery(document).ready(function(){ // ------------------------------------------------------------------------------------------- // START EDITING HERE // ------------------------------------------------------------------------------------------- var portfolioSorter = jQuery('.portfolio'); // selects the portfolio container portfolioSorter.kriesi_portfolio_sort({items:'.one_fourth'}); // activates portfolio sorting //on sites without portfolio activate basic image preloading if(portfolioSorter.length == 0) jQuery('.preloading').aviaSlider_preloadhelper({delay:100}); // activates the lightbox page my_lightbox("a[rel^='prettyPhoto'], a[rel^='lightbox']",true); // font replacement, remove this line if you want to use a different font defined in css, // or if the current font doesnt support some of your language specific characters cufont_replacement(); k_menu(); // controls the dropdown menu k_smoothscroll(); //smooth scrolling jQuery('.nav').k_nav_pointer({ fx: "easeOutQuint", speed: 700 }); // aviaslider variable preparation var newTransitionOrder = []; if(slideShowArray['transition_direction_final'] != undefined) { newTransitionOrder = slideShowArray['transition_direction_final'].split(", "); } if(newTransitionOrder[0] == "" || newTransitionOrder[0] == undefined) { newTransitionOrder = ['diagonaltop', 'diagonalbottom','topleft', 'bottomright', 'random']; } // aviaslider initialisation jQuery(".aviaslider").aviaSlider({ animationSpeed:slideShowArray['slider_transition'], // animation duration autorotation: slideShowArray['slide_autorotate'], // autorotation true or false? autorotationSpeed:slideShowArray['slide_duration'], // duration between autorotation switch in Seconds transition: slideShowArray['box_transition'], blockSize: {height: slideShowArray['box_height'], width:slideShowArray['box_width']}, //heigth and width of the blocks' betweenBlockDelay:slideShowArray['box_transition_delay'],// delay between each block change transitionOrder: newTransitionOrder, showText: true, // wether description text should be shown or not display: 'all', // showing up blocks: random, topleft, bottomright, diagonaltop, diagonalbottom, all switchMovement: false, // if display is set "topleft" it will switch to "br" every 2nd transition slideControlls: 'items', // which controlls should the be displayed for the user: none, items slides: '.featured', // wich element inside the container should serve as slide captionReplacement:'.feature_excerpt' }); // accordion slider jQuery(".accordion").kricordion({ slides: '.featured', // wich element inside the container should serve as slide animationSpeed:slideShowArray['slider_transition'], // animation duration autorotation: slideShowArray['slide_autorotate'], // autorotation true or false? autorotationSpeed:slideShowArray['slide_duration'], // duration between autorotation switch in Secondss event: 'mouseover', // event to focus a slide: mouseover or click imageShadow:false }); // news slider jQuery('.newsslider').kriesi_news_slider({ slides: '.featured', // wich element inside the container should serve as slide animationSpeed:slideShowArray['slider_transition'], // animation duration autorotation: slideShowArray['slide_autorotate'], // autorotation true or false? autorotationSpeed:slideShowArray['slide_duration'] // duration between autorotation switch in Seconds // duration between autorotation switch in Seconds }); // content switcher testimonials jQuery('#testimonial').kriesi_content_switch({event:'click', links:'.testimonial_author_pics a',contentContainer:'.testimonial_slides',content:'.t_slide'}); var templateUrl = jQuery("meta[name=temp_url]").attr('content'), formSendPath = templateUrl + '/send.php'; jQuery('.ajax_form').kriesi_ajax_form({sendPath:formSendPath}); // activates contact form jQuery('input:text').kriesi_empty_input({sendPath:formSendPath}); // comment form improvement /*Embedded Videos*/ var url = jQuery("meta[name=temp_url]").attr('content'); flowplayer(".videoplayer", {src: templateUrl + "/flashplayer/flowplayer-3.1.5.swf", wmode: "transparent", cachebusting: jQuery.browser.msie}, { // "videoplayer" is the class the player gets applied to clip: { autoPlay: true, autoBuffering: true }, plugins: { controls: { // display properties backgroundColor: '#333333', backgroundGradient: 'none', sliderColor: '#111111', progressColor: '#ffffff', bufferColor: '#aaaaaa', // controlbar-specific configuration fontColor: '#ffffff', timeFontColor: '#333333', autoHide: 'always' } ,controls: null //remove this line if you want to show controls } }); //activates the toggle shortcode js jQuery('#top').k_toggle(); jQuery('.tabcontainer').k_tabs(); k_pixelperfect(); // ------------------------------------------------------------------------------------------- // END EDITING HERE // ------------------------------------------------------------------------------------------- }); // ------------------------------------------------------------------------------------------- // portfolio sorting // ------------------------------------------------------------------------------------------- (function($) { $.fn.kriesi_portfolio_sort = function(options) { var defaults = { items: '.items', linkContainer:'#js_sort_items', filterItems: '.sort_by_cat', sortItems:'sort_by_val' }; var options = $.extend(defaults, options); return this.each(function() { var container = $(this), linkContainer = $(options.linkContainer), links = linkContainer.find('a'), items = container.find(options.items), itemLinks = items.find('a'), itemPadding = parseInt(items.css('paddingBottom')), itemSelection = '', columns = 0, coordinates = new Array(), animationArray = new Array(), columnPlus = new Array(); container.methods = { preloadingDone: function() { if(linkContainer.length > 0 && !($.browser.msie && $.browser.version < 7)) { //set container height, get all items and save coordinates container.css('height',container.height()); items.each(function() { var item = $(this), itemPos = item.position(); coordinates.push(itemPos); }) .each(function(i) { var item = $(this); item.css({position:'absolute', top: coordinates[i].top+'px', left: coordinates[i].left+'px'}); }); //set columns for(i = 0; i < coordinates.length; i++) { if(coordinates[i].top == coordinates[0].top) columns ++; } //show controlls linkContainer.css({opacity:0, visibility:"visible"}).animate({opacity:1}); // bind action to click events container.methods.bindfunctions(); } }, bindfunctions: function() { links.click(function() { var clickedElement = $(this), elementFilter = this.id; animationArray = new Array(); //apply active state clickedElement.parent().find('.active_sort').removeClass('active_sort'); this.className += ' active_sort'; // if we need to filter items if(clickedElement.parent().is(options.filterItems)) { var arrayIndex = 0, columnIndex = 0; columnPlus = new Array(); items.each(function(i) { var item = $(this); if(item.is('.'+elementFilter)) { animationArray.push( { element: item, animation: { opacity: 1, top: coordinates[arrayIndex].top, left: coordinates[arrayIndex].left }, height: item.height() }); if(columnTop < coordinates[arrayIndex].top) columnTop = coordinates[arrayIndex].top; columnIndex++; arrayIndex++; } else { animationArray.push( { element: item, animation: { opacity: 0 }, callback: true }); } if(items.length == i+1 || columnIndex == columns) { var columnTop = 0; for (x = 0; x < columnIndex; x++) { if(animationArray[i-x].height) { if(columnTop < animationArray[i-x].height) columnTop = animationArray[i-x].height; } else { columnIndex++; } } columnPlus.push(columnTop); columnIndex = 0; } if(i+1 == items.length) container.methods.startAnimation(); }); } else // if we need to sort items first { var sortitems = items.get(), reversed = false; if(clickedElement.is('.reversed')) reversed = true; sortitems.sort(function(a, b) { var compA = $(a).find('.'+elementFilter).text().toUpperCase(); var compB = $(b).find('.'+elementFilter).text().toUpperCase(); if (reversed) { return (compA < compB) ? 1 : (compA > compB) ? -1 : 0; } else { return (compA < compB) ? -1 : (compA > compB) ? 1 : 0; } }); items = $(sortitems); $(options.filterItems).find('.active_sort').trigger('click'); } return false; }); }, startAnimation: function() { var heightmodifier = coordinates[0].top, visibleElement = 0, currentCol = 0; for (i = 0; i < animationArray.length; i++) { if(animationArray[i].animation.top) { if(visibleElement % columns == 0 && visibleElement != 0) { heightmodifier += columnPlus[currentCol] + itemPadding; currentCol ++; } visibleElement++; } animationArray[i].animation.top = heightmodifier; animationArray[i].element.css('display','block').animate(animationArray[i].animation, 800, "easeInOutQuint", (function(i) { return function() { if(animationArray[i].callback == true) { animationArray[i].element.css({display:"none"}); } } })(i)); } var newContainerHeight = coordinates[0].top; for(z = 0; z < columnPlus.length; z++ ) { newContainerHeight += columnPlus[z] + itemPadding; } container.animate({height:newContainerHeight}, 800, "easeInOutQuint"); } } container.aviaSlider_preloadhelper({delay:100, callback:container.methods.preloadingDone}); }); } })(jQuery); // ------------------------------------------------------------------------------------------- // content switcher - used for testimonials // ------------------------------------------------------------------------------------------- (function($) { $.fn.kriesi_content_switch = function(options) { var defaults = { links: 'a', contentContainer:'ul', content: 'li', event:'mouseenter' }; var options = $.extend(defaults, options); return this.each(function() { var currentElement = $(this), linkItems = currentElement.find(options.links), contentContainer = currentElement.find(options.contentContainer), contentItems = currentElement.find(options.content), activeContainer = contentItems.filter(':visible'), inactiveContainer = contentItems.not(":visible"), testimonial_arrow = currentElement.find('.testimonial_arrow'); //prepare items: inactiveContainer.css({position:'absolute', opacity:0, display:'block', zIndex:1}); linkItems.each(function(i) { var currentLink = $(this); currentLink.bind(options.event+" click",function() { var currentLinkPos = currentLink.position(), arrowWidth = testimonial_arrow.width() / 2, currentLinkWidth = currentLink.width() / 2 testimonial_arrow.stop().animate({left:currentLinkPos.left - arrowWidth + currentLinkWidth + 4}); contentItems.stop().css({zIndex:1}).animate({opacity:0},700, function(){ $(this).css({position:'absolute'});}); contentItems.eq(i).stop().css({zIndex:4}).animate({opacity:1},400, function() { var item = $(this), itemHeight = item.height(), itemPadding = parseInt(item.css("paddingTop")) + parseInt(item.css("paddingBottom")) + 2; contentContainer.animate({height:itemHeight+itemPadding}); }); linkItems.removeClass('active_testimonial'); currentLink.addClass('active_testimonial'); return false; }); }); }); } })(jQuery); // ------------------------------------------------------------------------------------------- // input field improvements // ------------------------------------------------------------------------------------------- (function($) { $.fn.kriesi_empty_input = function(options) { return this.each(function() { var currentField = $(this); currentField.methods = { startingValue: currentField.val(), resetValue: function() { var currentValue = currentField.val(); if(currentField.methods.startingValue == currentValue) currentField.val(''); }, restoreValue: function() { var currentValue = currentField.val(); if(currentValue == '') currentField.val(currentField.methods.startingValue); } }; currentField.bind('focus',currentField.methods.resetValue); currentField.bind('blur',currentField.methods.restoreValue); }); } })(jQuery); // ------------------------------------------------------------------------------------------- // The News Slider // ------------------------------------------------------------------------------------------- (function($) { $.fn.kriesi_news_slider= function(options) { var defaults = { slides: '>li', // wich element inside the container should serve as slide animationSpeed: 900, // animation duration autorotation: true, // autorotation true or false? autorotationSpeed:3, // duration between autorotation switch in Seconds easing: 'easeOutQuint', backgroundOpacity:0.8 // opacity for background }; var options = $.extend(defaults, options); return this.each(function() { var slideWrapper = $(this), slides = slideWrapper.find(options.slides).css({display:'none',zIndex:0}), slideCount = slides.length, accelerator = 0, // accelerator of scrolling speed scrollInterval = '', // var that stores the setInterval id mousePos = '', // current mouse position moving = false, // scrollbar currently moving or not? controllWindowHeight = 0, // height of the wrapping element that hides overflow controllWindowPart = 0, // mouseoverpart of the wrapping element that hides overflow itemWindowHeight = 0, // height of element to move current_class = 'active_item', skipSwitch = true, currentSlideNumber = 0, newsSelect ='', newsItems = ''; slides.find('.feature_excerpt').css('opacity',options.backgroundOpacity); slideWrapper.methods = { init: function() { newsSelect = $('
').addClass('newsselect').appendTo(slideWrapper); newsItems = $('').addClass('newsItems').appendTo(newsSelect); fadeout = $('').addClass('fadeout').addClass('ie6fix').appendTo(slideWrapper); slides.filter(':eq(0)').css({zIndex:2, display:'block'}); slides.each(function(i) { var slide = $(this), url = slide.find('a').attr('href'); if(url != undefined) { var controll = $('').appendTo(newsItems).attr('href',url); current_class =''; } else { var controll = $('').appendTo(newsItems); current_class =''; } slide.find('.feature_excerpt .sliderheading, .feature_excerpt .sliderdate').clone().appendTo(controll); controll.bind('click', {currentSlideNumber: i}, slideWrapper.methods.switchSlide); }); controllWindowHeight = newsSelect.height(); controllWindowPart = controllWindowHeight/3; itemWindowHeight = newsItems.height(); if(slideCount > 1) { slideWrapper.aviaSlider_preloadhelper({delay:200}); slideWrapper.methods.preloadingDone(); } }, preloadingDone: function() { skipSwitch = false; var offset = newsSelect.offset(); newsSelect.mousemove(function(e) { mousePos = e.pageY - offset.top; if(!moving) { scrollInterval = setInterval(function() { slideWrapper.methods.scrollItem(mousePos); }, 25); moving = true; } }); newsSelect.bind('mouseleave', function() { clearInterval(scrollInterval); moving = false; accelerator = 0; }); }, scrollItem: function() { var movement = 0, percent = controllWindowPart / 100, modifier = 10, currentTop = parseInt(newsItems.css('top')); accelerator = accelerator <= 2 ? accelerator + 0.5 : accelerator; if(mousePos < controllWindowPart) { movement = ((controllWindowPart - mousePos) / percent) * accelerator; newPos = currentTop + (movement/modifier); if(currentTop < 0) { if (newPos > 0) newPos = 0; newsItems.css({top:newPos + "px"}); } } else if(mousePos > controllWindowPart * 2) { movement = ((mousePos - controllWindowPart * 2) / percent) * accelerator; newPos = currentTop + (movement/modifier * -1); if((currentTop * -1) < itemWindowHeight - controllWindowHeight) { if (newPos * -1 > itemWindowHeight - controllWindowHeight) newPos = controllWindowHeight - itemWindowHeight; newsItems.css({top:newPos + "px"}); } } else { accelerator = 0; } }, switchSlide: function(passed) { //workarround to make more than one flash movies with the same classname possible slides.find('>a>img, >span>img').css({opacity:1,visibility:'visible'}); var noAction = false; if(passed != undefined && !skipSwitch) { if(currentSlideNumber != passed.data.currentSlideNumber) { currentSlideNumber = passed.data.currentSlideNumber; } else { noAction = true; } } if(passed != undefined) { // clearInterval(interval); } if(!skipSwitch && noAction == false) { skipSwitch = true; var currentSlide = slides.filter(':visible'), nextSlide = slides.filter(':eq('+currentSlideNumber+')'); newsSelect.find('.active_item').removeClass('active_item'); newsSelect.find('.single_item:eq('+currentSlideNumber+')').addClass('active_item'); currentSlide.css({zIndex:4}); nextSlide.css({zIndex:2, display:'block'}); currentSlide.fadeOut(options.animationSpeed, function() { currentSlide.css({zIndex:0, display:"none"}); skipSwitch = false; }); } return false; }, autorotate: function() { //autorotation not yet supportet } }; slideWrapper.methods.init(); }); } })(jQuery); // ------------------------------------------------------------------------------------------- // The Main accordion slider - KRICORDION // Dependencies: equalheight function, kriesi_image_preoloader. jquery easing // // ------------------------------------------------------------------------------------------- (function($) { $.fn.kricordion = function(options) { var defaults = { slides: 'li', // wich element inside the container should serve as slide animationSpeed: 900, // animation duration autorotation: true, // autorotation true or false? autorotationSpeed:3, // duration between autorotation switch in Seconds easing: 'easeOutQuint', // animation easing, more options at the bottom of this file event: 'mouseover', // event to focus a slide: mouseover or click imageShadow:true, // should the image get a drop shadow to the left imageShadowStrength:0.5, // how dark should that shadow be, recommended values: between 0.3 and 0.8, allowed between 0 and 1 fontOpacity: 1, // opacity for font, if set to 1 it will be stronger but most browsers got a small rendering glitch at 1 backgroundOpacity:0.8 // opacity for background }; // merge default values with the values that were passed with the function call var options = $.extend(defaults, options); return this.each(function() { // save some jQuery selections into variables, also calculate base values for each slide var slideWrapper = $(this), // element that holds the slides slides = slideWrapper.find(options.slides).css('display','block'), // the slides slide_count = slides.length, // number of slides slide_width = slideWrapper.width() / slide_count // width of the slides expand_slide = slides.width(), // size of a slide when expanded, defined in css, class ".featured" by default minimized_slide = (slideWrapper.width() - expand_slide) / (slide_count - 1), // remaining width is shared among the non-active slides overlay_modifier = 200 *(1- options.imageShadowStrength), //increases the size of the minimized image div to avoid flickering excerptWrapper = slideWrapper.find('.feature_excerpt'), interval = '', current_slide = 0; //modify excerptWrapper and re-select it, also add positioning span ------------------------- excerptWrapper.wrap('').removeClass('feature_excerpt').addClass('position_excerpt'); excerptWrapper = slideWrapper.find('.feature_excerpt').css('opacity',options.backgroundOpacity); // ------------------------------------------------------------------------------------------- //equal heights for all excerpt containers, then hide basic excerpt content ----------------- excerptWrapper.equalHeights().find('.position_excerpt').css({display:'block', opacity:0, position:'absolute'}); var excerptWrapperHeight = excerptWrapper.height(); // ------------------------------------------------------------------------------------------- //iterate each slide and set new base values, also set positions for acitve and inactive states and event handlers slides.each(function(i) { var this_slide = $(this), // current slide element this_slide_a = this_slide.find('>a:first, >span:first'), // a tag inside the element real_excerpt = this_slide.find('.position_excerpt'), // wrapper to center the excerpt content verticaly feature_excerpt = this_slide.find('.feature_excerpt'), real_excerpt_height = real_excerpt.height(), // height of the excerpt content slide_heading =this_slide.find('.sliderheading'), // slide heading cloned_heading = slide_heading.clone().appendTo(this_slide_a) // clone heading for heading only view .addClass('heading_clone') .css({opacity:options.fontOpacity, width:slide_width-30}), clone_height = cloned_heading.height(), // height of clone heading, needed to center verticaly as well modifier = parseInt(feature_excerpt.css('paddingBottom')); this_slide.css('backgroundPosition',parseInt(slide_width/2-8) + 'px ' + parseInt((this_slide.height()- excerptWrapperHeight)/2 -8) + 'px'); cloned_heading.css({bottom: (excerptWrapperHeight-clone_height)/2 +modifier}); //center clone heading real_excerpt.css({bottom: (excerptWrapperHeight-real_excerpt_height)/2 +modifier}); //center real excerpt this_slide.data( //save data of each slide via jquerys data method 'data', { this_slides_position: i * slide_width, // position if no item is active pos_active_higher: i * minimized_slide, // position of the item if a higher item is active pos_active_lower: ((i-1) * minimized_slide) + expand_slide // position of the item if a lower item is active }); //set base properties this_slide.css({zIndex:i+1, left: i * slide_width, width:slide_width + overlay_modifier}); //apply the fading div if option is set to do so if(options.imageShadow) { this_slide.find('>a:first, >span:first').prepend(''); } }); // calls the preloader, aviaSlider_preloadhelper plugin needed slideWrapper.aviaSlider_preloadhelper({callback:add_functionality}); function add_functionality() { //set autorotation --------------------------------------------------------------------------- if(options.autorotation) { interval = setInterval(function() { autorotation(); }, (parseInt(options.autorotationSpeed) * 1000)); } slides.each(function(i) { var this_slide = $(this), real_excerpt = this_slide.find('.position_excerpt'), cloned_heading = this_slide.find('.heading_clone'); //set mouseover or click event this_slide.bind(options.event, function(event, continue_autoslide) { //stop autoslide on userinteraction if(!continue_autoslide) { clearInterval(interval) } var objData = this_slide.data( 'data' ); //on mouseover expand current slide to full size and fadeIn real content real_excerpt.stop().animate({opacity:options.fontOpacity},options.animationSpeed, options.easing); cloned_heading.stop().animate({opacity:0},options.animationSpeed, options.easing); this_slide.stop().animate({ width: expand_slide + (overlay_modifier * 1.2), left: objData.pos_active_higher}, options.animationSpeed, options.easing); //set and all other slides to small size slides.each(function(j){ if (i !== j) { var this_slide = $(this), real_excerpt = this_slide.find('.position_excerpt'), cloned_heading = this_slide.find('.heading_clone'), objData = this_slide.data( 'data' ), new_pos = objData.pos_active_higher; if(i < j) { new_pos = objData.pos_active_lower; } this_slide.stop().animate({left: new_pos, width:minimized_slide + overlay_modifier},options.animationSpeed, options.easing); real_excerpt.stop().animate({opacity:0},options.animationSpeed, options.easing); cloned_heading.stop().animate({opacity:options.fontOpacity},options.animationSpeed, options.easing); } }); }); }); //set mouseout event: expand all slides to no-slide-active position and width slideWrapper.bind('mouseleave', function() { slides.each(function(i) { var this_slide = $(this), real_excerpt = this_slide.find('.position_excerpt'), cloned_heading = this_slide.find('.heading_clone'), objData = this_slide.data( 'data' ), new_pos = objData.this_slides_position; this_slide.stop().animate({left: new_pos, width:slide_width + overlay_modifier},options.animationSpeed, options.easing); real_excerpt.stop().animate({opacity:0},options.animationSpeed, options.easing); cloned_heading.stop().animate({opacity:options.fontOpacity},options.animationSpeed, options.easing); }); }); } // autorotation function for the image slider function autorotation() { if(slide_count == current_slide) { slideWrapper.trigger('mouseleave'); current_slide = 0; } else { slides.filter(':eq('+current_slide+')').trigger(options.event,[true]); current_slide ++; } } }); }; })(jQuery); // ------------------------------------------------------------------------------------------- // END KRICORDION // ------------------------------------------------------------------------------------------- function k_smoothscroll() { jQuery('a[href*=#]').click(function() { var newHash=this.hash; if(newHash != '' && newHash != '#' ) { var target=jQuery(this.hash).offset().top, oldLocation=window.location.href.replace(window.location.hash, ''), newLocation=this, duration=800, easing='easeOutQuint'; // make sure it's the same location if(oldLocation+newHash==newLocation) { // animate to target and set the hash to the window.location after the animation jQuery('html:not(:animated),body:not(:animated)').animate({ scrollTop: target }, duration, easing, function() { // add new hash to the browser location window.location.href=newLocation; }); // cancel default click action return false; } } }); } function k_menu() { // k_menu controlls the dropdown menus and improves them with javascript jQuery(".nav a").removeAttr('title'); jQuery(" .nav ul ").css({display: "none"}); // Opera Fix //smooth drop downs jQuery(".nav li").each(function() { var $sublist = jQuery(this).find('ul:first'); jQuery(this).hover(function() { $sublist.stop().css({overflow:"hidden", height:"auto", display:"none"}).slideDown(400, function() { jQuery(this).css({overflow:"visible", height:"auto"}); }); }, function() { $sublist.stop().slideUp(400, function() { jQuery(this).css({overflow:"hidden", display:"none"}); }); }); }); } /** * LavaLamp - A menu plugin for jQuery with cool hover effects. * @requires jQuery v1.1.3.1 or above * * http://gmarwaha.com/blog/?p=7 * * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Version: 0.2.0 * Requires Jquery 1.2.1 from version 0.2.0 onwards. * For jquery 1.1.x, use version 0.1.0 of lavalamp */ (function($) { $.fn.k_nav_pointer = function(o) { o = $.extend({ fx: "linear", speed: 500, click: function(){} }, o || {}); return this.each(function() { $('.nav>.current_page_item').addClass('current-menu-item'); var me = $(this), noop = function(){}, $back = $('