

$(document).ready(function(){

	$('head').append('<link href="css/jscss.css" rel="stylesheet" type="text/css" media="screen" />');
	
	$('#main-nav li:not(.here)')
		.append('<span class="hover"></span>')
		.hover(
			function(){
				$(this).children('span.hover')
					.stop(true,false)
					.animate({
						'opacity' : '1'
					},250);
			},
			function(){
				$(this).children('span.hover')
				.stop(true,false)
				.animate({
					'opacity' : '0'
				},500);
			}
		);
	
	$('#main-nav li span.hover').css({ 'opacity' : 0 });
	
	
	
	var $pri = $('#primary-content');
	var lHeight	=	$('.panel.left').outerHeight();
	var rHeight	=	$('.panel.right').outerHeight();;
	var secHeight = 0;
	
	if ( lHeight > rHeight )
	{
		secHeight	=	lHeight + 6;
	}
	else
	{
		secHeight	=	rHeight + 6;
	}
	//$pri.css({ 'min-height': ( (secHeight - ( $pri.outerHeight() - $pri.height() ) + 10) + 'px' ) });
	$pri.css({ 'min-height': ( (secHeight - ( $pri.outerHeight() - $pri.height() ) ) + 'px' ) });
});
