//General functions from ilovecolors.com.ar

jQuery.preloadImages = function()
{
	for(var i = 0; i<arguments.length; i++)
		jQuery("<img>").attr("src", arguments[i]);
}
jQuery(document).ready(function(){

	jQuery("#miniposts-list").innerfade({
		animationtype: 'fade',
		speed: 'slow',
		timeout: 5000,
		type: 'sequence',
		containerheight: '80px'
	});

	jQuery("input#s").val("what are you looking for?");	
	jQuery("#topbar #s").click(function(){ jQuery(this).val("");	});
	jQuery("#s").blur(function(){ jQuery(this).val("what are you looking for?"); });
	
	jQuery("li .bimg").hover(
		function(){
			jQuery(this).animate({opacity: "hide"}, "slow");
			jQuery(this).next().animate({opacity: "show"}, "slow");
		},
		function(){
			//silence
		}
		);
	jQuery("li .himg").hover(
		function(){
			//silence
		},
		function(){
			jQuery(this).animate({opacity: "hide"}, "slow");
			jQuery(this).prev().animate({opacity: "show"}, "slow");
		}
	);
	
	
	
});
