function gb_popup(myTarget, myContent, myPositions) {
	myContent.hide();
	myTarget.bt({
		trigger: ['mouseover','click'],
		postShow: function(box){
			var contentOver = false;
			jQuery('.bt-wrapper').bind('mouseover',function() { contentOver = true; });
			jQuery('.bt-wrapper').bind('mouseleave',function() { contentOver = false; setTimeout(function() { jQuery(box).hide(); }, 200); });
			myTarget.bind('mouseleave',function() { setTimeout(function() { if(!contentOver) jQuery(box).hide(); }, 200); });
		},
		contentSelector: function(box){
			return myContent.html(); /*get text of inner content of hidden div*/
		},
		width: 315,
		fill: '#FFF',
		spikeLength: 10,
		spikeGirth: 25,
		strokeWidth: 1, 
		strokeStyle: '#000',
		padding: 10,
		cornerRadius: 10,
		closeWhenOthersOpen: true,
		shadow:           true,                 
		shadowOffsetX:    10,                     
		shadowOffsetY:    10,                     
		shadowBlur:       0, 
		shadowColor:      '#999', 
		cssClass: 'sidebar-popup',
		positions: myPositions
	});	
};

