$(document).ready(function() {
	// Phase 2 video fancybox feature internal pages
	$("a.memberVid").fancybox({
		'padding': 10,
		'zoomOpacity': true,
		'zoomSpeedIn': 500,
		'zoomSpeedOut': 500,
		'zoomSpeedChange': 300,
		'overlayShow': true,
		'overlayOpacity': 0.7,
		'enableEscapeButton': true,
		'hideOnOverlayClick': true,
		'hideOnContentClick': false,
		'autoScale'     	: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'width':  720,
		'height':  450,
		'overlayColor': "#f8e3c6"	
	});	
	
	
	// Fancybox video feature About Page
	$("#videoIPAbout").fancybox({
		'padding'		: 0,
		'autoScale'		: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'title'			: this.title,
		'width'			: 854,
		'height'		: 480,
		'centerOnScroll': true,
		'overlayColor': "#f8e3c6",
		'href'			: '/esarvhp/flash/YoutubeAPI.swf',
		//'href' : 'player.swf?file=/uploadz/test.mp3&autostart=true',
		'type'			: 'swf',					
		'swf'			: {
							'wmode'		: 'transparent',
							'allowfullscreen'	: 'true',
							'flashvars' :'ytSwf=http://www.youtube.com/apiplayer?version=3&ytVideo=MzzMyOXX7oM&ytTranscript=/pages/transcript-MzzMyOXX7oM.html&ytTitle=ESAR-VHP - Melody Brent Testimonial'
						  }
	});
	
		// Fancybox video feature Employers Page
	$("#videoIPEmploy").fancybox({
		'padding'		: 0,
		'autoScale'		: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'title'			: this.title,
		'width'			: 854,
		'height'		: 480,
		'centerOnScroll': true,
		'overlayColor': "#f8e3c6",
		'href'			: '/esarvhp/flash/YoutubeAPI.swf',
		//'href' : 'player.swf?file=/uploadz/test.mp3&autostart=true',
		'type'			: 'swf',					
		'swf'			: {
							'wmode'		: 'transparent',
							'allowfullscreen'	: 'true',
							'flashvars' :'ytSwf=http://www.youtube.com/apiplayer?version=3&ytVideo=-3TexpzUVus&ytTranscript=/pages/transcript-3TexpzUVus.html&ytTitle=ESAR-VHP - Asim Javid Testimonal'
						  }
	});
	
		//  Fancybox video feature Health Professionals Page
	$("#videoIPHealth").fancybox({
		'padding'		: 0,
		'autoScale'		: false,
		'transitionIn'	: 'none',
		'transitionOut'	: 'none',
		'title'			: this.title,
		'width'			: 854,
		'height'		: 480,
		'centerOnScroll': true,
		'overlayColor': "#f8e3c6",
		'href'			: '/esarvhp/flash/YoutubeAPI.swf',
		//'href' : 'player.swf?file=/uploadz/test.mp3&autostart=true',
		'type'			: 'swf',					
		'swf'			: {
							'wmode'		: 'transparent',
							'allowfullscreen'	: 'true',
							'flashvars' :'ytSwf=http://www.youtube.com/apiplayer?version=3&ytVideo=9gitO-FIb2I&ytTranscript=/pages/transcript-9gitO-FIb2I.html&ytTitle=ESAR-VHP - Trish Benarth Testimonal'
						  }
	});
});


