 function sAlert(type,str2,str,str3){
  var msgw,msgh,bordercolor;
  msgw=630;
  msgh=453;
  titleheight=25 
  bordercolor="#336699";
  titlecolor="#99CCFF";
  var sWidth,sHeight;
  sWidth=document.body.offsetWidth;
  sHeight=screen.height;
  var bgObj=document.createElement("div");
  bgObj.setAttribute('id','bgDiv');
  bgObj.style.position="absolute";
  bgObj.style.top="0";
  bgObj.style.background="#777";
  bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
  bgObj.style.opacity="0.6";
  bgObj.style.left="0";
  bgObj.style.width=sWidth + "px";
  bgObj.style.height="652px";
  bgObj.style.zIndex = "10000";
  window.top.document.body.appendChild(bgObj);
  var msgObj=document.createElement("div")
  msgObj.setAttribute("id","msgDiv");
  msgObj.setAttribute("align","center");
  msgObj.style.background="#999999";
  msgObj.style.border="1px solid " + bordercolor;
  msgObj.style.position = "absolute";
  msgObj.style.left = "50%";
  msgObj.style.top = "50%";
  msgObj.style.font="12px/1.6em Arial, Helvetica, sans-serif";
  msgObj.style.marginLeft = "-325px" ;
  msgObj.style.marginRight = "-325px" ;
  msgObj.style.marginTop = "-225px";
  msgObj.style.width = msgw + "px";
  msgObj.style.height =msgh + "px";
  msgObj.style.lineHeight ="25px";
  msgObj.style.zIndex = "10001";

	window.top.document.body.appendChild(msgObj);

  var divtop=document.createElement("div");
   divtop.setAttribute("id","closeDiv");
  var divTable=document.createElement("TABLE");
	 divTable.setAttribute("width","100%");
     divTable.setAttribute("CELLPADDING","0");
     divTable.setAttribute("cellspacing","0");
     divTable.setAttribute("border","0");
	 divTable.style.position="absolute";
	 var divtr=divTable.insertRow(0);
	 var divtd=divtr.insertCell(0);
	 divtd.setAttribute("align","right");

	var divimg=document.createElement("IMG");
	divimg.setAttribute("width","14");
	divimg.setAttribute("height","14");
	divimg.setAttribute("hspace","5");
	divimg.setAttribute("vspace","5");
	divimg.setAttribute("border","0");
	divimg.setAttribute("src","images/capabilities_12.gif");
	divimg.style.cursor="hand";
	divtd.appendChild(divimg);
	divimg.onclick=function(){
	document.body.removeChild(bgObj);
	document.body.removeChild(msgObj);

			}
	document.getElementById("msgDiv").appendChild(divTable);

	changetable(type,str2,str,str3)

            }
function changeImage(type,str2,str,str3)
{
	if (parseFloat(str3) == 0)
	{
		document.getElementById("iImage").src = top.frames("content_page").bPicList[str];
		document.getElementById("title").innerText = top.frames("content_page").pTitle[str];
		document.getElementById("content").innerText = top.frames("content_page").pContent[str];
	}
	else
	{
		document.getElementById("iImage").src = top.frames("content_page").ebPicList[str];
		document.getElementById("title").innerText = top.frames("content_page").eTitle[str];
		document.getElementById("content").innerText = top.frames("content_page").eContent[str];
	}


	pstr = parseFloat(str) - 1;
	astr = parseFloat(str) + 1;

	if (str <= 1)
	{
		pstr = 1;
	}
 
	if (parseFloat(str3) == 0)
	{
		if (str >= parseFloat(top.frames("content_page").maxFile))
		{
			astr = top.frames("content_page").maxFile;
		}
	}
	else
	{
		if (str >= parseFloat(top.frames("content_page").maxEFile))
		{
			astr = top.frames("content_page").maxEFile;
		}
	}

	document.getElementById("imgpre").onclick = new Function("changeImage('"+type+"','"+str2+"','"+pstr+"','"+str3+"')");
	document.getElementById("imgnext").onclick = new Function("changeImage('"+type+"','"+str2+"','"+astr+"','"+str3+"')");

}

function changetable(type,str2,str,str3)
{
	var vTable=document.createElement("TABLE");
     //ÉèÖÃtableµÄÊôÐÔ
	 vTable.setAttribute("id","iTable");
	 vTable.setAttribute("name","iTable");
     vTable.setAttribute("width","630");
     vTable.setAttribute("CELLPADDING","0");
     vTable.setAttribute("cellspacing","0");
     vTable.setAttribute("class","table");
     vTable.setAttribute("border","0");
	 vTable.setAttribute("bordercolor","#999999");


	var tr=vTable.insertRow(0);
	var td=tr.insertCell(0);
	td.style.background="#000000";
	var nodeimg=document.createElement("IMG");
	nodeimg.setAttribute("id","iImage");
	if (parseFloat(str3) == 0)
	{
		nodeimg.setAttribute("src",top.frames("content_page").bPicList[str]);	
	}
	else
	{
		nodeimg.setAttribute("src",top.frames("content_page").ebPicList[str]);		
	}

	
	nodeimg.setAttribute("width","625");
	nodeimg.setAttribute("height","361");
	td.appendChild(nodeimg);

	var tr2=vTable.insertRow(1);
	var td2=tr2.insertCell(0);
	
	pstr = parseFloat(str) - 1;
	astr = parseFloat(str) + 1;

	if (str <= 1)
	{
		pstr = 1;
	}
	if (parseFloat(str3) == 0)
	{
		
		if (str >= parseFloat(top.frames("content_page").maxFile))
		{
			astr = top.frames("content_page").maxFile;
		}
	}
	else
	{
		if (str >= parseFloat(top.frames("content_page").maxEFile))
		{
			astr = top.frames("content_page").maxEFile;
		}
	}

	if (parseFloat(str3) == 0)
	{
		td2.innerHTML="<table width=100% cellspacing=0 cellpadding=0 border=0><tr><td height=30 align=center bgcolor=#999999 class=px18_b_w width=50><img id=imgpre src=images/capabilities_9.gif border=0 onclick=changeImage('" + type + "','"+ str2 +"','" + pstr + "','"+str3+"') style=cursor:hand></td><td height=30 align=center bgcolor=#999999 class=px18_b_w><span id=title>" + top.frames("content_page").pTitle[str] + "</span></td><td align=center bgcolor=#999999 class=px18_b_w width=50><img id=imgnext src=images/capabilities_10.gif border=0 onclick=changeImage('" + type + "','"+ str2 +"','" + astr + "','"+str3+"') style=cursor:hand></td></tr></table>";
	}
	else
	{
		td2.innerHTML="<table width=100% cellspacing=0 cellpadding=0 border=0><tr><td height=30 align=center bgcolor=#999999 class=px18_b_w width=50><img id=imgpre src=images/capabilities_9.gif border=0 onclick=changeImage('" + type + "','"+ str2 +"','" + pstr + "','"+str3+"') style=cursor:hand></td><td height=30 align=center bgcolor=#999999 class=px18_b_w><span id=title>" + top.frames("content_page").eTitle[str] + "</span></td><td align=center bgcolor=#999999 class=px18_b_w width=50><img id=imgnext src=images/capabilities_10.gif border=0 onclick=changeImage('" + type + "','"+ str2 +"','" + astr + "','"+str3+"') style=cursor:hand></td></tr></table>";
	}
	

	var tr3=vTable.insertRow(2);
	var td3=tr3.insertCell(0);
	td3.style.height="48";
	td3.style.valign="top";
	td3.setAttribute("background","images/capabilities_11.gif");
	if (parseFloat(str3) == 0)
	{
		td3.innerHTML="<table width=100% border=0 cellspacing=4 cellpadding=0><tr><td align=left style=color=white;FONT-SIZE:12px;LINE-HEIGHT:120%;FONT-FAMILY:Arial><span id=content>" + top.frames("content_page").pContent[str] + "</span></td></tr></table>"
	}
	else
	{
		td3.innerHTML="<table width=100% border=0 cellspacing=4 cellpadding=0><tr><td align=left style=color=white;FONT-SIZE:12px;LINE-HEIGHT:120%;FONT-FAMILY:Arial><span id=content>" + top.frames("content_page").eContent[str] + "</span></td></tr></table>"
	}

    document.getElementById("msgDiv").appendChild(vTable);
}