(function($){

	$.fn.showNamePara = function(){

		return this.each(function(){
			$(this).hover(
				function(){
					$(this).children('p.name').slideDown('fast');
				},
				function(){
					$(this).children('p.name').slideUp('fast');
				}
			)
		});

	};

	$.fn.enlargeColors = function(){

		return this.each(function(){
			$(this).click(function(e){ e.preventDefault(); });

			$(this).hover(
				function(){
					var large = $(this).attr('href');
					var label = $(this).attr('rel');

					$('div.color-large > img').attr('src', large);
					$('div.color-large > p.label').html(label);
					$('div.color-large').show('fast');

					$(this).mousemove(function(e){
						$('div.color-large').css('top', e.clientY + 15).css('left', e.clientX + 15);
					});

				},
				function(){
					$('div.color-large').hide();
				}
			);
		});

	};

	$.fn.searchDealers = function(){

		return this.each(function(){

			$(this).change(function(){
				$(this).parents('form').submit();
			});

		});

	}

})(jQuery);
