if (jQuery.browser.msie && jQuery.browser.version == 7) {
  
  // special document.ready for IE7
  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();
    $("#blog-archives").click(function(event){
      $("#blog-archives-box").slideToggle("slow");
      $(".title-overlay").css("margin-top:0px");
      $(".title-overlay").animate("margin-top:-60px","slow");
      event.preventDefault();
    });

    $(".searchBox").focus(function(){
      if ($(this).attr('value') == "search") {
        $(this).attr('value','');
      }
    });
    $(".searchBox").blur(function(){
      if ($(this).attr('value') == "") {
        $(this).attr('value',"search");
      }
    });
  });
} else {
  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();
    $("#blog-archives").click(function(event){
      $("#blog-archives-box").slideToggle("slow");
      event.preventDefault();
    });

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

  });

}
