function myXML(someVarComing)
{
	if(someVarComing == '0')
	{
		clearThePageFunction();
		myMakeVisibleHiddenFunc('4');

		var thenewssubmenu = document.getElementById('newssubmenu');
		if(thenewssubmenu.style.visibility == 'visible')
		{
			thenewssubmenu.style.visibility = 'hidden';
		}

		someNumberComing = '2';
		myBgDiv = document.getElementById('autismlogo');
		myBgDiv.innerHTML = '';
		myBgDiv.innerHTML = '<img src="images/bg0.jpg" usemap="#bg" border="0" alt="Autism the Musical">';
		
		loadXMLDoc('xml/news2a.xml');
		newss = xml_doc.getElementsByTagName("news");
		entrys = xml_doc.getElementsByTagName("entry");

			if(navigator.appName == 'Microsoft Internet Explorer')
			{	
		theDiv = document.getElementById('contentHoldingDiv4');
		theDiv.style.visibility = 'visible';
		theDiv.innerHTML = '';
		theDiv.innerHTML += '<table bgcolor="#000000" cellpadding="0" cellspacing="0" border="0">';
		theDiv.innerHTML += '<tr>';
		theDiv.innerHTML += '<td colspan=3 valign=bottom></td>';
		theDiv.innerHTML += '</tr>';		
		theDiv.innerHTML += '<tr bgcolor="#000000">';
		theDiv.innerHTML += '<td valign=bottom align=right height="100%"></td>';
		theDiv.innerHTML += '<td width=400px bgcolor="#000000" style="color: #FFFFFF; font-family:Century Gothic, Arial, Helvetica, sans-serif; font-size: 12px; ">' + entrys[someNumberComing].childNodes[0].nodeValue + '</td>'
		theDiv.innerHTML += '<td valign=bottom align=left height="100%"></td>';
		theDiv.innerHTML += '</tr>';
		theDiv.innerHTML += '<tr>';
		theDiv.innerHTML += '<td colspan=3 valign=top><div></div></td>';
		theDiv.innerHTML += '</tr>';			
		theDiv.innerHTML += '</table>';


		document.getElementById('receiveInfo').style.width = '350px';
		document.getElementById('sample').style.width = '350px';		
		document.getElementById('sample1').style.width = '350px';
		document.getElementById('sample2').style.width = '350px';
		document.getElementById('sample3').style.width = '350px';
		document.getElementById('sample4').style.width = '350px';
		document.getElementById('sample5').style.width = '350px';
		document.getElementById('sample6').style.width = '350px';
		document.getElementById('sample7').style.width = '350px';
		document.getElementById('sample8').style.width = '350px';
		document.getElementById('sample9').style.width = '350px';
		document.getElementById('sample10').style.width = '350px';
		document.getElementById('sample11').style.width = '350px';
		document.getElementById('sample12').style.width = '350px';
			}
			else
			{
		theDiv = document.getElementById('contentHoldingDiv4');
		theDiv.setAttribute('style','visibility: visible;');
		myTable = document.createElement('table');
		myTable.setAttribute('bgcolor','#000000');
		myTable.setAttribute('cellpadding','0');
		myTable.setAttribute('cellspacing','0');
		myTd = document.createElement('td');
		myTd.setAttribute('style','font-size: 10px; width:400px; background-color:#000000;color:#FFFFFF; padding: 0; margin: 0; white-space:inherit; font-family:Century Gothic, Arial, Helvetica, sans-serif; font-size: 12px;');
		myTd.setAttribute('valign','top');
		myTr = document.createElement('tr');
		myTr.setAttribute('bgcolor','#000000');

		myTrTop = document.createElement('tr');
		myTrBottom = document.createElement('tr');

		myTdTop = document.createElement('td');
		myTdTop.setAttribute('colspan','3');
		myTdTop.setAttribute('style','padding: 0; margin: 0;');
		myTdTop.setAttribute('valign','bottom');		
		myTdBottom = document.createElement('td');
		myTdBottom.setAttribute('colspan','3');
		myTdBottom.setAttribute('style','padding: 0; margin: 0;');
		myTdBottom.setAttribute('valign','top');

		myLeftImageTd = document.createElement('td');
myLeftImageTd.setAttribute('style','padding: 0; margin: 0; background-color:#000000; width:15px;position:relative; left:2px;');
		myLeftImageTd.setAttribute('valign','top');
		myLeftImageTd.setAttribute('width','15px');
		myLeftImageTd.setAttribute('align','right');

		myRightImageTd = document.createElement('td');
myRightImageTd.setAttribute('style','padding: 0; margin: 0; background-color:#000000; width:17px;');
		myRightImageTd.setAttribute('valign','top');
		myRightImageTd.setAttribute('width','17px');
		myRightImageTd.setAttribute('align','left');

		theDiv.innerHTML = '';

		theDiv.appendChild(myTable);
		myTable.appendChild(myTrTop);
		myTrTop.appendChild(myTdTop);
		myTable.appendChild(myTr);
		myTr.appendChild(myTd);
			if(navigator.userAgent.indexOf("Firefox")!=-1)
			{
myTd.innerHTML += '<p>' + entrys[someNumberComing].textContent + '</p>';
			}
			else
			{
myTd.innerHTML += '<p>' + entrys[someNumberComing].childNodes[0].nodeValue + '</p>';
			}
		myTable.appendChild(myTrBottom);
		myTrBottom.appendChild(myTdBottom);
			}
	

	}
	else if(someVarComing == '1')
	{
		clearThePageFunction();
		myMakeVisibleHiddenFunc('1');

		var thenewssubmenu = document.getElementById('newssubmenu');
		if(thenewssubmenu.style.visibility == 'visible')
		{
			thenewssubmenu.style.visibility = 'hidden';
		}

		loadXMLDoc('xml/about2.xml');
		abouts = xml_doc.getElementsByTagName("about");
		bodys = xml_doc.getElementsByTagName("body");
		
		theDiv = document.getElementById('contentHoldingDiv');
		theDiv.innerHTML = '';

		myBgDiv = document.getElementById('autismlogo');
		myBgDiv.innerHTML = '';
		myBgDiv.innerHTML = '<img src="images/bg_about.jpg" usemap="#bg" border="0" alt="Autism the Musical">';

		for(var i = 0; i < bodys.length; i++)
		{
	  		if (bodys[i].nodeType==1)
			{ 
				theDiv.innerHTML += "<div style='position: relative; left: 0px; top: 0px; font-family:Century Gothic, Arial, Helvetica, sans-serif; font-size: 12px; width: 380px;  text-align:justify; white-space:normal; color: #FFFFFF;'>" + bodys[i].childNodes[0].nodeValue + "</div>";
			}
		}

	
}
	else if(someVarComing == '2')
	{
		clearThePageFunction();
		myMakeVisibleHiddenFunc('1');

		var thenewssubmenu = document.getElementById('newssubmenu');
		if(thenewssubmenu.style.visibility == 'visible')
		{
			thenewssubmenu.style.visibility = 'hidden';
		}

		loadXMLDoc('xml/cast2a.xml');
		casts = xml_doc.getElementsByTagName("cast");
		members = xml_doc.getElementsByTagName("member");

			myNameBg = new Array('adam','henry','lexi','neal','wyatt','elaine');
			var mytopArray = new Array('0','0','0','150','150','150');
			var myleftArray = new Array('0','130','260','0','130','260');
			var mycastNameArray = new Array();
			var mycastTextArray = new Array();
			var mycastFrameColorArray = new Array();
			var mycastPictureArray = new Array();

		theDiv = document.getElementById('contentHoldingDiv');
		theDiv.innerHTML = '';

		myBgDiv = document.getElementById('autismlogo');
		myBgDiv.innerHTML = '';
		myBgDiv.innerHTML = '<img src="images/bg_cast.jpg" usemap="#bg" border="0" alt="Autism the Musical">';

		for(var i = 0; i < members.length; i++)
		{
	  		if (members[i].nodeType==1)
			{ 
			Membersvar = members.item(i);
			// alert('getshere');
		   attr1 = Membersvar.getAttribute("name");
		   attr2 = Membersvar.getAttribute("picture");
			attr3 = Membersvar.getAttribute("frame_color");

			mycastNameArray[i] = "" + attr1;
			mycastTextArray[i] = "" + members[i].childNodes[0].nodeValue;
			mycastFrameColorArray[i] = "" + attr3;
			mycastPictureArray[i] = "" + attr2;

			if(navigator.appName == 'Microsoft Internet Explorer')
			{
			theDiv.innerHTML += "<a href=javascript:myCastDetails('"+i+"'); style='text-decoration:none;'><div onclick=javascript:myCastDetails('"+i+"'); style='width:105px; height:105px; cursor:pointer; cursor:hand; position:absolute; top:" + mytopArray[i] + "px; left: " + myleftArray[i] +"px;text-decoration:none;'><img src='"+ attr2 +"' style='width:105px;height:105px;position:absolute;left:15px;top:15px;text-decoration:none;');''></div></a>";
			}
			else
			{
			theDiv.innerHTML += "<a href=javascript:myCastDetails('"+i+"'); style='text-decoration:none;'><div style='width:105px; height:105px; position:absolute; top:" + mytopArray[i] + "px; left: " + myleftArray[i] +"px;text-decoration:none;'><img src='"+ attr2 +"' border='0' style='width:105px;height:105px;position:absolute;left:15px;top:15px;text-decoration:none;margin:0;padding:0;'></div></a>";
			}

/* <p style=position:relative;top:120px;left:50px;color:#FFFFFF;font-family:Century Gothic, Arial, Helvetica, sans-serif; font-size: 12px;font-weight:bold;>"+attr1+"</p> */

			var mycontentHoldingDiv = document.getElementById('contentHoldingDiv');
			mycontentHoldingDiv.innerHTML += "<input type=hidden id=castname"+i+" value="+mycastNameArray[i]+">";
			//mycontentHoldingDiv.innerHTML += "<input type=hidden id=casttext"+i+" value="+members[i].childNodes[0].nodeValue+">";
			mycontentHoldingDiv.innerHTML += "<input type=hidden id=castframecolor"+i+" value="+mycastFrameColorArray[i]+">";
			mycontentHoldingDiv.innerHTML += "<input type=hidden id=castpicture"+i+" value="+mycastPictureArray[i]+">";
			//alert(members[i].childNodes[0].nodeValue);
			}
		}	 

	
	}
	else if(someVarComing == '3')
	{
		clearThePageFunction();

	}
	else if(someVarComing == '4')
	{
		clearThePageFunction();
	}
	else if(someVarComing == '5')
	{
		clearThePageFunction();
		myMakeVisibleHiddenFunc('4');

		var thenewssubmenu = document.getElementById('newssubmenu');
		if(thenewssubmenu.style.visibility == 'visible')
		{
			thenewssubmenu.style.visibility = 'hidden';
		}

		someNumberComing = '2';
		myBgDiv = document.getElementById('autismlogo');
		myBgDiv.innerHTML = '';
		myBgDiv.innerHTML = '<img src="images/bg6.jpg" usemap="#bg" border="0" alt="Autism the Musical">';
		
		loadXMLDoc('xml/screening_info.xml');
		newss = xml_doc.getElementsByTagName("news");
		entrys = xml_doc.getElementsByTagName("entry");

			if(navigator.appName == 'Microsoft Internet Explorer')
			{	
		theDiv = document.getElementById('contentHoldingDiv4');
		theDiv.style.visibility = 'visible';
		theDiv.innerHTML = '';
		theDiv.innerHTML += '<table bgcolor="#000000" cellpadding="0" cellspacing="0" border="0">';
		theDiv.innerHTML += '<tr>';
		theDiv.innerHTML += '<td colspan=3 valign=bottom></td>';
		theDiv.innerHTML += '</tr>';		
		theDiv.innerHTML += '<tr bgcolor="#000000">';
		theDiv.innerHTML += '<td valign=bottom align=right height="100%"></td>';
		theDiv.innerHTML += '<td width=400px bgcolor="#000000" style="color: #FFFFFF; font-family:Century Gothic, Arial, Helvetica, sans-serif; font-size: 12px; ">' + entrys[0].childNodes[0].nodeValue + '</td>'
		theDiv.innerHTML += '<td valign=bottom align=left height="100%"></td>';
		theDiv.innerHTML += '</tr>';
		theDiv.innerHTML += '<tr>';
		theDiv.innerHTML += '<td colspan=3 valign=top><div></div></td>';
		theDiv.innerHTML += '</tr>';			
		theDiv.innerHTML += '</table>';


		document.getElementById('receiveInfo').style.width = '350px';
		document.getElementById('sample').style.width = '350px';		
		document.getElementById('sample1').style.width = '350px';
		document.getElementById('sample2').style.width = '350px';
		document.getElementById('sample3').style.width = '350px';
		document.getElementById('sample4').style.width = '350px';
		document.getElementById('sample5').style.width = '350px';
		document.getElementById('sample6').style.width = '350px';
		document.getElementById('sample7').style.width = '350px';
		document.getElementById('sample8').style.width = '350px';
		document.getElementById('sample9').style.width = '350px';
		document.getElementById('sample10').style.width = '350px';
		document.getElementById('sample11').style.width = '350px';
		document.getElementById('sample12').style.width = '350px';
			}
			else
			{
		theDiv = document.getElementById('contentHoldingDiv4');
		theDiv.setAttribute('style','visibility: visible;');
		myTable = document.createElement('table');
		myTable.setAttribute('bgcolor','#000000');
		myTable.setAttribute('cellpadding','0');
		myTable.setAttribute('cellspacing','0');
		myTd = document.createElement('td');
		myTd.setAttribute('style','font-size: 10px; width:400px; background-color:#000000;color:#FFFFFF; padding: 0; margin: 0; white-space:inherit; font-family:Century Gothic, Arial, Helvetica, sans-serif; font-size: 12px;');
		myTd.setAttribute('valign','top');
		myTr = document.createElement('tr');
		myTr.setAttribute('bgcolor','#000000');

		myTrTop = document.createElement('tr');
		myTrBottom = document.createElement('tr');

		myTdTop = document.createElement('td');
		myTdTop.setAttribute('colspan','3');
		myTdTop.setAttribute('style','padding: 0; margin: 0;');
		myTdTop.setAttribute('valign','bottom');		
		myTdBottom = document.createElement('td');
		myTdBottom.setAttribute('colspan','3');
		myTdBottom.setAttribute('style','padding: 0; margin: 0;');
		myTdBottom.setAttribute('valign','top');

		myLeftImageTd = document.createElement('td');
myLeftImageTd.setAttribute('style','padding: 0; margin: 0; background-color:#000000; width:15px;position:relative; left:2px;');
		myLeftImageTd.setAttribute('valign','top');
		myLeftImageTd.setAttribute('width','15px');
		myLeftImageTd.setAttribute('align','right');

		myRightImageTd = document.createElement('td');
myRightImageTd.setAttribute('style','padding: 0; margin: 0; background-color:#000000; width:17px;');
		myRightImageTd.setAttribute('valign','top');
		myRightImageTd.setAttribute('width','17px');
		myRightImageTd.setAttribute('align','left');

		theDiv.innerHTML = '';

		theDiv.appendChild(myTable);
		myTable.appendChild(myTrTop);
		myTrTop.appendChild(myTdTop);
		myTable.appendChild(myTr);
		myTr.appendChild(myTd);
			if(navigator.userAgent.indexOf("Firefox")!=-1)
			{
myTd.innerHTML += '<p>' + entrys[0].textContent + '</p>';
			}
			else
			{
myTd.innerHTML += '<p>' + entrys[0].childNodes[0].nodeValue + '</p>';
			}
		myTable.appendChild(myTrBottom);
		myTrBottom.appendChild(myTdBottom);
			}
	}
	else
	{
	
	}
}