// JavaScript Document


$(document).ready(function(){



// center the content
/*	var y = $(window).height();
	if (y >= 550)
		{	
 		$("body").css({paddingTop: $(window).height()/2-275});
		}

// center the content while the user resizes the window
	$(window).resize(function()
		{

		var x = document.getElementsByTagName('body')[0].style.paddingTop;
		var y = $(window).height();

		//$('#output').html('paddingTop = ' + x + '<br /> window height = ' + y);

		if (y >= 550)
			{	
 			$('body').css({paddingTop: $(window).height()/2-275});
			}
	
		}
	);
*/

// fade in the content
/*	$('#werk').css({ display: "none" });
	$('#popup').css({ display: "none" });

	setTimeout("$('#werk').fadeIn('slow')", 500);
	setTimeout("$('#popup').fadeIn('slow')", 500);
*/



// 
	$('#mainNav li a').css({ opacity: "0" });
	$('#secondaryNav li a').css({ opacity: "0" });


	$('#mainNav li a').hover(function()
		{
		$(this).animate({ opacity: "1" }, 150 );
		}, function()
		{
		$(this).animate({ opacity: "0" }, 500 );
		}
	);

	$('#secondaryNav li a').hover(function()
		{
		$(this).animate({ opacity: "1" }, 150 );
		}, function()
		{
		$(this).animate({ opacity: "0" }, 500 );
		}
	);



	
	

/*	$('#werkThumbs a').ajaxify(
		{
        animateOut: {opacity:'0'},
        animateOutSpeed: 300,
        animateIn: {opacity:'1'},
        animateInSpeed: 300,

       	//loading_target: '#loading',
		//loading_img: '/images/spinner.gif',

		target: '#target',
		tagToload: '#popup',
		onSuccess: function(options,data) 
			{
			$('#closeBttn a').bind('click', function(event)
				{
				event.preventDefault();
				$('#popup').fadeOut('slow');
				}
			);
			}
	
		}
	);
*/





});


