// JavaScript Document
function g(id){
	return document.getElementById(id);
}

var slider=function(){
	var array=[]; var speed=13; var timer=20;
	return{
		init:function(t,c){
			var s,ds,l,i,y;
			s=document.getElementById(t); ds=s.getElementsByTagName('div'); l=ds.length; i=y=0;
			for(i=0;i<l;i++){
				var d,did; d=ds[i]; did=d.id;
				if(did.indexOf("headerSD")!=-1){
					y++; 
					d.onclick=new Function("var e=(arguments[0]==undefined)?window.event:arguments[0]; slider.process(this, e.type)");			
					
					//d.onmouseover = d.onmouseout = onMouseHovers; 
					
					
					
				}else if(did.indexOf("contentSD")!=-1){
					array.push(did.replace('-contentSD','')); d.maxh=d.offsetHeight;
					if(c!=y){d.style.height='0px'; d.style.display='none'}
					else{d.style.display='block'}
				} 
			}
		},
		process:function(d, e ){
			var cl,i; cl=array.length; i=0;
			for(i;i<cl;i++){
				var s,h,c,cd;
				s=array[i]; h=document.getElementById(s+'-headerSD');
				c=s+'-contentSD'; cd=document.getElementById(c); clearInterval(cd.timer);
				if(h==d&&cd.style.display=='none'){
					cd.style.display='block'; this.islide(c,1, e);
				}else if(cd.style.display=='block'){
					if ( (h==d && e=='click') || (h!=d))
						this.islide(c,-1, e)
				}
			}
		},
		islide:function(i,d, e){
				var c,m; 
				c=document.getElementById(i); 
				m=c.maxh; 
				c.direction=d; 
				c.timer=setInterval("slider.slide('"+i +"')",timer);
				var idd = c.id.split('-')[0];
				if (d==-1){
					g(idd + '-headerSD').style.backgroundPosition = '3px 4px';
					g(idd + '-headerSD').style.fontWeight='normal';
					g(idd + '-headerSD').style.color='#1d723f';
					//g(idd + '-headerSD').style.color = '#b0292f';
				}else{
					g(idd + '-headerSD').style.backgroundPosition = '3px -18px';
					//g(idd + '-headerSD').style.fontWeight='bold';
					g(idd + '-headerSD').style.color='#1d723f';
					//g(idd + '-headerSD').style.color = '#fff';
				}
		},
		slide:function(i){
			var c,m,h,dist; c=document.getElementById(i); m=c.maxh; h=c.offsetHeight;
			dist=(c.direction==1)?Math.round((m-h)/speed):Math.round(h/speed);
			if(dist<=1){dist=1}
			c.style.height=h+(dist*c.direction)+'px';
			
			c.style.opacity=h/c.maxh; 
			c.style.filter='alpha(opacity='+(h*100/c.maxh)+')';				
			
			if(h<2&&c.direction!=1){
				c.style.display='none'; 
				clearInterval(c.timer);
			}else if(h>(m-2)&&c.direction==1){clearInterval(c.timer)}
		}
};}();

function initWindow(){
		try{
			slider.init('slider',0);
		}catch(e){
		}
}

// Window onload event called when the page loads for initializing the menus n stuff
window.onload = function (){
		initWindow();
};
function changeDivContent(newContent)
{
	var content=new Array();
	//Falcon 7x
	content[0]='<div class="floatr"><img src="images/download-pdf.jpg" alt="" /></div><br /><span class="green-txt"><strong>Falcon 7X</strong> - Ultra Long Range Three-Engine Business Jet</span><br/><br /><p> Manufactured by Dassault Aviation, Falcon 7X is the first fully fly–by-wire new generation ultra long range three engine business jet. Equipped with in-flight entertainment and full galley service, this is the first Falcon 7X in the region. With a high cruise speed &amp; range; the aircraft is capable of flying non-stop to most of the major worldwide destinations.</p> <p><strong>Cabin Amenities</strong><br /> Full Galley Service, DVD Player, Air Show, Club Seats, Reading Light, Individual Table Light, Cold Air Outlets, 02 Lavatory</p> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">Falcon 7x</td> </tr> <tr> <td>Number of aircrafts</td> <td>1</td> </tr> <tr> <td>Max Range in distance</td> <td>5950 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>Mach .90/540 KTS</td> </tr> <tr> <td>Cruise Altitude</td> <td>51000 Ft</td> </tr> <tr> <td>Runway Length</td> <td>5500 Ft</td> </tr> <tr> <td>Pax capacity</td> <td>14</td> </tr> <tr> <td>Cabin Height</td> <td>06 ft 02in</td> </tr> <tr> <td>Power Outlets</td> <td>Yes</td> </tr> <tr> <td>Air Show System</td> <td>Yes</td> </tr> <tr> <td>Lavratory</td> <td>2</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)<br /> Trafic Alert and collision Avoilance System (TCAS II)</td> </tr> <tr> <td>Amenities</td> <td>Full Galley Service, DVD Player, Air Show, Club Seats, Reading Lights, Indiviual Table Light Cold Air Outlets</td> </tr> </table> <br /> </a>';
	//FALCON 2000
	content[1]='<span>Twin Engine Luxury Business Jet<br> <br> Falcon 2000 is a twin-engine business jet manufactured by French manufacturing company, Dassault Aviation. It has a transcontinental range with a flying endurance time of up to 7hrs 10mins. This 8 seater, luxury business jet has a wide cabin, which offers high level of comfort, luxury and is equipped with full galley service and in-flight entertainment.<br> <br> <strong>Cabin Amenities</strong><br> Full Galley Service, DVD &amp; CD Player, Power Outlets, Lavatory </span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">FALCON 2000</td> </tr> <tr> <td class="right_border">Number of aircrafts</td> <td>1</td> </tr> <tr> <td>Max Range in distance</td> <td>3200 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>Mach .85/510 KTS</td> </tr> <tr> <td>Cruise Altitude</td> <td>47000 FT</td> </tr> <tr> <td>Runway Length</td> <td>5000 FT</td> </tr> <tr> <td>Pax capacity</td> <td>8</td> </tr> <tr> <td>Cabin Height</td> <td>06 ft 02in</td> </tr> <tr> <td>Power Outlets</td> <td>Yes</td> </tr> <tr> <td>Air Show System</td> <td>No</td> </tr> <tr> <td>Lavratory</td> <td>Yes</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)<br> Traffic Alert and Collision Avoidance System (TCAS II)</td> </tr> <tr> <td>Amenities</td> <td>Full Galley Service, DVD &amp; CD Player, Power Outlets</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/Falcon2000.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';
	//Hawker 80OXP 
	content[2]='<span>Midsize Business Jet<br> <br> Hawker Beechcrafts Hawker 800XP is 8 passenger midsize business jet that has an endurance time of 05hrs 20mins. It is well equipped with safety equipments and in-flight entertainment. Hawker 800XP is best preferred by corporates for destinations within India and neighboring countries.<br> <br> <strong>Cabin Amenities</strong><br> Full Galley Service, DVD Player, Air Show, Club Seats, Lavatory </span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">HAWKER 800XP</td> </tr> <tr> <td>Number of aircrafts</td> <td>1</td> </tr> <tr> <td>Max Range in distance</td> <td>2600 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>447 NM/HR</td> </tr> <tr> <td>Cruise Altitude</td> <td>41000 FT</td> </tr> <tr> <td>Runway Length</td> <td>6000 FT</td> </tr> <tr> <td>Pax capacity</td> <td>8</td> </tr> <tr> <td>Cabin Height</td> <td>05 ft 09in</td> </tr> <tr> <td>Power Outlets</td> <td>No</td> </tr> <tr> <td>Air Show System</td> <td>Yes</td> </tr> <tr> <td>Lavratory</td> <td>Yes</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)<br> Traffic Alert and Collision Avoidance System (TCAS II)</td> </tr> <tr> <td>Amenities</td> <td>Full Galley service, DVD Player, Air Show, Club Seats</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/Hawker800XP.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';
	//Beechcraft 1900D 
	content[3]='<span> Executive Twin-Engine Turboprop<br> <br> Our Hawker Beechcrafts 1900D is a 15/13* passenger, pressurized twin-engine turboprop airplane. The aircraft is designed to carry passengers from airports with relatively short runways. It is one of the most popular passenger aircraft and used by many prestigious airlines in the world. It is a proven aircraft for regional/feeder routes. It has standup cabin height, which allows passengers to walk upright. The aircraft has VIP executive interiors and is equipped with in-flight entertainment.<br> <br> <strong>Cabin Amenities</strong><br> DVD Player, Air Show, Club Seats, Lavatory </span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">BEECHCRAFT 1900D</td> </tr> <tr> <td>Number of aircrafts</td> <td>2</td> </tr> <tr> <td>Max Range in distance</td> <td>1490 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>250 NM/HR</td> </tr> <tr> <td>Cruise Altitude</td> <td>25000 FT</td> </tr> <tr> <td>Runway Length</td> <td>4200 FT</td> </tr> <tr> <td>Pax capacity</td> <td>13/15</td> </tr> <tr> <td>Cabin Height</td> <td>05 ft 11in</td> </tr> <tr> <td>Power Outlets</td> <td>No</td> </tr> <tr> <td>Air Show System</td> <td>No</td> </tr> <tr> <td>Lavratory</td> <td>Yes</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)<br> Traffic Alert and Collision Avoidance System (TCAS II)</td> </tr> <tr> <td>Amenities</td> <td>DVD Player, Air Show, Club Seats</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/Beech1900D.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';
	//King Air B200 
	content[4]='<span> Small Range &amp; Air Ambulance Turboprop<br> <br> KingAir B200 is manufactured by Hawker Beechcraft and is a family line of twin turbo props. This aircraft is ideal for small range flight and places having shorter runway strips and basic airport facilities.<br> <br> Besides being a regular charter plane, our B200 is DGCA approved for medical evacuation. The aircrafts are equipped with life port system that can be attached to the aircraft and works as a stretcher with Life saving system, Suction, and Oxygen Cylinder. The stretcher is unique as it elevates the patient from the ground level giving more comfort and room during the travel. This aircraft is most preferred by corporates and by medical institutions.<br> <br> <strong>Cabin Amenities</strong><br> Lifeport System, Lavatory </span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">KING AIR B200</td> </tr> <tr> <td>Number of aircrafts</td> <td>3</td> </tr> <tr> <td>Max Range in distance</td> <td>1600 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>285 NM/HR</td> </tr> <tr> <td>Cruise Altitude</td> <td>35000 FT</td> </tr> <tr> <td>Runway Length</td> <td>3000 FT</td> </tr> <tr> <td>Pax capacity</td> <td>8</td> </tr> <tr> <td>Cabin Height</td> <td>05 ft</td> </tr> <tr> <td>Power Outlets</td> <td>No</td> </tr> <tr> <td>Air Show System</td> <td>No</td> </tr> <tr> <td>Lavratory</td> <td>Yes</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)</td> </tr> <tr> <td>Amenities</td> <td>Lifeport system</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/King-Airb200.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';
	//King Air C90 
	content[5]='<span> Small Range Turbo Small Range<br> <br> KingAir C90 is manufactured by Hawker Beechcraft and is a family line of twin turbo props. Due to its twin engine, it is considered safer than most single engined turbo props and has higher speed. This 5 seater is perfect for short distance travel and is suitable for places that has shorter landing strips and limited airport facilities.<br> <br> <strong>Cabin Amenities</strong><br> Lavatory </span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">KING AIR C90</td> </tr> <tr> <td>Number of aircrafts</td> <td>1</td> </tr> <tr> <td>Max Range in distance</td> <td>1120 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>223 NM/HR</td> </tr> <tr> <td>Cruise Altitude</td> <td>28000 FT</td> </tr> <tr> <td>Runway Length</td> <td>3000 FT</td> </tr> <tr> <td>Pax capacity</td> <td>5</td> </tr> <tr> <td>Cabin Height</td> <td>05 ft</td> </tr> <tr> <td>Power Outlets</td> <td>No</td> </tr> <tr> <td>Air Show System</td> <td>No</td> </tr> <tr> <td>Lavratory</td> <td>Yes</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)</td> </tr> <tr> <td>Amenities</td> <td>N/A</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/King-Airc-90.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';
	//Bell 430 
	content[6]='<span> Twin Engine Executive Helicopter<br> <br> Bell 430 is a light twin engined helicopter manufactured by Bell Helicopter Textron. It has sculpted glass cockpit for clear visibility and due to its avionics and intuitive control, it holds the capability to give a smooth ride to the passengers. This chopper provides maximum comfort and is most preferred for short distance travel and places with no landing facilities.</span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td class="theading" width="35%">Aircraft Type</td> <td class="theading">BELL 430</td> </tr> <tr> <td>Number of aircrafts</td> <td>1</td> </tr> <tr> <td>Max Range in distance</td> <td>320 NM</td> </tr> <tr> <td>Max Cruise Speed</td> <td>140 NM/HR</td> </tr> <tr> <td>Cruise Altitude</td> <td>14500 FT</td> </tr> <tr> <td>Runway Length</td> <td>NA</td> </tr> <tr> <td>Pax capacity</td> <td>5</td> </tr> <tr> <td>Cabin Height</td> <td>04 ft 07in</td> </tr> <tr> <td>Power Outlets</td> <td>No</td> </tr> <tr> <td>Air Show System</td> <td>No</td> </tr> <tr> <td>Lavratory</td> <td>N/A</td> </tr> <tr> <td>Advanced Safety Equipments</td> <td>Enhanced Ground Proximity Warning System (EGPWS)</td> </tr> <tr> <td>Amenities</td> <td>N/A</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/Bell430.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';
	//Agusta 109S  
	content[7]='<span> Combination of Jets, Turboprop &amp; Helicopter</span> <br /> <br /> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="fleet-table"> <tr> <td><strong>Jet Engine</strong></td> <td>Hawker 900XP<br> Challenger 604 </td> </tr> <tr> <td><strong>Turbo Prop</strong></td> <td>Piaggio Avanti II</td> </tr> <tr> <td><strong>Helicopter</strong></td> <td>Agusta 109 - Grand</td> </tr> </table> <br /> <br /> <strong class="green">Click for Download</strong> <a href="http://www.religarevoyages.com/downloads/future-fleet.pdf"><img src="images/pdf-icon.gif" alt="" border="0" /></a>';



	var div = document.getElementById("rightcolumnpadding");
	if( div )
	{
		div.innerHTML = content[newContent];
		for ( var i=0, len=content.length; i<len; ++i ){	
			divNameOld=document.getElementById("n"+i);
			divNameOld.style.fontWeight='normal';
		}
		divName=document.getElementById("n"+newContent);
		divName.style.fontWeight='bold';
	}
}
