﻿
/// <reference path="jquery-1.4.1-vsdoc.js"/>


$(document).ready(function () {
    $('#qsSearchText').watermark('Search by Make and/or Model', { className: 'watermark' });
});


$(document).ready(function () {
    $(".blue").hover(
        function () { $(this).addClass("blueOver") },
        function () { $(this).removeClass("blueOver") }
    );
});


$(document).ready(function () {
    $("#ContentPlaceHolder1_btnSearch").hover(
        function () { $(this).attr("src", "/images/btnSearch_orange.png") },
        function () { $(this).attr("src", "/images/btnSearch.png") }
    );
});

$(document).ready(function () {
    $("#qsSubmit").hover(
        function () { $(this).attr("src", "/images/qsSubmit_Orange.png"); $("#qsSearchText").css("border-color", "#ff9900"); },
        function () { $(this).attr("src", "/images/qsSubmit.png"); $("#qsSearchText").css("border-color", "#8da0d7"); }
    );
});

$(document).ready(function () {
    $("img.viewDetails").hover(
        function () { $(this).attr("src", "/images/view_details_orange.png") },
        function () { $(this).attr("src", "/images/view_details.png") }
    );
});

$(document).ready(function () {
    $("#ContentPlaceHolder1_btnSendForm").hover(
        function () { $(this).attr("src", "/images/btnSend_orange.png") },
        function () { $(this).attr("src", "/images/btnSend.png") }
    );
});


$(document).ready(function () {
    $("#BrowseWrapper .item").hover(
        function () { $(this).addClass("over"); },
        function () { $(this).removeClass("over") }
    );
});

function btnSendMouseOver() {
    $("#ContentPlaceHolder1_ucMainForm_btnSendForm").addClass("blueOver");
}
function btnSendMouseOut() {
    $("#ContentPlaceHolder1_ucMainForm_btnSendForm").removeClass("blueOver");
}

function scrollToTop() {
    $('html,body').animate({ scrollTop: $("body").offset().top }, 1000);
}


if (typeof (Sys) !== "undefined") Sys.Application.notifyScriptLoaded();

