

$(document).ready(function(){
		
	  $('#slider-menu').hide();
	
	  $('#btn-nav a').click(function() {
		
	  $('#slider-menu').slideToggle(400);
    return false;
  });

/*
	jQuery.event.add(window, "load", resizeFrame);
	jQuery.event.add(window, "resize", resizeFrame);

	function resizeFrame() 
	{
		var h = $(window).height();
		var w = $(window).width();

		if (h < 700) {
			$("#ibg_1").css("height", 1207);
			$("#ibg_2").css("height", 1100);
			$("#ibg_3").css("height", 1200);
			$("#ibg_4").css("height", 1000);
		}
		else {
			$("#ibg_1").css("height", 1207);
			$("#ibg_2").css("height", 1100);
			$("#ibg_3").css("height", 1200);
			$("#ibg_4").css("height", 1000);
		}
		if (w < 1024) {
			$(".ibg_block").css("width", 990);
			$("#fishbg").css("width", 990);
		} 
		else {
			$(".ibg_block img").css("width", w);
			$(".ibg_block").css("width", w); 
			$("#fishbg").css("width", w);
		}
		$(".ibg_block").css("background-position");

	}*/

	$.localScroll.defaults.axis = 'y';
	
	// Scroll initially if there's a hash (#something) in the url 
	$.localScroll.hash({
		target: '#contentdata', // Could be a selector or a jQuery object too.
		queue:true,
		duration:1500
	});
	$.localScroll({
		target: 'body', // could be a selector or a jQuery object too.
		queue:true,
		duration:1000,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});
});

