jQuery.fn.autolink = function () {
	return this.each( function(){
		var re = /((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g;
		$(this).html( $(this).html().replace(re, '<a href="$1">$1</a> ') );s
	});
}


$(document).ready(function(){
				
	$('a[@rel*=lightbox]').lightBox();
	$('.lightbox').lightBox();
	
	$(".links").autolink();

	$(".alert").animate({ height:'show', opacity:'show' }, 'slow');
	
	$('a[@rel=external]').attr('target', '_blank');
	$('.blank').attr('target','_blank');
	
	$('.rellink').bind('click', function() {
		if (typeof($(this).attr('rel'))!="undefined") {
			location.href = $(this).attr('rel');
		}
	});
	
});


$(window).load(function () {


});