
function load()
{
    if( window.childLoad )
        childLoad();  
}

function unload()
{
    if (window.childUnload)
        childUnload();
}


function printpage()
{
window.print();
}


function imgOver(imageid, newSrc)
{
    var val = document.getElementById('ctl00_lblName').innerText;
    
    if(val != "Maps")
        document.getElementById("imgHead1").src ="/images/tabs/01.gif";
    if(val != "Fares & Passes")
        document.getElementById("imgHead2").src ="/images/tabs/02.gif";
    if(val != "Dial-A-Ride")
        document.getElementById("imgHead3").src ="/images/tabs/03.gif";
    if(val != "Rider Tools")
        document.getElementById("imgHead4").src ="/images/tabs/04.gif";
    if(val != "About Us")
        document.getElementById("imgHead5").src ="/images/tabs/05.gif";
    if(val != "Support")
        document.getElementById("imgHead6").src ="/images/tabs/06.gif";
    if(val != "Media Center")
        document.getElementById("imgHead7").src ="/images/tabs/07.gif";
        
    document.getElementById(imageid).src = newSrc;
    
}

function imgOut(whichImage, oldimg)
{
    whichImage.src = oldimg;
}
    
///////////////////////////////////////////////

function bookmarksite(title, url)
{
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "");
}

///////////////////////////////////////////////

function findPosY(strobj)
{
    obj = document.getElementById(strobj);
    var curtop = 0;
    if(obj.offsetParent)
    {
        while(1)
        {
            curtop += obj.offsetTop;
            if(!obj.offsetParent)
                break;
            obj = obj.offsetParent;
        }
    }
    else if(obj.y)
        curtop += obj.y;

    return curtop;
}

function findPosX(strobj)
{
    obj = document.getElementById(strobj);
    var curleft = 0;
    if(obj.offsetParent)
    {
        while(1)
        {
            curleft += obj.offsetLeft;
            if(!obj.offsetParent)
                break;
            obj = obj.offsetParent;
        }
    }
    else if(obj.x)
        curleft += obj.x;

    return curleft;
}

function GetScreenHeight()
{
    if (self.innerHeight) // all except Explorer
    {
        innerH = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode
    {
        innerH = document.documentElement.clientHeight;
    }
    else if (document.body) // other Explorers
    {
        innerH = document.body.clientHeight;
    }
    
    return innerH;
}

function GetPageHeight()
{
    var test1 = document.body.scrollHeight;
    var test2 = document.body.offsetHeight
    if (test1 > test2)	// all but Explorer Mac
    {
	    pageH = document.body.scrollHeight;
    }
    else			// Explorer Mac    would also work in Explorer 6 Strict, Mozilla and Safari
    {
	    PageH = document.body.offsetHeight;
    }
    
    return PageH;
}

///////////////////////////////////////////////

function GetXMLHttpRequest()
{
	var xmlhttp=false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	try
	{
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e)
	{
		try
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (E)
		{
			xmlhttp = false;
		}
	}
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined')
	{
		try
		{
			xmlhttp = new XMLHttpRequest();
		}
		catch (e)
		{
			xmlhttp=false;
		}
	}
	if (!xmlhttp && window.createRequest)
	{
		try
		{
			xmlhttp = window.createRequest();
		}
		catch (e)
		{
			xmlhttp=false;
		}
	}
	
	return xmlhttp;
}

function SelectItem(strDDL,strVal)
{
	var ddl=document.getElementById(strDDL);
	var len = ddl.options.length;
	
	for(var i=0; i<len; i++)
	{
		if(ddl.options[i].value==strVal)
		{
			ddl.selectedIndex=i;
			ddl.options[i].selected=true;
			break;
		}
	}
}
        function expand(id)
        {
            var obj = document.getElementById(id);
            if(obj.className == 'collapse')
            {
                obj.className ='';
            }
            else
            {
                obj.className ='collapse';
            }
        }
        
        
//        
//var mnuSelected = '';
//var subMnuSelected = '';

//function showMenu(menu){
//	hideMenu(mnuSelected);
//	document.getElementById(menu).style.display = 'block';
//	mnuSelected = menu;
//}
//function hideMenu(menu){
//	if(mnuSelected!='')
//		document.getElementById(menu).style.display = 'none';
//}
//function showSubMenu(menu){
//	hideSubMenu(subMnuSelected);
//	var x =	document.getElementById(menu);
//	x.style.display = 'block';
//	subMnuSelected = menu;
//}
//function hideSubMenu(menu){
//	if(subMnuSelected!='')
//		document.getElementById(menu).style.display = 'none';
//}