
$(document).ready(function() {
																											
//
// External Links
//																									

function externalLinks() {  
   if (!document.getElementsByTagName) return;  
   var anchors = document.getElementsByTagName("a");  
   for (var i=0; i<anchors.length; i++) {  
      var anchor = anchors[i];  
      if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
         anchor.target = "_blank";  
   }  
}  
window.onload = externalLinks;

	//
	// DropDown menu
	//
	$('.nav ul ul').css({display: 'none'});
	
	$('.nav ul li').hover(function(){
		$(this).find('ul:first').css({
			visibility: 'visible',
			display: 'none'
		}).fadeIn('1000');
	},
	function(){
		$(this).find('ul:first').css({
			visibility: 'hidden'
		});
	});
	
		
	//
	// Social Hover
	//
	
	// Porfolio Fader	
$('ul.social_fader li')
		
		.mouseover(function(){
			$(this).stop().animate({"opacity" : ".25" }, {duration:1000})
		})
		
		.mouseout(function(){
			$(this).stop().animate({"opacity" : "1"}, {duration:1000, complete:function(){
			}})
	});	


/* Video Image Hover */
	
	$('.video-item a, .thumb li,.small-thumbs-item a').hover(function(){
		$('img', this).stop().animate({ opacity : 0.1 }, 400 );
		},
		function () {
			$('img', this).stop().animate({ opacity : 1 }, 400 );
		}
	);		

	});

