//<![CDATA[
$(document).ready(function(){

// Cycle gallery
	$('#slideshow').cycle({ 
		fx:    'fade', 
		speed:  1000,
		timeout: 4000
		//width:	'1272'
	});
	
// content fade in
	$("#content").css(
		{"opacity": "0"}
		);	
	$('#content').animate(
		{"opacity": "1.0"},
		{duration: 1000}
		);
	
	
// Image Hovers:
	
// opacity onload
	$(".gallerycolumn p a img.alignleft").css(
		{"opacity": "0.5"}
		);	
// opacity hover
$(".gallerycolumn p a img.alignleft").hover(
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "0.5"},
				{duration: 750}
			);
	});
// opacity click
$(".gallerycolumn p a img.alignleft").click(
		function(){
			$(this).animate(
				{"opacity": "0.3"},
				{duration: 0}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 0}
			);
	});

// custom scrollbar
	$(function(){
		$('.scroll-pane').jScrollPane({
			scrollbarWidth:18,
			scrollbarMargin:20,
			wheelSpeed:40,
			showArrows: true
			});
	});

// archive menu hovers:
$(".gallerycolumn div.category-filmandtv p a img.alignleft").hover(
		function(){
			$("ul.nav li#film").addClass("hot");
		},
		function(){
			$("ul.nav li#film").removeClass("hot");
	});

$(".gallerycolumn div.category-commercials p a img.alignleft").hover(
		function(){
			$("ul.nav li#commercials").addClass("hot");
		},
		function(){
			$("ul.nav li#commercials").removeClass("hot");
	});

$(".gallerycolumn div.category-music p a img.alignleft").hover(
		function(){
			$("ul.nav li#music").addClass("hot");
		},
		function(){
			$("ul.nav li#music").removeClass("hot");
	});

$(".gallerycolumn div.category-stills p a img.alignleft").hover(
		function(){
			$("ul.nav li#stills").addClass("hot");
		},
		function(){
			$("ul.nav li#stills").removeClass("hot");
	});

$(".gallerycolumn div.category-showreel p a img.alignleft").hover(
		function(){
			$("ul.nav li#showreel").addClass("hot");
		},
		function(){
			$("ul.nav li#showreel").removeClass("hot");
	});

$(".gallerycolumn div.page p a img.alignleft").hover(
		function(){
			$("ul.nav li#contact").addClass("hot");
		},
		function(){
			$("ul.nav li#contact").removeClass("hot");
	});


// archive menu hover reversed
$("ul.nav li#film").hover(
		function(){
			$(".archive .gallerycolumn div.category-filmandtv p a img.alignleft").animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(".archive .gallerycolumn div.category-filmandtv p a img.alignleft").animate(
				{"opacity": "0.5"},
				{duration: 50}
			);
	});
$("ul.nav li#commercials").hover(
		function(){
			$(".archive .gallerycolumn div.category-commercials p a img.alignleft").animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(".archive .gallerycolumn div.category-commercials p a img.alignleft").animate(
				{"opacity": "0.5"},
				{duration: 50}
			);
	});
$("ul.nav li#music").hover(
		function(){
			$(".archive .gallerycolumn div.category-music p a img.alignleft").animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(".archive .gallerycolumn div.category-music p a img.alignleft").animate(
				{"opacity": "0.5"},
				{duration: 50}
			);
	});
$("ul.nav li#stills").hover(
		function(){
			$(".archive .gallerycolumn div.category-stills p a img.alignleft").animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(".archive .gallerycolumn div.category-stills p a img.alignleft").animate(
				{"opacity": "0.5"},
				{duration: 50}
			);
	});
$("ul.nav li#showreel").hover(
		function(){
			$(".archive .gallerycolumn div.category-showreel p a img.alignleft").animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(".archive .gallerycolumn div.category-showreel p a img.alignleft").animate(
				{"opacity": "0.5"},
				{duration: 50}
			);
	});
$("ul.nav li#contact").hover(
		function(){
			$(".archive .gallerycolumn div.page p a img.alignleft").animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(".archive .gallerycolumn div.page p a img.alignleft").animate(
				{"opacity": "0.5"},
				{duration: 50}
			);
	});


// h1 hover
/*$("h1 a").hover(
		function(){
			$(this).css(
				{"opacity": "0.25"},
				{duration: 50}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 750}
			);
	});*/

				
	// transparent hover Panel
	/*$(".slide").hover(
		function () {
		$(this).animate({"opacity": "0.7"}, {duration: "fast"});
		}, 
		function () {
		$(this).animate({"opacity": "1.0"}, {duration: "fast"});
		}
	);
	$("#navigation").hover(
		function () {
		$(this).animate({"opacity": "0.8"}, {duration: "fast"});
		}, 
		function () {
		$(this).animate({"opacity": "1.0"}, {duration: "fast"});
		}
	);*/

}); //close doc ready
//]]>
