$(function(){
	$.fn.supersized.options = {  
		startwidth: 1024,  
		startheight: 620,
		vertical_center: 1,
		slideshow: 0,
		navigation: 0,
		transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
		pause_hover: 0,
		slide_counter: 1,
		slide_captions: 1,
		slide_interval: 13000  
	};
	$('#supersize').supersized();
	$('#supersize').hide(); 
			
	$('.info,.content,.menu,.arr_up,.arr_down').hide();
	$(document).pngFix();


	$('a').click(function(e){
		if (!$(this).hasClass('simple')) {
			e.preventDefault();
			var href = $(this).attr('href');
			$('.info,.content,.menu,.arr_up,.arr_down').fadeOut(500, function(){
				$('#supersize').fadeOut(500, function(){
					location = href;
				})
			});
		}
	})
	
	if ($('.content').html()) $('.content').mousewheel(function(e,d){
		$(this).scrollTop($(this).scrollTop()-d*50);
	})
	
	$('.arr_up').click(function(e){
		e.preventDefault();
		$('.content').stop().animate({scrollTop: '-=200'},100);
	});
	$('.arr_down').click(function(e){
		e.preventDefault();
		$('.content').stop().animate({scrollTop: '+=200'},100);
	});

})


$(window).load(function(){
	$('#supersize').fadeIn(500,function(){
		if (!$('#index').html()) $('.info,.content,.menu,.arr_up,.arr_down').fadeIn(500);
		else $('.menu').fadeIn(500);	
	})
})
$(window).resize(function(){
})


