 jQuery(document).ready(function() {
	
	if (!isPlaceholderSupported()) {
		
		jQuery("input[placeholder]").each(
		   function () {
				   var term = jQuery(this).attr("placeholder");
				jQuery(this).val(term); 
		   }).focus(
		   function() { 
				jQuery(this).val(""); 
		   }).blur( 
				   function(){ 
					if (this.value == '') { 
						var term = jQuery(this).attr("placeholder");
						jQuery(this).val(term); 
					};     
		   });
	}
	
	jQuery('a[href$=".jpg"],a[href$=".png"],a[href$=".gif"],a[href$=".bmp"]').attr('rel','lightbox[web]').prettyPhoto();
	
});

function isPlaceholderSupported() {
    var input = document.createElement("input");
    return ('placeholder' in input);  
}

