<?
/*
//¾Æ¹ÙŸ ·¹º§°ü·Ã Á¤ÀÇ
// freechal.com .. ÇÁ·Î±×·¥ Àû¿ëµÈ À̹ÌÁöÆ÷¸Ë
http://218.145.54.39/_Avatar/800/800MN0043s.gif
¹è°æ            images/_Avatar/020/020U00008s.gif
¸ö(MD/WD)    images/_Avatar/160/160MD0000s.gif
¾ó±¼Çü        images/_Avatar/180/180UD0000s.gif
ÄÚ.ÀÔ        images/_Avatar/190/190UD0001s.gif
´«            images/_Avatar/200/200UD0000s.gif
¼±±Û¶ó½º        images/_Avatar/240/240UN0004s.gif
±Í°ÉÀÌ        images/_Avatar/260/260UN0003s.gif
¾ç¸»(MN/WN)    images/_Avatar/280/280MN0003s.gif
½Å¹ß(MN/WN)    images/_Avatar/480/480MN0011s.gif
ÇÏÀÇ(MN/WN)    images/_Avatar/520/520MN0037s.gif
¸ñ°ÉÀÌ        images/_Avatar/740/740UN0011s.gif
»óÀÇ(MN/WN)    images/_Avatar/800/800MN0002s.gif
»óÀÇ¿ÜÅõ        images/_Avatar/810/810MN0008s.gif
Çì¾î            images/_Avatar/840/840U00037s.gif
*/

    // ¼ºº°¿¡ °üÇѠ󸮺κÐ
    
if(!$strGetSex$strGetSex "M";

?>

<script language=javascript>
<!-- 
var intLayLen = 3;

<?
    
// ¼ºº°¿¡ µû¸¥ ±âº» ÀÇ»óÀ» ¼¼ÆÃÇÑ´Ù.
    
if($strGetSex == "W")
    {
        echo 
"var strGetSex    = 'W';\n";
        if(
$wearlist == "")
        {
            echo 
"var wearlist    = '160W0000,180U0000,190U0000,200U0000,840U0003';";
        } else
        {
            echo 
"var wearlist    = '$wearlist';";
        }
    } else
    {
        echo 
"var strGetSex    = 'M';\n";
        if(
$wearlist == "")
        {
            echo 
"var wearlist    = '160M0000,180U0000,190U0000,200U0000,840U0000';";
        } else
        {
            echo 
"var wearlist    = '$wearlist';";
        }
    }
?>

// ¿Ê ÀÔÈ÷´Â ÇÔ¼ö1
function WearList(strCheck) 
{
    if(strCheck.substring(0,1) == ",")
        strCheck = strCheck.substring(0);

    var vntCheck = strCheck.split(',');
    var LayNM;
    
    for(i=0;i<vntCheck.length;i++)    
    {        
        LayNM = vntCheck[i].substring(0,intLayLen);    
        imgNM = vntCheck[i].substring(0) + ".gif";                    
        //À̹ÌÁö »ðÀÔ
        eval("document.image" + LayNM + ".src ='images/" + imgNM + "'");        
    }
}

// ¿Ê ÀÔÈ÷´Â ÇÔ¼ö2
function getDress(Item, AddItem) 
{    
    if(Item == "") return;

    var ItemSex = Item.substr(intLayLen,1);    

    if ((ItemSex.toUpperCase() != "U") && (ItemSex.toUpperCase() != strGetSex)) 
    {
        alert("¼ºº°ÀÌ ´Ù¸¨´Ï´Ù.");
        return;
    }

    var LayNM,xx;
    LayNM = Item.substring(0,intLayLen);    
    imgNM = Item.substring(0) + ".gif";        

    var temp = wearlist.split(",");
    for(i=0;i<temp.length;i++)
    {
        if(temp[i].substring(0,intLayLen) == LayNM)
        {
            temp[i] = Item;
            xx = 0;
        }
    }
    wearlist = temp.join();
    if(xx!=0) wearlist = wearlist + ',' + Item;

    eval("document.image" + LayNM + ".src ='images/" + imgNM + "'");
}

function goCategory(Category, ItemSpec)
{
    document.location.href = "?Category=" + Category + "&ItemSpec=" + ItemSpec + "&strGetSex=" + strGetSex + "&wearlist=" + wearlist;
}

function chgSexM()
{
    document.location.href='?strGetSex=M';
}

function chgSexW()
{
    document.location.href='?strGetSex=W';
}
 -->
</script>

<div align="center">
<table border="0" cellspacing="0" width="600" bgcolor="black">
    <tr>
        <td align="center" bgcolor="white" width="298">
            <p>
            <DIV id=avatar style='position:relative ;left:2;top:0;width:100; height:200;overflow:visible;background-color:white'>
                <DIV id=layer020 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:1'><img name='image020' id='image020' src='images/1by1.gif' border=0 style='z-index:1'></DIV>
                <DIV id=layer160 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:2'><img name='image160' id='image160' src='images/1by1.gif' border=0 style='z-index:2'></DIV>
                <DIV id=layer180 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:3'><img name='image180' id='image180' src='images/1by1.gif' border=0 style='z-index:3'></DIV>
                <DIV id=layer190 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:4'><img name='image190' id='image190' src='images/1by1.gif' border=0 style='z-index:4'></DIV>
                <DIV id=layer200 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:5'><img name='image200' id='image200' src='images/1by1.gif' border=0 style='z-index:5'></DIV>
                <DIV id=layer240 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:6'><img name='image240' id='image240' src='images/1by1.gif' border=0 style='z-index:6'></DIV>
                <DIV id=layer260 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:7'><img name='image260' id='image260' src='images/1by1.gif' border=0 style='z-index:7'></DIV>
                <DIV id=layer280 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:8'><img name='image280' id='image280' src='images/1by1.gif' border=0 style='z-index:8'></DIV>
                <DIV id=layer480 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:9'><img name='image480' id='image480' src='images/1by1.gif' border=0 style='z-index:9'></DIV>
                <DIV id=layer520 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:10'><img name='image520' id='image520' src='images/1by1.gif' border=0 style='z-index:10'></DIV>
                <DIV id=layer740 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:11'><img name='image740' id='image740' src='images/1by1.gif' border=0 style='z-index:11'></DIV>
                <DIV id=layer800 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:12'><img name='image800' id='image800' src='images/1by1.gif' border=0 style='z-index:12'></DIV>
                <DIV id=layer810 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:13'><img name='image810' id='image810' src='images/1by1.gif' border=0 style='z-index:13'></DIV>
                <DIV id=layer840 style='position:absolute; left:0px; top:0px; width:100; height:200; z-index:14'><img name='image840' id='image840' src='images/1by1.gif' border=0 style='z-index:14'></DIV>
            </DIV>
            </p>
        </td>
        <td align="center" bgcolor="white" width="298">
                <p align="left">
<?
    
if($strGetSex == "M")
    {
        echo 
"<a href='javascript:chgSexW()' class=bk>¿©ÀÚ ¾Æ¹ÙŸ ²Ù¹Ì±â</a><br>";
    } else 
    {
        echo 
"<a href='javascript:chgSexM()' class=bk>³²ÀÚ ¾Æ¹ÙŸ ²Ù¹Ì±â</a><br>";
    }
?>
                <a href=javascript:goCategory('180','U') class=bk>¾ó±¼Çü</a> | 
                <a href=javascript:goCategory('200','U') class=bk>´«</a> | 
                <a href=javascript:goCategory('190','U') class=bk>ÄÚ/ÀÔ</a> | 
                <a href=javascript:goCategory('160','') class=bk>¸ö</a> | 
                <a href=javascript:goCategory('840','U') class=bk>Çì¾î</a><br>
                <a href=javascript:goCategory('800','') class=bk>»óÀÇ</a> | 
                <a href=javascript:goCategory('520','') class=bk>ÇÏÀÇ</a> | 
                <a href=javascript:goCategory('280','') class=bk>¾ç¸»</a> | 
                <a href=javascript:goCategory('480','') class=bk>½Å¹ß</a> | 
                <a href=javascript:goCategory('240','U') class=bk>¼±±Û¶ó½º</a> | 
                <a href=javascript:goCategory('260','U') class=bk>±Í°ÉÀÌ</a> | 
                <a href=javascript:goCategory('020','U') class=bk>¹è°æ</a></p>
        </td>
    </tr>
    <tr>
        <td align="center" bgcolor="white" colspan="2">
                <p>
<?

if($ItemSpec <> "U"$ItemSpec $strGetSex;
$like_state $Category.$ItemSpec;

    
$query "SELECT * FROM avatar WHERE image like '$like_state%'";

    
    
$result mysql_query($query,$dbconn);
    if (!
$result) {
        
error("QUERY_ERROR");
        exit;
    }

    while(
$row mysql_fetch_object($result))
    {
        
$item explode(".gif",$row->imgage);
        
$items $item[0]."s";
        echo 
"<a href=\"javascript:getDress('$item[0]','')\"><img src='images/$items.gif' border=0 align=absmiddle width='94'></a>&nbsp;&nbsp;";
    }

?>
                </p>
        </td>
    </tr>
    <tr>
        <td align="center" bgcolor="white" colspan="2">
                <p>&nbsp;</p>
        </td>
    </tr>
</table></div>

<TABLE cellSpacing=0 cellPadding=0 width="600" align=center border=0>
    <TR>
        <TD><font class="bunho1">&nbsp;01&nbsp;</font> <B>¼Ò°³</B></TD>
    </TR>
    <TR>
        <TD><br>
            <table border="0" cellpadding="0" cellspacing="0" width="550" align=right>
                <tr>
                    <td>
                        <p>
                        °£´ÜÇÑ ±â´É¸¸ Àִ ¾Æ¹ÙŸ¸¦ ¸¸µé¾î ºÃ½À´Ï´Ù.<br>
                        È¸¿ø±â´É ¹× ¼îÇΠ±â´ÉÀ» Ãß°¡Çϸ頿Ϻ®ÇÑ ³»¿ëÀÌ µÇ°ÚÁÒ. ^^<br>
                        À̹ÌÁö ÀúÀ۱Ǡ¶§¹®¿¡... È¨ÇÇ¿¡ Àû¿ëÀ» ½ÃŰÁö ¸øÇß½À´Ï´Ù....(½Ç·ÂÀÌ ¾ø¾î¼­ Àϼöµµ -.-;;)<br><br>
                        º°´Ù¸¥ ¼³¸íÀÌ ¾ø¾îµµ ¼Ò½ºº¸±â Çϼż­ HTML ¼Ò½º º¸½Ã¸é ½Ã¿øÇϰԠ¾Æ½Ç¼ö ÀÖÀ»µí ½Í½À´Ï´Ù.<br>
                        PHPÇÁ·Î±×·¡¹ÖÀÌ µé¾î°£ ºÎºÐÀº °ÅÀÇ ¾øÀ¸´Ï±î¿ä..<br><br>
                        ¡Ø À§ ¾Æ¹ÙŸÀÇ À̹ÌÁö´Â Freechal.comÀÇ À̹ÌÁö¸¦ »ç¿ëÇÏ¿´½À´Ï´Ù.<br>
                        ÇнÀ¿ëÀ¸·Î »ç¿ëÇÏ¿´À½À» ¹àÈ÷¸ç, ÀúÀ۱ǿ¡ ¹®Á¦°¡ µÈ´Ù¸é ÆäÀÌÁö¸¦ »èÁ¦Çϵµ·Ï ÇϰڽÀ´Ï´Ù.<br>
                        </p>
                    </td>
                </tr>
            </table>            
        </TD>
    </TR>    
    <TR>
        <TD background="/common/images/guide_dot.gif" height=1></TD>
    </TR>    <TR>
        <TD><font class="bunho1">&nbsp;01&nbsp;</font> <B>¼³¸í</B></TD>
    </TR>
    <TR>
        <TD><br>
            <table border="0" cellpadding="0" cellspacing="0" width="550" align=right>
                <tr>
                    <td>
                        <p>
                        Layer¸¦ »ç¿ëÇØ¼­ ÇÁ¸®Ã§¿¡¼­ ÇÏ´À ¹æ½ÄÀ¸·Î ¸¸µé¾î ºÃ½À´Ï´Ù.<br>
                        °ÅÀÇ Ä«ÇÇ ¼öÁØÀÔ´Ï´Ù.    °øºÎÇϽô ºÐ²²´Â °£·«ÇѰԠÁÁÀ»µí ½Í¾î¼­¸®. -.-;;<br><br>

                        ³²¿© ¼ºº°¿¡ µû¸¥ ºÐ·ù¸¦ ÇϽÅÈÄ °¢°¢ÀÇ À̹ÌÁö¸¦ ·¹À̾ø¼­·Î ½×¾Æ ¿Ã·ÁÁָ頵Ǵ°̴ϴÙ.<br>
                        ÇÁ·Î±×·¥ ÀûÀΠ°ÍÀÌ ¾ø¾î¼­ ´õÀ̻󠼳¸íµå¸®±â°¡ Èûµé±º¿ä.. ÇÏÇÏ...<br>
                        <a href=index.phps target=_blank class=bk>¼Ò½º</a> º¸½Ã°í µµ¿òµÇ½Ã±æ ¹Ù¶ø´Ï´Ù.<br><br>
                        ¢º <a href=index.phps target=_blank class=bk>¼Ò½ºº¸±â</a><br><br>
                        </p>
                    </td>
                </tr>
            </table>            
        </TD>
    </TR>    
    <TR>
        <TD background="/common/images/guide_dot.gif" height=1></TD>
    </TR>
</TABLE>

<script language=javascript>
    WearList(wearlist);    
</script>