var xmlHttp
var country = "Australia"
//var homepage = "section=Australia-Entertainment"
//var pathtofopen = "http://syndicate.generationq.net/"

var homepage = "http://lotl.generationq.net/"
var pathtofopen = "http://lotl.web105.com/syndicate/fopen.php"


function fetchArticle(slug) {

	xmlHttp = GetXmlHttpObject()
	if(xmlHttp==null) {
		alert("Your browser does not support this feature.")
		return;
	}
	var url=pathtofopen+"fopen.php?val="+slug
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function fetchArticleHome() {

	xmlHttp = GetXmlHttpObject()
	if(xmlHttp==null) {
		alert("Your browser does not support this feature.")
		return;
	}
	var url=pathtofopen+"fopen.php?val="+homepage
	xmlHttp.onreadystatechange=stateChanged 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("articleview").innerHTML=xmlHttp.responseText 
} 
} 

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
try { objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP") }
catch (e) { objXMLHttp=new ActiveXObject("Msxml2.XMLHTTP"); }
}
return objXMLHttp
} 

function hovers(obj) {
	obj.style.cursor="hand";
	obj.style.color="orange";
}

function unhovers(obj) {
	obj.style.cursor="";
	obj.style.color="";
}