/**
 * @author: Eugene Balaban <balaban.eugene@gmail.com>
 * @date: 29.12.10
 * @time: 8:29
 */
$(document).ready(function() {
    /*$('#GetInTouchForm_Name').click(function() {
        if ($(this).val() == 'Name')
        {
            $(this).val('');
        }
    });

    $('#GetInTouchForm_Name').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('Name');
        }
    });

    $('#GetInTouchForm_Phone').click(function() {
        if ($(this).val() == 'Telephone')
        {
            $(this).val('');
        }
    });

    $('#GetInTouchForm_Phone').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('Telephone');
        }
    });

    $('#GetInTouchForm_Email').click(function() {
        if ($(this).val() == 'E-mail address')
        {
            $(this).val('');
        }
    });

    $('#GetInTouchForm_Email').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('E-mail address');
        }
    });

    $('#btnSubmit').click(function() {
        if ($('#GetInTouchForm_Name').val() == 'Name') $('#GetInTouchForm_Name').val('');
        if ($('#GetInTouchForm_Phone').val() == 'Telephone') $('#GetInTouchForm_Phone').val('');
        if ($('#GetInTouchForm_Email').val() == 'E-mail address') $('#GetInTouchForm_Email').val('');
    });

    if ($('#GetInTouchForm_Name').val() == '') $('#GetInTouchForm_Name').val('Name');
    if ($('#GetInTouchForm_Phone').val() == '') $('#GetInTouchForm_Phone').val('Telephone');
    if ($('#GetInTouchForm_Email').val() == '') $('#GetInTouchForm_Email').val('E-mail address');*/

	$('#mce-FNAME').click(function() {
        if ($(this).val() == 'First Name')
        {
            $(this).val('');
        }
    });

    $('#mce-FNAME').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('First Name');
        }
    });

	$('#mce-LNAME').click(function() {
        if ($(this).val() == 'Last Name')
        {
            $(this).val('');
        }
    });

    $('#mce-LNAME').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('Last Name');
        }
    });

	$('#mce-EMAIL').click(function() {
        if ($(this).val() == 'E-mail address')
        {
            $(this).val('');
        }
    });

    $('#mce-EMAIL').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('E-mail address');
        }
    });

	$('#mce-MMERGE3').click(function() {
        if ($(this).val() == 'Telephone (optional)')
        {
            $(this).val('');
        }
    });

    $('#mce-MMERGE3').blur(function() {
        if ($(this).val() == '')
        {
            $(this).val('Telephone (optional)');
        }
    });

    $('#btnSubmit').click(function() {
        if ($('#mce-FNAME').val() == 'First Name') $('#mce-FNAME').val('');
		if ($('#mce-LNAME').val() == 'Last Name') $('#mce-LNAME').val('');
		if ($('#mce-EMAIL').val() == 'E-mail address') $('#mce-EMAIL').val('');
		if ($('#mce-MMERGE3').val() == 'Telephone (optional)') $('#mce-MMERGE3').val('');
    });
});
