function infoMessage() {
	$.blockUI({
		css: { 
			border: 'none', 
			padding: '15px', 
			backgroundColor: '#000', 
			'-webkit-border-radius': '10px', 
			'-moz-border-radius': '10px', 
			opacity: .6, 
			color: '#fff' 
		},
		message: '<div sytle=\"font-size:20pt; color:#fff; text-align:center; padding-top:30px; padding-bottom:20px;
		\">WATCH PRESSTV ON OTHER SOURCES</div>
		<div style=\"font-size:11pt; color:#fff; text-align:left; \">Press TV viewers in the UK can continue to watch
		the news channel via the following satellites or by visiting the following websites despite the British Office
		of Communications (Ofcom) removing the channel from the Sky platform.</div>',
		timeout: 3000
	});
	$('.blockOverlay').attr('title','Click to unblock').click($.unblockUI);
}

function LoadMessage() {
	$.blockUI({
		css: { 
			border: 'none', 
			padding: '15px', 
			backgroundColor: '#000', 
			'-webkit-border-radius': '10px', 
			'-moz-border-radius': '10px', 
			opacity: .6, 
			color: '#fff' 
		},
		message: '<h1 style=\"color:#fff;\">Loading news please wait...</h1>',
		timeout: 3000
	});
	$('.blockOverlay').attr('title','Click to unblock').click($.unblockUI);
}

function loadHomeNews(destdiv, cgiscript)
{
cgiscript="/cgi-bin/rss.py?"+cgiscript;
// alert(cgiscript);
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById(destdiv).innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",cgiscript,true);
xmlhttp.send();
}


function loadNews(destdiv, cgiscript)
{
cgiscript="/cgi-bin/news.py?"+cgiscript;
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById(destdiv).innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET",cgiscript,true);
xmlhttp.send();
}

