
$(function () {
    var baseURL = "";
    var currentURL = window.location;

    //Add default text to search box  
    $(".xsltsearch_form .input").each(function () {
        $(this).val("Search");
        var thisObj = $(this);
        var thisVal = thisObj.val();
        thisObj.bind("focus", function () {
            if (thisObj.val() == thisVal) { thisObj.val(""); }
        }).bind("blur", function () {
            if (thisObj.val() == "") { thisObj.val("Search"); }
        });
    });
  
    //send to friend link   
    $(".emailLink").each(function (ev) {
        var path = encodeURIComponent(window.location);
        var lnk = $(this).attr("href") + " - " + path;
        $(this).attr("href", lnk);
    });  
  
  var searchResults = $("#xsltsearch").html();
    $("#searchresults").html(searchResults);
  
  $("#topNavigation li:first-child").addClass("home");

});
