$(document).ready(function () {

    // Add the fun from here...


    $("#searchtext").keydown(function (event) {
        if (event.keyCode == "13")
        { window.location = "/search.aspx?search=" + $("#searchtext").val(); }
    });

    $(function () {
        $('input.clear').each(function () {
            $(this).data("txt", $.trim($(this).val()));
        }).focus(function () {
            if ($.trim($(this).val()) === $(this).data("txt")) {
                $(this).val("");
            }
        }).blur(function () {
            if ($.trim($(this).val()) === "" && !$(this).hasClass("once")) {
                $(this).val($(this).data("txt"));
            }
        });
    });
    
    /* news ticker */
    $('.latestnewsticker .ticker').cycle({
        fx: 'scrollUp',
        speed: 500,
        timeout: 3000
    });

    /* homepage slideshow */
   $('#slides').cycle({
        fx: 'fade',
        speed: 0,
        timeout: 0
    });




    // ...to here

});
