$(document).ready(function(){
	
	$(".youtube").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'		: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});	
	$(".press").fancybox({
				'width'				: '40%',
				'height'			: '40%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});


	
	$('.dropdowns h3').each(function() {
	    var tis = $(this), state = false, answer = tis.next('div').hide();
	    tis.click(function() {
	      state = !state;
	      answer.slideToggle(state);
	      tis.toggleClass('active',state);
	    });
	  });
	$("ul#left-nav li").first().addClass('first');
});
