$(document).ready(function () {


	jQuery('#news').jcarousel({
    		vertical: true,
    		scroll: 2
		});
		
/*
	$('#nav-wrap:has(#nav)').click( 
		function () {
			$(this).find('#nav').fadeIn('fast');
	}, 
		function () {
			$(this).find('#nav').hide();
		}
	);
*/

	$('.main-nav').click(function(){
		$('#nav').slideDown(400);
	});
	
	$('.main-nav:has(#nav) > a').click( function () {
		return false;
   });  
   

					/*
$('#hnavMember:has(ul)').toggle( 
						function () {
							$(this).find('ul').fadeIn('fast');
					}, 
						function () {
							$(this).find('ul').hide();
						}
					);
					
					$('#hnavMember a:has(ul) > a').click( function () {
						return false;
				   });  			   
				   
				   
   

					$('#hnavContact:has(ul)').toggle( 
						function () {
							$(this).find('ul').fadeIn('fast');
					}, 
						function () {
							$(this).find('ul').hide();
						}
					);
					
					$('#hnavContact a:has(ul) > a').click( function () {
						return false;
				   });  			   
				   
				   
   

					$('#hnavThis:has(ul)').toggle( 
						function () {
							$(this).find('ul').fadeIn('fast');
					}, 
						function () {
							$(this).find('ul').hide();
						}
					);
					
					$('#hnavThis a:has(ul) > a').click( function () {
						return false;
				   });  	   
				   
*/

   $('#head-nav li a').click(function(){   
      $('#head-nav li a').parent().find('ul').hide();
   		$(this).parent().find('ul').show();   	
   });
   
   $('#head-nav li ul li').append('<a href="javascript:;" class="close">close</a>')
   
   $('a.close').click(function(){
      $('#head-nav li ul').hide();  	
   });
   
   $('a.nav-close').click(function(){
   	  $(this).parent().slideUp(400);
   });
       

/*
					$('#hnavDonate').toggle( 
						function () {
							$('#donate').fadeIn('fast');
					}, 
						function () {
							$('#donate').hide();
						}
					);
*/
					
					
				   
				   
				   

	/*$('#rotate').cycle({ 
		fx:    'fade',
		speed: 2000, 
		timeout: 5000, 
		delay: -2000 
	});*/

});

/*jQuery(document).ready(function() {
    jQuery('#news').jcarousel({
        vertical: true,
        scroll: 2
    });
});	*/

/*$(document).ready(function () {
	$('#photos').galleryView({
		panel_width: 412,
		panel_height: 297,
		frame_width: 57,
		frame_height: 44,
	});
});	*/
