// JavaScript Document
$(document).ready(function() {
// flc functions
	$('#flc-plan').add('#flc-lifeevent').add('#flc-topic').add('#flc-links-results').dialog( {
			autoOpen: false,
			bgiframe: true,
			width: 600,
			modal: true
	});
	$('#flc-links-plan').click( function(){ 
		$('#flc-plan').dialog('open');
		return false;
	});
	$('#flc-links-event').click( function(){ 
		$('#flc-lifeevent').dialog('open');
		return false;
	});
	$('#flc-links-topic').click( function(){ 
		$('#flc-topic').dialog('open');
		return false;
	});
	$('#flc-links a[href=#flc-links-results]').click( function() {
		$('#flc-links-results').dialog('open');
		return false;
	});
	
	$('#screenshot-plan-menu li:nth-child(1)').find('a').click( function() {
		$('#screenshot-plan').find('div').hide();
		$('#flc-plan-img1').show();
		return false;
	});
	$('#screenshot-plan-menu li:nth-child(2)').find('a').click( function() {
		$('#screenshot-plan').find('div').hide();
		$('#flc-plan-img2').show();
		return false;
	});
	$('#screenshot-plan-menu li:nth-child(3)').find('a').click( function() {
		$('#screenshot-plan').find('div').hide();
		$('#flc-plan-img3').show();
		return false;
	});

	$('#screenshot-lifeevent-menu li:nth-child(1)').find('a').click( function() {
		$('#screenshot-lifeevent').find('div').hide();
		$('#flc-lifeevent-img1').show();
		return false;
	});
	$('#screenshot-lifeevent-menu li:nth-child(2)').find('a').click( function() {
		$('#screenshot-lifeevent').find('div').hide();
		$('#flc-lifeevent-img2').show();
		return false;
	});
	$('#screenshot-lifeevent-menu li:nth-child(3)').find('a').click( function() {
		$('#screenshot-lifeevent').find('div').hide();
		$('#flc-lifeevent-img3').show();
		return false;
	});
	
	$('#screenshot-topic-menu li:nth-child(1)').find('a').click( function() {
		$('#screenshot-topic').find('div').hide();
		$('#flc-topic-img1').show();
		return false;
	});
	$('#screenshot-topic-menu li:nth-child(2)').find('a').click( function() {
		$('#screenshot-topic').find('div').hide();
		$('#flc-topic-img2').show();
		return false;
	});

});