function PopUpBuntFunk()
{
  var nwl = (screen.width-1000)/2;
  var nwh = (screen.height-600)/2;
  popUp=window.open('/livetool/?popup=1', 'buntfunk_live', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=600,left='+nwl+',top='+nwh+''); 
}

$(document).ready(function() {
	if($("div#newmusicaward ul.current").length > 0) {}
	else {
	$.ajax({
  	url: "/livetool/heartbeat",
  	cache: false,
  	dataType: "json",
  	success:
	function(data)
	{
		$.each(data, function(i)
		{	
			// Check tool status
			if (data.status == 'on')
			{
				// Auto PopUp Tool
				PopUpBuntFunk();
			}
		});
	}
	});
	}
});

function PopUpLivetoolSpezial()
{
  var nwl = (screen.width-1000)/2;
  var nwh = (screen.height-600)/2;
  popUp=window.open('/livetool_spezial/', 'livetool_live', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=600,left='+nwl+',top='+nwh+''); 
}

$(document).ready(function() {
	if($("div#newmusicaward ul.current").length > 0) {}
	else {
	$.ajax({
  	url: "/livetool_spezial/heartbeat",
  	cache: false,
  	dataType: "json",
  	success:
	function(data)
	{
		$.each(data, function(i)
		{	
			// Check tool status
			if (data.status == 'on')
			{
				// Auto PopUp Tool
				PopUpLivetoolSpezial();
			}
		});
	}
	});
	}
});
