/*
Javascript by electricSnow.co.uk, powered by jquery.com

Please feel free to borrow, steal, abduct, and/or torture the code 
contained in this file. Though you need not give credit to
electricsnow.co.uk, a comment in your source code would help other 
developers.

Stay hungry, Stay foolish.

For more info vist http://jquery.com - New Wave Javascript

*/

// Headers Flash Replacement
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');

jQuery(document).ready(function(){

	// External Links - New Window
	$("a[href^='http:']").not("[href*='www.wearecatch.com']").attr('target','_blank');
	
	// Initialise Cloak Email Address
	$('a.email').nospam({
		replaceText: true,
		filterLevel: 'normal'
	});
	
	// Samples Highlight
	$("#samples").hover(
		function() {}, 
		function() {        
			$('#samples>li').fadeTo("fast", 1.0); 
		}
	);
	$("#samples>li").hoverIntent(
		function(){
			$(this).attr('class', 'current'); // Add class .current
			$(this).siblings().fadeTo("fast", 0.3); // Fade other items to 30%
			$(this).fadeTo("slow", 1.0); // Fade current to 100%
		},
		function(){            
			$(this).removeClass("current"); // Remove class .current
			$(this).fadeTo("fast", 1.0); // This should set the other's opacity back to 100% on mouseout   
		}
	);

});
