// Accordion
$(document).ready(function() {
	$("#Accordion" ).accordion();
});

// Accordion buttons
$(document).ready(function(){
	$(".ItemNav").animate({"opacity": "0"}, "slow");
	$(".ItemWrap").hover(
		function() {
			$(".ItemNav").stop().animate({"opacity": "1"});
		},
		function() {
			$(".ItemNav").stop().animate({"opacity": "0"});
		}); 
});    

// jQuery Realistic Hover Effect / Created by Adrian Pelletier: http://www.adrianpelletier.com
$(document).ready(function() {

	// Append span to each LI to add reflection
	$("#Social li").append("<span></span>");	
	
	// Animate buttons, move reflection and fade
	$("#Social li a").hover(function() {
	    $(this).stop().animate({ marginTop: "-8px" }, 200);
	    $(this).parent().find("span").stop().animate({ marginTop: "10px", opacity: 0.30 }, 200);
	},function(){
	    $(this).stop().animate({ marginTop: "0px" }, 300);
	    $(this).parent().find("span").stop().animate({ marginTop: "0px", opacity: 1 }, 300);
	});

});

// Social Tooltip
$(document).ready(function(){
	$("#Social li a").hover(function() {
		$(this).next("em").animate({opacity: "show", top: "-55"}, "normal");
	}, function() {
		$(this).next("em").animate({opacity: "hide", top: "-40"}, "normal");
	});
});

// Dropdown Form
$(document).ready(function(){
	$(".Btn-Slide").click(function(){
		$(".ContactWrap").slideToggle("fast");
		$(this).toggleClass("Active"); return false;
	});	 
});

// Target _Blank Links
$(document).ready(function() {
	$(".ItemNav a.R").attr("target","_blank");
});

// Fancybox
$(document).ready(function() {
	$(".ItemNav a.L").fancybox({
		'titleShow'	: false
	});
});
