// JavaScript Document
/*<![CDATA[*/
function A(i,x)
{document.getElementById('a'+i).src="./core/images/aa1_0"+x+".gif"}
function B(i,x)
{document.getElementById('a'+i).src="./core/images/aa1_0"+x+".gif"}
function doBlink() {
  var blink = document.all.tags("BLINK");
  for (var i=0; i < blink.length; i++)
    blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "";
}
function startBlink() {
  if (document.all)
    setInterval("doBlink()",300);
}
window.onload = startBlink;
/*]]>*/

/*<![CDATA[*/
function openwindow(page_link){
a=window.open(page_link,'1','top=1,left=129,width=577,height=650,status=no,location=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no');
}

function openwindow1(page_link){
a=window.open(page_link,'1','top=1,left=129,width=330,height=310,status=no,location=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no');
}

function openwindow3(page_link){
a=window.open(page_link,'1','top=1,right=129,width=350,height=330,status=no,location=no,toolbar=no,scrollbars=yes,resizable=no,menubar=no');
}

function printdiv(printpage)
{
var headstr = "<html><head><title>Bahrain Air</title></head><body>";
var footstr = "</body>";
var newstr = document.all.item(printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr+newstr+footstr;
window.print(); 
document.body.innerHTML = oldstr;
return false;
}

function doSection(secNum){
secNum=document.getElementById(secNum)

//display the section if it's not displayed; hide it if it is displayed 
if (secNum.style.display=="none"){secNum.style.display=""}
else{secNum.style.display="none"}
}

function setLinkContent(link, content, previous) {
if (document.all) {
if (link.innerText == content) {
link.innerText = previous;
} else {
link.innerText = content;
}
}
else if (document.getElementById) {
if (link.firstChild.nodeValue == content) {
link.firstChild.nodeValue = previous;
} else {
link.firstChild.nodeValue = content;
}
}
}
/*]]>*/


function ShowHide(elementId)
{
	var element = document.getElementById(elementId);
	if(element.style.display != "block")
	{
		element.style.display = "block";
	}
	else
	{
		element.style.display = "none";
	}
}
function UpdateText(element)
{
	if(element.innerHTML.indexOf("More") != -1)
	{
		element.innerHTML = "Close";
	}
	else
	{
		element.innerHTML = "More";
	}
}


//  document.getElementById('Faqtab').style.display=='none'; 
 
          function ToggleFAQDiv(DivId,ImageId)
          {
            if (
                document.getElementById(DivId).style.display=='none' ||
                document.getElementById(DivId).style.display==''
                )
            {
            
              document.getElementById(DivId).style.display='block';
              document.getElementById(ImageId).src='core/images/plus.gif';
            }
            else
            {
              document.getElementById(DivId).style.display='none';
              document.getElementById(ImageId).src='core/images/minus.gif';
            }           }
