//Load dojo 1.4 from the Google CDN
google.load("dojo", "1.4");

//This callback fires when page load is complete
google.setOnLoadCallback(function() {
	dojo.require("dijit.dijit");
	dojo.require("dijit.Dialog");
	
	function init()
	{
		var videoLink = dojo.byId("video-link");
		
		dojo.connect(videoLink,"onclick",function(){
			var videoPopup = new dijit.Dialog(
				{
					content: '<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/n2xcE10RirE&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/n2xcE10RirE&hl=en_US&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>'
				}
			);
			videoPopup.show();
		});
				
	}//init

	dojo.addOnLoad(init);
});//google.setOnLoadCallback
