function bindVideo(trigger_selector, dialog_selector)
{
    createDialog(
	dialog_selector, {
	width: 674, 
	closeOnEscape: true, 
	buttons: 
	gl_btnClose, 
	_defLast: true,
	_onClose: function(){
	    $(dialog_selector).html('&nbsp;');
	}
    });
    $(trigger_selector).click(function(){
    	var trigger = $(this);
    	var url = trigger.attr('href');
	$(dialog_selector).html(
	    '<div style="width:640; height:400;"><object width="640" height="390"><param value="'+url+
	    '" name="movie" /><param value="true" name="allowFullScreen" /><param value="always" name="allowscriptaccess" /><embed src="'+url+
	    '" width="640" height="390" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" ></embed></object></div>'
	).dialog('option', 'title', trigger.text()).dialog('open');
	return false;
    });
}
