$.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" target="_blank">$1</a> ') );
		var twU = /\@([a-z0-9\_]+)(?![-a-z0-9\_])/ig;
		$(this).html( $(this).html().replace(twU, '<a href="http://twitter.com/$1" target="_blank">@$1</a> ') );
	});
} 



$(function(){

	
	
	$("#menu li").mouseenter(function() {
		arrowIn(this);
		});
	$("#menu li").mouseleave(function() {
		arrowOut(this);
		});
	
	$("#menu").height($(window).height());
	$("#wrap").height($(window).height());
	
	$(window).bind('resize', function(){
		$("#menu").height($(window).height());		
		
		});
		
	$("blockquote").autoLink();
	

	
});

function arrowIn(el) {

	$(el).css({
			background:'url(\'/wp-content/themes/ladvin/img/arrow.png\') no-repeat 0 2px'
		});	
	}

function arrowOut(el) {
	
	$(el).css({
			background:'#91b8c1'
		});	
	}

