$(function()
{
	try{
		if (Modernizr.input.placeholder){
			$("label").hide();
		}else{
			$('[placeholder]').focus(function()
			{
				if ($(this).val() == $(this).attr('placeholder'))
				{
					$(this).val('');
					$(this).removeClass('placeholder');
				}
			}).blur(function()
			{
				if ($(this).val() == '' || $(this).val() == $(this).attr('placeholder'))
				{
					$(this).val($(this).attr('placeholder'));
					$(this).addClass('placeholder');
				}
			});
			
			$('[placeholder]').parents('form').submit(function()
			{
				$(this).find('[placeholder]').each(function()
				{
					if ($(this).val() == $(this).attr('placeholder'))
					{
						$(this).val('');
					}
				})
			});
		}
	}catch( e ){
		//
	}
});

$(document).ready(function(){
	$("input[type='text'], input[type='password']").css({
		backgroundColor:'#ffffff',
		height:'30px',
		lineHeight:'20px'
	});

	DD_roundies.addRule("input[type='text'], input[type='password']", "4px", true);
	if (typeof(signButton) != 'undefined'){
		$("input.sign_button").css({
			width:'143px',
			height:'52px',
			border:'none',
			padding:'0px',
			margin:'0px',
			color:'#ffffff',
			//float:'right',
			fontSize:'1.3em',
			fontWeight:'bolder',
			backgroundImage:'url(' + signButton + ')',
			backgroundColor:'transparent',
			backgroundRepeat:'no-repeat'
		}).bind('mouseover',function(){
			$(this).css('cursor', 'pointer');
		});;
	}

  // $("label").inFieldLabels();
});

