	var xmlHttp //variable
	
	//send the content
	function dynamicContent(genre,name)
	{ 
		xmlHttp=GetXmlHttpObject()
		if (xmlHttp==null)
		  { alert ("Please update your browser");
		  return;
		  } 
		var url="/kids/stacks/include/spscall.asp?genre=" + genre ;
	   //alert(url);
		xmlHttp.onreadystatechange=stateChanged;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
	} 
	
	//if it is complete, send the data to the ID
	function stateChanged() 
	{ 	if (xmlHttp.readyState==4)
		{	document.getElementById("BookShow").innerHTML=xmlHttp.responseText;
			attachCallouts();
		}
	}
	
	//Creat XML http Object
	function GetXmlHttpObject()
	{	var xmlHttp=null;
		try
		  {xmlHttp=new XMLHttpRequest();}
		catch (e)
		  { try
			{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
		  catch (e)
			{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
		  }
		return xmlHttp;
	}
	

