

$(document).ready(function(){
						   
	/*----------Slideshow Initiation--------*/
	$(window).load(function() {
		$('.flexslider').flexslider({
                  animation: "slide",
		  controlsContainer: ".home_slideshow",
		  directionNav: true,
                  controlNav: false
	  });
	});
	
	/*-----------Hide Popups----------------*/
	$("#timeline_popup1").hide();
	$("#timeline_popup2").hide();
	$("#timeline_popup3").hide();
	$("#timeline_popup4").hide();
	
}); 


/*----------------------------------------------

	Function:  Shows popup
	
------------------------------------------------*/
function show_popup(num) {
	
	for(i = 1; i < 5; i++) {
		if(i != num) {
			$("#timeline_popup"+i).hide();	
		}
	}
	
	$("#timeline_popup"+num).fadeOut(0);
	$("#timeline_popup"+num).show();	
	$("#timeline_popup"+num).fadeIn("slow");
}

/*----------------------------------------------

	Function:  Hides current popup
	
------------------------------------------------*/

function hide_popup(num) {
		
		$("#timeline_popup"+num).fadeOut(0).stop();
		$("#timeline_popup"+num).hide();
}



