var bo_ns_id = 0;
function startIeFix()
{
	if(isIE())
	{    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');  }
}
function endIeFix()
{  
	if(isIE())
	{    
		document.write('</div>');    
		var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);    
		var theCode = theObject.innerHTML;    
		theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))    
		document.write(theCode); 
	 }
}
function isIE()
{  // only for Win IE 6+  
	// But not in Windows 98, Me, NT 4.0, 2000  
	var strBrwsr= navigator.userAgent.toLowerCase();  
	if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0)
	{    
		if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6)
		{      return false;    }   
		 if(strBrwsr.indexOf("win98") > -1 ||       strBrwsr.indexOf("win 9x 4.90") > -1 ||       strBrwsr.indexOf("winnt4.0") > -1 ||       strBrwsr.indexOf("windows nt 5.0") > -1)   
		  {      return false;    }    
		  return true;  
	}
	else
	{    return false;  
	}
}

/*###PArtial update pages#####*/

var xmlHttp 

function changeData(str)
{
	document.getElementById("YWAM International").className= "subMenuLink"
	document.getElementById("YWAM Bihar").className= "subMenuLink"
	document.getElementById("Our values").className= "subMenuLink"
	document.getElementById("Christian Leaders Commenting").className= "subMenuLink"
	document.getElementById("Support us").className= "subMenuLink"
	document.getElementById("Staff profiles").className= "subMenuLink"
	if(str=="YWAM International") document.getElementById("YWAM International").className= "subMenuLinkCurrent"
	if(str=="YWAM Bihar") document.getElementById("YWAM Bihar").className= "subMenuLinkCurrent"
	if(str=="Our values") document.getElementById("Our values").className= "subMenuLinkCurrent"
	if(str=="Christian Leaders Commenting") document.getElementById("Christian Leaders Commenting").className= "subMenuLinkCurrent"
	if(str=="Support us") document.getElementById("Support us").className= "subMenuLinkCurrent"
	if(str=="Staff profiles") document.getElementById("Staff profiles").className= "subMenuLinkCurrent"

	xmlHttp=GetXmlHttpObject()
	
	if(xmlHttp==null)
	{
		alert("Browser does not support HTTP request")
		return
	}
	var url="getData.php"
	url=url+"?q="+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")
	{
		document.getElementById("update_content").innerHTML = xmlHttp.responseText
	}
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
	{
		//Firefox Opere Safari
		xmlHttp = new XMLHttpRequest();
	}
	catch (e)
	{
		//Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}


