//var strGnbURL = "http://"+document.location.host+"/";
//var strGnbImageURL = "http://"+document.location.host+"/images";

var strGnbURL = "http://www.t3-tw.com/";
var strGnbImageURL = "http://www.t3-tw.com/images";


var Domain = document.location.host;

if (Domain=="www.t3-tw.com")
{
	//var Td_Width = "688"
	//var Table_Width = "890"
	
	var Table_Width="100%"
}
else
{
	var Td_Width = "100%"
	var Table_Width = "100%"
}

function Msg()
{
		alert("¦øªA¾¹ºûÅ@¤¤");
}

var tabletop = '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
tabletop += '<tr>';
tabletop += '<td width="'+Td_Width+'" height="40" background="'+strGnbImageURL+'/Gnb/gnb_bg.gif">';
tabletop += '<table width="'+Table_Width+'" border="0" cellpadding="0" cellspacing="0">';
tabletop += '<tr>';
tabletop += '<td width="13%" height="40"><a href="'+strGnbURL+'" onfocus="this.blur()" ><img src="'+strGnbImageURL+'/Gnb/gnb_logo.gif" border="0"></a></td>';
tabletop += '<td width="2%">&nbsp;</td>';
//tabletop += '<td width="10%"><a href="http://popoming.t3-tw.com" onfocus="this.blur()" target="_blank" ><img src="'+strGnbImageURL+'/Gnb/category_va.gif" border="0" height="40"></a></td>';
tabletop += '<td width="9%"><a href="http://three.t3-tw.com/" onfocus="this.blur()" target="_blank" ><img src="'+strGnbImageURL+'/Gnb/category_three.gif" border="0" height="40"></a></td>';
tabletop += '<td width="9%"><a href="http://aika.t3-tw.com" onfocus="this.blur()" target="_blank"><img src="'+strGnbImageURL+'/Gnb/category_muhon.gif" height="40" border="0" style="cursor:hand"></td>';
tabletop += '<td width="9%"><a href="http://wyd.t3-tw.com"  onfocus="this.blur()" target="_blank" ><img src="'+strGnbImageURL+'/Gnb/category_wyd.gif" border="0" height="40"></a></td>';
tabletop += '<td width="9%"><a href="http://mythos.t3-tw.com/"  onfocus="this.blur()" target="_blank" ><img src="'+strGnbImageURL+'/Gnb/category_mythos.gif" border="0" height="40"></a></td>';
tabletop += '<td width="*">&nbsp;</td>';


var strID = getcookie('UserID');
if (strID == "" || strID == null || strID == "null")
{
	//tabletop += '<td width="5%"><a href="'+strGnbURL+'Member/member_login.aspx" onfocus="this.blur()" ><img src="'+strGnbImageURL+'/Common/gnb_login.gif" width="46" height="18" border="0"></a></td>';
	tabletop += '<td width="5%"><img src="'+strGnbImageURL+'/Common/gnb_join.gif" width="46" border="0" height="18" onclick="GoJoinMember();" style="cursor:hand"></td>';

}
else
{
	tabletop += '<td width="10%" align="right"><img src="'+strGnbImageURL+'/Common/gnb_logout.gif" width="56" height="18" onclick="Logout()" border="0" style="cursor:hand"></td>';
}

tabletop +=  '</tr>';
tabletop +=  '</table>';
tabletop +=  '</td>';
tabletop +=  '</tr>';
tabletop +=  '</table>';

document.write(tabletop);
