document.write('<div class="layout">');+
document.write('	<div class="borderleft" style="height:26px;">');
document.write('	</div>');
document.write('	<div class="content" style="background-image:url(/images/top.gif); height:26px;"');
document.write('	<table border="0" width=100%  cellspacing="0" align=center cellpadding="0" >');
document.write('	<tr >');
document.write('	<td height=26 >');
document.write('	<table border="0" width=100%  height=26 cellspacing="0" style="font-size:12px;" align=center cellpadding="0" background="images/top.jpg">');
document.write('	<td height=26 width=50% style="padding-left:18px">频道: <a target="_blank" href="http://www.jj.gov.cn/">政务</a> | <a target="_blank" href="http://citizen.jj.gov.cn/">市民</a> | <a target="_blank" href="http://enterprise.jj.gov.cn/">企业</a> | <a target="_blank" href="http://travel.jj.gov.cn/">旅游</a> | <a target="_blank" href="http://trade.jj.gov.cn/">投资</a> | <a href="http://xxgk.jj.gov.cn">[椒江区政府信息公开]</a></td>');
document.write('	<td height=26 align=right  width=50% style="padding-right:18px"><a href="http://www.zjtz.gov.cn/" target="_blank"><img src="/images/taiz.jpg"  height=26 border=0></a><a href="http://www.jj.gov.cn/" target="_blank"><img src="/images/zhej.jpg" height=25 border=0></a></td>');
document.write('	</tr>');
document.write('	</table>');
document.write('	</td>');
document.write('	</tr>');
document.write('	</table>');
document.write('	</div>');
document.write('	<div class="borderright" style="height:26px;">');
document.write('	</div>');
document.write('</div>');

document.write('<div class="layout">');+
document.write('	<div class="borderleft" style="height:126px;">');
document.write('	</div>');
document.write('	<div class="content" style="background-image:url(/images/header2.JPG); height:126;text-align:left;"><span class="sitename" style=" color:#ff0000;height:24px;padding-top:46px; padding-left:38px;">'+sitename+'</span>'); 
document.write('		</div>');
document.write('	<div class="borderright" style="height:126px;">');
document.write('	</div>');
document.write('</div>');

document.write('<style>.content {overflow:hidden;line-height:20px;}</style>');

var OverflowTableBuffer = new Array();
function ShowOverflowTables(i)
{
	if (OverflowTableBuffer[i])
	{
		//alert ('f');
		var win = window.open("about:blank");
		win.document.open();
		win.document.write(OverflowTableBuffer[i]);
	}
}

function ProcessOverflowTables()
{
	var t = new Object();
	var tList = new Array();
	if (document.all['Zoom'])
	{
		t = document.all['Zoom'];
	}
	else if (document.all['content'])
	{
		t = document.all['content'];
	}else
	{
		return ;
	}
	
	var inputs = t.getElementsByTagName("TABLE");
	for (i=0;i<inputs.length;i++)
	{
		var tab = inputs[i];
		if (tab.clientWidth > t.clientWidth)
		{
			OverflowTableBuffer.push(tab.outerHTML);
			tList.push(i);
			//tab.outerHTML = "<span style='border:1px dotted skyblue;padding:10px;float:left;width:320px;height:40px;margin:10px;font-size:9pt;color:blue'>此表格过宽，可能无法在此页面中呈现，点击 <a href='javascript:ShowOverflowTables("+(OverflowTableBuffer.length - 1)+")'>这里开启</a> 一个新的窗口用于显示此表格。</span>" ;
		}
	}
	
	for (i=0;i<tList.length;i++)
	{
		var inputs = t.getElementsByTagName("TABLE");
		var id = parseInt(tList[i],10);
		//alert (id);

		inputs[1].outerHTML = "<span style='border:1px dotted skyblue;padding:10px;float:left;width:320px;height:40px;margin:10px;font-size:9pt;color:blue'>此表格过宽，可能无法在此页面中呈现，点击 <a href='javascript:ShowOverflowTables("+i+")'>这里开启</a> 一个新的窗口用于显示此表格。</span>" ;
	}
}

if (!window.onload)
{
	window.onload = ProcessOverflowTables;
}else
{
	var f = window.onload;
	window.onload = function()
	{
		f();
		ProcessOverflowTables();
	}
}