	// This section begins the data held in the "objMLB" object
	// Normally, this would be in a database and would be available via Ajax or some other method
	/*var url="http://" + top.location.host + "/Community Council Health Systems/manage_slider.php";
	
	$j.get(url, {},
                function(data){
                        //$("#sub_category").html(data);
					//	alert(data);
					var j=0;
					objMLB.descText[0]="";
					objMLB.descText[1]="";
					objMLB.descText[2]="";
					objMLB.descText[3]="";
						for(i=0;i<data.length;i++)
						{
							
							if(data[i]=='-' && data[i+1]==',')
							{
									j=j+1;
									i=i+1;
							}
							else
							{
								objMLB.descText[j]=objMLB.descText[j]+data[i];
							}
						}
						//objMLB.descText=data;
						//objMLB.descText[0].SetText("yes");
						alert(objMLB.descText[0].innerHTML);
        });*/
	function getFilter(str)
{ 
//alert(str);
//alert(str1);
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="manage_slider.php"
url=url+"?menu="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 { 
 //alert(xmlHttp.responseText);
 document.getElementById("long-desc").innerHTML=xmlHttp.responseText 
 } 
}

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;
}
	var objMLB = {
		headlineText: [
			"Perfect prescription: History for Doc in Miami",
			"Thome moves up list on homer-happy afternoon",
			"Among mound masters, Rays' Davis stands out",
			"Extra-inning wins cap sweeps for O's, Rangers",
			"Just add votes: Time to fill in 2010 All-Star ballot",
			"MLB Tonight is there six days a week, all season"
		], // headlineText
		
		smallCaption: [
			"Roy Halladay struck out 11 Marlins batters and threw 115 pitches Saturday.",
			"Thome had one of 20 Twins hits; Soriano, Ethier and Ramirez each drove in four runs. (AP)",
			"Davis yielded three hits; Carpenter fanned eight; Verlander went 8 1/3; Chacin allowed one hit. (AP)",
			"Ty Wigginton doubled in Nick Markakis to win it; David Murphy's sac fly put Texas on top. (AP)",
			"In the American League, 14 first basemen are competing to start in the 81st All-Star Game.",
			"MLB Network delves into the major baseball issues weeknights at 6 p.m. ET and Sundays at 5 p.m."
		], // smallCaption

		descText: [] // descText
	}; // objMLB ends here
