  function getY( oElement )
  {
  var iReturnValue = 0;
  while( oElement != null ) {
  iReturnValue += oElement.offsetTop;
  oElement = oElement.offsetParent;
  }
  return iReturnValue;
  }
function show(){
  if(document.getElementById('submenucontainer') != null){
    document.getElementById('submenucontainer').style.zIndex = "10";
  }else if(document.getElementById('loginBox') != null){
    document.getElementById('loginBox').style.zIndex = "10";
  }
  document.getElementById('content-container').style.zIndex = "-10";
}

function hide(){
  if(document.getElementById('submenucontainer') != null){
    document.getElementById('submenucontainer').style.zIndex = "-1";
  }else if(document.getElementById('loginBox') != null){
    setTimeout("hideLogin()",1000);
  }
  document.getElementById('content-container').style.zIndex = "1";
}
function hideLogin(){
  document.getElementById('loginBox').style.zIndex = "-1";
}
function funSearch(){
	if(document.search.searchText.value == 'Search...' || document.search.searchText.value == ''){
		alert("Please enter text to serach");
		document.search.searchText.value="";
		document.search.searchText.focus();
	}else{
		document.search.submit();
	}
}