var img_pacth="http://payment.gametower.com.cn/activity/avatarshop/avatar/";
function start_face(uid)
{
    if (currface =="") {
    currface = "0";
    }
	var s="";    
    //alert(currface);
    showArray = currface.split("-");
//	if (showArray[6] != '0')
//	{
//		showArray[7] = '0';
//		showArray[8] = '0';
//		showArray[22] = '0';
//	}
    if (showArray[6] != '0' && showArray[6] != 'init' && showArray[6] != 'initf')
    {
        temp_img = showArray[6];
        showArray[13] = "HB"+temp_img.substring(2,temp_img.length);
    }

    if (showArray[5] !='0')
    {
	    temp_img = showArray[5];
	    showArray[19] = "HD"+temp_img.substring(2,temp_img.length);	    
	}

    if (showArray[22] != '0') 
    { 
      showArray[6] = 0;
      showArray[7] = 0; 
      showArray[8] = 0; 
      showArray[13] = 0;
    } 
    if (showArray[9] != '0') 
    { 
      //showArray[6] = 0;
      showArray[7] = 0; 
      showArray[8] = 0; 
      //showArray[13] = 0;
    } 
	for (var i=0; i<26; i++)
	{
		if(showArray[i] != '0')
		{
			s+="<IMG id=s"+i+" src="+img_pacth+i+"/"+showArray[i]+".gif style='padding:0;position:absolute;top:0;left:0;width:150;height:190;z-index:"+i+";'>";
            //alert("<IMG id=s"+i+" src="+img_pacth+i+"/"+showArray[i]+".gif style='padding:0;position:absolute;top:0;left:0;width:150;height:190;z-index:"+i+";'>");
		}
	}

	s+="<IMG src="+img_pacth+"blank.gif style='padding:0;position:absolute;top:0;left:0;width:150;height:190;z-index:50;'>";

    if (currface=='0') {
    s="<IMG src="+img_pacth+"noface.gif style='padding:0;position:absolute;top:0;left:0;width:150;height:190;'>";
    }

document.getElementById("Show"+uid).innerHTML=s;
}


