
$.fn.equalize_columns=function()
{
	var sortNumber=function(a,b){return b-a;};
	var heights=[];
	$(this).each(function()
	{
		heights.push($(this).height());
	});
	heights.sort(sortNumber);
	var maxHeight=heights[0];
	return this.each(function()
	{
		$(this).css({'height':maxHeight});
	});
};

$(document).ready(function()
{
	$('.va_collective_more').truncate({max_length:430});
	$('div.timeago').timeago();
	$('.equalize1').equalize_columns();
	$('.shop_items').hover(function()
	{
		id=$(this).attr('id');
		$('#'+id+' span').css('float','left');
		$('#'+id+' span').css('height',$(this).height()+'px');
		$('#'+id+' span').css('width','145');
		$('#'+id+' span').css('overflow','hidden');
		$('#'+id+' a').hide();
		$('#'+id+' span').show();
		$('#'+id+' span a').show();
	},function()
	{
		$('#'+id+' a').show();
		$('#'+id+' span').hide();
	});
	$('.headlines').hover(function()
	{
		id=$(this).attr('id');
		$('#'+id+' span').css('float','left');
		$('#'+id+' span').css('height',$(this).height()+'px');
		$('#'+id+' span').css('width','145');
		$('#'+id+' span').css('overflow','hidden');
		$('#'+id+' a').hide();
		$('#'+id+' span').show();
		$('#'+id+' span a').show();
	},function()
	{
		$('#'+id+' a').show();
		$('#'+id+' span').hide();
	});
	$('#slidecase_events').slidecase({animation:{type:'fade'},titleBar:{enabled:false},navigator:{autoHide:false}});
});

$(function()
{
	$('.scroll-pane').jScrollPane();
});

