   function switchfavbox(id2expand)
   	{
   		var animationspeed = 250;
   		var expandedwidth = 450;
   		var collapsedwidth = 80;
   		var i=1;
			for (i=1;i<=5;i++)
			{
				if ($("#favbox_e"+i).width() ==  expandedwidth)
				{
					$("#favbox_e"+i).animate({width: "0px"},animationspeed);	
					$("#favbox_c"+i).animate({width: collapsedwidth+"px"},animationspeed);	
				}
			}
   		$("#favbox_c"+id2expand).animate({width: "0px"},animationspeed);
   		$("#favbox_e"+id2expand).animate({width: expandedwidth+"px"},animationspeed);
   	}


	$(document).ready(function(){
	$(".favbox_collapsed img").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 60% when the page loads

	$(".favbox_collapsed img").hover(function(){
		$(this).fadeTo("fast", 0.77); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("fast", 1.0); // This should set the opacity back to 60% on mouseout
	});
});
