
(function($){

	$.fn.placeholder = function(){
		$this = $(this);

		$(this).each(function(){
			// quit if there's support for html5 placeholder
			if (this[0] && 'placeholder' in document.createElement('input')) return; 

			if ($(this).val() === '' || $(this).val() === $(this).attr('placeholder')){
				$(this).val( $(this).attr('placeholder') ).css({color:'#808080'});
			}

			$(this)
				.bind('focusin',function(){

					if ($(this).val() === $(this).attr('placeholder')) {
						$(this).val('').css({color:'#000'});
					}

				}).bind('focusout',function(){

					if ($(this).val() === ''){
						$(this).val( $(this).attr('placeholder') ).css({color:'#808080'});
					}
				});
		})

		$('form').submit(function(){
			$this.each(function(){
				if ($(this).val() === $(this).attr('placeholder')) {
					$(this).val('');
				}
			})
		})
	}
	





 



})(this.jQuery);




window.log = function(){
  log.history = log.history || [];   
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);



