var lmhloaded=false
DynAPI.setLibraryPath('/js/lib/')
DynAPI.include('dynacore.api.*')
DynAPI.include('dynacore.ui.style.js')
DynAPI.include('dynacore.ui.popup.js')

DynAPI.include('oversight.js', '/js/lib/oversight/')

DynAPI.onLoad=function() {
//Oversight.run('/js/lib/oversight/')


	myListener = new EventListener(this)
	myListener.onmouseup=function(e) {
		closeAllMenus()
	}
	this.document.addEventListener(myListener)

	myPopUp_0 = new PopUp(null,100,100,150)
	myPopUp_0.add("/en_US/images/animal_sign.gif", "/en_US/gamezone/animalsign/index.jsp")
	myPopUp_0.add("/en_US/images/tortoise_fortune_telling.gif", "/en_US/gamezone/tortoise/index.jsp")
	myPopUp_0.add("/en_US/images/life_got_weight.gif", "/en_US/gamezone/weilife/index.jsp")
 	this.document.addChild(myPopUp_0)

	myPopUp_1 = new PopUp(null,150,150,150)
	myPopUp_1.add("/en_US/images/lifetimes_fortunes.gif", "/en_US/myfortune21/index.jsp")
	myPopUp_1.add("/en_US/images/yearly_fortunes.gif", "/en_US/myfortune21/index.jsp")
	myPopUp_1.add("/en_US/images/auspicious_wedding_day.gif", "/en_US/myfortune21/index.jsp")
	myPopUp_1.add("/en_US/images/lucky_numbers.gif", "/en_US/myfortune21/index.jsp")
	myPopUp_1.add("/en_US/images/capable_employees.gif", "/en_US/myfortune21/index.jsp")
	myPopUp_1.add("/en_US/images/auspicious_residence.gif", "/en_US/myfortune21/index.jsp")
	myPopUp_1.add("/en_US/images/expert_name.gif", "/en_US/myfortune21/index.jsp")
	this.document.addChild(myPopUp_1)

	myPopUp_2 = new PopUp(null,150,150,150)
	myPopUp_2.add("/en_US/images/solar_Lunar_convert.gif", "/en_US/tools/calendarconvert/index.jsp")
	myPopUp_2.add("/en_US/images/chinese_gbb5_convert.gif", "/en_US/tools/stconvert/index.jsp")
	myPopUp_2.add("/en_US/images/ba_zi_compare.gif", "/en_US/tools/minute/index.jsp")
	this.document.addChild(myPopUp_2)

	lmhloaded=true
}

function closeAllMenus() {
if(lmhloaded) {
	myPopUp_0.closeAll()
	myPopUp_1.closeAll()
	myPopUp_2.closeAll()
}}

function xxx0() {
if (lmhloaded) {
	myPopUp_0.Pop(150,151)
	myPopUp_1.closeAll()
	myPopUp_2.closeAll()
}}

function xxx1() {
if (lmhloaded) {
	myPopUp_1.Pop(150,171)
	myPopUp_0.closeAll()
	myPopUp_2.closeAll()
}}

function xxx2() {
if (lmhloaded) {
	myPopUp_2.Pop(150,191)
	myPopUp_0.closeAll()
	myPopUp_1.closeAll()
}}