var webid = "c";
function fAddMenu(){
	var a = document.getElementById('M1');
	var b = document.createElement('li');
	b.setAttribute('class','Add');
	b.setAttribute('className','Add');
	b.innerHTML = '<a href="http://2006.56.com/acss/acss.php?atable=200703&targetUrl=http%3A%2F%2Fwww.56.com%2Fheart.html&aid=302" target="_blank" title="神奇的读心术"> </a>';
	a.appendChild(b);
}
var ___script___ =
{
	channel:_page_.channel || 'index',
	top:
	{   //在页面顶部输出的JS
    	All:
    	{	
    		"js":
    		[
    			'http://www.56.com/js/fly56/lib.js',
    			'http://www.56.com/js/fly56/o_.js',
    			'http://www.56.com/js/fly56/oQL.js',
    			'http://www.56.com/js/fly56/JKL_1.1.2.js'
    		],
    		"css":
    		[
    			'http://www.56.com/admin/style/blue_200612/theme_20070207.css'
    		]
    	},
    	channel:
    	{  //
    	    'index':
        	{//
        		'css':['http://www.56.com/admin/style/blue_200612/home.css'],
				'js':['http://www.56.com/js/hao56/fly56/show_list.google_ad.js']
        	},
        	'channel':
        	{
        		'css':['http://www.56.com/admin/style/blue_200612/channel_videolist.css']
        	},
			'show_list':
			{
				'css':['http://www.56.com/admin/style/blue_200612/videolist.css'],
				'js':['http://www.56.com/js/hao56/fly56/show_list.google_ad.js']
			},
			'album_list':
			{
				'css':['http://www.56.com/admin/style/blue_200612/videolist.css'],
				'js':['http://www.56.com/js/hao56/fly56/show_list.google_ad.js']
			},
			'search_list':
			{
				'css':['http://www.56.com/admin/style/blue_200612/search.css']
			},
			'show_channel':
			{
				'css':['http://www.56.com/admin/style/blue_200612/show_channel.css']
			},
			'show_user':
			{
				'css':['http://www.56.com/admin/style/blue_200612/userindex.css'],
				'js':['http://www.56.com/js/fly56/oReview.js',
					  'http://www.56.com/js/fly56/fShowUser.js']
			},
			'show_userDsy':
			{
				'css':['http://www.56.com/admin/style/blue_200612/userindex.css'],
				'js':['http://www.56.com/js/fly56/fShowUserDsy.js']
			},
			'show_flv':
			{
				'css':['http://www.56.com/admin/style/blue_200612/videodisplay_kuan.css'],
				'js':['http://www.56.com/js/fly56/oReview.js',
					  'http://www.56.com/js/fly56/fShowFlv.js',
					  'http://www.56.com/js/hao56/fly56/show_flv_hao56.js']
			},
			'share':
			{
				'js':['http://www.56.com/js/fly56/fShowFlv.js']
			},
			'review':
			{
				'js':['http://www.56.com/js/fly56/oReview.js']
			},
			'userLogin':
			{
				'css':['http://www.56.com/admin/style/blue_200612/login.css']
			},
			'admin':
			{
				'js':['http://w.56.com/Scripts/oA.js'],
				'css':['http://www.56.com/admin/style/blue_200612/admin0205.css']
			},
			'album_play':
			{
				'css':['http://www.56.com/admin/style/blue_200612/specialdisp_kuan.css'],
				'js':['http://www.56.com/js/fly56/aReview.js', 'http://www.56.com/js/fly56/oReview.js']				
			},
			'album_info':
			{
				'js':['http://www.56.com/js/fly56/aReview.js'],
				'css':['http://www.56.com/admin/style/blue_200612/speciallist.css']
			}
    	}
	},
	foot:
	{
	    All:
		{
			//'script':'$(document).ready(function(){setTimeout("fAddMenu();",2000);});'	
		},
	    channel:
    	{//
    	    'index':
			{
				'script':'webid="i";',
				'js':['http://www.56.com/js/56stat.js']	
			},
        	'channel':
			{
				'script':'webid="channel";',
				'js':['http://www.56.com/js/hao56/fly56/channel.foot.js',
					  'http://www.56.com/js/56stat.js']	
			},
			'show_list':
			{
				'script':'webid="list";',
				'js':['http://www.56.com/js/hao56/fly56/show_list.foot.js',
					  'http://www.56.com/js/56stat.js']
			},
			'album_list':
			{
				'script':'webid="union";',
				'js':['http://www.56.com/js/hao56/fly56/show_list.foot2.js',
					  'http://www.56.com/js/56stat.js']
			},
			'search_list':
			{
				'script':'webid="s";',
				'js':['http://www.56.com/js/hao56/fly56/search_list.foot.js',
					  'http://www.56.com/js/56stat.js']
			},
			'show_channel':
			{
				'script':'webid="channel";',
				'js':['http://www.56.com/js/56stat.js']	
			},
			'show_user':
			{
				'script':'webid="c";',
				'js':['http://www.56.com/js/56stat.js']	
			},
			'show_userDsy':
			{
				'script':'webid="c";',
				'js':['http://www.56.com/js/56stat.js']		
			},
			'show_flv':
			{
				'script':'webid="c";play_flv();',
				'js':['http://www.56.com/js/56stat.js',
					  'http://www.56.com/js/hao56/fly56/show_flv_hot.foot.js']	
			},
			'share':
			{
				'script':'webid="c";play_flv();',
				'js':['http://www.56.com/js/56stat.js']
			},
			'album_play':
			{
				'script':'webid="union";',
				'js':['http://www.56.com/js/56stat.js']
			},
			'album_info':
			{
				'script':'webid="union";',
				'js':['http://www.56.com/js/56stat.js']
			}
    	}
	},
	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)
	{
	    url    = url?' src="'+url+'" ':''; 
	    id     = id ?' id="'+id+'" ':'';
	    defer  = defer || '';
	    document.write('<script 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++){this._includeScript(a[i]);}
			}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);
			}
		}
	}
}
___script___.include();
//var TmpDomain = document.domain;
try{document.domain="56.com";}catch (e){}
