$(document).ready(function() {
$("#video").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;
});
});

// Gallery Thumbs
$(document).ready(function() {
			$("a[rel=lightbox[wbt]], a[rel=lightbox[ff]], a[rel=lightbox[ep]], a[rel=lightbox[iec]], a[rel=lightbox[gallery]], a[rel=lightbox[boatshow09]], a[rel=lightbox[cml]]").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
});


// Quote Form Hidden Content
$(document).ready(function() {
	$('#20ft_standard, #20ft_open_top, #20ft_flat_rack, #40ft_standard, #40ft_high_cube, #40ft_open_top, #40ft_flat_rack').hide();
	$('#container_type').change(function() {
	($(this).val() == "20ft_standard") ? 
	$('#20ft_standard').fadeIn('fast') : $('#20ft_standard').hide();
	($(this).val() == "20ft_open_top") ? 
	$('#20ft_open_top').fadeIn('fast') : $('#20ft_open_top').hide();
	($(this).val() == "20ft_flat_rack") ? 
	$('#20ft_flat_rack').fadeIn('fast') : $('#20ft_flat_rack').hide();
	($(this).val() == "40ft_standard") ? 
	$('#40ft_standard').fadeIn('fast') : $('#40ft_standard').hide();
	($(this).val() == "40ft_high_cube") ? 
	$('#40ft_high_cube').fadeIn('fast') : $('#40ft_high_cube').hide();
	($(this).val() == "40ft_open_top") ? 
	$('#40ft_open_top').fadeIn('fast') : $('#40ft_open_top').hide();
	($(this).val() == "40ft_flat_rack") ? 
	$('#40ft_flat_rack').fadeIn('fast') : $('#40ft_flat_rack').hide();
	});
	
});