﻿$(document).ready(function() {
    // controls News ticker 
    $('.slideshow').cycle({
        fx: 'scrollUp', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        speed: 500,
        timeout: 4000
    });

    // used in Search textbox
    $("#txtSearch").blur(function() {
        if (!$(this).val()) {
            $(this).val("Search....");
            $(this).css({ 'color': '#8F8F8F' });
        }

    });

    // used in Search textbox
    $("#txtSearch").focus(function() {
        if ($(this).val() == "Search....") {
            $(this).val("");
            $(this).css({ 'color': '#000000' });
        }
    });

    // ********** BEGIN - used for search textbox converted to runat=server **********
    // used in Search textbox
    $("#ctl00_txtSearch").blur(function() {
        if (!$(this).val()) {
            $(this).val("Search....");
            $(this).css({ 'color': '#8F8F8F' });
        }

    });

    // used in Search textbox
    $("#ctl00_txtSearch").focus(function() {
        if ($(this).val() == "Search....") {
            $(this).val("");
            $(this).css({ 'color': '#000000' });
        }
    });       
    // *********** END - used for search textbox converted to runat=server **********
});
