﻿// JScript File


$(document).ready(function () {
    $('fieldset.search a.search_button').bind('click', function(){
        fireSearch();
    });

    $('fieldset.search input').bind('keypress', function(e) {
        if(e.keyCode==13){
            fireSearch();
        }
    });

    $('.navOn3').each(function() {
        var currentClass = $(this).parent().attr("class");
        $(this).parent().attr("class", currentClass + " hasChildren");
    });

Cufon.replace
        ('h1')
        ('h2')
        ('h3')
});


function fireSearch(btn, event, URL) {
    var searchTerm = $('.search_input').attr("value");
    
    // navigate the url with the value as query string
    load("/pages/common/search.aspx?s=" + searchTerm);
}
    
