var xmlHttp

function showMore(albumid,what)
{ 

xmlHttp=GetXmlHttpObject();

var div = document.getElementById('cover'+albumid);

//if ( what==1 ) {
//	var div = document.getElementById('trackid'+albumid);
//}




if (xmlHttp==null)
{
alert ("Your browser does not support AJAX!");
return;
} 


xmlHttp.onreadystatechange=function() {
var response;
var artistpage;

	if (xmlHttp.readyState==4)
	{ 
		if ( what == 5 ) {
			setTimeout(function(){ 
				div.innerHTML="";
				
			},5);
		} else {
		setTimeout(function(){ 
			response = xmlHttp.responseText; 
			//div.innerHTML="";
			div.innerHTML=response;
			
			if ( what == 2 ) {
				//div.innerHTML="";
			}
		},500);
		}
		
			
	}
}

xmlHttp.open("POST",live_site+"showmore/"+albumid+"/"+what);
xmlHttp.send(null);
}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}
