// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */
$(document).ready(function (){
	Cufon.replace('h1, h3', {fontFamily: 'Helvetica Neue LT Pro', textShadow: '2px 2px 3px #000;', color: '-linear-gradient(#fdfbf6, 0.90=#f5e1a3, #fffbef)', hover: true, fontWeight: '750'});	
	Cufon.replace('h2, .big-no', {fontFamily: 'Helvetica Neue LT Pro', textShadow: '2px 2px 3px #000;', color: '-linear-gradient(#fdfbf6, 0.90=#f5e1a3, #fffbef)', hover: true, fontWeight: '400'});	


	Cufon.replace('nav ul li a, nav ul li', {fontFamily: 'Helvetica Neue LT Pro', textShadow: '1px 1px 0px #e4d197;', fontWeight: '400',
		hover: {
		textShadow: '1px 2px 0px #e4d197'
		}
	});	
});


$(document).ready(function(){
    $("a.video-modal").click(function() {
        $.fancybox({
                'padding' : 0,
                'autoScale' : false,
                'title' : this.title,
                'overlayOpacity' : '.85',
                'overlayColor' : '#111111',
                'transitionIn' : 'none',
                'transitionOut' : 'none',
                'centerOnScroll' : false,
                'showCloseButton' : true,
                'hideOnOverlayClick': true,
                'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
                'type' : 'swf',
                'swf' : {
                'wmode': 'transparent',
                'allowfullscreen': 'true'
                }
        });
        return false;
    });
    
    
    $("a[rel=news-group]").fancybox({
	'titlePosition'	: 'over'
	});

	$("a.news-photo").fancybox({
		'titlePosition'	: 'over'
	});
});


/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/


