$(document).ready(function(){
$(function()
{
	$('#navHolder').jScrollPane();
});



$(window).resize(function() {
 $('#navHolder').data('jsp').reinitialise();
 $('#contentBlock').data('jsp').reinitialise();
});

$(function()
{
	var pane = $('#navHolder');
	pane.jScrollPane(
		{
			showArrows: false,
			animateScroll: true,
			contentWidth:135
		}
	);
	var api = pane.data('jsp');

	$('#upbutton').bind(
		'click',
		function()
		{
			api.scrollByY(-74);
			return false;
		}
	);
	
	$('#downbutton').bind(
		'click',
		function()
		{
			api.scrollByY(74);
			return false;
		}
	);
});


	
$(".bigQuote").hide();

$("#stop").click(function () {
  var myDiv = $("div");
  myDiv.clearQueue();
  myDiv.stop();
});

$("#navHolder").mouseout(function(){
	$(".bigQuote").hide();
    var myDiv = $("div");
    myDiv.clearQueue();
    myDiv.stop();
    $("#contentBlock").fadeTo(0, 1);	
});

$("#contentBlock").mouseover(function(){
	$(".bigQuote").hide();
    var myDiv = $("div");
    myDiv.clearQueue();
    myDiv.stop();
    $("#contentBlock").fadeTo(0, 1);	
});

$(".contentHolder").mouseover(function(){
	$(".bigQuote").hide();
	var myDiv = $("div");
    myDiv.clearQueue();
    myDiv.stop();
	$("#contentBlock").fadeTo(0, 1);
});

$("#navBlock1").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1); $("#bigQuote1").show();});
$("#navBlock2").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote2").show();});
$("#navBlock3").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote3").show();});
$("#navBlock4").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1); $("#bigQuote4").show();});
$("#navBlock5").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote5").show();});
$("#navBlock6").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote6").show();});
$("#navBlock7").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote7").show();});
$("#navBlock8").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote8").show();});
$("#navBlock9").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote9").show();});
$("#navBlock10").mouseover(function(){$(".bigQuote").hide();$("#contentBlock").fadeTo(0, 0.1);$("#bigQuote10").show();});
$("#navBlock11").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote11").show();});
$("#navBlock12").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote12").show();});
$("#navBlock13").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote13").show();});
$("#navBlock14").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote14").show();});
$("#navBlock15").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote15").show();});
$("#navBlock16").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote16").show();});
$("#navBlock17").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote17").show();});
$("#navBlock18").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote18").show();});
$("#navBlock19").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote19").show();});
$("#navBlock20").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote20").show();});
$("#navBlock21").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote21").show();});
$("#navBlock22").mouseover(function(){$(".bigQuote").hide(); $("#contentBlock").fadeTo(0, 0.1);$("#bigQuote22").show();});

});
