function restore_img_src(name, nsdoc)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img && img.altsrc) {
    img.src    = img.altsrc;
    img.altsrc = null;
  }
}

function preload_img()
{
  var img_list = na_na_preload_img.arguments;
  if (document.preloadlist == null)
    document.preloadlist = new Array();
  var top = document.preloadlist.length;
  for (var i=0; i < img_list.length-1; i++) {
    document.preloadlist[top+i] = new Image;
    document.preloadlist[top+i].src = img_list[i+1];
  }
}

function change_img_src(name, nsdoc, rpath, preload)
{
  var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
  if (name == '')
    return;
  if (img) {
    img.altsrc = img.src;
    img.src    = rpath;
  }
}

function popimage(imagesrc,winwidth,winheight){
	var look='width='+winwidth+',height='+winheight+','
	popwin=window.open("","",look)
	popwin.document.open()
	popwin.document.write('<body onContextMenu="return false;"  leftmargin=0 marginwidth=0 topmargin=0 marginheight=0><img onclick="self.close()" src="'+imagesrc+'"></body>')
	popwin.document.close()
}

function win1()
{
       win = window.open("company7_bus.htm","bus_time","toolbar=no ,width=600 ,height=400,directories=no,status=yes,scrollbars=yes,menubar=no");
}

function win2()
{
       win = window.open("company7_air.htm","air_time","toolbar=no ,width=600 ,height=220,directories=no,status=yes,scrollbars=yes,menubar=no");
}
function custom_qna()
{
       qna = window.open("../customer_qna.htm","custom_qna","toolbar=no ,width=500 ,height=350,directories=no,status=yes,scrollbars=yes,menubar=no");
}
function toggleMenu(currMenu) {
	if (document.all) {
		thisMenu = eval("document.all." + currMenu + ".style");
		if (thisMenu.display == "block") {
			thisMenu.display = "none";
		}
		else {
			thisMenu.display = "block";
		}
		return false;
		}
	else {
		return true;
	}
}
function allBlur() {
	for (i=0; i < document.links.length; i++) {
		document.links[i].onfocus = document.links[i].blur;
	}
	for (i=0;i<InputLink.length;i++) {
		if (InputLink[i].type == "image") {
		InputLink[i].onfocus = InputLink[i].blur;
		}
	}
}
var InputLink = document.all.tags("INPUT");
onload=allBlur;
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 