function goto_page(cat,id){
	self.document.location.href='/index-'+cat+'-'+id+'.html';
	return false;
}
function switch_background_image(radix,order,status){
  document.getElementById(radix+(order ? '_'+order : '')).style.backgroundImage='url(/img/'+radix+'_'+status+'.jpg)';
}
function loadImages(){
  var i;
  for(i=0;i<imgLst.length;i++){
    preImg[i]=new Image();
    preImg[i].src='/img/'+imgLst[i];
  }
  for(i=0;i<preImg.length;i++){
    loaded[i]=false;
  }
  timerId=setInterval("checkLoad()",50);
}
function checkLoad(){
  var i;
  if (currCount==preImg.length){
    clearInterval(timerId);
    currCount=0;
    return;
  }
  for(i=0;i<=preImg.length;i++){
    if((loaded[i]==false)&&(preImg[i].complete)){
      loaded[i]=true;
      currCount++;
    }
  }
}
var preImg=new Array();
var loaded=new Array(),timerId,currCount=0;
