
Shadowbox.init({
	skipSetup: 	true,
	players:		["flv", "iframe", "img"]
});



$(window).load(function() {
			 
	// Initialize videos used in site.
	
	//------------ Hands Only CPR 1: Demonstration Video -----------------
	$(".vid_handsOnlyCPR1").click(function(e){
		Shadowbox.open({
			content:"../../../video/handsonlypromoenglish.flv&plugins=sharing-1&sharing.link=http://handsonlycpr.org&dock=true&title=Hands-Only CPR Video",
			player:"flv",
			title:"Hands-Only<span style='font-size:.5em'>TM</span> CPR Demonstration Video",
			width:720,
			height:405
		});
		e.preventDefault();
	});
	
	//------------ Hands Only CPR 1-Spanish: Demonstration Video -----------------
	$(".vid_handsOnlyCPR1_sp").click(function(e){
		Shadowbox.open({
			content:"../../../video/handsonlypromospanish.flv&plugins=sharing-1&sharing.link=http://handsonlycpr.org&dock=true&title=Hands-Only CPR Spanish Video",
			player:"flv",
			title:"Hands-Only<span style='font-size:.5em'>TM</span> CPR Demonstration Video",
			width:720,
			height:405
		});
		e.preventDefault();
	});
	
			//------------ Hands-Only CPR 2: Sign Language -----------------
	$(".vid_handsOnlyCPR2").click(function(e){
		Shadowbox.open({
			content:"../../../video/aha_30_handsOnlyCPR.flv&plugins=sharing-1&sharing.link=http://handsonlycpr.org&dock=true&title=Hands-Only CPR Video",
			player:"flv",
			title:"Hands-Only<span style='font-size:.5em'>TM</span> CPR",
			width:720,
			height:405
		});
		e.preventDefault();
	});
	
	//------------ Behind the Scenes -----------------
	$(".vid_behindTheScenes").click(function(e){
		Shadowbox.open({
			content:"../../../video/mophonics-behindTheScenes.flv&plugins=sharing-1&sharing.link=http://handsonlycpr.org&dock=true&title=Hands-Only CPR Behind The Scenes",
			player:"flv",
			title:"Behind the Scenes",
			width:720,
			height:405
		});
		e.preventDefault();
	});
	
	//------------ Nothing Tricky -----------------
	$(".vid_nothingTricky").click(function(e){
		Shadowbox.open({
			content:"http://www.youtube.com/v/crMUyi3O-YI&hl=en&rel=0",
			player:"iframe",
			title:"Nothing Tricky",
			width:425,
			height:344
		});
		e.preventDefault();
	});
	//------------ Hands Only Handwalker Video -----------------
	$(".vid_handsOnlyWalker").click(function(e){
		Shadowbox.open({
			content:"../../../video/AHA_FINAL_HandWalker_viral.flv&plugins=sharing-1&sharing.link=http://handsonlycpr.org&dock=true&title=Hands-Only CPR HandWalker Video",
			player:"flv",
			title:"Hands-Only<span style='font-size:.5em'>TM</span> CPR Handwalker Video",
			width:720,
			height:405
		});
		e.preventDefault();
	});	
	//------------ Hands Only Handwalker TV Video -----------------
	$(".vid_handsOnlyWalkerTV").click(function(e){
		Shadowbox.open({
			content:"../../../video/AHA_FINAL_HandWalker_TV_30.flv&plugins=sharing-1&sharing.link=http://handsonlycpr.org&dock=true&title=Hands-Only CPR HandWalker TV Video",
			player:"flv",
			title:"Hands-Only<span style='font-size:.5em'>TM</span> CPR HandWalker TV Video",
			width:720,
			height:405
		});
		e.preventDefault();
	});	
	//------------ Print Ads -----------------
	$(".img_print1").click(function(e){
		Shadowbox.open({
			content:"images/printAd_Billboard-layout.gif",
			player:"img",
			title:"",
			width:962,
			height:439
		});
		e.preventDefault();
	});
	
		$(".img_print2").click(function(e){
		Shadowbox.open({
			content:"images/printAd_handsLayout.gif",
			player:"img",
			title:"",
			width:420,
			height:600
		});
		e.preventDefault();
	});

});

