jQuery(document).ready(function($){

  // slide effect on photo categories box
  $("#photo-categories-box").hide();
  $("#photo-categories").click(function(event){
    $("#photo-categories-box").slideToggle("slow");
    event.preventDefault();
  });
  
  $("#blog-archives-box").hide();
  if (jQuery.browser.msie && jQuery.browser.version == 7) {
    $("#blog-archives").click(function(event){
      $("#blog-archives-box").slideToggle("slow",function() {
        $(".title-overlay").animate({'margin-top' : '1px'},"slow");
        $(".title-overlay").animate({'margin-top' : '-60px'},"slow");
      });
      event.preventDefault();
    });
  } else {
    $("#blog-archives").click(function(event){
      $("#blog-archives-box").slideToggle("slow");
      event.preventDefault();
    });
  }


  $(".searchBox").focus(function(){
    if ($(this).attr('value') == "search") {
      $(this).attr('value','');
    }
  }).blur(function(){
    if ($(this).attr('value') == "") {
      $(this).attr('value',"search");
    }
  });
});
