var strMenu = "<div id=\"menu\" class=\"clsMenu\" onMouseover=\"highlight()\" onMouseout=\"lowlight()\">"

strMenu += "<div class=\"menuitems\" onClick=\"this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.redboy.co.tv');\" >.::Ϊҳ::.</div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:window.external.AddFavorite('http://www.redboy.con.cn', 'Զ̳')\">.::ղ::.</div>"

strMenu += "<hr>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='bbs'\">.::̳::.</div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='art'\">.::Զļ::.</div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='links'\">.::::.</div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='guest'\">.::::.</div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:MM_openBrWindow('email.htm','','scrollbars=no,width=455,height=330')\">.::վ::.</div>"

strMenu += "<hr>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='javascript:history.go(-1)'\">.::󡡡::.</a></div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='javascript:history.go(1)'\">.::ǰ::.</a></div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:MM_openBrWindow('function/online_look.php?id=0','','scrollbars=yes,width=422,height=280')\">.::ǰ::.</div>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:MM_openBrWindow('function/ip1.php','','scrollbars=no,width=455,height=330')\">.::ɣвѯ::.</div>"

strMenu += "<hr>"

strMenu += "<div class=\"menuitems\" onClick=\"javascript:location.href='javascript:close()'\">.::رմ::.</a></div>"

strMenu += "</div>"

// жϿͻ

function ie() {

	if (navigator.appName=="Microsoft Internet Explorer") {

		return true;

	} else {

		return false;

}}

// ʾ˵

function showmenu(){

	if (ie()){

	// ҳڴеλ

	var rightedge=document.body.clientWidth-event.clientX

	var bottomedge=document.body.clientHeight-event.clientY

	// ľСڲ˵Ŀ

	if (rightedge<menu.offsetWidth)

		// ˵ƶʵλ

		menu.style.left=document.body.scrollLeft+event.clientX-menu.offsetWidth

	else

		// 򣬾ڸλʾ˵

	menu.style.left=document.body.scrollLeft+event.clientX

	// ͬжλ

	if (bottomedge<menu.offsetHeight)

		menu.style.top=document.body.scrollTop+event.clientY-menu.offsetHeight

	else

		menu.style.top=document.body.scrollTop+event.clientY

		menu.style.visibility="visible"

	}

	return false

}

// ز˵

function hidemenu(){

	if (ie()) menu.style.visibility="hidden"

}

// ˵ýʱʾ

function highlight(){

	if (event.srcElement.className=="menuitems"){

		event.srcElement.style.backgroundColor="highlight"

		event.srcElement.style.color="highlighttext"

}}

// ˵ʧȥ

function lowlight(){

	if (event.srcElement.className=="menuitems"){

	event.srcElement.style.backgroundColor=""

	event.srcElement.style.color="menutext"

}}

if (ie()) document.write (strMenu);

document.oncontextmenu= showmenu

document.body.onclick= hidemenu