﻿/*$(document).ready(function () {
    

    $('#contactform').slidinglabels({

        // these are all optional 
        className: 'form-slider', // the class you're wrapping the label & input with -> default = slider
        topPosition: '5px',  // how far down you want each label to start
        leftPosition: '5px',  // how far left you want each label to start
        axis: 'x',    // can take 'x' or 'y' for slide direction
        speed: 'fast'  // can take 'fast', 'slow', or a numeric value

    });

    
});
*/



$(document).ready(function () {
    var nameValue = 'Name';
    $('#txtName').bind('focus', function () {
        $(this).attr('style', 'color:#231F20;');
        if ($(this).val() == nameValue) {
            $(this).val('');
        }
    });
    $('#txtName').bind('blur', function () {
        $(this).attr('style', 'color:#878585;');
        if ($(this).val() == '') {
            $(this).val(nameValue);
        }
    });

    var emailValue = 'Email';
    $('#txtEmail').bind('focus', function () {
        $(this).attr('style', 'color:#231F20;');
        if ($(this).val() == emailValue) {
            $(this).val('');
        }
    });
    $('#txtEmail').bind('blur', function () {
        $(this).attr('style', 'color:#878585;');
        if ($(this).val() == '') {
            $(this).val(emailValue);
        }
    });

    var messageValue = 'Type your message here';
    $('#txtMessage').bind('focus', function () {
        $(this).attr('style', 'color:#231F20;');
        if ($(this).val() == messageValue) {
            $(this).val('');
        }
    });
    $('#txtMessage').bind('blur', function () {
        $(this).attr('style', 'color:#878585;');
        if ($(this).val() == '') {
            $(this).val(messageValue);
        }
    });
});

