//Rewachand Bhojwani Academy javascript

function showHeader() {
	document.write('<div id="header"></div>');
}

function showNavbar(login) {
	document.write('<ul id="navbar">');
	document.write('<li><br></li>');
  	document.write('<li><a href="index.php" title="Home">Home</a></li>');
  	document.write('<li><a href="about-rba.html" title="About RBA">About RBA</a></li>');
  	document.write('<li><a href="team-rba.html" title="Team RBA">Team RBA</a></li>');
  	document.write('<li><a href="curriculum.html" title="Curriculum">Curriculum</a></li>');
  	document.write('<li><a href="admission.html" title="Admission">Admission</a></li>');
  	document.write('<li><a href="special-education.html" title="Special Education">Special Education</a></li>');
  	document.write('<li><a href="research.html" title="Research">Research</a></li>');
  	document.write('<li><a href="photo-gallery.html" title="Photo Gallery">Photo Gallery</a></li>');
  	document.write('<li><a href="contact-us.html" title="Contact us">Contact Us</a></li>');
//	document.write('<div id="navline"></div>');
	document.write('</ul>');
}

function showFooter() {
	document.write('<ul>');
  	document.write('<li><a href="index.php" title="Rewachand Bhojwani Academy">Home </a> | </li>');
  	document.write('<li><a href="about-rba.html" title="About RBA"> About RBA </a> | </li>');
  	document.write('<li><a href="team-rba.html" title="Team RBA"> Team RBA </a> | </li>');
  	document.write('<li><a href="curriculum.html" title="Curriculum"> Curriculum </a> | </li>');
  	document.write('<li><a href="admission.html" title="Admission"> Admission </a> | </li>');
  	document.write('<li><a href="special-education.html" title="Special Education"> Special Education </a> | </li>');
  	document.write('<li><a href="research.html" title="Research"> Research </a> | </li>');
  	document.write('<li><a href="photo-gallery.html" title="Photo Gallery"> Photo Gallery </a> | </li>');
  	document.write('<li><a href="contact-us.html" title="Contact us"> Contact Us </a></li>');
	document.write('</ul>');
	document.write('<br>Copyright &copy; Rewachand Bhojwani Foundation | Other group sites: ')
	document.write('<a href="http://www.rbajuniorcollege.org"> RBA Junior College </a> | ');
	document.write('<a href="http://www.rbacivilservices.org"> RBA Civil Services Academy </a>');
}

/* Function added by ketan 1 dec 
	To change the border color when click
	On different link

function disptxt(menu)
{
	switch(menu)
	{
		case 'admission':
		{
			var text = '<div style="text-align:left;padding:1em;">Admissions are available for the JUNIOR KG in January of every year, '+
								 'for the term starting in June of the same year. The candidate should complete 3 '+
								 'years and 6 months on 1st June. A total of 25 seats is available. '+
								 'Forms are available in school for a full week after an announcement appears in the local papers. <br><br>'+
								 'Priority for admission is given to siblings of '+
								 'children already in the school. The remaining seats are allotted by weighted lottery, '+
								 'which ensures that we preserve the secular, and multi cultural character of the school.<br><br>'+
								 'For your convenience we have provided a printable version of the admission form for RB Academy. '+
								 'For more details click <a href="admission.html">here</a></div>';
							 								 
			document.getElementById('display_inner_box').innerHTML = text;
			document.getElementById('display_box').className = 'display_ad_selected';
			document.getElementById('admission').className = 'admission_selected';
			document.getElementById('curr_events').className = 'curr_events';
			document.getElementById('photo_week').className = 'photo_week';
		}break;
		case 'curr_events':
		{
			var text = '<div style="float:left;"><img src="images/graduation-day-pract.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+
								 '<div style="float:left;"><img src="images/exhibition-work.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+
								 '<div style="float:left;"><img src="images/dramma.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+
								 '<div style="float:left;"><img src="images/dramma2.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+								 
								 '<div style="float:left;border:solid 0px;"><img src="images/somdance.JPG" alt="Practicing for the graduation day" title="Practicing for the graduation day" >&nbsp;</div> '+								 
								 '<div style="float:left;border:solid 0px;width:430px;">Practice for the graduation day function is in full swing. '+
								 'Graduation day function will be held for the students of 10<sup>th</sup> '+
								 'standered on 28<sup>th</sup> Feb 2011. A total of 25 seats is available. </div><div id="clear"></div>';

								 
			document.getElementById('display_inner_box').innerHTML = text;
			document.getElementById('display_box').className = 'display_events_selected';
			document.getElementById('admission').className = 'admission';
			document.getElementById('curr_events').className = 'curr_events_selected';
			document.getElementById('photo_week').className = 'photo_week';
		}break;
		case 'photo':
		{
			var text = '<img src="images/photo_of_the_week.jpg" alt="Photo of the week" title="Photo of the week">';
			
			document.getElementById('display_inner_box').innerHTML = text;
			document.getElementById('display_box').className = 'display_photo_selected';
			document.getElementById('admission').className = 'admission';
			document.getElementById('curr_events').className = 'curr_events';
			document.getElementById('photo_week').className = 'photo_week_selected';
		}break;
	}
}*/
function navigate_tabs(tab)
	{
		
		switch(tab)
		{
			case "tab1":
			{
				
				/*var text = '<div style="text-align:left;padding:1em;">Admissions are available for the JUNIOR KG in January of every year, '+
								 'for the term starting in June of the same year. The candidate should complete 3 '+
								 'years and 6 months on 1st June. A total of 25 seats is available. '+
								 'Forms are available in school for a full week after an announcement appears in the local papers. <br><br>'+
								 'Priority for admission is given to siblings of '+
								 'children already in the school. The remaining seats are allotted by weighted lottery, '+
								 'which ensures that we preserve the secular, and multi cultural character of the school.<br><br>'+
								 'For your convenience we have provided a printable version of the admission form for RB Academy. '+
								 'For more details click <a href="admission.html">here</a></div>';
				*/
				document.getElementById('admission').style.display = 'block';
				document.getElementById('curr_events').style.display = 'none';
				document.getElementById('photo_of_the_week').style.display = 'none';	
						 								 
				//document.getElementById('display_area').innerHTML = text;
				document.getElementById('tab1').className = 'tab_selected';
				document.getElementById('tab2').className = 'tabs';
				document.getElementById('tab3').className = 'tabs';
			}	
			break;
			case "tab2":
			{
				/*var text = '<div style="float:left;"><img src="images/graduation-day-pract.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+
								 '<div style="float:left;"><img src="images/exhibition-work.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+
								 '<div style="float:left;"><img src="images/dramma.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+
								 '<div style="float:left;"><img src="images/dramma2.jpg" alt="Practicing for the graduation day" title="Practicing for the graduation day">&nbsp;</div> '+								 
								 '<div style="float:left;border:solid 0px;"><img src="images/somdance.JPG" alt="Practicing for the graduation day" title="Practicing for the graduation day" >&nbsp;</div> '+								 
								 '<div style="float:left;border:solid 0px;width:430px;">Practice for the graduation day function is in full swing. '+
								 'Graduation day function will be held for the students of 10<sup>th</sup> '+
								 'standered on 28<sup>th</sup> Feb 2011. A total of 25 seats is available. </div><div id="clear"></div>';
				*/
				document.getElementById('admission').style.display = 'none';
				document.getElementById('curr_events').style.display = 'block';
				document.getElementById('photo_of_the_week').style.display = 'none';	
								 
				//document.getElementById('display_area').innerHTML = text;
				document.getElementById('tab1').className = 'tabs';
				document.getElementById('tab2').className = 'tab_selected';
				document.getElementById('tab3').className = 'tabs';
			}	
			break;
			case "tab3":
			{
				//var text = '<img src="images/photo_of_the_week.jpg" alt="Photo of the week" title="Photo of the week">';
			
				document.getElementById('admission').style.display = 'none';
				document.getElementById('curr_events').style.display = 'none';
				document.getElementById('photo_of_the_week').style.display = 'block';	
				
				//document.getElementById('display_area').innerHTML = text;
				document.getElementById('tab1').className = 'tabs';
				document.getElementById('tab2').className = 'tabs';
				document.getElementById('tab3').className = 'tab_selected';
			}	
			break;
			default:
			break;
			
		}
	}


