// JavaScript Document

function menuClick(id)
{

	if (document.getElementById(id).style.background == "url(images/menured.gif)")
	{
	}
	else
	{	
		if (id=="1")
		{
			
			document.getElementById("submenu").innerHTML=" ";
			//urlOpen("thegroup.html");
		}
		if (id=="2")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp<a href=\"vision.html\">About BMM</a> | <a href=\"mission.html\"> Vision and Mission </a> | <a href=\"faith.html\"> Statement of Faith</a>";
			
		}
		if (id=="3")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp;<a href=\"healing.html\">Healing & Deliverance</a> | <a href=\"teach.html\">Teaching & Preaching</a> | <a href=\"counsel.html\">Counselling</a>| <a href=\"music.html\">Music</a> | <a href=\"audio.html\"> Audio & Video</a> | <a href=\"drama.html\"> Dramatics</a>| <a href=\"children.html\">Children</a>| <a href=\"intercession.html\"> Intercession</a>| <a href=\"youth.html\">  Youth cell</a> " ;
			//urlOpen("index.html");
		}
		if (id=="5")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp;<a href=\"aud.html\"> Audio Titles</a> | <a href=\"vid.html\">Video Titles</a> | <a href=\"tshirts.html\"> T-Shirts</a> | <a href=\"book.html\">Books</a> ";
			//urlOpen("process.html");
		}
		if (id=="4")
		{
		document.getElementById("submenu").innerHTML=" &nbsp;&nbsp;<a href=\"rhematrust.html\">Rhema Trust</a>|<a href=\"rhemasports.html\">Rhema Sports Foundation</a>|<a href=\"studio.html\"> Rhema Studios</a>|<a href=\"health.html\"> Rhema Health</a>|<a href=\"rhemamusic.html\"> Rhema Music Academy</a>|<a href=\"rhemalife.html\"> Rhema Life</a>|<a href=\"softech.html\"> Rhema Softech</a>|<a href=\"rivm.html\"> RIVM</a> ";
			//urlOpen("features.html");
		}
		if (id=="6")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp<a href=\"alltime.html\">24/7 Prayer Lines</a> | <a href=\"online.html\"> Video Online Prayers</a> l<a href=\"onlinea.html\"> Audio Online Prayers</a> | <a href=\"email.html\"> Prayer Request</a>";
			//urlOpen("educational.html");
		}
		if (id=="7")
		{
			window.location="book.html"
			//urlOpen("achievements.html");
		}
		
		document.getElementById(id).style.background = "url(images/menuyellow.gif)";
	}
	
}
function menuOver(id)
{

	if (document.getElementById(id).style.background == "url(images/menured.gif)")
	{
	}
	else
	{	
		if (id=="1")
		{
			
			document.getElementById("submenu").innerHTML=" ";
			//urlOpen("thegroup.html");
		}
		if (id=="2")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp<a href=\"vision.html\">About BMM</a> | <a href=\"mission.html\"> Vision and Mission</a> | <a href=\"faith.html\"> Statement of Faith</a>";
			
		}
		if (id=="3")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp;<a href=\"healing.html\">Healing & Deliverance</a> | <a href=\"teach.html\">Teaching & Preaching</a> | <a href=\"counsel.html\">Counselling</a>| <a href=\"music.html\">Music</a> | <a href=\"audio.html\"> Audio & Video</a> | <a href=\"drama.html\"> Dramatics</a>| <a href=\"children.html\">Children</a>| <a href=\"intercession.html\"> Intercession</a>| <a href=\"youth.html\">  Youth cell</a> " ;
			//urlOpen("index.html");
		}
		if (id=="5")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp;<a href=\"aud.html\"> Audio Titles</a> | <a href=\"vid.html\">Video Titles</a> | <a href=\"tshirts.html\"> T-Shirts</a> | <a href=\"book.html\">Books</a> ";
			//urlOpen("process.html");
		}
		if (id=="4")
		{
		document.getElementById("submenu").innerHTML=" &nbsp;&nbsp;<a href=\"rhematrust.html\">Rhema Trust</a>|<a href=\"rhemasports.html\">Rhema Sports Foundation</a>|<a href=\"studio.html\"> Rhema Studios</a>|<a href=\"health.html\"> Rhema Health</a>|<a href=\"rhemamusic.html\"> Rhema Music Academy</a>|<a href=\"rhemalife.html\"> Rhema Life</a>|<a href=\"softech.html\"> Rhema Softech</a>|<a href=\"rivm.html\"> RIVM</a> ";
			//urlOpen("features.html");
		}
		if (id=="6")
		{
			document.getElementById("submenu").innerHTML="&nbsp;&nbsp<a href=\"alltime.html\">24/7 Prayer Lines</a> | <a href=\"online.html\">Video Online Prayers </a> l <a href=\"onlinea.html\">Audio Online Prayers </a> | <a href=\"email.html\">Prayer Request</a>";
			//urlOpen("educational.html");
		}
		if (id=="7")
		{
			
			//urlOpen("achievements.html");
		}
		
		document.getElementById(id).style.background = "url(images/menuyellow.gif)";
	}
	
}







function urlOpen(url)
{  
	window.location.href(url);
}



//Header Part


//Image Sliding Part
var slideShowSpeed = 15000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array() 
Pic[0] = 'images/febeng.jpg';
Pic[1] = 'images/febeng.jpg';
Pic[2] = 'images/febeng.jpg';
Pic[3] = 'images/decb.jpg';
Pic[4] = 'images/top.jpg';
Pic[5] = 'images/febeng.jpg';

var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i <= p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i];
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=5, motion=reverse)";
      document.images.SlideShow.filters[0].Apply();      
   }
 
   document.images.SlideShow.src = preLoad[j].src;


   if (document.all){
      document.images.SlideShow.filters[0].Play();
   }
   
   j = j + 1;
   if (j > (5)) j=0;
   
   t = setTimeout('runSlideShow()', slideShowSpeed);
}

function shem()
{
	
	

if(j==1)
	{
		window.location="bulletin.html"
	}
	
	
else  if(j==2)
	{
		window.location="bulletin.html"
	}
	
else  if(j==3)
	{
		window.location="engdec11.pdf"
	}

else  if(j==4)
	{
		window.location="top.html"
	}
else  if(j==5)
	{
		window.location="top.html"
	}
}


function stop_counter()
{
 clearTimeout(t);
}


function start_counter()
{
 runSlideShow()
 }
 
  
 
 
 
 function ad1()
{

 document.images.SlideShow.src = "images/febeng.jpg"
 j=1

 
 
 }
 
 
 
 
 
 function ad2()
{

 document.images.SlideShow.src = "images/febeng.jpg"
j=2
 
 
 }
 
 function ad3()
{

 document.images.SlideShow.src = "images/febeng.jpg"
 
 j=3
 }
 
 function ad4()
{
 document.images.SlideShow.src = "images/top.jpg"
 j=4
 }
 
 function ad5()
{
	 document.images.SlideShow.src = "images/top.jpg"
   j=5
 }
 
 
 
 
 
 
 

//Testimonial




function abc(id)
{

	if (document.getElementById(id).style.background == "url(images/menured.gif)")
	{
	}
	else
	{	
		if (id=="1")
		{
			document.getElementById("sam").innerHTML="<a href='retreat.html'><img src=images/a.jpg></a>";
			//urlOpen("thegroup.html");
		}
		if (id=="2")
		{
			document.getElementById("sam").innerHTML="<a href='out.html'><img src=images/c.jpg></a>";
			
		}
		if (id=="3")
		{
			document.getElementById("sam").innerHTML="<a href='israel.html'><img src=images/b.jpg></a>";
		}
		if (id=="4")
		{
			document.getElementById("sam").innerHTML="<a href='broadcast.html'><img src=images/d.jpg></a>";
			//urlOpen("process.html");
		}
		if (id=="5")
		{
		document.getElementById("sam").innerHTML="<a href='fellow.html'><img src=images/e.jpg></a>";
			//urlOpen("features.html");
		}
		
		document.getElementById(id).style.background = "url(images/menuyellow.gif)";
	}
	
}







function ani(id)
{

	if (document.getElementById(id).style.background == "url(images/menured.gif)")
	{
	}
	else
	{	
		if (id=="first")
		
		{
			clearTimeout(t)
			document.getElementById("SlideShow").innerHTML="<img src=images/1.jpg>";
			//urlOpen("thegroup.html");
		}
		if (id=="2")
		{
			document.getElementById("SlidShow").innerHTML="<img src=images/2.jpg>";
			
		}
		
	}
	
}

var slideSpeed = 8000;
// Duration of crossfade (seconds)
var crossDuration = 3;
// Specify the image files
var ic = new Array() 
ic[0] = 'images/pen1.jpg';
ic[1] = 'images/pen2.jpg';
ic[2] = 'images/pen3.jpg';
ic[3] = 'images/pen4.jpg';
ic[4] = 'images/pen5.jpg';
ic[5] = 'images/pen.jpg';






var t;
var r = 0;
var w = ic.length;
var preL = new Array();
for (a = 0; a < w; a++){
   preL[a] = new Image();
   preL[a].src = ic[a];
}


function run(){
   if (document.all){
      document.images.john.style.filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=5, motion=reverse)";
      
      document.images.john.filters[0].Apply();      
   }
   document.images.john.src = preL[r].src;
   if (document.all){
      document.images.john.filters[0].Play();
   }
   r = r + 1;
   if (r > (w-1)) r=0;
   t = setTimeout('run()', slideSpeed);
}



var speed = 4000;
// Duration of crossfade (seconds)
var cDuration = 3;
// Specify the image files
var ico = new Array() 
ico[0] = 'images/is1.jpg';
ico[1] = 'images/is2.jpg';
ico[2] ='images/is3.jpg';
ico[3] = 'images/is4.jpg';
ico[4] = 'images/is5.jpg';
ico[5] = 'images/is6.jpg';
ico[6] = 'images/is7.jpg';
ico[7] ='images/is8.jpg';
ico[8] = 'images/is9.jpg';
ico[9] = 'images/is10.jpg';
ico[10] = 'images/is11.jpg';
ico[11] = 'images/is12.jpg';
ico[12] ='images/is13.jpg';
ico[13] = 'images/is14.jpg';
ico[14] = 'images/is15.jpg';
ico[15] = 'images/is16.jpg';
ico[16] = 'images/is17.jpg';
ico[17] ='images/is18.jpg';
ico[18] = 'images/is19.jpg';
ico[19] = 'images/is20.jpg';

ico[20] = 'images/is21.jpg';
ico[21] = 'images/is22.jpg';
ico[22] ='images/is23.jpg';
ico[23] = 'images/is24.jpg';
ico[24] = 'images/is25.jpg';
ico[25] = 'images/is26.jpg';
ico[26] = 'images/is27.jpg';
ico[27] ='images/is28.jpg';
ico[28] = 'images/is29.jpg';
ico[29] = 'images/is30.jpg';
ico[30] = 'images/is31.jpg';
ico[31] = 'images/is32.jpg';
ico[32] ='images/is33.jpg';
ico[33] = 'images/is34.jpg';
ico[34] = 'images/is35.jpg';
ico[35] = 'images/is36.jpg';
ico[36] = 'images/is37.jpg';
ico[37] ='images/is38.jpg';
ico[38] = 'images/is39.jpg';
ico[39] = 'images/is40.jpg';






var t;
var r = 0;
var w = ico.length;
var pre = new Array();
for (a = 0; a < w; a++){
   pre[a] = new Image();
   pre[a].src = ico[a];
}


function run1(){
   if (document.all){
      document.images.james.style.filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=5, motion=reverse)";
      
      document.images.james.filters[0].Apply();      
   }
   document.images.james.src = pre[r].src;
   if (document.all){
      document.images.james.filters[0].Play();
   }
   r = r + 1;
   if (r > (w-1)) r=0;
   t = setTimeout('run1()', speed);
}


var sp = 6000;
// Duration of crossfade (seconds)
var ction = 3;
// Specify the image files
var co = new Array() 
co[0] = 'images/c1.jpg';
co[1] = 'images/c2.jpg';
co[2] ='images/c3.jpg';
co[3] = 'images/c4.jpg';
co[4] = 'images/c5.jpg';
co[5] = 'images/c6.jpg';
co[6] = 'images/c7.jpg';
co[7] ='images/c8.jpg';
co[8] = 'images/c9.jpg';
co[9] = 'images/c10.jpg';
co[10] = 'images/c11.jpg';
co[11] = 'images/c12.jpg';
co[12] ='images/c13.jpg';
co[13] = 'images/c14.jpg';
co[14] = 'images/c15.jpg';

var t;
var r = 0;
var w = co.length;
var re = new Array();
for (b = 0; b < w; b++){
   re[b] = new Image();
   re[b].src = co[b];
}


function run2(){
   if (document.all){
      document.images.john.style.filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=5, motion=reverse)";
      
      document.images.john.filters[0].Apply();      
   }
   document.images.john.src = re[r].src;
   if (document.all){
      document.images.john.filters[0].Play();
   }
   r = r + 1;
   if (r > (w-1)) r=0;
   t = setTimeout('run2()',sp);
}



var sp1 = 6000;
// Duration of crossfade (seconds)
var ction1 = 3;
// Specify the image files
var co1 = new Array() 
co1[0] = 'images/italy.jpg';
co1[1] = 'images/italy1.jpg';
co1[2] ='images/italy2.jpg';
co1[3] = 'images/italy3.jpg';
co1[4] = 'images/italy4.jpg';
co1[5] = 'images/italy5.jpg';
co1[6] = 'images/italy6.jpg';
co1[7] ='images/italy7.jpg';
co1[8] = 'images/italy8.jpg';
var t1;
var r1 = 0;
var w1 = co1.length;
var re1 = new Array();
for (b1 = 0; b1 < w1; b1++){
   re1[b1] = new Image();
   re1[b1].src = co1[b1];
}


function run21(){
   if (document.all){
      document.images.peter.style.filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=5, motion=reverse)";
      
      document.images.peter.filters[0].Apply();      
   }
   document.images.peter.src = re1[r1].src;
   if (document.all){
      document.images.peter.filters[0].Play();
   }
   r1 = r1 + 1;
   if (r1 > (w1-1)) r1=0;
   t1 = setTimeout('run21()',sp1);
}
