$(document).ready(function() {
		$('ul.sf-menu').superfish({
			delay:       800,                            // one second delay on mouseout
			animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation
			speed:       'fast',                          // faster animation speed
			autoArrows:  false,                           // disable generation of arrow mark-up
			dropShadows: false                            // disable drop shadows
		});
		
		
		// TOGGLE SCRIPT
		$(".hide").hide();
		
		$("a.read_more").click(function(event){
		//slideup or hide all the hide items
		$('.summary ul').slideUp(600);

		// expand the article
		$(this).parents(".summary").find(".hide").slideDown(600);
		// Stop the link click from doing its normal thing
		return false;
		}); // END TOGGLE


		// List hidden for 2009 ASX
		$(".hiddenlist09").hide();
		
		$("a.reveal09").click(function(event){
		//reveal
		$('.hiddenlist09').slideDown(600);

		// Stop the link click from doing its normal thing
		return false;
		}); // END TOGGLE
		
		$("a#tvc_vid_opener").fancybox({
		width: 700,
		height: 460,
		overlayOpacity: 0.7,
		overlayColor: '#000'
		});
		
		$("a#vid_opener").fancybox({
		width: 340,
		height: 260,
		overlayOpacity: 0.7,
		overlayColor: '#000'
		});
		
		
		$("#galleryThumbs a").fancybox({
				overlayOpacity: 0.7,
				overlayColor: '#000'
		});

		// slideshow functions
		
		$('.slideshow').cycle({
						timeout:       5000,
						pager:      '#pager_links',
						pagerClick: stopSlideshow
					});
		
		function stopSlideshow(){
		$('.slideshow').cycle('pause');
		}

		
	

			
}); // end doc init
