$(document).ready(function() {

	$("#header_img").css("overflow", "hidden");

	$("ul#header_slides").cycle({
		fx: 'fade',
		pause: 0
	});

	
	$("a.c1").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',    // <--add a comma here
                  'swf'                 : {'wmode': 'transparent', 'allowfullscreen':'true'} // <-- flashvars here
                  });
                 return false;
     });

	 $("a.c2").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',    // <--add a comma here
                  'swf'                 : {'wmode': 'transparent', 'allowfullscreen':'true'} // <-- flashvars here
                  });
                 return false;
     });

	 $("a.c3").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',    // <--add a comma here
                  'swf'                 : {'wmode': 'transparent', 'allowfullscreen':'true'} // <-- flashvars here
                  });
                 return false;
     });




});
