    function changeContent(content) 
    {
        for (i = 1; i <= 4; i++) 
        {
            var cont = "news_" + i;
            var img = "smallMenu_" + i;
            var image = "url('images/libgtu.gif')";
            var image1 = "url('images/libg.gif')";
            if (content == i) 
            {
                var con = document.getElementById(cont);
                var img1 = document.getElementById(img);
                con.style.display = "block";
                img1.style.background = image;
                img1.style.margin = "0 1px 0 0";
                img1.style.color = "#146CC5";
            } 
            else 
            {
                var con = document.getElementById(cont);
                var img1 = document.getElementById(img);
                con.style.display = "none";
                img1.style.background = image1;
                img1.style.margin = "";
                img1.style.color = "";
            }
        }
    }
    /* -------------------- */
    function body1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.bodys(zy);
    }
    function wuqi1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.wuqis(zy);
    }
    function fushi1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.fushis(zy);
    }
    function lian1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.lians(zy);
    }
    function faxing1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.faxings(zy);
    }
    function peishi1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.peishis(zy);
    }
    function peishi1(o) {
        var zy = o.options[o.selectedIndex].value;
        avatar.peishis(zy);
    }
    function ints() {
        for (i = 1; i <= 158; i++) {
            document.getElementById("wuqi").options.add(new Option("武器" + i, i + ".png"));

            if (i <= 18) {
                document.getElementById("fushi").options.add(new Option("服饰" + i, i + ".png"));
            }

            if (i <= 10) {
                document.getElementById("lian").options.add(new Option("表情" + i, i + ".png"));
                document.getElementById("faxing").options.add(new Option("发型" + i, i + ".png"));
            }

            if (i <= 6) {
                document.getElementById("peishi").options.add(new Option("配饰" + i, i + ".png"));
            }
        }

    }
    /* -------------------- */	
    function showguanggao() {
        linkarr = new Array();
        picarr = new Array();
        textarr = new Array();
        var swf_width = 438;
        var swf_height = 182;
        var files = "";
        var links = "";
        var texts = ""; ftp: //www.51wan.com/jx/Images/ggao/1119jxin.jpg


        linkarr[1] = "http://www.51wan.com/lolinixi/images/ggao/090507loli.jpg";
        picarr[1] = "http://www.51wan.com/lolinixi/znews/new/200905/19994.shtml";
        textarr[1] = "《萝莉的逆袭》12日11点留档内测";
		
		linkarr[2] = "http://www.51wan.com/lolinixi/images/ggao/090507loli.jpg";
        picarr[2] = "http://www.51wan.com/lolinixi/znews/new/200905/19994.shtml";
        textarr[2] = "《萝莉的逆袭》12日11点留档内测";




        for (i = 1; i < picarr.length; i++) {
            if (files == "") files = picarr[i];
            else files += "|" + picarr[i];
        }

        for (i = 1; i < linkarr.length; i++) {
            if (links == "") links = linkarr[i];
            else links += "|" + linkarr[i];
        }

        for (i = 1; i < textarr.length; i++) {
            if (texts == "") texts = textarr[i];
            else texts += "|" + textarr[i];
        }

        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[url]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6[/url],0,0,0" width="' + swf_width + '" height="' + swf_height + '">');
        document.write('<param name="movie" value="http://www.51wan.com/product/flash/bcastr3.swf"><param name="quality" value="high">');
        document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
        document.write('<param name="FlashVars" value="bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '">');
        document.write('<embed src="http://www.51wan.com/product/flash/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file=' + files + '&bcastr_link=' + links + '&bcastr_title=' + texts + '& menu="false" quality="high" width="' + swf_width + '" height="' + swf_height + '" type="application/x-shockwave-flash" pluginspage="[url]http://www.macromedia.com/go/getflashplayer"[/url] />'); document.write('</object>');

    }
