$(document).ready(function(){	
	// rounded corners
	
	/*
	NOTE: 	bacause rounded corners on inputs are not supported
			in IE, rounded inputs are transparent and are wrapped 
			in a white rounded div
	*/
	$('.corner').corner({tl:{radius:5},tr:{radius:5},bl:{radius:5},br:{radius:5},antiAlias:true}); 
	$('.cornerLeft').corner({tl:{radius:5},tr:{radius:0},bl:{radius:5},br:{radius:0},antiAlias:true }); 
	$('.cornerRight').corner({tl:{radius:0},tr:{radius:5},bl:{radius:0},br:{radius:5},antiAlias:true }); 
	$('.cornerTop').corner({tl:{radius:5}, tr:{radius:5}, bl:{radius:0}, br:{radius:0}, antiAlias:true }); 
	//$('.cornerBottom').corner({tl:{radius:0}, tr:{radius:0}, bl:{radius:5}, br:{radius:5}, antiAlias:true });
 
	
	//DD_roundies.addRule('.corner', '5px 5px');
	//DD_roundies.addRule('.cornerTop', '5px 5px 0 0');
	//DD_roundies.addRule('.cornerBottom', '0 0 5px 5px');
	//DD_roundies.addRule('.cornerLeft', '5px 0 5px 0');
	//DD_roundies.addRule('.cornerRight', '0 5px 0 5px');
	
	// clear field default values
	
	$('input.clearField').each(function(){
   		var default_value = this.value;
   	 	$(this).focus(function(){
        	if(this.value == default_value) {
            	this.value = '';
        	}
    	});
    });
    
    $(this).blur(function(){
        if(this.value == ''){
            this.value = default_value;
        }
    });
	
	// clear password field default value
	
	$('.passwordInputClear').show();
	$('.passwordInput').hide();
	$('#PasswordClear').focus(function(){
	    $('.passwordInputClear').hide();
	    $('.passwordInput').show();
	    $('#Password').focus();
	});
	
	$('.passwordInput').blur(function(){
	    if($('#Password').val() == '') {
	        $('.passwordInputClear').show();
	        $('.passwordInput').hide();
	    }
	});
    
});

