var overColor = new Array
overColor[0] = "#F4F4F4"
overColor[1] = "#FFFFFF"

var normalColor = new Array
normalColor[0] = "#FF0000"
normalColor[1] = "#F0EFE7"

var overTextColor = new Array
overTextColor[0] = "#000000"
overTextColor[1] = "#000000"

var normalTextColor = new Array
normalTextColor[0] = "blue"
normalTextColor[1] = "#136DA8"

function hMenu(Mobject,color,text){
   Mobject.bgColor = overColor[color];
   document.getElementById(text).style.color = overTextColor[color];
}
	
function nMenu(Mobject,color,text){
   Mobject.bgColor = normalColor[color];
   document.getElementById(text).style.color = normalTextColor[color];
}

function advancedSearch(){
   if(document.getElementById('searchFrame').height <= 105)
   {
      document.getElementById('searchFrame').height = 200;
      window.frames.searchFrame.document.getElementById('SearchOption').innerHTML = '&laquo; 关闭高级搜索';
      window.frames.searchFrame.document.searchForm.advancedSearch.value = 'yes';
   }
   else
   {
      document.getElementById('searchFrame').height = 105;
      window.frames.searchFrame.document.getElementById('SearchOption').innerHTML = '&raquo; 打开高级搜索';
      window.frames.searchFrame.document.searchForm.advancedSearch.value = 'no';
   }
}

function StatusOn(txt){
   self.status = txt
}

function StatusOff(){
   self.status = ""
}
