﻿menu1_button_active = new Image();
menu1_button_active.src = "images/button_menu1_active.gif";
menu1_button_up = new Image();
menu1_button_up.src = "images/button_menu1.gif";

menu2_button_a_active = new Image();
menu2_button_a_active.src = "images/button_menu2_a_active.gif";
menu2_button_a_up = new Image();
menu2_button_a_up.src = "images/button_menu2_a.gif";

menu2_button_b_active = new Image();
menu2_button_b_active.src = "images/button_menu2_b_active.gif";
menu2_button_b_up = new Image();
menu2_button_b_up.src = "images/button_menu2_b.gif";

menu2_button_c_active = new Image();
menu2_button_c_active.src = "images/button_menu2_c_active.gif";
menu2_button_c_up = new Image();
menu2_button_c_up.src = "images/button_menu2_c.gif";

menu2_button_d_active = new Image();
menu2_button_d_active.src = "images/button_menu2_d_active.gif";
menu2_button_d_up = new Image();
menu2_button_d_up.src = "images/button_menu2_d.gif";

menu2_button_e_active = new Image();
menu2_button_e_active.src = "images/button_menu2_e_active.gif";
menu2_button_e_up = new Image();
menu2_button_e_up.src = "images/button_menu2_e.gif";

menu2_button_f_active = new Image();
menu2_button_f_active.src = "images/button_menu2_f_active.gif";
menu2_button_f_up = new Image();
menu2_button_f_up.src = "images/button_menu2_f.gif";

ps_e_dn = new Image();
ps_e_dn.src = "images/partner_ps_e_dn.gif";
ps_e_up = new Image();
ps_e_up.src = "images/partner_ps_e_up.gif";

s_e_dn = new Image();
s_e_dn.src = "images/partner_s_e_dn.gif";
s_e_up = new Image();
s_e_up.src = "images/partner_s_e_up.gif";

a_e_dn = new Image();
a_e_dn.src = "images/partner_a_e_dn.gif";
a_e_up = new Image();
a_e_up.src = "images/partner_a_e_up.gif";

m_e_dn = new Image();
m_e_dn.src = "images/partner_m_e_dn.gif";
m_e_up = new Image();
m_e_up.src = "images/partner_m_e_up.gif";

ps_n_dn = new Image();
ps_n_dn.src = "images/partner_ps_n_dn.gif";
ps_n_up = new Image();
ps_n_up.src = "images/partner_ps_n_up.gif";

s_n_dn = new Image();
s_n_dn.src = "images/partner_s_n_dn.gif";
s_n_up = new Image();
s_n_up.src = "images/partner_s_n_up.gif";

a_n_dn = new Image();
a_n_dn.src = "images/partner_a_n_dn.gif";
a_n_up = new Image();
a_n_up.src = "images/partner_a_n_up.gif";

m_n_dn = new Image();
m_n_dn.src = "images/partner_m_n_dn.gif";
m_n_up = new Image();
m_n_up.src = "images/partner_m_n_up.gif";

ps_dn = new Image();
ps_dn.src = "images/butt_preschool_dn.gif";
ps_up = new Image();
ps_up.src = "images/butt_preschool_up.gif";

p_dn = new Image();
p_dn.src = "images/butt_primary_dn.gif";
p_up = new Image();
p_up.src = "images/butt_primary_up.gif";

s_dn = new Image();
s_dn.src = "images/butt_school_dn.gif";
s_up = new Image();
s_up.src = "images/butt_school_up.gif";

u_dn = new Image();
u_dn.src = "images/butt_university_dn.gif";
u_up = new Image();
u_up.src = "images/butt_university_up.gif";

c_dn = new Image();
c_dn.src = "images/butt_creative_dn.gif";
c_up = new Image();
c_up.src = "images/butt_creative_up.gif";

m_dn = new Image();
m_dn.src = "images/butt_media_dn.gif";
m_up = new Image();
m_up.src = "images/butt_media_up.gif";

bb1_up = new Image();
bb1_up.src = "images/butt_block1_up.gif";

bb2_up = new Image();
bb2_up.src = "images/butt_block2_up.gif";

bb3_up = new Image();
bb3_up.src = "images/butt_block3_up.gif";

kidzee_dn = new Image();
kidzee_dn.src = "images/butt_block1_kidzee.gif";

kidzeehi_dn = new Image();
kidzeehi_dn.src = "images/butt_block2_kidzeehi.gif";

kidzeeu_dn = new Image();
kidzeeu_dn.src = "images/butt_block3_kidzeeu.gif";

zica_dn = new Image();
zica_dn.src = "images/butt_block3_zica.gif";

zima_dn = new Image();
zima_dn.src = "images/butt_block3_zima.gif";

function clickCursor(){
document.body.style.cursor = 'pointer';
}

function autoCursor(){
document.body.style.cursor = 'auto';
}

function swapRollOver(){
	if (document.images){
				document[swapRollOver.arguments[0]].src = eval(swapRollOver.arguments[1] + ".src");
	}
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}

function GotoFrameFlashMovie(framenum)
{
	var flashMovie=getFlashMovieObject("banner");
	flashMovie.GotoFrame(framenum);
}

function initAccordion(){
	var tabs = $ES('.slidertab');
	var panes = $ES('.sliderpane');				
	tabs[0].tabname = 'mytab_01';
	tabs[1].tabname = 'mytab_02';
	tabs[2].tabname = 'mytab_03';
	tabs[3].tabname = 'mytab_04';
	tabs[4].tabname = 'mytab_05';
	activecolor = 'ffffff';
	overcolor = 'ffffff';
	upcolor = 'c8c8c8';

	
	myAccordion = new Accordion(tabs, panes, {alwaysHide: false, display: 0, opacity: false, duration: 500,
		onActive: function(tog){
			tog.addClass('selected');
			tog.style.background = 'url(images/bg_tab.gif)';
			var tabOnOff = new Fx.Styles(tog, {wait: false, duration: 100});
			tabOnOff.start({'color': activecolor});
		},
		onBackground: function(tog){
			tog.removeClass('selected');
			tog.style.background = '#f2f1e9';
			var tabOnOff = new Fx.Styles(tog, {wait: false, duration: 100});
			tabOnOff.start({'color': upcolor});
		}
		});
	
	tabs.each(function(div) {	 
		var mouseFxs = new Fx.Styles(div, {duration: 100, wait: false});
		div.addEvents({
			'mouseover': function(){
				clickCursor();
				if (!div.hasClass('selected')) {
					div.style.background = '#cccbc5';
					mouseFxs.start({'color': overcolor});
				}
			},
			'mouseout': function(){
				autoCursor();
				if (!div.hasClass('selected')) {
					div.style.background = '#f2f1e9';
					mouseFxs.start({'color': upcolor});
				}
			}
		});
	});
}

window.addEvent('domready', function(){
	initAccordion();
});

function changeBodyText(section){

	if (section == 'home')
	{
		document.getElementById('bodyintro').innerHTML = '<p><span class="strong">Zee Interactive Learning Systems (ZILS)</span> is an ISO 9001 certified Education & Training provider and is the education division of ETC Networks Ltd. It began its journey as "Zee Education" in 1994 and morphed into "Zee Interactive Learning Systems" in 1999.</p>'
		document.getElementById('bodytext').innerHTML = '<h1>VERTICAL INTEGRATION</h1><p>We are in the business of "Improving Human Capital" by helping individuals (children & youth) realize their true potential through quality education and development. Today, we are one of the most vertically-integrated premium education companies, which delivers education and child development solutions for various stages of a child\'s growth, from toddler to youth.</p>';
	}

	if (section == 'kidzee')
	{
		document.getElementById('bodyintro').innerHTML = '<p>INDIA\'S Largest Chain Of Pre-Schools following the Philosophy of "Learning By Playing". KIDZEE is a pre-school for children between the age group of 1 plus to 5 plus. It combines the leading pre-school methodologies with the essence of Indian culture : Kindergarten Method, Montessori Method and Pre-School of U.S. & U.K.</p>'
		document.getElementById('bodytext').innerHTML = '<h1>KIDZEE\'s MISSION</h1><p>Kidzee\s mission is to help young minds grow and learn in an amicable environment resulting in their all round development. KIDZEE aims to provide the experiences for:  <span class="strong">Physical, Intellectual, Motor , Sensorial, Speech & Language, Social,  Emotional and  Aesthetic Development </span>of the child through creative and modern education in an attractive and caring environment, thus enabling the child to cope with the ever-growing challenges of life.</p><p>Our basic Philosophy focuses on the satisfaction of the child\'s inquisitive mind through concept clarity. The personalized tender care stimulates the nascent mind to explore, understand, learn and appreciate the finer aspects of life so that the child is able to handle day to day situations without any stress thus giving him/her a strong foundation for  success in life.</p>';
	}
	
	if (section == 'kidzeehigh')
	{
		document.getElementById('bodyintro').innerHTML = '<p><span class="strong">Zee School</span> is a full-fledged School with Primary, upper Primary & Secondary divisions. The School was launched in the academic year 2007. The paucity of Schools offering good quality education and the established presence in Pre School segment – Kidzee - prompted ZILs to enter formal Schooling. This extension facilitates ZILs to complete its offering from Pre Schools to Schools and act as excellent hub for children coming out of Kidzee Pre Schools.</p>'
		document.getElementById('bodytext').innerHTML ='';
	}

	if (section == 'zica')
	{
		document.getElementById('bodyintro').innerHTML = '<p><span class="strong">Zee Institute Of Creative Arts (ZICA)</span>, started in 1995 is the first Institute to provide Animation Training in India. It provides full-fledged Classical and Digital Animation Training where students get adequate exposure through its industry relevant courses, DDA (Diploma in Digital Arts) and DAFM (Diploma in Animation Film Making).The Institute is situated in the lush green environment of Gorai island inside Essel World.</p>'
		document.getElementById('bodytext').innerHTML = '';
	}

	if (section == 'zima')
	{
		document.getElementById('bodyintro').innerHTML = '<p><span class="strong">Zee Institute Of Media Arts (ZIMA)</span> gives an individual a chance to do short-term courses in Direction, Acting, Script writing, Cinematography, Editing, Sound, Computer graphics, Film Animation & Visual effects and training in other high-end soft wares like Autodesk Smoke and Flame.</p>'
		document.getElementById('bodytext').innerHTML = '';
	}

}

function grabFile(file) {
	var request = getHTTPObject();
	request.onreadystatechange = function() {
	parseResponse(request);
	}
	request.open("GET",file,true);
	request.send(null);
}

function parseResponse(request) {
		alert("Grabbed File");
	if(request.readyState == 4){
		if(request.status == 200 || request.status == 304){
			document.getElementById('bodytext').innerHTML = request.responseText;
			} else {
			alert("Couldn't Read Data!");
			}
	}
}

