g_imgPath = "http://m.oncity.cc/menu/";

subTopMenuArray = [
	new subTopMenu ("#608fdd", g_imgPath+"main/",	g_imgPath+"main_title.gif",	0), //		main
	new subTopMenu ("#608fdd", g_imgPath+"main/",	g_imgPath+"main_title.gif",	1), //		main
	new subTopMenu ("#2cadad", g_imgPath+"hompy/",	g_imgPath+"hompy_title.gif",2), //		hompy
	new subTopMenu ("#FF534B", g_imgPath+"game/",	g_imgPath+"game_title.gif",	3), //		game
	new subTopMenu ("#608fdd", g_imgPath+"main/",	g_imgPath+"main_title.gif",	4), //		wap
	new subTopMenu ("#a283dc", g_imgPath+"ava/",	g_imgPath+"ava_title.gif",	5), //		love
	new subTopMenu ("#A283DC", g_imgPath+"ava/",	g_imgPath+"ava_title.gif",	6), //		ava
	new subTopMenu ("#A283DC", g_imgPath+"ava/",	g_imgPath+"ava_title.gif",	7) //		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+"tm_2depth_i2.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=139 STYLE='display:none; z-index:2000; position:absolute; top:"+this.m_layerstartTop+"; left:"+ this.m_layerstartLeft +";'><iframe id='menuIframe1' frameborder=0 WIDTH=139 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=139 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 = [
];

var layerArray2 = [
	new dropdownLayerTd("http://hompy.oncity.cc/mm.php", 2, "FBFBFB", "EBEBEB", "封面人物","_self"),
	new dropdownLayerTd("http://hompy.oncity.cc/ava_best_list.php", 2, "FBFBFB", "EBEBEB", "靓靓SHOW","_self"),
	new dropdownLayerTd("http://hompy.oncity.cc/keep.php",2, "FBFBFB", "EBEBEB", "网摘天地","_self"),
	new dropdownLayerTd("http://hompy.oncity.cc/top.php?t=blog", 2, "FBFBFB", "EBEBEB", "个人BLOG","_self"),
	new dropdownLayerTd("http://hompy.oncity.cc/top.php?t=diary", 2, "FBFBFB", "EBEBEB", "网友日记","_self")
];
var layerArray7 = [
	new dropdownLayerTd("http://hompy.oncity.cc/photo.php", 2, "FBFBFB", "EBEBEB", "贴相相","_self"),
	new dropdownLayerTd("http://hompy.oncity.cc/ktv/", 2, "FBFBFB", "EBEBEB", "K歌之王","_self"),
	new dropdownLayerTd("http://hompy.oncity.cc/paint/", 2, "FBFBFB", "EBEBEB", "涂鸦版","_self"),
	new dropdownLayerTd("http://weekly.oncity.cc/", 2, "FBFBFB", "EBEBEB", "OnCity周刊","_self")
];


var layerArray5 = [
];

var layerArray6 = [
];

var layerArray8 = [
];

var layerArray9 = [
];

var layerArray10 = [
];


//nx_subdropdown
nx_left = 235;
nx_top = 100;
layerstartTop = nx_top;
layerstartLeft1 = nx_left;
layerstartLeft2 = nx_left+94; layerstartLeft7 = nx_left+94+138;
layerstartLeft3 = nx_left+94*2; layerstartLeft4 = nx_left+94*2+138;
layerstartLeft5 = nx_left+94*3;
layerstartLeft6 = nx_left+94*4;
layerstartLeft8 = nx_left+94*5;
layerstartLeft9 = nx_left+94*6;
layerstartLeft10 = nx_left+94*7;


var adropdownLayer = [
	[ new dropdownLayerTable( 1 , layerstartTop, layerstartLeft1, layerArray1) ],
	[ new dropdownLayerTable( 2 , layerstartTop, layerstartLeft2, layerArray2), new dropdownLayerTable( 7 , layerstartTop, layerstartLeft7, layerArray7) ],
	[ new dropdownLayerTable( 3 , layerstartTop, layerstartLeft3, layerArray9) ],
	[ new dropdownLayerTable( 5 , layerstartTop, layerstartLeft5, layerArray5) ],
	[ new dropdownLayerTable( 6 , layerstartTop, layerstartLeft6, layerArray6) ],
	[ new dropdownLayerTable( 8 , layerstartTop, layerstartLeft8, layerArray9) ],
	[ new dropdownLayerTable( 9 , layerstartTop, layerstartLeft9, layerArray10) ],
];

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 img_act() 
{ 
   quick.src = ""+split_topUrlCapture+"image/global/top_gamequick_on.gif"; 
} 

function img_nact() 
{ 
   quick.src = ""+split_topUrlCapture+"image/global/top_gamequick.gif"; 
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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;
}


function subTopMenu_writeField()
{

var top_menus = new Object;

top_menus[1] = [ "http://www.oncity.cc",
	"img_aipi",
	"1_on.gif",
	"1_off.gif",
	"社区首页","_self" ];

top_menus[2] = [ "http://hompy.oncity.cc/",
	"img_lounge",
	"2_on.gif",
	"2_off.gif",
	"Hompy","_self" ];

top_menus[3] = [ "http://game.oncity.cc/",
	"img_game",
	"3_on.gif",
	"3_off.gif",
	"城中城","_blank" ];

top_menus[4] = [ "http://wap.oncity.cc/upload/",
	"img_giftshop",
	"4_on.gif",
	"4_off.gif",
	"WAP无线","_self" ];

top_menus[5] = [ "http://love.oncity.cc/",
	"img_support",
	"5_on.gif",
	"5_off.gif",
	"V交友","_blank" ];
	
top_menus[6] = [ "http://game.oncity.cc/ava/avatar/",
	"img_support1",
	"6_on.gif",
	"6_off.gif",
	"商店","_blank" ];

top_menus[7] = [ "http://bbs.oncity.cc",
	"img_support2",
	"8_on.gif",
	"8_off.gif",
	"论坛","_blank" ];

top_menus[8] = [ "http://www.oncity.cc/event/",
	"img_support2",
	"7_on.gif",
	"7_off.gif",
	"网站活动","_self" ];


top_menus[9] = null;

	document.write("<div style='position:absolute;z-index:10;top:15px;left:13'><a href=http://www.oncity.cc><img src=http://m.oncity.cc/logo.gif border=0></a></div>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=100% border=0 bgcolor='#ffffff'><TR><td height=51 width=250 align=center valign=bottom> </td><td width=700 align=right nowrap>");
	ShowBaseHeader();
	document.write("</td><td width=*>");
	var w=window.screen.width-250-700;
	document.write('<img src=http://m.oncity.cc/e.gif width='+w+' height=1>');
	document.write("</td></tr>");
	document.write("</table>");

	document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
	document.write("<tr>");
	document.write("<td width=3><img src='" + this.m_imgHeader + "rightspace.gif' width='3' height='49' alt='' border='0'></td>");
	document.write("<td width=233 bgcolor='"+ this.m_bkColor+"'><img src='"+this.m_menuTitle+"' width='233' height='49' alt='' border='0'></td>");

	for (var i in top_menus)
	{
		if (top_menus[i] != null)
		{
			document.write("<td width=94><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='94' height='49' alt='"+top_menus[i][4]+"' border='0'></a></td>");
		}
		else
			document.write("<td width=30% background=" + this.m_imgHeader + "leftspace.gif></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 get_menu_by_name(name) {

	for(var i = 0; i < site_menu_list.length; i ++)
	{	
		obj = site_menu_list[i]
		if (obj.name==name)
		{
			return i;
		}
	}
	return 0;
}



function readCookieName()
{
    var the_cookie = document.cookie;
    var ss = the_cookie.split(";");
	for(i=0;i<ss.length;i++) {
		s=ss[i];
		if( s.indexOf('ONCITY_LOGIN_SSN=')!=-1 ) {
			var sss=s.split("ONCITY_LOGIN_SSN=");
			login_name=sss[1];
			return login_name;
		}		
	}
	return '';
}

function ShowHeaderMainNew(g_pageType) {
	if (typeof(g_pageType)=="undefined") g_pageType=0;

	if(g_pageType<'0' || g_pageType>'6') g_pageType=0;

	subTopMenuArray[g_pageType].writeField();
}

function ShowFooterNoLink()
{
	var snect = " <table border=0 width=776 cellspacing=0 cellpadding=0 align=center> " +
		" <tr><td height=1 width=100% bgcolor=#000000><img src=/p/empty.gif></td></tr> " +
		" <tr><td height=3 bgcolor=#cccccc width=100%><img src=/p/empty.gif></td></tr></table> " +
		" <table border=0 width=97% cellspacing=0 cellpadding=0> " +
		" <tr><td height=15></td></tr> " +
		" <tr><td align=center></td> " +
		" </tr><tr><td height=20></td></tr></table> " ;
	
	document.writeln(snect);
}

function ShowFooter(name)
{

	var snect=''
	var snect="<BR><table border=0 cellspacing=0 cellpadding=0 align=center>"+
		"<tr>"+
		"<td align=center>"+
		"<a href=http://www.oncity.cc/company/company-life.html target=_blank>About OnCity</a>"+
		" | <a href=http://www.oncity.cc/company/company-company.html target=_blank>公司简介</a>"+
		" | <a href=http://www.oncity.cc/company/company-company6.html target=_blank>联系方法</a>"+
		" | <a href=http://www.oncity.cc/register/privacy.html>服务条款</a>"+
		" | <a href=http://www.oncity.cc/company/company-business-ad.html target=_blank>广告服务</a>"+
		" | <a href=http://www.oncity.cc/help/>帮助中心</a></td></tr>"+
		"<tr><td align=center>2003 <a href=http://www.oncity.cc target=_blank>OnCity</a> Inc. email:<a href=mailto:sysop@oncity.cc>sysop@oncity.cc</a> Tel：0760-88852298 业务QQ：138852298</td></tr>"+
		"<tr><td align=center><a href=http://net110.zsga.net/ target=_blank><img src=http://img3.oncity.cc/help/bbs/jingcha4.gif border=0><BR>违法信息举报</a></td></tr>"+	
		"</table><BR>";
	//"<tr><td align=center><a href=http://netasp.com.cn target=_blank><u>中山城中城互联网信息服务有限公司</u></a> ICP证号:粤B2-20040775</td></tr><tr><td align=center><a href=http://netasp.com.cn/police.php target=_blank><img src=http://img3.oncity.cc/help/bbs/jingcha4.gif border=0><BR>违法信息举报</a></td></tr>"+	
 	 document.write(snect);
}

function showit(){
}


function ShowBaseHeader(g_pageType,site_str,bbs_flag){


	login_name = readCookieName();
	var ts2;
	if(  login_name!= '' ) {
		ts2="<a href=\"javascript:send('op=add');\">留言</A> | <a href=\"javascript:flist();\">好友</a> | <a href=\"javascript:open_im('','config');\">个人资料</a> | <a href=http://www.oncity.cc/logout.php target=_top>离开</a>&nbsp;";

	} else {
		ts2='&nbsp;<A href=http://www.oncity.cc/register/privacy.html>用户注册</A>&nbsp;';
	}
	var quick_rp_sender="<INPUT name=sender type=hidden value="+login_name+">";

	snect = "<TABLE cellSpacing=3 cellPadding=0 bgColor=#ffffff border=0>"+
"<TR>"+

"  <TD>"+
"    <TABLE cellSpacing=0 cellPadding=0 bgColor=#ffffff border=0>"+
"     <TR>"+
"	<TD width=3><IMG height=20 src=http://m.oncity.cc/b/button_1.gif width=3></TD>"+
"	<TD vAlign=bottom align=middle background=http://m.oncity.cc/b/button_2.gif nowrap>"+
"	&nbsp;<a href=http://520.oncity.cc/ target=_blank>非常购物</a> | <a href=http://ad.oncity.cc/ target=_blank>二手仓</a> | <a href=http://radio.oncity.cc/ target=_blank>电台</a> | <a href=http://www.oncity.cc/help/ target=_blank>帮助中心</a> | <a href=http://www.oncity.cc/member/><font color=#339900>充值中心</font></a>&nbsp;</TD>"+
"	<TD width=3><IMG height=20 src=http://m.oncity.cc/b/button_3.gif width=3></TD></TR></TABLE></TD>"+

"  <TD>"+
"    <TABLE cellSpacing=0 cellPadding=0 bgColor=#ffffff border=0>"+
"     <TR>"+
"	<TD width=3><IMG height=20 src=http://m.oncity.cc/b/button_1.gif width=3></TD>"+
"	<TD align=middle background=http://m.oncity.cc/b/button_2.gif nowrap>"+
"	<IFRAME SRC=http://www.oncity.cc/ac.jsp marginwidth=0 marginheight=0 SCROLLING=no FRAMEborder=0 WIDTH=120 HEIGHT=17 name=ac_window ALLOWTRANSPARENCY=true></IFRAME></TD>"+
"	<TD width=3><IMG height=20 src=http://m.oncity.cc/b/button_3.gif width=3></TD></TR></TABLE></TD>"+


"  <TD>"+
"    <TABLE cellSpacing=0 cellPadding=0 bgColor=#ffffff border=0>"+
"     <TR>"+
"	<TD width=3><IMG height=20 src=http://m.oncity.cc/b/button_1.gif width=3></TD>"+
"	<TD vAlign=bottom align=middle background=http://m.oncity.cc/b/button_2.gif nowrap>&nbsp;<a href=http://chat.oncity.cc/ target=_blank>聊天室</a> | "+
"	<FONT color=#605151>"+ts2+"</FONT></TD>"+
"	<TD width=3><IMG height=20 src=http://m.oncity.cc/b/button_3.gif width=3></TD></TR></TABLE></TD>"+
"	</TR></TABLE>";

	document.write(snect);

}







function ad_right() {    //oncity 右边banner 广告条
	br="<BR><img src=http://m.oncity.cc/e.gif height=5>";
	
	//有需要在这里增加就是
	ss=new Array(
		'<a href=http://music.oncity.cc/ target=_blank><img src=http://img3.oncity.cc/ad/200508/134_40_music.gif border=0></a>',
		'<a href=http://hompy.oncity.cc/ktv/ target=_blank><img src=http://img3.oncity.cc/ad/200508/134_40_ktv.jpg border=0></a>',
		'<a href=http://love.oncity.cc/ target=_blank><img src=http://img3.oncity.cc/ad/200508/134_40_love.gif border=0></a>',
		'<a href=http://hompy.oncity.cc/paint/ target=_blank><img src=http://img3.oncity.cc/ad/200510/paint.gif border=0></a>',
		'<a href=http://hompy.oncity.cc/photo.php target=_blank><img src=http://img3.oncity.cc/ad/200508/134_40_photo.gif border=0></a>'
	);


	movie=new Array( //电影网首页推荐		
		'<a href=http://www.oncity.cc/mm/movie.php?id=3505 target=_blank><img src=http://img3.oncity.cc/ad/200601/new/6.gif border=0></a>',
		'<a href=http://www.oncity.cc/mm/movie.php?id=3409 target=_blank><img src=http://img3.oncity.cc/ad/200510/movie_sell.gif border=0></a>',
		'<a href=http://www.oncity.cc/mm/movie.php?id=3386 target=_blank><img src=http://img3.oncity.cc/ad/movie_sell2.gif border=0></a>',
		'<a href=http://www.oncity.cc/mm/movie.php?id=3389 target=_blank><img src=http://img3.oncity.cc/ad/movie_sell1.gif border=0></a>'		
	);

	

	//ss10 ='<a href=http://bbs.oncity.cc/b/135/707719.html target=_blank><img src=http://img3.oncity.cc/ad/200602/134_100_love.gif border=0></a>'+br;
	//ss10 +='<a href=http://www.oncity.cc/event/index.php?event_id=3&event_tag=p2 target=_blank><img src=http://img3.oncity.cc/ad/200602/134_100_paint.gif border=0></a>'+br;

	ss2='<embed src=http://img3.oncity.cc/ad/200601/134_180_love.swf loop=false menu=false quality=high bgcolor=#ffffff width=134 height=180 name=love align=middle allowScriptAccess=always  wmode=transparent style=\"border:solid 1 #333333\"></embed>';
	
	
	snect = movie[0]+br+ss[random(ss.length)]+br+
		"<table width=95 border=0 cellspacing=0 cellpadding=0><tr><td><a href=http://www.oncity.cc/member/ target=_blank><img src=http://img3.oncity.cc/ad/200507/vip_btn.gif width=134 height=40 border=0></a></td></tr>"+
		"<tr><td><a href=http://www.oncity.cc/member/ target=_blank><img src=http://img3.oncity.cc/ad/200507/btn_1.gif width=134 height=24 border=0></a></td></tr>"+
		"<tr><td><a href=http://www.oncity.cc/member/ target=_parent><img src=http://img3.oncity.cc/ad/200507/btn_2.gif width=134 height=24 border=0></a></td></tr>"+
		"<tr><td><a href=http://www.oncity.cc/member/ target=_blank><img src=http://img3.oncity.cc/ad/200507/btn_3.gif width=134 height=24 border=0></a></td></tr>"+
		"<tr><td><a href=http://www.oncity.cc/main/board/index.php?id=32065 target=_blank><img src=http://img3.oncity.cc/ad/200507/btn_4.gif width=134 height=24 border=0></a></td></tr>"+	
		"</table>"+br;
	document.write(snect);
}

function ad_left_banner() { //左边广告
	snect="<table width=207 border=0 cellpadding=0 cellspacing=0><tr><td>"+
	"<a href=http://bbs2.oncity.cc/show.jsp?id=471328&b_id=85&offset=0 target=_blank>"+
	"<img src=http://img5.oncity.cc/sport/002/002_b.gif border=0>"+
	"</a></td></tr></table>";

	snect1="<table width=207 border=0 cellpadding=0 cellspacing=0><tr><td>"+
	"<embed src=http://img3.oncity.cc/ad/200507/207_74_xiaowei.swf width=207 height=75  style=\"border:solid 1 #333333\"></embed>"+
	"</td></tr></table>";
	
	//document.write(snect1);
}

function game2006_plus(){

	snect="<table width=196 border=0 cellspacing=0 cellpadding=0 align=center>"+
"<tr><td><table width=196 border=0 cellspacing=0 cellpadding=0><tr>"+
"<td><a href=http://img3.oncity.cc/install_flash_player_8.msi target=_blank><img src=http://m.oncity.cc/game/help_01.gif width=196 height=32 border=0 /></a></td>"+
"</tr><tr><td height=4></td></tr><tr>"+
"<td><a href=http://img3.oncity.cc/game/ruanjian/wanneng.rar target=_blank><img src=http://m.oncity.cc/game/help_02.gif width=196 height=32 border=0 /></a></td>"+
"</tr><tr><td height=4></td>"+
"</tr><tr><td><a href=http://img.oncity.cc/wwf/msjavx86.exe target=_blank><img src=http://m.oncity.cc/game/help_03.gif width=196 height=32 border=0 /></a></td>"+
"</tr><tr><td height=4></td>"+
"</tr><tr><td><a href=http://www.oncity.cc/help/faq.jsp?id=14834 target=_blank><img src=http://m.oncity.cc/game/help_04.gif width=196 height=32 border=0 /></a></td>"+
"</tr><tr><td height=4></td></tr><tr>"+
"<td><a href=http://www.oncity.cc/help/faq.jsp?id=4012 target=_blank><img src=http://m.oncity.cc/game/help_05.gif width=196 height=32 border=0 /></a></td>"+
"</tr><tr><td height=4></td></tr><tr>"+
"<td><a href=http://www.oncity.cc/help/ target=_blank><img src=http://m.oncity.cc/game/help_06.gif width=196 height=32 border=0 /></a></td>"+
"</tr></table></td></tr></table>";

document.write(snect);

}


function ad_left() { //oncity 左边插件
	
	snect ="<TABLE class=leftspace cellSpacing=0 cellPadding=0 width=207 border=0>"+
	"<TR><TD><IMG height=5 src=http://m.oncity.cc/e.gif width=1></TD></TR><TR><TD><a href=http://img3.oncity.cc/install_flash_player_8.msi><IMG height=37 src=http://m.oncity.cc/img_main/index_login_bt.gif width=207 border=0></a></TD></TR><TR><TD><IMG height=5 src=http://m.oncity.cc/e.gif width=1></TD></TR><TR><TD><a href=http://www.oncity.cc/help/faq.jsp?id=14834 target=_blank><IMG height=37 src=http://m.oncity.cc/img_main/index_onlinegame_bt.gif width=207 border=0></a></TD>"+
"</TR><TR><TD><IMG height=7 src=http://m.oncity.cc/e.gif width=1></TD></TR><TR><TD><a href=http://img.oncity.cc/wwf/msjavx86.exe target=_blank><IMG height=23 src=http://m.oncity.cc/img_main/index_criant_bt2.gif width=207 border=0></a></TD>"+
	"<TR><TD><a href=http://www.oncity.cc/help/faq.jsp?id=14834 target=_blank><IMG height=23 src=http://m.oncity.cc/img_main/index_criant_bt.gif width=207 border=0></a></TD>"+
"</TR><TR><TD><a href=http://www.oncity.cc/game/game_show.php?id=33 target=_blank><IMG height=23 src=http://m.oncity.cc/img_main/index_directx_bt.gif width=207 border=0></a></TD>"+
"</TR><TR><TD><a href=http://www.oncity.cc/help/faq.jsp?id=4012 target=_blank><IMG height=23 src=http://m.oncity.cc/img_main/index_vcd_bt.gif width=207 border=0></a></TD>"+
"</TR><TR><TD><IMG height=1 src=http://m.oncity.cc/img_main/index_leftline.gif width=207></TD></TR><TR><TD><IMG height=12 src=http://m.oncity.cc/e.gif width=1></TD></TR></TABLE>";
		

	document.write(snect);

}

function ad_top() { //oncity 首页右上广告

	//snect ="<a href=http://www.oncity.cc/main/board/index.php?id=32065 target=_blank><img src=http://img3.oncity.cc/ad/200507/left_banner_vip.gif border=0></a>";
	
	snect =new Array("<a href=http://hompy.oncity.cc/ktv/><img src=http://img3.oncity.cc/ad/200507/right_banner_ktv.gif border=0></a>",
					  "<a href=http://www.oncity.cc/game/game_show.php?id=6><img src=http://img3.oncity.cc/ad/200507/right_banner_game.gif border=0></a>"
					 
	);

	document.write(snect[random(snect.length)]);

}





function ad_bbs_list(cid,tb){

/*
	ss=new Array(
	"<a href=http://netasp.com.cn/ target=_blank><img src=http://img3.oncity.cc/ad/200608/468_60_idc.jpg border=0 style=\"border:solid 1 #333333\"></a>",	
	"<a href=http://www.mmnow.net/bbs/viewthread.php?tid=8 target=_blank><img src=http://img3.oncity.cc/ad/200606/468_60_mmcard.jpg border=0 style=\"border:solid 1 #333333\"></a>"
	);	
	document.write(ss[random(ss.length)]);
*/

	if(tb=='b_motor2' || tb=='b_fetion') {
		ss='<embed src=http://m.oncity.cc/d/200809/guanon.swf loop=true menu=false quality=high bgcolor=#000000 width=468 height=60 align=middle allowScriptAccess=always style="border:solid 1 #333333"></embed>';
		document.write(ss);
    } else {
		ss='<img src=http://m.oncity.cc/d/200910/468_60_ad.gif width=468 height=60>';
		//ss='<embed src=http://m.oncity.cc/d/200911/cdma_oncity.swf loop=true menu=false quality=high bgcolor=#ffffff width=420 height=70></embed>';
		document.write(ss);
    }
}

function ad_bbs(){ //论坛右上随机JS广告
	ss=new Array(
		"<script>ad_bbs_list();<\/script>",
		"<script>banner_Movie();<\/script>"
	);	
	document.write(ss[random(ss.length)]);
}

function small_banner_2006(){ //新首页小广告 2006-3-4

	//ss +="<td><embed src=http://m.oncity.cc/d/200905/170_65_q.swf loop=true menu=false quality=high bgcolor=#ffffff width=170 height=65 align=middle allowScriptAccess=always style=\"border:solid 1 #333333\"></embed>"+nr+"</td>";
//	ss +="<td><a href=http://bbs.oncity.cc/b/157/1210525.html target=_blank><img border=0 src=http://m.oncity.cc/d/200909/170_65_km.gif height=65 width=170 style=\"border:solid 1 #333333\"></a>"+nr+"</td>";
//	ss +="<td><a href=http://bbs.oncity.cc/b/155/1211803.html target=_blank><img src=http://m.oncity.cc/d/200910/170_65_fanshop.gif border=0 style=\"border:solid 1 #333333\" width=170 height=65></a></td>";
//	ss +="</tr><tr><td colspan=2><img src=http://m.oncity.cc/e.gif width=1 height=2></td></tr>";
//	ss +="<tr>";

	nr = "<img src=http://m.oncity.cc/e.gif width=3 height=1>";
	
	ss ="<TABLE width=345 cellSpacing=0 cellPadding=0>";
	ss +="<tr>";
    ss +="<td colspan=2><a href=http://mtr.oncity.cc target=_blank><img src=http://m.oncity.cc/d/200910/345_65_mtr.gif border=0 style=\"border:solid 1 #333333\" width=345 height=65></a></td>";
    ss +="</tr><tr><td colspan=2><img src=http://m.oncity.cc/e.gif width=1 height=2></td></tr>";
    ss +="<tr>";
	ss +="<td><a href=http://bbs.oncity.cc/b/206/1207502.html target=_blank><img border=0 src=http://m.oncity.cc/d/200909/170_65_qbt.gif height=65 width=170 style=\"border:solid 1 #333333\"></a>"+nr+"</td>";
	ss +="<td><embed src=http://m.oncity.cc/d/200910/weiphone.swf loop=true menu=false quality=high bgcolor=#ffffff width=170 height=65 align=middle allowScriptAccess=always style=\"border:solid 1 #333333\"></embed></td>";
	ss +="</tr>";
	ss +="</table>";
	document.write(ss);
	
}

function left_banner_2008() { //首页左边大位置
	document.write("<a href=http://m.oncity.cc/d/200907/yd/ target=_blank><img src=http://m.oncity.cc/d/200907/213_304_yd.jpg border=0></a>");
	//document.write("<embed src=http://m.oncity.cc/d/200905/yd_jq_213_304.swf loop=true menu=false quality=high bgcolor=#ffffff width=213 height=304 align=middle></embed>");
}


var ad_cur_num=0;

function main_banner_2006() {


	var main_ad=new Array(
		"<a href=http://bbs.oncity.cc/b/107/1216619.html target=_blank><img border=0 src=http://m.oncity.cc/d/200911/340_150_p4.jpg height=150 width=340></a>",
		"<a href=http://bbs.oncity.cc/b/84/1216596.html target=_blank><img border=0 src=http://m.oncity.cc/d/200911/340_150_p5.jpg height=150 width=340></a>",		
		"<a href=http://bbs.oncity.cc/b/114/1216370.html target=_blank><img border=0 src=http://m.oncity.cc/d/200911/340_150_p3.jpg height=150 width=340></a>",
		"<a href=http://bbs.oncity.cc/b/21/1216277.html target=_blank><img border=0 src=http://m.oncity.cc/d/200911/340_150_p2.jpg height=150 width=340></a>",
		"<a href=http://bbs.oncity.cc/b/185/1215929.html target=_blank><img border=0 src=http://m.oncity.cc/d/200911/340_150_p1.jpg height=150 width=340></a>"
	);

	if (navigator.appName == "Netscape") {
		main_ad_html.innerHTML=main_ad[0];
	} else {
		main_ad_html.innerHTML=main_ad[ad_cur_num];
		if(main_ad.length>1) {
			ad_cur_num++;
			if(ad_cur_num>=main_ad.length) { 
				ad_cur_num=0;
			}
			if(ad_cur_num==1) {
				ad_time=10000;
			} else {
				ad_time=10000;
			}
			theTimer=setTimeout("main_banner_2006()",ad_time);
		}
	}
	
	//main_ad_html.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="340" height="150"><param name="movie" value="http://m.oncity.cc/index/bcastr31.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="FlashVars" value="bcastr_xml_url=http://m.oncity.cc/index/bcastr.xml"><embed src="http://m.oncity.cc/index/bcastr31.swf" FlashVars="bcastr_xml_url=http://m.oncity.cc/index/bcastr.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="340" height="150"></embed></object>';	
    //main_ad_html.innerHTML='<a href=http://bbs.oncity.cc/b/227/1205987.html target=_blank><img border=0 src=http://m.oncity.cc/d/200908/340_220_a.jpg height=212 width=340></a>';
	
}


function main_flash_game2006()
{
	var snect = "<table width=880 border=0 cellpadding=0 cellspacing=0> " +
		"<tr><td><object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 width=880 height=305> " +
		" <param name=movie value=http://www.oncity.cc/game2006/main.swf /> " +
		" <param name=quality value=high /> " +
		"  <param name=wmode value=transparent /> " +
		" <embed src=http://www.oncity.cc/game2006/main.swf width=880 height=305 quality=high pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash wmode=transparent></embed> " +
		" </object></td></tr></table> ";
	document.write(snect);
}

function oncity_ss(id) {

	switch(id) {
		case 'all':
			html='<form name="s_form"><INPUT style="WIDTH: 390px;margin-left: 5px; BACKGROUND-REPEAT: no-repeat" name=q>';
			break;
		case 'love':
			html='<form name="s_form" action="http://love.oncity.cc/search.php" method="get" target="_blank">性别：&nbsp;<input type="radio" name="sex" value="boy">男 <input type="radio" name="sex" value="girl" checked>女 &nbsp;&nbsp;<input type=checkbox name="have_photo" value="y" checked>图片&nbsp;<input type=hidden name=province value=19>年龄：<SELECT NAME="age_from"><option>16</option><option>18</option><option>20</option><option>22</option><option>24</option></SELECT>&nbsp;到 <SELECT NAME="age_to"><option>28</option><option>30</option><option>35</option><option>40</option></SELECT>&nbsp;地区:<SELECT NAME="city"><option value=0>不限</option><option value=1>中山</option><option value=2>广州</option><option value=5>深圳</option><option value=6>珠海</option></SELECT>';
			break;
		case 'shop':
			html='<form name="s_form" action="http://shop.oncity.cc/search.php" method="GET" target="_blank"><INPUT style="WIDTH: 207px;margin-left: 5px; BACKGROUND-REPEAT: no-repeat" name=q><select id="pt" name="pt"><option value=0>全部商品</option><option value=1>电脑/软件/网络/办公</option><option value=2>手机/通讯设备</option><option value=3>数码相机/摄像机/图形冲印</option><option value=4>MP3/iPod/MP4/音响/耳机</option><option value=5>运动/户外/休闲</option><option value=6>家用电器/保健器械</option><option value=7>居家日用/装饰/文具/园艺</option><option value=8>邮币/古董/字画/收藏</option><option value=9>汽车/摩托/自行车</option><option value=10>建材装潢/五金工具/房产</option><option value=11>电玩/动漫/Cosplay/周边</option><option value=12>珠宝首饰/手表/眼镜</option><option value=13>彩妆/香水/护肤/美体</option><option value=14>女士箱包/鞋帽/配件</option><option value=15>女装/女士精品</option><option value=16>ZIPPO/瑞士军刀/男士精品</option><option value=17>男装/服饰配件</option><option value=18>保健品/食品</option><option value=19>童装/婴幼/孕妇用品</option><option value=20>玩具/模型/卡通产品</option><option value=21>书籍/杂志/报纸</option><option value=22>宠物/宠物食品及用品</option><option value=23>音乐/影视/明星/娱乐</option><option value=24>店铺模板及物流</option></select>';
			break;
		case 'url':
			html='<form name="s_form" action="url.php" target="_blank"><INPUT style="WIDTH: 312px;margin-left: 5px; BACKGROUND-REPEAT: no-repeat" name=q><select name=t_id><option value=0>所有分类</option><option value=1>聊天论坛</option><option value=2>游戏网游</option><option value=3>明星美女</option><option value=4>星相命理</option><option value=5>体育运动</option><option value=6>足球世界</option><option value=7>彩票博彩</option><option value=8>艺术爱好</option><option value=9>贺卡宠物</option><option value=10>动漫卡通</option><option value=11>电脑网络</option><option value=12>硬件资讯</option><option value=13>程序编程</option><option value=14>黑客安全</option><option value=15>网站制作</option><option value=16>文学小说</option><option value=17>人才招聘</option><option value=18>留学移民</option><option value=19>教育培训</option><option value=20>考试招生</option><option value=21>校园高校</option><option value=22>少年儿童</option><option value=23>医疗保健</option><option value=24>男士女性</option><option value=25>时尚美容</option><option value=26>服装服饰</option><option value=27>饮食营养</option><option value=28>房产家居</option><option value=29>生活服务</option><option value=30>旅游地图</option><option value=31>交通物流</option><option value=32>网上购物</option><option value=33>礼品玩具</option><option value=34>纺织皮革</option><option value=36>食品饮料</option><option value=37>建筑建材</option><option value=38>汽车汽配</option><option value=39>商业贸易</option><option value=40>企业黄页</option><option value=41>工业制品</option><option value=42>机械机电</option><option value=43>电子电工</option><option value=44>安全防护</option><option value=45>家电数码</option><option value=46>手机通信</option><option value=47>招商加盟</option><option value=48>餐馆娱乐</option><option value=49>农林牧渔</option><option value=50>环保绿化</option><option value=51>冶金矿产</option><option value=52>化工能源</option><option value=53>金融保险</option><option value=54>财经证券</option><option value=55>法律律师</option><option value=56>广告营销</option><option value=57>办公文教</option><option value=58>包装纸品</option><option value=59>印刷出版</option><option value=60>报刊图书</option><option value=61>电视广播</option><option value=62>新闻媒体</option><option value=63>生活服务</option><option value=64>政府组织</option><option value=65>社会文化</option></select>';
			break;
		case 'who':
			html='<form name="s_form" action="http://im.oncity.cc" target="_blank"><INPUT style="WIDTH: 390px;margin-left: 5px; BACKGROUND-REPEAT: no-repeat" name="name">';
			break;
		case 'ad':
			html='<form name="s_form" action="http://ad.oncity.cc/list.php" target="_blank"><INPUT style="WIDTH: 312px;margin-left: 5px; BACKGROUND-REPEAT: no-repeat" name="q"><select name="search_cid" id="search_cid"><option value="0" selected>全部类别</option><option value="2" >同城生活</option><option value="3" >汽车频道</option><option value="4" >招商商机</option><option value="5" >房屋租售</option><option value="6" >物品买卖</option><option value="7" >招聘</option><option value="8" >求职</option><option value="9" >服务大全</option><option value="10" >餐饮美食</option><option value="11" >交友征婚</option><option value="12" >事件日历</option><option value="13" >教育培训</option></select>';
			break;
		case 'mp3':
			html='<form name="s_form" action="http://music.oncity.cc/listcd.php" target="_blank"><INPUT style="WIDTH: 312px;margin-left: 5px; BACKGROUND-REPEAT: no-repeat" name="key"><SELECT name=s_method><OPTION value=song_title selected>歌曲名</OPTION><OPTION value=album_title>专辑名称</OPTION><OPTION value=art_name>歌手名字</OPTION></SELECT>';
			break;
	}
	html+='&nbsp;<INPUT style="WIDTH: 55px; HEIGHT: 25px" type=image src="images2/btn_schH.gif" align="absmiddle"></form>';
	s_html.innerHTML=html;
}





function ad_movieshow(){

	ss=new Array(
		"<a href=http://www.mmnow.net/bbs/viewthread.php?tid=8 target=_blank><img src=http://m.oncity.cc/mm/460_133_baoyuecard.jpg border=0 style=\"border:solid 1 #333333\"></a>",
		"<a href=movie.php?id=4181 target=_blank><img src=http://m.oncity.cc/mm/460_133_xinzha.jpg border=0 style=\"border:solid 1 #333333\"></a>",
		"<a href=movie.php?id=4180 target=_blank><img src=http://m.oncity.cc/mm/460_133_guiyu.jpg border=0 style=\"border:solid 1 #333333\"></a>"
	);	
	
	//document.write(ss[random(ss.length)]);
	document.write(ss[0]);
}


//oncity 电影网广告条
function ad_banner() {
	
	br="<BR><img src=http://m.oncity.cc/e.gif height=3><BR>";
	
	//有需要在这里增加就是
		
	ss ="<a href=http://www.oncity.cc/mm/movie.php?id=4906><img src=http://m.oncity.cc/mm/180_78_mingjie.jpg border=0 style=\"border :1px solid Black\" width=196 height=85></a>"+br;
 
	ss +="<a href=http://www.oncity.cc/mm/movie.php?id=3813><img src=http://img3.oncity.cc/ad/200604/196_85_dingdang.jpg border=0 width=196 height=85></a>"+br;

	ss +="<a href=http://www.oncity.cc/mm/movie.php?id=3397 border=0 width=196 height=85><img src=http://m.oncity.cc/mm/196_85_gongqijun.gif border=0></a>";
	
	snect =ss;

	document.write(snect);
}


function movie_left_banner(limit,width) {

	br="<br><img src=http://m.oncity.cc/e.gif height=3><BR>";

	ss=new Array(
		"<a href=http://www.oncity.cc/mm/movie.php?id=5537 target=_blank><img src=http://img3.oncity.cc/ad/200707/180_78_070709d2.jpg border=0 style=\"border :1px solid Black\" width="+width+"></a>",
		"<a href=http://www.oncity.cc/mm/movie.php?id=3409 target=_blank><img src=http://m.oncity.cc/mm/196_85_xingye.jpg border=0 width="+width+"></a>",
		"<a href=http://www.oncity.cc/mm/movie.php?id=3717 target=_blank><img src=http://img3.oncity.cc/ad/200603/196_85_liudehua.jpg border=0 width="+width+"></a>"
	);
	var ss2 = '';
	if (limit=='')
	{ limit=7;
	}
	for (var i=0; i<limit; i++)
	{ 
		if(ss[i]!=undefined){
		ss2 += ss[i]+br;
		}
	}

	document.write(ss2);

}
