1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
$(document).ready(function(){

	$("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)

	$("ul.topnav li span").click(function() { //When trigger is clicked...

		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

		$(this).parent().hover(function() {
		}, function(){
			$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() {
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});

	$(".feature-1 a").click(function() {
		$("#slider").animate({
				marginTop: "0px"
		}, 900);
		$(".feature-1").addClass("selected");
		$(".feature-2").removeClass("selected");
		$(".feature-3").removeClass("selected");
		$(".feature-4").removeClass("selected");
		$(".feature-5").removeClass("selected");
	});
	
	$(".feature-2 a").click(function() {
		$("#slider").animate({
				marginTop: "-226px"
		}, 900);
		$(".feature-1").removeClass("selected");
		$(".feature-2").addClass("selected");
		$(".feature-3").removeClass("selected");
		$(".feature-4").removeClass("selected");
		$(".feature-5").removeClass("selected");
	});
	
	$(".feature-3 a").click(function() {
		$("#slider").animate({
				marginTop: "-452px"
		}, 900);
		$(".feature-1").removeClass("selected");
		$(".feature-2").removeClass("selected");
		$(".feature-3").addClass("selected");
		$(".feature-4").removeClass("selected");
		$(".feature-5").removeClass("selected");
	});
	
	$(".feature-4 a").click(function() {
		$("#slider").animate({
				marginTop: "-678px"
		}, 900);
		$(".feature-1").removeClass("selected");
		$(".feature-2").removeClass("selected");
		$(".feature-3").removeClass("selected");
		$(".feature-4").addClass("selected");
		$(".feature-5").removeClass("selected");
	});
	
	$(".feature-5 a").click(function() {
		$("#slider").animate({
				marginTop: "-904px"
		}, 900);
		$(".feature-1").removeClass("selected");
		$(".feature-2").removeClass("selected");
		$(".feature-3").removeClass("selected");
		$(".feature-4").removeClass("selected");
		$(".feature-5").addClass("selected");
	});
	
	$("#thumbs a").fancybox({
		'zoomSpeedIn': 0,
		'zoomSpeedOut': 0,
		'overlayShow': false
	}); 
	
});