jQuery(document).ready(function() {

	$('#gallery').imgScroll({
		'animationSpeed'		:500,
		'animateScroll'			:true, 
		'arrowButtonSpeed'		:155, 
		'autoplay'				:true, 
		'autoplayInterval'		:10000, 
		'cycle'					:true, 
		'descriptionContainer'	:'.main_description', 
		'imagePreloader'		:'images/37.gif', 
		'keyboardNavigation'	:true,  
		'lightbox'				:false,
		'mainImageContainer'	:'.main_image', 
		'mouseNavigation'		:true, 
		'mouseWheelSpeed'		:155, 
		'thumbCaption'			:true, 
		'thumbsContainer'		:'.thumbnail', 
		'transition'			:'slide', 
		'transitionEasing'		:'swing'
		});
	
	$(".homeSlider").fancybox({
			'padding'			: 0,
			'titlePosition'     : 'over',
			'transitionIn'	:	'fade',
			'transitionOut'	:	'fade',
			'speedIn'		:	600, 
			'speedOut'		:	200, 
		});


//FANCYBOX

	$("a.grouped_elements").fancybox({
			'padding'			: 0,
			'titlePosition'     : 'over',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	

    $(".wired").click(function() {
		$.fancybox([
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/105-Wired-Behind-Scenes-6057-1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/106-Wired-Behind-Scenes-6186-1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/113-Wired-Behind-Scenes-6093-1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/274-Wired-Behind-Scenes-6480_1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/276-Wired-Behind-Scenes-6497_1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/144-Wired-Behind-Scenes-6182-1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/158-Wired-Behind-Scenes-6228-1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/435-CES-Wired-Day2-6873_1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/337-CES-Wired-Day2-6687_1.jpg',
				'title'	: 'AMD and Wired at CES 2011',
			},
			{
				'href'	: 'images/eventPhotos/amdWiredCES2011/139-Wired-Behind-Scenes-6169-1.jpg',
				'title'	: 'AMD and Wired at CES 2011'
			}
		], {
			'padding'			: 0,
			'titlePosition'     : 'over',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});


    $(".kbis").click(function() {
		$.fancybox([
			{
				'href'	: 'images/eventPhotos/hwsKBIS2011/Rendering1.jpg',
				'title'	: 'Hanwha Surfaces at KBIS 2011',
			},
			{
				'href'	: 'images/eventPhotos/hwsKBIS2011/Rendering2.jpg',
				'title'	: 'Hanwha Surfaces at KBIS 2011',
			},
			{
				'href'	: 'images/eventPhotos/hwsKBIS2011/Rendering3.jpg',
				'title'	: 'Hanwha Surfaces at KBIS 2011',
			},
			{
				'href'	: 'images/eventPhotos/hwsKBIS2011/boothPhoto2.jpg',
				'title'	: 'Hanwha Surfaces at KBIS 2011',
			},
			{
				'href'	: 'images/eventPhotos/hwsKBIS2011/11-468-26_4693.jpg',
				'title'	: 'Hanwha Surfaces at KBIS 2011',
			},
			{
				'href'	: 'images/eventPhotos/hwsKBIS2011/11-468-26_3973.jpg',
				'title'	: 'Hanwha Surfaces at KBIS 2011',
			}
		], {
			'padding'			: 0,
			'titlePosition'     : 'over',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});

		$("a.youtube").fancybox({
			'transitionIn' : 'elastic',
			'padding' : 0,
			'autoScale' : false,
			'transitionOut' : 'fade',
			'width' : 680,
			'height' : 495,
			'type' : 'swf'
			});



});

