// When link is rolled over, element will animate to the css in style klass
function add_class_animation_to(link, element, klass){
 //alert("adding class animation to " + element + " on " + link + " click to class " + klass);
 var animator = Animator.apply(element, klass);
 Event.observe(link, "click", function(e){animator.toggle();});
 link.href = "#";
}

// Animate service tab link
// -----------------------
$$('li.services a').each(function(link){
  var serviceContent = $$('div.serviceTabs')[0];
  add_class_animation_to(link, serviceContent, 'show');
});
