<!--
//Date
 tmpDate = new Date();
 date = tmpDate.getDate();
 month= tmpDate.getMonth() + 1 ;
 year= tmpDate.getYear();
var YMD = year + '年' + month +'月' + date +'日';
 
 myArray=new Array(6);
 myArray[0]="星期日"
 myArray[1]="星期一"
 myArray[2]="星期二"
 myArray[3]="星期三"
 myArray[4]="星期四"
 myArray[5]="星期五"
 myArray[6]="星期六"
 weekday=tmpDate.getDay();

//Data

g_imgPath = "/images/";

subTopMenuArray = [
	new subTopMenu ("#608fdd", g_imgPath+"main/",	g_imgPath+"Main_bg.gif",	0), //		main
	new subTopMenu ("#608fdd", g_imgPath+"Main/",	g_imgPath+"Main_bg.gif",	1), //		main
	new subTopMenu ("#2cadad", g_imgPath+"Profile/",	g_imgPath+"Main_bg.gif",2), //		hompy
	new subTopMenu ("#FF534B", g_imgPath+"News/",	g_imgPath+"Main_bg.gif",	3), //		game
	new subTopMenu ("#608fdd", g_imgPath+"main/",	g_imgPath+"main_title.gif",	4), //		wap
	new subTopMenu ("#a283dc", g_imgPath+"photo/",	g_imgPath+"Main_bg.gif",	5), //		love
	new subTopMenu ("#32b3b3", g_imgPath+"Member/",	g_imgPath+"Main_bg.gif",	6), //		ava
	new subTopMenu ("#32b3b3", g_imgPath+"Help/",	g_imgPath+"Main_bg.gif",	7), //		ava
	new subTopMenu ("#32b3b3", g_imgPath+"GB/",	g_imgPath+"Main_bg.gif",	8) //		ava
];
var s_timer;

var dropUrl =  location.href.toLowerCase();
var split_dropUrl;
var dropUrlCapture;

split_dropUrl = dropUrl.split("://",1);


function dropdownShow(nLayer)
{
	if ( s_timer ) 	clearTimeout(s_timer);
	dropdownHideAll();
	for (i in adropdownLayer[nLayer])
	{
		eval("dropdownLayerNum" + adropdownLayer[nLayer][i].m_layerNum).style.display = "";
	}

}

function dropdownHide() 
{ 
	s_timer = setTimeout("dropdownHideAll()", 300); 
}

function dropdownHideAll()
{
	for ( i in adropdownLayer ) 
	{ 
		for ( j in adropdownLayer[i] )
		if ( adropdownLayer[i][j] ) 
		{ 
			eval( "dropdownLayerNum" + adropdownLayer[i][j].m_layerNum ).style.display = "none";
		} 
	}
	
}
function F_goWin( strUrl,target )
{
	switch(target.toLowerCase()) {
		case '_blank':
			window.open(strUrl);
			break;
		
		case 'javascript':
			eval(strUrl);
			break;
		case '_self':
			location.href = strUrl;
			break;

		default:
			break;
	}
	
}

/////////////////////////////////////////////////////////////////////////////////////////////
function dropdownLayerTd(contentUrl,showNum,backgColor,overColor,layerContent,target)
{
	this.m_contentUrl = contentUrl;
	this.m_showNum = showNum;
	this.m_backgColor = backgColor;
	this.m_overColor = overColor;
	this.m_layerContent = layerContent;
	this.m_target = target;

	this.writeField = layerTd_writeField;
}

function layerTd_writeField(menu_index)
{
	if (this.m_backgColor != "FBFBFB")
		return "<TR><TD style='cursor:hand;' bgcolor="+this.m_backgColor+" onMouseOver='parent.dropdownShow("+(this.m_showNum-1)+");' onMouseOut='parent.dropdownHide(); return false;' onClick= 'parent.F_goWin(\""+this.m_contentUrl+"\",\""+this.m_target+"\"); return false;'><img src='"+g_imgPath+"spacer.gif' width='5' height='17' align='absmiddle'>"+this.m_layerContent+"</TD></TR>";
	else
	{
		return  "<TR><TD style='cursor:hand;' bgcolor="+this.m_backgColor 
		+ " onMouseOver='parent.dropdownShow("+(this.m_showNum-1)+"); this.bgColor=\""+this.m_overColor+"\"; document.menu"+menu_index+".src=\""+g_imgPath+"tm1.gif\";'"
		+ " onMouseOut='parent.dropdownHide();this.bgColor=\""+this.m_backgColor+"\"; document.menu"+menu_index+".src=\""+g_imgPath+"spacer.gif\";'"
		+ " onclick= 'parent.F_goWin(\""+this.m_contentUrl+"\",\""+this.m_target+"\"); return false;'>"
		+ "<img name='menu"+menu_index+"' src='"+g_imgPath+"spacer.gif' width='15' height='17' align='absmiddle'>"+this.m_layerContent+"</TD></TR>";
	}
}
	
function dropdownLayerTable( layerNum , layerstartTop, layerstartLeft, layerArray )
{
	this.m_layerNum = layerNum;
	this.m_layerstartTop = layerstartTop;
	this.m_layerstartLeft = layerstartLeft;
	this.m_layerArray = layerArray;
	
	this.writeField =layerTable_writeField;
}


function layerTable_writeField()
{
	document.write("<SPAN ID='dropdownLayerNum"+this.m_layerNum+"' WIDTH=156 STYLE='display:none; z-index:2000; position:absolute; top:"+this.m_layerstartTop+"; left:"+ this.m_layerstartLeft +";'><iframe id='menuIframe1' frameborder=0 WIDTH=156 Height="+(this.m_layerArray.length*18+1)+" src='about:blank'></iframe></span>");
	var frmdoc = document.frames["menuIframe1"];
	// (!!!)
	var sMarkup = "<html><head><style type='text/css'><!--td {font-family:'Verdana, Arial, Helvetica, sans-serif';font-size:12px;color:#555555;}--></style></head><body style='overflow-y:hidden; margin-top:0; margin-bottom:0; margin-left:0; margin-right:0;'><TABLE WIDTH=156 bgcolor='#898989' boarder=0 cellpadding=0 cellspacing=1>";
	for(var i=0; i< this.m_layerArray.length; i++)
	{
		sMarkup += this.m_layerArray[i].writeField(i);
	}
	sMarkup += "</table></body></html>";
	
	frmdoc.document.open("text/html", "menuIframe"+this.m_layerNum);
	frmdoc.document.write(sMarkup);
	
	frmdoc.document.close();
}

var layerArray1 = [
	new  dropdownLayerTd("/Login.asp", 1, "FBFBFB", "EBEBEB", "会员登陆","_self"),
	new  dropdownLayerTd("/Logout.asp", 1, "FBFBFB", "EBEBEB", "会员登出","_self")
];

var layerArray2 = [
	new dropdownLayerTd("/Profile.asp", 2, "FBFBFB", "EBEBEB", "何子乐","_self")
];

var layerArray3 = [
	new  dropdownLayerTd("/ShowNews.asp?ID=2", 3, "FBFBFB", "EBEBEB", "子乐活动资讯","_self"),
	new  dropdownLayerTd("/ShowNews.asp?ID=3", 3, "FBFBFB", "EBEBEB", "子乐节目资讯","_self"),
	new  dropdownLayerTd("/ShowNews.asp?ID=4", 3, "FBFBFB", "EBEBEB", "子乐私房记","_self"),
	new  dropdownLayerTd("/ShowNews.asp?ID=5", 3, "FBFBFB", "EBEBEB", "流行1057资讯","_self"),
	new  dropdownLayerTd("/ShowNews.asp?ID=6", 3, "FBFBFB", "EBEBEB", "子乐网站资讯","_self")
];

var layerArray4 = [
//   new  dropdownLayerTd("/Music/", 4, "EFFDFF", "EFFDFF", "<font color=#000000>艺人介绍</font>"),
//	new  dropdownLayerTd("#", 4, "FBFBFB", "EBEBEB", "建设中..."),
//	new  dropdownLayerTd("#", 4, "F8E6CC", "F8E6CC", "<font color=#000000>新歌推荐</font>"),
//	new  dropdownLayerTd("#", 4, "FBFBFB", "EBEBEB", "建设中...")
];

var layerArray5 = [
	new  dropdownLayerTd("/ShowPhoto.asp?ID=8", 5, "FBFBFB", "EBEBEB", "子乐私房照","_self"),
	new  dropdownLayerTd("/ShowPhoto.asp?ID=9", 5, "FBFBFB", "EBEBEB", "子乐沙龙照","_self"),
	new  dropdownLayerTd("/ShowPhoto.asp?ID=10", 5, "FBFBFB", "EBEBEB", "子乐与Fans照","_self"),
	new  dropdownLayerTd("/ShowPhoto.asp?ID=11", 5, "FBFBFB", "EBEBEB", "子乐演出照","_self"),
	new  dropdownLayerTd("/ShowPhoto.asp?ID=12", 5, "FBFBFB", "EBEBEB", "子乐艺员照","_self")
];

var layerArray6 = [
    new  dropdownLayerTd("#", 6, "EFFDFF", "EFFDFF", "<font color=#000000>会员服务</font>"),
	new  dropdownLayerTd("/Member/Member_Upgrades.asp", 6, "FBFBFB", "EBEBEB", "会员升级","_self"),
	new  dropdownLayerTd("/Member/Member_Bank.asp", 6, "FBFBFB", "EBEBEB", "银行服务","_self"),
	new  dropdownLayerTd("/PM/Index.asp", 6, "FBFBFB", "EBEBEB", "短 信 息","_self")
];

var layerArray7 = [
	new  dropdownLayerTd("/ShowHelp.asp?ID=1", 7, "FBFBFB", "EBEBEB", "新手入门","_self")
];

var layerArray8 = [
	new  dropdownLayerTd("http://bbs.oncity.cc/list.jsp?tb=b_newer&offset=0", 8, "FBFBFB", "EBEBEB", "新丁学堂","_blank"),
	new  dropdownLayerTd("http://www.oncity.cc/help/", 8, "FBFBFB", "EBEBEB", "帮助中心","_blank"),
	new  dropdownLayerTd("http://bbs.oncity.cc/?type_2=1", 8, "FBFBFB", "EBEBEB", "校园论坛","_blank"),
	new  dropdownLayerTd("http://bbs.oncity.cc/?type_1=1", 8, "FBFBFB", "EBEBEB", "综合论坛","_blank")
];

//nx_subdropdown
//nx_left = 235;
nx_left = "0";
nx_top = "149";
layerstartTop = nx_top;
layerstartLeft1 = nx_left;
layerstartLeft2 = nx_left+78;
//layerstartLeft3 = nx_left+78*2; layerstartLeft4 = nx_left+78*2+156;
layerstartLeft3 = nx_left+78*2;
layerstartLeft4 = nx_left+78*3;
layerstartLeft5 = nx_left+78*4;
layerstartLeft6 = nx_left+78*5;
layerstartLeft7 = nx_left+78*6;
layerstartLeft8 = nx_left+78*7;
layerstartLeft9 = nx_left+78*8;


var adropdownLayer = [
	[ new dropdownLayerTable( 1 , layerstartTop, layerstartLeft1, layerArray1) ],
	[ new dropdownLayerTable( 2 , layerstartTop, layerstartLeft2, layerArray2) ],
	[ new dropdownLayerTable( 3 , layerstartTop, layerstartLeft3, layerArray3) ],
	[ new dropdownLayerTable( 4 , layerstartTop, layerstartLeft4, layerArray4) ],
	[ new dropdownLayerTable( 5 , layerstartTop, layerstartLeft5, layerArray5) ],
	[ new dropdownLayerTable( 6 , layerstartTop, layerstartLeft6, layerArray6) ],
	[ new dropdownLayerTable( 7 , layerstartTop, layerstartLeft7, layerArray7) ],
//	[ new dropdownLayerTable( 8 , layerstartTop, layerstartLeft8, layerArray8) ],
//	[ new dropdownLayerTable( 9 , layerstartTop, layerstartLeft9, layerArray9) ]
];

for (i in adropdownLayer)
{
	for (j in adropdownLayer[i])
	{
		adropdownLayer[i][j].writeField();
	}
}


var topUrl = location.href.toLowerCase();
var split_topUrl;
var split_topUrlCapture;

split_topUrl = topUrl.split("://",1);


if(split_topUrl[0] == 'https' )
{
	split_topUrlCapture = "../f/";
}
else
{
	split_topUrlCapture = "../f/";
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function subTopMenu (bkcolor, imgHeader, menuTitle, curmenu) 
{
	this.m_bkColor = bkcolor;
	this.m_imgHeader = imgHeader;
	this.m_menuTitle = menuTitle;
	this.m_curMenu = curmenu;
	this.writeField = subTopMenu_writeField;
}


var top_menus = new Object;

top_menus[1] = [ "/Main.asp",
	"img_aipi",
	"1_s.gif",
	"1.gif",
	"首页","_self" ];

top_menus[2] = [ "/Profile.asp",
	"img_lounge",
	"2_s.gif",
	"2.gif",
	"档案","_self" ];

top_menus[3] = [ "/News.asp",
	"img_game",
	"3_s.gif",
	"3.gif",
	"新闻","_self" ];

top_menus[4] = [ "/Music/",
	"img_giftshop",
	"4_s.gif",
	"4.gif",
	"音乐","_self" ];

top_menus[5] = [ "/Photo.asp",
	"img_support",
	"5_s.gif",
	"5.gif",
	"相片","_self" ];
	
top_menus[6] = [ "/Login.asp",
	"img_support1",
	"6_s.gif",
	"6.gif",
	"会员","_self" ];

top_menus[7] = [ "/Help.asp",
	"img_support2",
	"7_s.gif",
	"7.gif",
	"帮助","_self" ];

top_menus[8] = [ "/GB/Mboard.asp",
	"img_support3",
	"8_s.gif",
	"8.gif",
	"留言","_self" ];

top_menus[9] = null;

function subTopMenu_writeField()
{
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
	document.write("<tr>");

	for (var i in top_menus)
	{
		if (top_menus[i] != null)
		{
			document.write("<td width=78><a target='"+top_menus[i][5]+"' href='"+top_menus[i][0]+"' onMouseOver=\"dropdownShow("+(i-1)+");MM_swapImage('"+top_menus[i][1]+"','','"+this.m_imgHeader+top_menus[i][2]+"',1);\" onMouseOut='dropdownHide();MM_swapImgRestore();'>");
			document.write("<img name ='"+top_menus[i][1]+"' src='" + this.m_imgHeader+top_menus[i][3] + "' width='78' height='49' alt='"+top_menus[i][4]+"' border='0'></a></td>");
		}
		else
			document.write("<td background=" + this.m_imgHeader + "Main_bg.gif class='chinese'>&nbsp;" + YMD + "&nbsp;&nbsp;" + myArray[weekday] + "</td>");
	}
	
	document.write("</tr>");
	document.write("</table>");
}


function site_menu_obj(name, id, color1, color2, color3, color4,color5)// 背景色定义
{
this.name	= name ; 
this.id	= id ;
this.color1 = color1;
this.color2 = color2;
this.color3 = color3;
this.color4 = color4;
this.color5 = color5;
}

var site_menu_list = new Array(	
				  //名字
new site_menu_obj('none'  ,'0','C95300','F28300','FFF2E2','6db8c2','mashimaro'),
new site_menu_obj('home'  ,'0','C95300','F28300','FFF2E2','6db8c2','mashimaro'),
new site_menu_obj('bbs'   ,'1','333366','889BED','EBEEF9','FF514A','chinagirl'),
new site_menu_obj('town'  ,'2','CC6633','FF9900','FCEAD3','FF514A','chinagirl'),
new site_menu_obj('anime'  ,'3','CC6633','FF9900','FCEAD3','FF514A','chinagirl'),
new site_menu_obj('game' ,'4','CC6633','FF9900','FCEAD3','FF514A','chinagirl'),
new site_menu_obj('fun'   ,'5','CC6633','FF9900','FCEAD3','FF514A','chinagirl'),
new site_menu_obj('pop'   ,'6','CC6633','FF9900','FCEAD3','FF514A','chinagirl'),
new site_menu_obj('it'    ,'7','CC6633','FF9900','FCEAD3','FF514A','chinagirl'),
new site_menu_obj('myinfo','8','333366','889BED','EBEEF9','FF514A','chinagirl')
) ;


function ShowHeaderMainNew(g_pageType) {
	if (typeof(g_pageType)=="undefined") g_pageType=0;

	if(g_pageType<'0' || g_pageType>'8') g_pageType=0;

	subTopMenuArray[g_pageType].writeField();
}


function showit(){
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openDiWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

//全选
function allform(){
for(var i=0;i<document.form1.elements.length;i++){
var e=document.form1.elements[i];
if(e.name!='all')
e.checked=document.form1.all.checked;  }
}
//删除
function confirmInfo(form)
{
 if(!confirm("确定删除所选消息？"))
   {
    return false
   }
 return true
}
// -->