$(document).ready(function(){ 

$('.nninput').val(1);

	       
$("#panel a.closer").click(function () {
      $("#panel").hide("slide", { direction: "down" }, 2400);
});
                                                     
});

	$(function()
	{
		$.extend($.fn.jScrollPane.defaults, {showArrows:true});
		$('#text_content').jScrollPane();

	});



// The following is just a little piece of jquery JS to open links
// with a class of "external" in a new window.

$(function(){
    $('a.external').click(function(){
        window.open(this.href);
        return false;
    });
});


jQuery(function() {

	// set class to "on" for all li ancestors of anchors pointing to the current page
	var page = location.href;
    page = page.replace(/http:\/\/[^\/]+/i,""); 
    jQuery("a[href=" + page + "]").parents().filter('li').each(function() {jQuery(this).addClass("on");});

	// onclick remove "on" class for all li elements
	// var lis = jQuery("li");
	// jQuery(function() {
	// 	jQuery("li").click(function(){jQuery(lis).removeClass("on")});
	// });

});






