
var menuOffX=0	//菜单距连接文字最左端距离
var menuOffY=18	//菜单距连接文字顶端距离
var defaultMenuWidth="100px" //set default menu width.

var userAgent = navigator.userAgent.toLowerCase();
var is_opera = userAgent.indexOf('opera') != -1 && opera.version();
var is_moz = (navigator.product == 'Gecko') && userAgent.substr(userAgent.indexOf('firefox') + 8, 3);
var is_ie = (userAgent.indexOf('msie') != -1 && !is_opera) && userAgent.substr(userAgent.indexOf('msie') + 5, 3);

//网页游戏
var topmenulist2='<div class="menuitems">'
topmenulist2+='---- <b>网页游戏</b> ----<br>'
topmenulist2+='<a href="http://bbs.my0511.com/yeswan.php" target="_blank">弹弹堂</a><br>'
topmenulist2+='<a href="http://u.my0511.com/userapp.php?id=1053201" target="_blank">倾城</a><br>'
topmenulist2+='<a href="http://bbs.my0511.com/yeswan.php" target="_blank">武林英雄</a><br>'
topmenulist2+='<a href="http://u.my0511.com/userapp.php?id=1044490" target="_blank">三十六计 </a><br>'
topmenulist2+='<a href="http://bbs.my0511.com/yeswan.php" target="_blank">武林三国</a><br>'
topmenulist2+='<a href="http://bbs.my0511.com/yeswan.php" target="_blank">华山论剑</a><br>'
topmenulist2+='<a href="http://bbs.my0511.com/yeswan.php" target="_blank">得克萨斯扑克</a><br>'
topmenulist2+='<a href="http://u.my0511.com/userapp.php?id=1029889" target="_blank">开心宝贝</a><br>'
topmenulist2+='<a href="http://pk.my0511.com" target="_blank">---- <b>棋牌中心</b> ----</a><br>'
topmenulist2+='<a href="http://pk.my0511.com" target="_blank"><font color=red>镇江麻将</font></a><br>'
topmenulist2+='<a href="http://pk.my0511.com" target="_blank">镇江掼蛋</a><br>'
topmenulist2+='<a href="http://pk.my0511.com" target="_blank">扎金花</a><br>'
topmenulist2+='<a href="http://pk.my0511.com" target="_blank">斯诺克(新版)</a><br>'
topmenulist2+='-------------------<br>'
topmenulist2+='<a href="/f550b">MY0511游戏讨论区</a><br>'

//商业街
var topmenulist4=''
topmenulist4+='----------<br>'
topmenulist4+='<a href="/f19b">电脑整机配件</a><br>'
topmenulist4+='<a href="/f74b">手机电玩数码</a><br>'
topmenulist4+='----------<br>'
topmenulist4+='<a href="/f401b">摄影婚庆</a><br>'
topmenulist4+='<a href="/f396b">健康美容</a><br>'
topmenulist4+='<a href="/f392b">服饰鞋帽</a><br>'
topmenulist4+='----------<br>'
topmenulist4+='<a href="/f391b">婴幼童品</a><br>'
topmenulist4+='<a href="/f397b">家居综合</a><br>'
topmenulist4+='<a href="/f393b">食　　品</a><br>'
topmenulist4+='----------<br>'
topmenulist4+='<a href="/f395b">宠物交易</a><br>'
topmenulist4+='<a href="/f75b">其他交易</a><br>'
topmenulist4+='----------<br>'
topmenulist4+='<a href="/f327b">血拼(团购)</a><br>'
topmenulist4+='<a href="/f330b">商家俱乐部</a><br>'


//分类信息
var topmenulist1=''
topmenulist1+='<a href="/g278b">分类信息</a><br>'
topmenulist1+='<a href="/f400b"><font color=red>－家政钟点工保姆</font></a><br>'
topmenulist1+='<a href="/f620b">二手汽车交易</a><br>'
topmenulist1+='<a href="/f18b"><font color=red>招聘信息</font></a><br>'
topmenulist1+='<a href="/f244b">培训信息</a><br>'
topmenulist1+='<a href="/f373b">少儿才艺</a><br>'
topmenulist1+='<a href="/lphyfc.php">房产交易</a><br>'



//镇江
var topmenulist3='<div class="menuitems">'
topmenulist3+='<a href="/f152b">百姓话题</a><br>'
topmenulist3+='<a href="/f23b">茶余饭后</a><br>'
topmenulist3+='<a href="/f237b">征婚交友</a><br>'
topmenulist3+='<a href="/f621b">8090</a><br>'
topmenulist3+='<a href="/f151b">房地产沙龙</a><br>'
topmenulist3+='<a href="/f221b">爱心家园</a><br>'
topmenulist3+='<a href="/f547b">城乡直通车</a><br>'
topmenulist3+='<a href="/f219b">投资理财</a><br>'
topmenulist3+='-----媒体互动-----<br>'
topmenulist3+='<a href="/f86b">维权热线</a><br>'
topmenulist3+='<a href="/f681b">我们的声音有力量</a><br>'




//运动
var topmenulist5=''
topmenulist5+='<a href="/f49b">菜菜鸟户外</a><br>'
topmenulist5+='<a href="/f544b">镇江单车俱乐部</a><br>'
topmenulist5+='<a href="/f40b">运动人生</a><br>'
topmenulist5+='<a href="/f41b">聚焦足球</a><br>'
topmenulist5+='<a href="/f455b">镇江市冬泳协会</a><br>'
topmenulist5+='<a href="/f604b">镇江市羽毛球协会</a><br>'



//摄影
var topmenulist6=''
topmenulist6+='<a href="/f36b">视觉COFFEESHOP</a><br>'
topmenulist6+='<a href="/f314b">镜头里的镇江</a><br>'
topmenulist6+='<a href="/f33b">数码器材</a><br>'



//休闲
var topmenulist7=''

topmenulist7+='<a href="/f67b">饮食男女</a><br>'
topmenulist7+='<a href="/f627b"><font color=red>畅游天下</font></a><br>'
topmenulist7+='<a href="/f39b">情色酒吧</a><br>'
topmenulist7+='<a href="/f60b">猫狗总动员</a><br>'
topmenulist7+='<a href="/f81b">花鸟鱼虫</a><br>'
topmenulist7+='<a href="/f563b"><font color=red>镇江钓友之家</font></a><br>'
topmenulist7+='<a href="/f550b">游戏讨论区</a><br>'
topmenulist7+='<a href="/">-------------</a><br>'
topmenulist7+='<a href="/f476b">龙吟坊商业街</a><br>'


//车友
var topmenulist8=''
topmenulist8+='<a href="/f548b">汽车驾驶培中心</a><br>'
topmenulist8+='<a href="/f585b"><font color=red>我要买车</font></a><br>'
topmenulist8+='<a href="/f76b">车迷之家</a><br>'
topmenulist8+='<a href="/f234b">汽车装潢改装</a><br>'
topmenulist8+='<a href="/f620b">二手汽车交易</a><br>'
topmenulist8+='<a href="/f42b">动力机车(摩友)</a><br>'
topmenulist8+='<a href="/">-------------</a><br>'
topmenulist8+='<a href="/f428b">别克－未来</a><br>'
topmenulist8+='<a href="/f390b">恒隆雪佛兰汽车大家庭</a><br>'
topmenulist8+='<a href="/f381b">斯柯达车友会</a><br>'
topmenulist8+='<a href="/f475b">一汽马自达-魅.力.科技</a><br>'
topmenulist8+='<a href="/f526b">广汽丰田·镇江长达</a><br>'
topmenulist8+='<a href="/f549b">长安马自达</a><br>'
topmenulist8+='<a href="/f579b">美莱·瑞麒</a><br>'


//家庭
var topmenulist9=''
topmenulist9+='<a href="/f88b">家有学子</a><br>'
topmenulist9+='<a href="/f373b">少儿才艺</a><br>'
topmenulist9+='<a href="/f218b">母婴乐园</a><br>'
topmenulist9+='<a href="/f127b">婚姻生活</a><br>'
topmenulist9+='<a href="/f50b">寻医问药</a><br>'


//女性
var topmenulist10=''
topmenulist10+='<a href="/f29b">女性天地</a><br>'
topmenulist10+='<a href="/f325b"><font color=red>谈婚论嫁</font></a><br>'
topmenulist10+='<a href="/f298b">交换空间</a><br>'
topmenulist10+='<a href="/f327b">血拼一族(团购)</a><br>'
topmenulist10+='<a href="/">-------------</a><br>'
topmenulist10+='<a href="/f282b">吸引力国际婚纱</a><br>'

//杂谈
var topmenulist11=''
topmenulist11+='<a href="/f7b">美丽心情</a><br>'
topmenulist11+='<a href="/f57b">人到中年</a><br>'
topmenulist11+='<a href="/f28b">品味生活</a><br>'
topmenulist11+='<a href="/f48b">失恋天堂</a><br>'
topmenulist11+='<a href="/">-------------</a><br>'
topmenulist11+='<a href="/f109b">怀旧情怀</a><br>'
topmenulist11+='<a href="/f26b">老兵之家</a><br>'
topmenulist11+='<a href="/f108b">青春.com</a><br>'
topmenulist11+='<a href="/f80b">佛禅般若</a><br>'
topmenulist11+='<a href="/f460b">快乐老家</a><br>'
topmenulist11+='<a href="/f532b">人在旅途</a><br>'


//文艺
var topmenulist12=''
topmenulist12+='<a href="/f37b">原创文学</a><br>'
topmenulist12+='<a href="/f106b">聊聊书吧</a><br>'
topmenulist12+='<a href="/f267b">文化传媒</a><br>'
topmenulist12+='<a href="/g554b"><font color=red>镇江美术家协会</font></a><br>'


//房产
var topmenulist13=''
topmenulist13+='<a href="/f151b">房地产沙龙</a><br>'
topmenulist13+='<a href="/f95b"><font color=red>家庭装修</font></a><br>'
topmenulist13+='<a href="/f250b">装修设计师交流</a><br>'
topmenulist13+='<a href="/f211b">家装超市</a><br>'
topmenulist13+='<a href="/f618b"><font color=red>装修招标</font></a><br>'
topmenulist13+='<a href="/g408b">社区业主联盟</a><br>'
topmenulist13+='<a href="lphyfc.php">房产交易</a><br>'
topmenulist13+='<a href="/f588b"><font color=red>百润居时尚家居生活文化馆</font></a><br>'


//影音
var topmenulist14=''
topmenulist14+='<a href="/f77b">镇江DVD碟友会</a><br>'
topmenulist14+='<a href="/f69b">我为歌狂(翻唱)</a><br>'
topmenulist14+='<a href="/f38b">音乐天堂</a><br>'
topmenulist14+='<a href="/f66b">HiFi音响江城沙龙</a><br>'

//职场
var topmenulist15=''
topmenulist15+='<a href="/f194b">教师之家</a><br>'
topmenulist15+='<a href="/f421b">白衣天使</a><br>'
topmenulist15+='<a href="/f84b">Breezy English</a><br>'
topmenulist15+='<a href="/f65b">法律在线</a><br>'
topmenulist15+='<a href="/f244b"><font color=red>教育培训信息</font></a><br>'
topmenulist15+='<a href="/f18b" ><font color=red>招聘信息</font></a><br>'


//电脑
var topmenulist16=''
topmenulist16+='<a href="/f30b">软硬兼“师” </a><br>'
topmenulist16+='<a href="/f32b">网络技术 </a><br>'
topmenulist16+='<a href="/f34b">手机一族</a><br>'
topmenulist16+='<a href="/f78b">中国联通 大家联通</a><br>'
topmenulist16+='<a href="/f528b">3G时代</a><br>'






////No need to edit beyond here


function lphyviewswf(url,wmode,width,height,extra)
{ 
document.write('<embed src="' + url + '" wmode=' + wmode +
  ' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
  '" height="' + height + '" ' + extra + '></embed>');   
}


var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="lphypopmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
//return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
return  document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.lphypopmenu : document.getElementById("lphypopmenu")
menuobj.innerHTML=which
//menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth  //固定行宽
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
//eventX=ie5? event.clientX : e.clientX
//eventY=ie5? event.clientY : e.clientY
var lphyposX = ie5? event.srcElement.offsetLeft: e.target.offsetLeft;
var lphyposY = ie5? event.srcElement.offsetTop: e.target.offsetTop;
var lphyaBox = ie5? event.srcElement: e.target;//需要获得位置的对象
do {
	lphyaBox = lphyaBox.offsetParent;
	lphyposX += lphyaBox.offsetLeft;
	lphyposY += lphyaBox.offsetTop;
} while( lphyaBox.tagName != "BODY" );
//eventX=lphyposX? lphyposX : eventX;
//eventY=lphyposY? lphyposY : eventY;
eventX=lphyposX
eventY=lphyposY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+menuOffX+"px" : window.pageXOffset+eventX-menuobj.contentwidth+menuOffX+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+menuOffX+"px" : window.pageXOffset+eventX+menuOffX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+menuOffY+"px" : window.pageYOffset+eventY-menuobj.contentheight+menuOffY+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+eventY+menuOffY+"px" : window.pageYOffset+eventY+menuOffY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu


function $(obj)
{
	return document.getElementById(obj);
}

function isUndefined(variable) {
	return typeof variable == 'undefined' ? true : false;
}
function in_array(needle, haystack) {
	if(typeof needle == 'string' || typeof needle == 'number') {
		for(var i in haystack) {
			if(haystack[i] == needle) {
					return true;
			}
		}
	}
	return false;
}
function trim(str) {
	return (str + '').replace(/(\s+)$/g, '').replace(/^\s+/g, '');
}
function LphyLoadData() {
	var message = '';
	if(is_ie) {
		try {
			textobj.load('LphyMy0511BBS');
			var oXMLDoc = textobj.XMLDocument;
			var nodes = oXMLDoc.documentElement.childNodes;
			message = nodes.item(nodes.length - 1).getAttribute('message');
		} catch(e) {}
	} else if(window.sessionStorage) {
		try {
			message = sessionStorage.getItem('LphyMy0511BBS');
		} catch(e) {}
	}
	if(in_array((message = trim(message)), ['', 'null', 'false', null, false])) {
		alert('没有可以恢复的数据！');
		return;
	}
	if(!confirm('此操作将覆盖当前内容，确定要恢复数据吗？')) {
		return;
	}
	textobj.value = message;
}
function LphySaveData(data, del) {
	if(!data && isUndefined(del)) {
		return;
	}
	if(is_ie) {
		try {
			var oXMLDoc = textobj.XMLDocument;
			var root = oXMLDoc.firstChild;
			if(root.childNodes.length > 0) {
				root.removeChild(root.firstChild);
			}
			var node = oXMLDoc.createNode(1, 'POST', '');
			var oTimeNow = new Date();
			oTimeNow.setHours(oTimeNow.getHours() + 24);
			textobj.expires = oTimeNow.toUTCString();
			node.setAttribute('message', data);
			oXMLDoc.documentElement.appendChild(node);
			textobj.save('LphyMy0511BBS');
		} catch(e) {alert(e.message)}
	} else if(window.sessionStorage) {
		try {
			sessionStorage.setItem('LphyMy0511BBS', data);
			
		} catch(e) {}
	}
}

function lphysetcookie(name, value, expires, path, domain, secure)
{
    var tmpexpires = new Date();
	tmpexpires.setTime(tmpexpires.getTime() + expires*86400000);

	document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + tmpexpires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
}
function lphygetcookie(name)
{
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
}

function lphyaddloadevent(func){
	var oldonload=window.onload;
	if(typeof window.onload!='function')
	{
		window.onload=func;
	}else{
		window.onload=function()
		{
			oldonload();
			func();
		}
	}
}
