var webid = "c";
var fShow_flv_search = "http://www.56.com/js/v080107/fShow_flv_search.js";
var fShow_flv_search_sites = ["video.baidu.com/", "video.gougou.com/"];
var fShow_flv_search_sites_kw = {
    "video.baidu.com/": "word",
    "video.gougou.com/": "s"
}
//来路中包含关键词的参数名
function fAddMenu() {}
var ___script___ = 
{
    channel: _page_.channel || 'index',
    top: 
    {
        //在页面顶部输出的JS
        All: 
        {
            "js": 
            [
            //"http://s1.56img.com/js/fly56/lib.js", 
            "http://s2.56img.com/js/fly56/JKL_1.1.2.js", 
            "http://s3.56img.com/js/v081225/o_utf8.js", 
            "http://s2.56img.com/js/v081225/fShowFlv_utf8.js", 
            "http://s1.56img.com/js/v081225/h_f_utf8.js"


            ],
            "js_charset": 
            [
            //"utf-8", 
            "gb2312", 
            "utf-8", 
            "utf-8", 
            "utf-8"
            ],
            "css": []

        },
        channel: 
        {
            //
            'show_flv': 
            {
                //"css":["http://www.56.com/admin/style/cartoon_2008/videodisp_20080416.css"],
                "css": [
                "http://www.56.com/admin/style/blue_2009/disp/disp_v2.33.css"
                ],
                // by rebill @ 2009-09-07
                "js": [
                "http://s3.56img.com/js/v080107/oReview.js"
                ],
                "js_charset": 
                [
                "gb2312"
                ]

            }

        }

    },
    foot: 
    {
        All: 
        {
            //'script':'$(document).ready(function(){setTimeout("fAddMenu();",2000);});'	
            },
        channel: 
        {
            'show_flv': 
            {
                "script": 'webid="c"; ',
                "js": [
                //"http://www.56.com/js/v081225/broadcast.js",
                "http://s3.56img.com/js/56stat.js", 
                "http://s1.56img.com/js/v081225/acShowFlv.js"

                ],
                "js_charset": 
                [
                "utf-8", 
                "gb2312"
                ]

            }

        }

    },
    include: function(station, channel)
    {
        station = station ? 'foot': 'top';
        channel = channel || this.channel || 'index';
        var vars = this[station];
        this._include(vars.All);
        this._include(vars.channel[channel]);

    },
    _includeScript: function(url, id, defer, js_charset)
    {
        url = url ? ' src="' + url + '" ': '';
        id = id ? ' id="' + id + '" ': '';
        defer = defer || '';
        js_charset = js_charset ? 'charset="' + js_charset + '"': '';

        document.write('<script ' + js_charset + ' type="text/javascript" ' + id + ' ' + url + ' ' + defer + '></script>');

    },
    _includeCss: function(url, id)
    {
        url = url ? ' href="' + url + '" ': '';
        id = id ? ' id="' + id + '" ': '';
        document.write('<link rel="stylesheet" type="text/css" ' + id + ' ' + url + ' />');

    },
    _include: function(o)
    {
        var k,
        a;
        for (k in o)
        {
            a = o[k];
            if (k == 'js')
            {
                for (i = 0; i < a.length; i++) {
                    try {
                        if (typeof(o["js_charset"]) != "undefined" && typeof(o["js_charset"][i]) != "undefined") {
                            this._includeScript(a[i], "", "", o["js_charset"][i]);

                        } else {
                            this._includeScript(a[i]);

                        }

                    } catch(e) {}

                }

            } else if (k == 'css')
            {
                for (i = 0; i < a.length; i++) {
                    this._includeCss(a[i]);
                }

            } else if (k == 'js_id')
            {
                for (i = 0; i < a.length; i++) {
                    this._includeScript('', a[i]);
                }

            } else if (k == 'css_id')
            {
                for (i = 0; i < a.length; i++) {
                    this._includeCss('', a[i]);
                }

            } else if (k == 'script')
            {
                eval(a);

            }

        }

    }

};
/**
 * @author zhys9
 * @date 10-12-2007
 * @todo show related search result on page of play flv
 */
function parse_str(string) {
    var a = [];
    var oRs = {};
    var dm = string.substr(string.indexOf("://") + 3);
    var jdomain = dm.substr(0, dm.indexOf("/"));
    var query = string.substr(string.indexOf('?') + 1);
    var tmp = query.split('&');
    var k;
    for (var i = 0; i < tmp.length; i++) {
        a = tmp[i].split('=');
        oRs[a[0]] = a[1];

    }
    oRs["jdomain"] = jdomain;
    return oRs;

}


___script___.include();
//var TmpDomain = document.domain;
try {
    document.domain = "56.com";
} catch(e) {}