function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
  
$(document).ready(function() {
	//Tooltips
	$(".tip_trigger").hover(function(){
		$(this).find('.tip').show(); //Show tooltip
	}, function() {
		$(this).find('.tip').hide(); //Hide tooltip		  
	}).mousemove(function(e) {
		  var mousex = e.pageX - 0; //Get X coodrinates
		  var mousey = e.pageY - 0; //Get Y coordinates
		  var tipWidth = $(this).find('.tip').width(); //Find width of tooltip
		  var tipHeight = $(this).find('.tip').height(); //Find height of tooltip
		 
		 //Distance of element from the right edge of viewport
		  var tipVisX = $(window).width() - (mousex + tipWidth); 
		  var tipVisY = $(window).height() - (mousey + tipHeight);
		  
	
	});
});
