/** for Home Page Menu 
function zChange(o,z){
var obj;
	if(typeof o =="object") {
		obj=o;
	} else {
		obj=MM_findObj(o,'');
	}
	if(typeof obj =="object") {
		obj.style.zIndex=z;	
	}
}
//onMouseOver="javascript:zChange('w-menu',1);" onMouseOut="javascript:zChange('w-menu',3);"
/** for Home Page Menu **/
/** for Home Page Flash data Rendering **/
strMainImagePath="/worship/images/";
function rn(mn,mx)
{
    return (Math.round((mx-mn) * Math.random() + mn));
} 

function create_ra(ne,mn,mx)
{
    ns = new Array;
    for (var e=0; e<ne; e++)
        {
        while((t=nf(rn(mn,mx),ns))==-1);
        ns[e] = t;
        }
    return (ns)
}

function nf (rn,na)
{
    for (var e=0; e<na.length; e++)
        {
        if (rn==na[e])
            return (-1);
        }
    return (rn);
}
/** for Home Page Flash data Rendering **/

/** For Troom Page for Menu **/
function ProudAccMenuSel(i,p){
var menuitems = new Array();
var tabitems = new Array();
 var j,typ,img,obj,obji,objt;
 	if(typeof i !="object")
 	{
 		obji=MM_findObj(i,'');
 	}
	else{
		obji=i;
	} 
 	if(p=="on")
 	{
		menuitems = new Array();
		tabitems = new Array();
		menuitems[0]="tab_related";
		menuitems[1]="tab_media";	
		menuitems[2]="tab_bio";
		tabitems[0]="relatedInfo";
		tabitems[1]="mediaInfo";
		tabitems[2]="bioInfo";
		
		 for(j=0;j<menuitems.length;j++)
		 {
			obj=MM_findObj(menuitems[j],'');

			if(obj != null && typeof obj =="object")
			{
			
				if (obj.src)
				{
					typ = obj.src.substr(obj.src.length-3,3);
					if(obj.name==obji.name)
					{
						img=obj.name+"_on."+typ;
						objt=MM_findObj(tabitems[j],'');
						if(typeof objt =="object")
						{
							if (objt.style)
							{
								objt.style.display="";
							}
						}
					}
					else
					{
						img=obj.name+"_off."+typ;
						objt=MM_findObj(tabitems[j],'');
						if(typeof objt =="object")
						{
							if(objt.style)
							{
								objt.style.display="none";
							}
						}
					}
				obj.src=strMainImagePath+img;
				}						
				
			} 
		 }
	}
}
/** For Troom Page for Menu **/