//Javascript

//--- --- --- --- MAIN PAGE

$(document).ready(function()
{
 	$('#header_container').delay('300').fadeIn('slow'); 
	$('#header_main').delay('300').fadeIn('slow');
	
	$('#main_container').delay('600').fadeIn('slow');
	
	/*
$('#footer_container').delay('300').fadeIn('slow');
	$('#footer_underline').delay('300').fadeIn('slow');	
*/
	$('#footer_bottom').delay('300').fadeIn('slow');	

});

//--- HOVER --- //

$(document).ready(function()
{  
	$("#nic").hover(function(event)
	{
		$(this).addClass("increaseWeight");
	},
	function(event)
	{
		$(this).removeClass("increaseWeight");
	});

	$("#film").hover(function(event)
	{
		$(this).addClass("increaseWeight");
	},
	function(event)
	{
		$(this).removeClass("increaseWeight");
	});
	
	$("#reel").hover(function(event)
	{
		$(this).addClass("increaseWeight");
	},
	function(event)
	{
		$(this).removeClass("increaseWeight");
	});
	
	$("#photos").hover(function(event)
	{
		$(this).addClass("increaseWeight");
	},
	function(event)
	{
		$(this).removeClass("increaseWeight");
	});
	
	$("#design").hover(function(event)
	{
		$(this).addClass("increaseWeight");
	},
	function(event)
	{
		$(this).removeClass("increaseWeight");
	});
	$("twitter").hover(function(event)
	{
		$(this).addClass("imgReplace");
	},
	function(event)
	{
		$(this).removeClass("imgReplace");
	});
});

// --- CLICK --- //

$(document).ready(function()
{  
	$("#film").click(function()
	{
		$("#thumb").fadeIn("fast");
	});
	
	$("#reel").click(function()
	{
		$("#reel_container").fadeIn("fast");
	});
});

//--- --- --- --- FILM

/*$(document).ready(function()
{  
	$("a#clip1").hover(function(event)
	{
		$('#clipdesc_container.desc1').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc1').stop(true, true).fadeOut('5000');
	});
	
	$("a#clip2").hover(function(event)
	{
		$('#clipdesc_container.desc2').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc2').stop(true, true).fadeOut('5000');
	});
	
	$("a#clip3").hover(function(event)
	{
		$('#clipdesc_container.desc3').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc3').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip4").hover(function(event)
	{
		$('#clipdesc_container.desc4').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc4').stop(true, true).fadeOut('2000');

	});
	
	$("a#clip5").hover(function(event)
	{
		$('#clipdesc_container.desc5').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc5').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip6").hover(function(event)
	{
		$('#clipdesc_container.desc6').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc6').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip7").hover(function(event)
	{
		$('#clipdesc_container.desc7').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc7').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip8").hover(function(event)
	{
		$('#clipdesc_container.desc8').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc8').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip9").hover(function(event)
	{
		$('#clipdesc_container.desc9').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc9').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip10").hover(function(event)
	{
		$('#clipdesc_container.desc10').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc10').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip11").hover(function(event)
	{
		$('#clipdesc_container.desc11').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc11').stop(true, true).fadeOut('2000');
	});
	
	$("a#clip12").hover(function(event)
	{
		$('#clipdesc_container.desc12').stop(true, true).delay('600').fadeIn('1000');
	},
	function(event)
	{
		$('#clipdesc_container.desc12').stop(true, true).fadeOut('2000');
	});
});*/

$(document).ready(function() 
{
	$("a[rel=video]").fancybox();
});


//--- --- --- --- REEL


//--- --- --- SHADOWBOX

window.onload = function()
{
	Shadowbox.setup("a.image", 
	{
		gallery:			"images",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		overlayColor:		"#000"	
	});
	
	Shadowbox.setup("a.video", 
	{
		gallery:			"Film",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		
		height: 400,
		width: 700,
		
		overlayColor:		"#000"	
	});

/*
//	TIME TRAVELLER
	Shadowbox.setup("a.vimeo1",
	{
		gallery:			"Film",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		overlayColor:		"3b6088",
		
		height:     		540,
        width:      		950,
        flashVars:  
		{
            clip_id:    	"7148474",
		}	
	});
	
	//DAILY GRILL 1
	Shadowbox.setup("a.vimeo2",
	{
		gallery:			"Film",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		overlayColor:		"3b6088",
		
		height:     		360,
        width:      		640,
        flashVars:  
		{
            clip_id:    	"11390798",
		}	
	});
	//DAILY GRILL 2
	Shadowbox.setup("a.vimeo3",
	{
		gallery:			"Film",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		overlayColor:		"3b6088",
		
		height:     		360,
        width:      		640,
        flashVars:  
		{
            clip_id:    	"11390878",
		}	
	});
	
	Shadowbox.setup("a.vimeo4",
	{
		gallery:			"Film",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		overlayColor:		"3b6088",
		
		height:     		360,
        width:      		640,
        flashVars:  
		{
            clip_id:    	"14049397",
		}	
	});
/*
	Shadowbox.setup("a[title='Carversations: Interrupted Teaser']",
	{
		gallery:			"Film",
		autoplayMovies:		true,
		handleOversize: 	"resize",
		handleUnsupported:	"link",
		overlayColor:		"#3b6088",
		
		height:     		360,
        width:      		640,
		
		flashVars:
		{
			autoplay:		"1",
			controlbar:		"over",
			backcolor: 		"CCCCFF",
			frontcolor:		"000033",
			lightcolor:		"FFFFFF"
		}
	});*/
}


// TWITTER
























