jQuery(document).ready(function(){function c(){jQuery(".formError").hover(function(){jQuery(this).stop().fadeTo("fast",.1)},function(){jQuery(this).stop().fadeTo("slow",1)});jQuery(".formError").click(function(){jQuery(this).remove()})}function b(){var a="/wp-content/themes/ruffalocody/images/ajax-loader.gif";jQuery("form * *").children("input[type=submit]").replaceWith('<div class="processing"><img src="'+a+'" width="16" height="16" alt="Uploading..." title="Uploading..." style="border:none;" /><p>Please wait while your submission is being processed.</p></div>')}if(jQuery("#home #featured .nav").length!=0){jQuery("#home #featured .nav").tabs("#home #featured .cycle > .item",{rotate:true,event:"mouseover"}).slideshow({autoplay:true,autopause:true,interval:3e3});var a=jQuery("#home #featured .nav").tabs("#home #featured .cycle > .item",{event:"mouseover",api:true});jQuery("#enrollment-management-area").hover(function(){a.click(0)},function(){});jQuery("#fundraising-area").hover(function(){a.click(1)},function(){});jQuery("#on-campus-phonathon-management-area").hover(function(){a.click(2)},function(){});jQuery("#planned-giving-area").hover(function(){a.click(3)},function(){});jQuery("#phonathon-software-area").hover(function(){a.click(4)},function(){})}if(jQuery("#home #whats-new .scroller").length!=0){jQuery("#home #whats-new .scroller").scrollable({circular:true,vertical:true,size:1,speed:1200,easing:"easeOutQuad",clickable:false}).autoscroll({autoplay:true,steps:-1,interval:5e3})}if(jQuery(".portfolio .container").length!=0){jQuery(".portfolio").append('<div class="fade-l"></div><div class="fade-r"></div><div class="navi"></div>');jQuery(".portfolio .item img").each(function(){jQuery(this).clone().appendTo(".navi").wrap('<a href="#" />')});jQuery(".portfolio .scrollable").scrollable({speed:800,items:".container",circular:false}).navigator()}if(jQuery(".alert").length!=0){jQuery(".alert").hide().fadeIn("slow")}jQuery('input[type=text]:not(".un-placeholder"),textarea:not(".un-placeholder")').addClass("placeholder");jQuery("input[type=text],textarea").focus(function(){if(jQuery(this).hasClass("placeholder")&&jQuery(this).val()==jQuery(this).attr("defaultValue")){jQuery(this).val("")}});jQuery("input[type=text],textarea").focus(function(){jQuery(this).removeClass("placeholder")});jQuery("input[type=text],textarea").blur(function(){if(jQuery(this).val()==""){jQuery(this).val(jQuery(this).attr("defaultValue"));jQuery(this).addClass("placeholder")}});jQuery('.lightbox,.post a[href*="jpg"],.lightboxes a').lightBox({fixedNavigation:true});jQuery("form:not(.wpcf7-form)").validationEngine({inlineValidation:true,success:function(){b();submit()},failure:function(){c()}});jQuery("#invoice").change(function(){jQuery("#registration-form,#registration-form-multiple").attr("action","http://www.ruffalocody.com/forms/process.php")});jQuery("#creditcard").change(function(){jQuery("#registration-form,#registration-form-multiple").attr("action","https://payflowlink.paypal.com")});if(jQuery("body#events-registration").length==0&&jQuery("body.post-30").length==0){jQuery("#side-nav li:has(ul) > a").addClass("folded");jQuery("#side-nav .current_page_ancestor > ul,#side-nav .current_page_item > ul").slideDown("slow");jQuery("#side-nav .current_page_ancestor:has(ul) > a,#side-nav .current_page_item:has(ul) > a").removeClass("folded").addClass("expanded");jQuery("#side-nav li ul .current_page_item a,#side-nav li ul .current_page_ancestor a").removeClass("expanded");jQuery("#side-nav > li a.expanded").not("#side-nav li ul a").toggle(function(){jQuery(this).removeClass("expanded").addClass("folded");jQuery(this).next().stop(true,true).slideUp("slow","easeInOutCubic");return false},function(){jQuery(this).removeClass("folded").addClass("expanded");jQuery(this).next().stop(true,true).slideDown("slow","easeInOutCubic");return false});jQuery("#side-nav > li a.folded").not("#side-nav li ul a,#about-us #side-nav li a,#home #side-nav li a").toggle(function(){jQuery(this).removeClass("folded").addClass("expanded");jQuery(this).next().stop(true,true).slideDown("slow","easeInOutCubic");return false},function(){jQuery(this).removeClass("expanded").addClass("folded");jQuery(this).next().stop(true,true).slideUp("slow","easeInOutCubic");return false});jQuery("#home #side-nav > li").hover(function(){jQuery(this).children("ul").stop(true,true).delay(250).slideDown("slow","easeInOutCubic")},function(){jQuery(this).children("ul").stop(true,true).slideUp("slow","easeInOutCubic")})}jQuery(".read-more-link").click(function(){jQuery(this).parent().next().slideDown("slow","easeInOutCubic");jQuery(this).parent().slideUp("slow","easeInOutCubic");return false})})
