$(function() {
	
	DOL.Notification.init();

	$('.hl_video_overlay').click(function(e) {
		var target			= $(this),
			container_id	= $(target).attr('data-video-id'),
			video_width		= $(target).attr('data-video-width'),
			video_height	= $(target).attr('data-video-height'),
			xml_path		= $(target).attr('data-xml-path'),
			container_width = parseInt(video_width || com.principle.video.configGeneral.width);
		
		$('.popupWindow .lightBox').width(container_width);
		$('.popupWindow').css({ 'position': 'fixed', 'margin-top': '0' });
		if( $(target).attr('data-video-scroll') == 'true' ) {
			$('.popupWindow').css({ 'position': 'absolute', 'margin-top': $(document).scrollTop() });
		}
		
		DOL.Notification.open({
	        'title': '',
	        'details': '<div id="' + container_id + '"></div>',
	        'onClose': function() {
	        }
	    });
	    
	   swfobject.embedSWF("flash/bigPlayer.swf"
	   , container_id
	   , video_width
	   , video_height
	   , "9.0.0"
	   , "flash/expressInstall.swf"
	   , { 'xml_path' : xml_path}
	   , { 'allowfullscreen' : 'true', 'wmode' : 'transparent'}
	   );
		
		return false;
		
	});
	
})

