if(this.GLOBAL_UFORIA_URL == undefined)
{
	this.GLOBAL_UFORIA_URL = "http://www.uforia.com";
}

if(this.GLOBAL_NOSTAL_URL == undefined)
{
	this.GLOBAL_NOSTAL_URL = "http://nostale.uforia.com";
}

if(this.GLOBAL_THREEKINGDOMS_URL == undefined)
{
	this.GLOBAL_THREEKINGDOMS_URL = "http://threekingdoms.uforia.com";
}

function main01() { location.href="/";}

/****** main menu ******/
function menu1() { location.href = "/Announce/"; }
function menu2() { location.href = "/GameInfo/Intro.aspx"; }
function menu3() { alert("Stay tuned!"); }
function menu4() { }
function menu5() { location.href = "/Downloads/"; }
function menu6() { }


/******* Announcements ******/
function menu1sub1() { location.href = "/Announce/"; }
function menu1sub2() { location.href = "/Announce/Event.aspx"; }
function menu1sub3() { location.href = "/Announce/PatchNote.aspx"; }

/******* Game Info ******/
function menu2sub1() { location.href = "/GameInfo/Intro.aspx"; }
function menu2sub2() { location.href = "/GameInfo/gameguide_1.aspx"; }
function menu2sub3() { location.href = "/GameInfo/beginners_1.aspx"; }
function menu2sub4() { location.href = "/GameInfo/pvp.aspx"; }
function menu2sub5() { location.href = "/GameInfo/classes_1.aspx";  }
function menu2sub6() { location.href = "/GameInfo/questlist_1.aspx";  }
function menu2sub7() { location.href = "/GameInfo/castle.aspx"; }

/******* Story ******/
function menu3sub1() { alert("Stay tuned!"); }
function menu3sub2() { alert("Stay tuned!"); }
function menu3sub3() { alert("Stay tuned!"); }

/******* Community ******/
function menu4sub1() { location.href = "http://forum.uforia.com/?C=3"; }
function menu4sub2() { location.href = "/Community/ScreenShot.aspx"; }
function menu4sub3() { location.href = "/Community/Guilds.aspx"; }
function menu4sub4() { location.href = "/Community/Ranking.aspx"; }

/******* Download ******/
function menu5sub1() { location.href = "/Downloads/Client.aspx"; }
function menu5sub2() { location.href = "/Downloads/Video.aspx"; }
function menu5sub3() { alert("Stay tuned!"); }

/******* Support ******/
function menu6sub1() { location.href = this.GLOBAL_UFORIA_URL + "/Help/QnA.aspx?game=2"; }
function menu6sub2() { location.href = "/Support/Faq.aspx"; }
function menu6sub3() { location.href = "/Support/Rules.aspx"; }




/******* Remote Navigation ******/
function navi1() { location.href = "#"; }
function navi1game1() { location.href = "#"; }
function navi1game2() { location.href = "#"; }
function navi2() { location.href = "#"; }
function navi3() { location.href = "#"; }
function navi4() { location.href = "#"; }



/******* Left Download ******/
function download() { location.href = "/Downloads/"; }

//document.writeln("<div id='menu' style='position:absolute; left:0; top:38px; width:100%; height:250; z-index:2;' onMouseOver='OverMenu(1)' onMouseOut='OverMenu(0)'>																																																	");
//document.writeln("<table width='100%' height='250' border='0' cellspacing='0' cellpadding='0'>                                                                                                                               ");
//document.writeln("	<tr>                                                                                                                                                                                        ");
//document.writeln("		<td>&nbsp;</td>                                                                                                                                                                           ");
//document.writeln("		<td width='1084' align='center' valign='top'><" + "script language=\"javascript\">printSWF('GlobalTopMenu', 'http://image.uforia.com/3kingdoms/swf/top_menu.swf',1084,250,'transparent', '#FFFFFF',null);</" + "script></td> ");
//document.writeln("		<td>&nbsp;</td>                                                                                                                                                                           ");
//document.writeln("	</tr>                                                                                                                                                                                       ");
//document.writeln("</table>                                                                                                                                                                                      ");
//document.writeln("</div>                                                                                                                                                                                        ");

function OverMenu(ssel) {

try
{
    if(ssel == 1)
    {
        document.all.download.style.zIndex = 1;

    }
    else
    {
        document.all.download.style.zIndex = 3;
    }
}
catch (ex) { }
}