

$(document).ready(function(){

	// Initialize menu items ----->

	// $(".menu-sub").hide(); // Hide sub menu items
	// $(".menu-sub.current").show(); // Show sub menu items that are selected
	// 
	// // Show/hide sub menu items ----->
	// 
	// $(".menu-column").hover(
	// 		function() {
	// 			$(this).children(".menu-sub").show();
	// 			$(this).children(".menu-sub, .menu-header").addClass("active"); // Add "active" class to selected item
	// 		},
	// 		function() {
	// 			$(this).children(".menu-sub").hide();
	// 			$(this).children(".menu-sub, .menu-header").removeClass("active"); // Remove "active" class to selected item
	// 			$(this).children(".menu-sub.current").show();
	// 		}
	// 	);
	
	
	// $("#index-frame").scrollLeft(650);
	// 	
	
	
	// $('.inline').fancybox({
	// 	centerOnScroll: true,
	// 	width: '95%',
	// 	scrolling: 'auto',
	// 	overlayColor: '#000',
	// 	overlayOpacity: .20,
	// 	margin: 10,
	// 	autoDimensions: true,
	// 	      'onStart' : function() {
	// 	        $("body").css({'overflow':'hidden'});
	// 	      },
	// 	      'onClosed' : function() {
	// 	        $("body").css({"overflow":"visible"});
	// 	      }
	// 	  });
	


//hover add-class	
	$( ".links").hover(
		function() {
			$(this).addClass("hover-nav");
		},
		function() {
			$(this).removeClass("hover-nav");
		}
	);
	
//hover add-class	
	$( ".post").hover(
			function() {
				$(this).addClass("selected hover-border");
				$("#container").children(".post").filter(':not(.selected)').fadeTo(200, 0.8); 
			},
			function() {
				$(this).removeClass("selected hover-border");
				$("#container").children(".post").filter(':not(.selected)').fadeTo(200, 1.0);
			}
		);
		
		
		
});

// $(document).ready(function(){
//     $("#index-frame").scrollTop(550);
// });


// 
// $(function() {
// 	// Set drag scroll on first descendant of class dragger on both selected elements
// 	$('#index-frame, #container').dragscrollable({dragSelector: '.dragger:first', acceptPropagatedEvent: true,});
//   });

	$(function(){
			if (document.location.hash) {
			       $(document.location.hash).fancybox().trigger('click');
				$("html, body").animate({ scrollTop: 0 }, "fast");
			}	
	});
	
	






