$(document).ready(function() {	
	//Png Fix
	$(document).pngFix();
});
$(function() {
	$("form.domain-form").submit(function() {
		var old_value = $(this).find('.hidden-field').eq(0).val();
		if ($(this).find('.field').eq(0).val() === "enter a domain" ) {
			$(this).find('.field').eq(0).val() = old_value;
			return false;
		} 
		return true;
	});
	$('input.field, textarea.field').
    focus(function() {
        if(this.title==this.value) {
            this.value = '';
            $(this).css({'color' : '#333'});
        }
    }).
    blur(function(){
        if(this.value=='') {
            this.value = this.title;
            $(this).css({'color' : '#999'});
        }
    });
    setupRegistrantTypeRadioButtonClickEvents();
});
function setupRegistrantTypeRadioButtonClickEvents()
{
    $('.domainUseInd').click(function() {
        $('.individual-domain-checks').show();
        $('.biz-details').hide();
    });
    $('.domainUseBus').click(function() {
        $('.individual-domain-checks').hide();
        $('.biz-details').show();
    });
}
