// This is used by the documents grid for launching dynamically created pop-overs.$(function() {	    $("div[rel=popover-window]").dialog({		bgiframe: true,		autoOpen: false,		height: 340,		width: 650,		modal: true,		draggable: true,		buttons: {			Close: function() {				jQuery(this).dialog('close');			}		},		open: function() {			this.scrollTop = 0;		},		close: function() {			// Things to do on pop-over close		}	});	    $("div[rel=popover-resizable]").dialog({		bgiframe: true,		autoOpen: false,		height: 340,		width: 650,		modal: true,		draggable: false,		resizable: true,		buttons: {			Close: function() {				jQuery(this).dialog('close');			}		},		open: function() {			this.scrollTop = 0;			//force the url to the title			if($('#'+this.id+' > .stall_holder_url'))			$('#'+this.id+' > .stall_holder_url').insertAfter('#ui-dialog-title-'+this.id);					},		close: function() {			// Things to do on pop-over close		}	});		$('a[rel=popover-link]').click(function() {		// Capture the pop-over trigger link URL		var lURLTemp	= this.href.split("#");		if (lURLTemp.length == 2) {			jQuery('#' + this.href.split("#")[1]).dialog('open');			return false;		} else {			alert("A problem occurred, the description window could not be launched.");		}	}); });
