// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  return("undefined");
}

function changeFlashHeight(arg) {	
	if (arg == "open"){
		document.getElementById("hkla").height = "257"+"px";
	}else{
		document.getElementById("hkla").height = "96"+"px";
	}
}

function msgBox(){
  var msgbox = document.getElementById("nav");  
  var x = document.documentElement.clientWidth/2 - 490;
  
  if (x > 5){
 	 msgbox.style.left = x+"px";
  } else {
  	msgbox.style.left = "5px";
  }
}
