
function winload()
{
Layer1024Left.style.top=20;
Layer1024Left.style.left=5;
Layer1024Right.style.top=0;
Layer1024Right.style.right=5;
}

if(document.body.offsetWidth>800){	
	{
		//左侧内容
		var leftContent="";
                leftContent+=""

		//右侧内容
		var rightContent="";
		//修改此处文件名
rightContent+="<table width='9%' border=0 cellspacing=0 cellpadding=0>"
rightContent+="<tr><td>"
rightContent+="<img src='../images/ad.gif' border=0 usemap=#Map>"
rightContent+="</td></tr></table>"
rightContent+="<map name=Map>"
rightContent+="<area shape=rect coords=11,125,79,148 href=z1.html>"
rightContent+="<area shape=rect coords=10,154,79,175 href=http://wpa.qq.com/msgrd?V=1&Uin=564314300&Site=http://www.shanghaimr.com&Menu=yes target=blank  >"
rightContent+="<area shape=rect coords=9,178,79,199 href=mailto:goyo021@sohu.com
>"
rightContent+="<area shape=rect coords=7,204,79,225 href=z2.html>"
rightContent+="<area shape=rect coords=7,232,79,254 href=z3.html>"
rightContent+="</map>"
		rightContent+=""

	document.write("<div id=Layer1024Left style='position: absolute;visibility:visible;z-index:1'>" + leftContent + "</div>"
	+"<div id=Layer1024Right style='position: absolute;visibility:visible;z-index:1'>" + rightContent + "</div>");
	}
  winload();
}


var isDOM = (document.getElementById ? true : false);  
var isIE4 = ((document.all && !isDOM) ? true : false); 
var isNS4 = (document.layers ? true : false);  

function getRef(id) { 
	if (isDOM) return document.getElementById(id); 
	if (isIE4) return document.all[id]; 
	if (isNS4) return document.layers[id]; 
}  

var isNS = navigator.appName == "Netscape";  

function moveRightEdge() { 
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;  

	if (isNS4) { 
		
		yMenuFrom   = Layer1024Left.top; 
		yMenuTo     = windows.pageYOffset +10; 
	} else if (isDOM) { 
		
		yMenuFrom   = parseInt (Layer1024Left.style.top, 10); 
		yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 20; 
	} 
	timeoutNextCheck = 10;  

	if (yMenuFrom != yMenuTo) { 
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 10); 
		if (yMenuTo < yMenuFrom) 
			yOffset = -yOffset; 
		if (isNS4) 
		{
			divMenuL.top += yOffset; 
			divMenuR.top += yOffset; 
		}
		else if (isDOM) 
		{
			divMenuL.style.top = parseInt (divMenuL.style.top, 10) + yOffset;
			divMenuR.style.top = parseInt (divMenuR.style.top, 10) + yOffset;
			timeoutNextCheck = 10; 
		} 
	}
	setTimeout ("moveRightEdge()", timeoutNextCheck); 
	
}
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);


if (isNS4) {
	var divMenuL = document["Layer1024Left"];
	var divMenuR = document["Layer1024Right"];
	divMenuL.top = top.pageYOffset + 100;
	divMenuR.top = top.pageYOffset + 100;
	divMenu.visibility = "visible";

	moveRightEdge();
} else if (isDOM) {
	var divMenuL = getRef('Layer1024Left');
	var divMenuR = getRef('Layer1024Right');
	divMenuL.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 20;
	divMenuR.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 20;
	divMenuL.style.visibility = "visible";
	divMenuR.style.visibility = "visible";
	moveRightEdge();
}