$(document).ready(function() {
			$("a#facebookPage").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'autoScale'     : true,
				'titlePosition'  : 'over',
				'type'          : 'iframe',
				'scrolling'		: 'yes',
				'centerOnScroll' : true,
				'height'		: 350,
				//'padding'       :  0
			});
			
			$("a.turntablesHuman").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'autoScale'     : false,
				'titlePosition'  : 'over',
				'type'          : 'iframe',
				//'scrolling'		: 'yes',
				'centerOnScroll' : true,
				'width'         : 400,
				'height'        : 720,
				//'padding'       :  0
			});
			
			$("a.turntablesShort").fancybox({
				'overlayShow'	: false,
				'transitionIn'	: 'fade',
				'transitionOut'	: 'fade',
				'autoScale'     : false,
				'titlePosition'  : 'over',
				'type'          : 'iframe',
				//'scrolling'		: 'yes',
				'centerOnScroll' : true,
				'width'         : 400,
				'height'        : 600,
				//'padding'       :  0
			});
			
			/*
			$("a.TestGallery").fancybox({
				'transitionIn'   : 'fade',
				'transitionOut'  : 'fade',
				'overlayShow'    : false,
				'titlePosition'  : 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
			*/
			$("a.Vimeo").fancybox({
        //'padding'       : 0,
        'autoScale'     : false,
        'overlayShow'   : true,
        'overlayOpacity': .9,
        'overlayColor' :  '#000000',
        'transitionIn'  : 'none',
        'transitionOut' : 'none',
        'width'         : 700,
        'height'        : 394,
        'centerOnScroll' : true,
        //'href'          : 'http://vimeo.com/moogaloop.swf?clip_id=22261669&amp;fullscreen=1&amp;color=ffffff',
        'type'          : 'swf',
        'swf'				:	{
            'wmode'             : 'transparent',
            'allowfullscreen'   : 'true'
        }
   			});
		});
		
function callFancy(my_href) {
			var j1 = document.getElementById("hiddenclicker");
			j1.href = my_href;
			$('#hiddenclicker').trigger('click');
		}
		
function callTurntableHuman(my_href) {
			var j1 = document.getElementById("tablehumanclicker");
			j1.href = my_href;
			$('#tablehumanclicker').trigger('click');
		}

function callTurntableShort(my_href) {
			var j1 = document.getElementById("tableshortclicker");
			j1.href = my_href;
			$('#tableshortclicker').trigger('click');
		}
