function videoPopup(){
	this.shadowBoxObj = new shadowBox('div#shadowBox');
	this.flashContent = ''
	this.init();
}

videoPopup.prototype = {
	init: function(){
		var instance = this;
		$('a.video').click(function(){
			instance.shadowBoxObj.showShadowBox('demoVideo');
			instance.loadVideo();
		});
		
		$('div.shadowOverlay a.close').click(function(){
			instance.closeVideo(this);
		});
	},
	
	loadVideo: function(){
		$('div#demoFlashContent').html('<iframe width="853" height="480" src="http://www.youtube.com/embed/4TsIFyzwaAQ" frameborder="0" allowfullscreen></iframe>');
	},
	
	closeVideo: function(el){
		this.shadowBoxObj.hideShadowBox(el);
		$('div.demoFlashContent').html('');
	}
}
