function imgLoader(__id)
{
var _id=__id;
var _data=eval(_id+"_data");
//var _len=_data.length;
var _num=eval(_id+"_num");
var i = 0;
imgObj = new Image();
images = new Array();
try
{
switch(_id)
{
case "items":
case "itemSell":
case "itemFaction":
case "dropItem":
case "HdropItem":
case "dropQuestItem":
case "disenchant":
for(i=0;i<_num;i++)
{
images[i]="icon/small/"+_data[i][0]+".jpg";
imgObj.src=images[i];
}
break;
case "spellsNPC":
case "spellCreat"://制造
case "spellNeed":
case "spellsSkill":
case "spellsPro":
for(i=0;i<_num;i++)
{
images[i]="icon/small/"+_data[i][1]+".jpg";
imgObj.src=images[i];
}
break;
default:
for(i=0;i<_num;i++)
{
images[i]="icon/small/"+_data[i][0]+".jpg";
imgObj.src=images[i];
}
break;
}
}
catch (e)
{ }
}