$(document).ready(function() {					   
  $(".twitter").hover(function(){
		$(".twitter").stop(true).fadeTo("fast", 0.6); // This sets the opacity to 100% on hover
		},function(){
		$(".twitter").stop(true).fadeTo("fast", 1.0); // This sets the opacity back to 60% on mouseout
	});
  
  $(".facebook").hover(function(){
		$(".facebook").stop(true).fadeTo("fast", 0.6); // This sets the opacity to 100% on hover
		},function(){
		$(".facebook").stop(true).fadeTo("fast", 1.0); // This sets the opacity back to 60% on mouseout
	});
  
  
  
   //slider
  $(".accWrap").each(function() {
		var wrap = $(this);
		var info = wrap.children(".accInfoBox");
		var header = info.children(".accHeader");
		header.bind("mouseenter mouseleave",
			function() {
				header.toggleClass("hover");
			}
		).click(function() {
			if(!wrap.hasClass("isAnimated")) {
				if(wrap.hasClass("isOpened")) {
					wrap.addClass("isAnimated");					
					info.animate(
						{"height":"0"},
						"slow",
						function() {
							wrap.removeClass("isAnimated").removeClass("isOpened");
							header.removeClass("hoverOpen");	
						}
					);
				}
				else {
					wrap.addClass("isAnimated");
					info.animate(
						{"height": parseInt(wrap.innerHeight()) - parseInt(info.css("padding-top"))+"px"},
						"slow",
						function() {
							wrap.removeClass("isAnimated").addClass("isOpened");
							header.addClass("hoverOpen");	
						}
						
					);
					
				}
			}
		});
	});  
  
  
  
 });
