package net.fdms.Database 
{
	/**
	 * ...
	 * @author Dawnboy
	 */
	public class BabyData 
	{
		private static var _unlock:Boolean = false;
		private static var _unlockImg:String = "baby.jpg";
		public function BabyData() 
		{
			
		}
		
		/**
		 * 初始化宝宝数据
		 * @param	babySets
		 */
		public static function init(babySets:XMLList):void {
			if (babySets.@ischildsite != XMLList(undefined) && babySets.@ischildsite.toString() == "true")  _unlock = true;
			if (babySets.@img != XMLList(undefined) && babySets.@img != "") _unlockImg = babySets.@img;
			//trace(babySets.@ischildsite.toString());
			//trace("获取宝宝数据:" + ((_unlock)?"已开通":"未开通") + " 图片文件:" + _unlockImg + "\n---------------------------------");
		}
		
		/**
		 * 宝宝站是否开通
		 */
		public static function get BabyStatus():Boolean {
			return _unlock;
		}
		
		/**
		 * 未开通宝宝站的替代图片
		 * @return
		 */
		public static function getBabyImg():String {
			return _unlockImg;
		}
	}

}