$.format = function (source, params) 
{
	if (arguments.length == 1)
	return function () {
	var args = $.makeArray(arguments);
	args.unshift(source);
	return $.format.apply(this, args);
	};
	if (arguments.length > 2 && params.constructor != Array) {
	params = $.makeArray(arguments).slice(1);
	}
	if (params.constructor != Array) {
	params = [params];
	}
	$.each(params, function (i, n) {
	source = source.replace(new RegExp("\\{" + i + "\\}", "g"), n);
	});
	return source;
}; 

function getSWF(movieName)
{
	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		return window[movieName];
	}
	else
	{
		return document[movieName];
	}
}

function getDataTimes()
{
	var strDate,strTime;
	strDate = new Date();
	strTime = strDate.getTime();
	return strTime;
}

function GetSendTime()
{
	var d = new Date();
	return (d.getHours()<10?"0"+d.getHours():d.getHours())+":"+(d.getMinutes()<10?"0"+d.getMinutes():d.getMinutes());
}

function iUserInfo()
{
	var e = new Object();
	e.UserID = "74747";
	e.UserNickName = "枫清杨苑";
	e.Live_NG_ID = "3";
	e.IsManager = false;
	e.LevelClass = "star3";
	e.FixIcon = "http://vi0.6.cn/live/family/900001282_68873.png";
	e.VIPIcon = "vip";
	e.BestAccount = "333";
	e.LevelID = 3;
	e.EnterTime = getDataTimes();
	return e;
}
var iInfo = iUserInfo();
