$(document).ready(function(){
			$(".liveModal").fancybox({
				'width'				: '95%',
				'height'			: '95%',
		        'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'overlayOpacity'    : '0.9',
				'overlayColor'      : '#000',
				'centerOnScroll'    : false,
				'titleShow'			: false,
				'showCloseButton'   : true,
				'titlePosition'	    : 'inside',
				'enableEscapeButton': true,
				'type'				: 'iframe',
				'padding'			: 5,
				'margin'			: 5
			});



			$("a.modal").fancybox({
				'overlayOpacity'    : '0.8',
				'overlayColor'      : '#000',
				'centerOnScroll'    : false,
				'titleShow'			: false,
				'showCloseButton'   : true,
				'titlePosition'	    : 'inside',
				'enableEscapeButton': true,
				'autoDimensions'	: true,
				'scrolling'			: 'no',
				'padding'			: 0,
				'margin'			: 0
			});


			$(".video_modal").fancybox({
				'overlayOpacity'    : '0.9',
				'overlayColor'      : '#000',
				'centerOnScroll'    : false,
				'titleShow'			: false,
				'showCloseButton'   : false,
				'titlePosition'	    : 'inside',
				'enableEscapeButton': true,
				'autoDimensions'	: true,
				'scrolling'			: 'no',
				'padding'			: 5,
				'margin'			: 5
			});


			$(".img_modal, .mPreview").fancybox({
				'overlayOpacity'    : '0.7',
				'overlayColor'      : '#000',
				'centerOnScroll'    : false,
				'titleShow'			: true,
				'showCloseButton'   : true,
				'titlePosition'	    : 'inside',
				'enableEscapeButton': true,
				'autoDimensions'	: true,
				'scrolling'			: 'no',
				'padding'			: 10,
				'margin'			: 10
			});


			$("a.gallery").fancybox({
				'width'				: 510,
				'height'			: 330,
		        'autoScale'     	: false,
		        'transitionIn'		: 'none',
				'overlayOpacity'    : '0.5',
				'overlayColor'      : '#000',
				'enableEscapeButton': true,
				'centerOnScroll'    : true,
				'scrolling'		: 'no',
				'titleShow'		: false,
				'transitionOut'		: 'none'
			});


	$("#slideshow").easySlider({
		auto: true,
		continuous: true,
		nextId: "next",
		prevId: "previous",
		speed: 			800,
		pause:			3000
	});


	$(".info-box a.buyModalr").hover(function(){
		$(this).addClass('overflow_visible');
	},
	function(){
		$(this).removeClass('overflow_visible');
	})

	$(".purchase_top").click(function(){
		$("html").animate({scrollTop: "500"});
	})


	$('.tooltip').tooltip({ 
	    track: true, 
	    delay: 0, 
	    showURL: false, 
	    showBody: " - ", 
	    fade: 250 
	});

	jQuery(function () {
		var tabContainers = jQuery('div.tabs > div');

		jQuery('div.tabs ul.tabNav a').click(function () {
			tabContainers.slideUp();
			tabContainers.filter(this.hash).slideDown();
			jQuery('div.tabs ul.tabNav a').removeClass('selected');
			jQuery(this).addClass('selected');
			return false;
		}).filter(':first').click();
	});


});

