//backToTop---------------------------
function backToTop() {
  var x1 = x2 = x3 = 0;
  var y1 = y2 = y3 = 0;
  if (document.documentElement) {
      x1 = document.documentElement.scrollLeft || 0;
      y1 = document.documentElement.scrollTop || 0;
  }
  if (document.body) {
      x2 = document.body.scrollLeft || 0;
      y2 = document.body.scrollTop || 0;
  }
  x3 = window.scrollX || 0;
  y3 = window.scrollY || 0;
  var x = Math.max(x1, Math.max(x2, x3));
  var y = Math.max(y1, Math.max(y2, y3));
  window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));
  if (x > 0 || y > 0) {
      window.setTimeout("backToTop()", 25);
  }
}

//openBrWindow---------------------------

function openwin_map() { //v2.0
  window.open("map.html","","width=750,height=880,scrollbars=yes,resizable=yes");
}

function openwin_result() { //v2.0
  window.open("map.html","","width=665,height=880,scrollbars=yes,resizable=yes");
}


//closeBrWindow---------------------------
function closewin(){
    window.close();
}

//view FLASH---------------------------

function viewFlash(file,width,height){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">\n');
document.write('<param name="movie" value="'+file+'">\n');
document.write('<param name="quality" value="high">\n');
document.write('<embed src="'+file+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>\n');
document.write('</object>\n');
}

function subFlash(file){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="1000">\n');
document.write('<param name="wmode" value="transparent" />\n');
document.write('<param name="movie" value="'+file+'">\n');
document.write('<param name="quality" value="high">\n');
document.write('<embed src="'+file+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="1000" wmode="transparent"></embed>\n');
document.write('</object>\n');
}



//open Window ---------------------------

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//qa Window ---------------------------

function indexImg(i)
{
 if(i == 1){
		document.myIMG1.src = "../images/qa/btn_qa001_off.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='block';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else if(i == 2){
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002_off.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='block';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else if(i == 3) {
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003_off.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='block';
		document.getElementById("myTable4").style.display='none';
	} else{
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004_off.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='block';
	}
}

function indexImg1(i)
{
	if(i == 1){
		document.myIMG1.src = "../images/qa/btn_qa001_off.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='block';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else if(i == 2){
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002_off.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='block';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else if(i == 3) {
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003_off.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='block';
		document.getElementById("myTable4").style.display='none';
	} else{
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004_off.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG2.height = "45";
		document.myIMG2.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='block';
	}
}



function indexImg2(i)
{
	if(i == 1){
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002_off.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='block';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';		
	} else if(i == 2){
		document.myIMG1.src = "../images/qa/btn_qa001_off.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='block';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else if(i == 3) {
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003_off.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='block';
		document.getElementById("myTable4").style.display='none';
	} else{
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004_off.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='block';
	}
}



function indexImg3(i)
{
	if(i == 1){
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003_off.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='block';
		document.getElementById("myTable4").style.display='none';
		
		
	} else if(i == 2){
		document.myIMG1.src = "../images/qa/btn_qa001_off.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='block';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
		
		
	} else if(i == 3) {
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002_off.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='block';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else{
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004_off.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='block';
	}
}


function indexImg4(i)
{
	if(i == 1){
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004_off.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='block';
	} else if(i == 2){
		document.myIMG1.src = "../images/qa/btn_qa001_off.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='block';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else if(i == 3) {
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002_off.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='block';
		document.getElementById("myTable3").style.display='none';
		document.getElementById("myTable4").style.display='none';
	} else{
		document.myIMG1.src = "../images/qa/btn_qa001.jpg";
		document.myIMG2.src = "../images/qa/btn_qa002.jpg";
		document.myIMG3.src = "../images/qa/btn_qa003_off.jpg";
		document.myIMG4.src = "../images/qa/btn_qa004.jpg";
		document.myIMG1.height = "45";
		document.myIMG2.height = "45";
		document.myIMG3.height = "45";
		document.myIMG4.height = "45";
		document.getElementById("myTable1").style.display='none';
		document.getElementById("myTable2").style.display='none';
		document.getElementById("myTable3").style.display='block';
		document.getElementById("myTable4").style.display='none';
	}
}

(function() {
var sb = document.getElementById('srchBox');
if (sb && sb.className == 'watermark') {
  var si = document.getElementById('srchInput');
  var f = function() { si.className = 'nomark'; };
  var b = function() {
    if (si.value == '') {
      si.className = '';
    }
  };
  si.onfocus = f;
  si.onblur = b;
  if (!/[&?]p=[^&]/.test(location.search)) {
    b();
  } else {
    f();
  }
}
})();
