$(function() // run after page loads
{
  $(".sig_p,.prev_p").click(function()
  { 
    // hides matched elements if shown, shows if hidden
    $("#zerop, #firstp").toggle() ;
	
  });



$(function() // run after page loads
{
  $(".prev,.sig").click(function()
  { 
    // hides matched elements if shown, shows if hidden
    $("#zero, #first").toggle();
  });
});

	$('#contentl').localScroll({
		target: '#contentl', //could be a selector or a jQuery object too.
		filter: '#slides a', // don't watch these links
});

  });

jQuery(function( $ ){

	
$.localScroll({

				target: '#slides', //could be a selector or a jQuery object too.
				
filter: '#contentl a', // don't watch these links
	axis:'yx', //the default is 'y'
		hash:false,
		duration:1800,// Length of the animation (if you scroll 2 axes and use queue, then each axis take half this time)
		force:false, // Force a scroll to the element specified by 'start' (some browsers don't reset on refreshes)
		constant:true, // constant speed
		
		queue:true,// We scroll on both axes, scroll both at the same time.
		event:'click',// On which event to react (click is the default, you probably won't need to specify it)
		stop:true,// Each click will stop any previous animations of the target. (false by default)
		lock:false, // Ignore events if already animating (true by default)		
		//start: 0, // On which element (index) to begin ( 0 is the default, redundant in this case )		
		cycle:true,// Cycle endlessly ( constant velocity, true is the default )
		//step:1, // How many items to scroll each time ( 1 is the default, no need to specify )
		//jump:false, // If true, items become clickable (or w/e 'event' is, and when activated, the pane scrolls to them)
		//lazy:false,// (default) if true, the plugin looks for the items on each event(allows AJAX or JS content, or reordering)
		//interval:1000, // It's the number of milliseconds to automatically go to the next

		onBefore:function( e, subsec, $cont ){//'this' is the clicked link
			if( this.blur )
				this.blur(); // Remove the awful outline
		}
	});

	$(document).ready(function()
	{

	$("#FrontMenu .navi a").addClass("sel");
		
		$("#FrontMenu .navi a").click(function()
		{
			$("#FrontMenu .navi .sel").removeClass("sel");
			$(this).parent().addClass("sel");
			return false;
		});
		





	$('a[@rel*=lightbox]').lightBox();


});




});

