jQuery.noConflict();
jQuery(document).ready(function($){
  $('#slideshow ul').after('<ol></ol>');
  $("#slideshow ul").cycle({
    width: "818px",
    height: "190px",
    pager:  '#slideshow ol',
    speed: 1500,
    delay: 6000
  });
  
  if ($.browser.safari){
    $("#what-we-do li").addClass('webkit');
  }
    
  $("#what-we-do li").hover(function() {
    $(this).find("dl").stop().animate({top:"20px"});
  }, function() {
    if ($.browser.safari) {
      $(this).find("dl").stop().animate({top:"-130px"});
    }else{
      $(this).find("dl").stop().animate({top:"-120px"});
    }
  });
  
  // $("#what-we-do li h4").click(function() {
  //    $(this).parent().siblings().removeClass("active").css({left:"0",paddingLeft:"0",width:"280px"}).find("div").hide(),
  //    $(this).parent().find("div").show(),
  //    $(this).parent().css({left:"-50px",paddingLeft:"40px"}).addClass("active");
  //    return false
  //  });
  //  
  //  $("#what-we-do li div a.close").click(function() {
  //    $(this).parent("div").hide();
  //    $(this).parent().parent().css({left:"0",paddingLeft:"0",width:"280px"}).removeClass("active");
  //    return false
  //  });
  
  $("nav#main .search input[type='text']").focus(function() {
    $(this).siblings().animate({opacity:"1"});
    $(this).val("");
  });
  
});