function hasPlaceholderSupport() {
		var input = document.createElement('input');
		return ('placeholder' in input);
	    }
$(document).ready(function(){
	if(!hasPlaceholderSupport()){
		$('input').each(function(){
		    if($(this).attr('placeholder') != undefined){
			$(this).val($(this).attr('placeholder'))
			.attr('style','color:#ccc')
			.focus(function(){
			    if($(this).val() == $(this).attr('placeholder'))$(this).val('')
			    $(this).attr('style','color:#000');
			})
			.blur(function(){
			    if($(this).val() == '' || $(this).val() == $(this).attr('placeholder') ){
				$(this).val($(this).attr('placeholder'))
				$(this).attr('style','color:#ccc');
			    }
			})
			
			if( $(this).attr('type') != undefined && $(this).attr('type') != '' ){
			    $(this).data('orginal_type',$(this).attr('type'))
			    try{
				$(this).attr('type','text')
			    }catch(e){}
			}			
		    }		    
		})
	}	

})

