$('#relatedNodeWindowContent .panel-heading').mousedown(function () {
$(document).mousemove(function (ev) {
var event=window.event||ev;
$('#relatedNodeWindowContent').css('left',event.clientX-$('#relatedNodeWindowContent').width()/2+"px");
$('#relatedNodeWindowContent').css('top',event.clientY-$('#relatedNodeWindowContent .panel-heading').height()/2+"px");
});
$(document).mouseup(function (){
$(document).unbind('mousemove');
$(document).unbind('mouseup');
});
});