// JavaScript Document

    jQuery(document).ready(function(){
		// search
		getSearchValue = function(){
			return jQuery("#s").attr('value');
		};
		
		var searchValue = getSearchValue();
		
		jQuery("#s").focus(function () {
			// jQuery(this).css('display','inline').fadeOut(1000);
			 jQuery(this).attr('value','');
		});
		
		jQuery("#s").blur(function () {
			// jQuery(this).css('display','inline').fadeOut(1000);
			jQuery(this).attr('value',searchValue);
		});
		// end search
		
		/*
		jQuery.each(jQuery('.wp-caption-text'), function() {
			$image = jQuery(this).parent().find('img');
			//console.info($image);
			jQuery(this).width($image.width()-20);
		});

		// hover on caption
       jQuery('.wp-caption').mouseover(function(){
			jQuery(this).find('.wp-caption-text').stop('true', 'true').slideUp("fast", function() {
				jQuery(this).dequeue();
			});
		}).mouseout(function(){
			jQuery(this).find('.wp-caption-text').slideDown("fast", function() {
				jQuery(this).dequeue();
			});
		});
	   */
	});
	
