﻿// JavaScript Document
var UtilFunction={
	changeFunction:function(ItemNo,countNum,changeItemNo,moreHref)
				{			
					for(i=1;i<=countNum;i++)
					{
						if(changeItemNo==i)
						{
							this.getObject("table_"+ItemNo+i).style.display = "";
							this.getObject("more_"+ItemNo).href=moreHref;
						}
						else
						{
							this.getObject("table_"+ItemNo+i).style.display = "none";
						}
					}
				},
changebgFunction:function(ItemNo,countNum,changeItemNo,moreHref)
				{			
					for(i=1;i<=countNum;i++)
					{
						if(changeItemNo==i)
						{   this.getObject("a_"+ItemNo+i).style.background= "url(/images/ycjy_bq01.gif)";
							this.getObject("table_"+ItemNo+i).style.display = "";
							this.getObject("more_"+ItemNo).href=moreHref;
						}
						else
						{
							this.getObject("a_"+ItemNo+i).style.background= "url(/images/ycjy_bq02.gif)";
							this.getObject("table_"+ItemNo+i).style.display = "none";
						}
					}
				},
changeFuncnomore:function(ItemNo,countNum,changeItemNo)
				{			
					for(i=1;i<=countNum;i++)
					{
						if(changeItemNo==i)
						{
							this.getObject("table_"+ItemNo+i).style.display = "";
							
						}
						else
						{
							this.getObject("table_"+ItemNo+i).style.display = "none";
						}
					}
				},
	getObject:function(objectId) 
			{
				if(document.getElementById && document.getElementById(objectId)) 
				{
				 // W3C DOM
					 return document.getElementById(objectId);
				}
				else if (document.all && document.all(objectId)) 
				{
				// MSIE 4 DOM
					return document.all(objectId);
				} 
				else if (document.layers && document.layers[objectId]) 
				{
				// NN 4 DOM.. note: this won't find nested layers
					return document.layers[objectId];
				} 
				else 
				{
					return false;
				}
			},
	FKCondition:function(int)
				{
					switch(int)
					{
						case "1": document.write('<img src="/images/ycjy_78.jpg" width="18" height="10" />');
								break;
						case "2": document.write('<img src="/images/ycjy_75.jpg" width="13" height="13" />');
								break;
						case "" :document.write('<img src="/images/ycjy_81.jpg" width="10" height="10" />');
							   	break;
					}
				},
	copyright:function()
				{
					document.write("<table width=\"1000\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" >");
					document.write("  <tr>");
					document.write("    <td height=\"30\" align=\"center\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
					document.write("      <tr>");
					document.write("        <td width=\"108\" align=\"center\" class=\"twhite tb\"><a href=\"#\" class=\"white\">站点地图<\/a><\/td>");
					document.write("        <td width=\"2\"><img src=\"\/images\/11_153.jpg\" width=\"2\" height=\"13\" \/><\/td>");
					document.write("        <td width=\"108\" align=\"center\" class=\"twhite tb\"><a href=\"#\" class=\"white\">关于网站<\/a><\/td>");
					document.write("        <td width=\"2\"><img src=\"\/images\/11_153.jpg\" width=\"2\" height=\"13\" \/><\/td>");
					document.write("        <td width=\"108\" align=\"center\" class=\"twhite tb\"><a href=\"#\" class=\"white\">联系我们<\/a><\/td>");
					document.write("        <td width=\"2\"><img src=\"\/images\/11_153.jpg\" width=\"2\" height=\"13\" \/><\/td>");
					document.write("        <td width=\"108\" align=\"center\" class=\"twhite tb\"><a href=\"#\" class=\"white\">网站帮助<\/a><\/td>");
					document.write("        <td width=\"2\"><img src=\"\/images\/11_153.jpg\" width=\"2\" height=\"13\" \/><\/td>");
					document.write("        <td width=\"108\" align=\"center\" class=\"twhite tb\"><a href=\"#\" class=\"white\">网站统计<\/a><\/td>");
					document.write("      <\/tr>");
					document.write("    <\/table><\/td>");
					document.write("  <\/tr>");
					document.write("  <tr>");
					document.write("    <td align=\"center\" class=\"h24 twhite\">建议使用：1024*768分辨率，16位以上颜色 Netscape6.0、IE5.0以上版本浏览器和中文大字符集 <br \/>");
					document.write("      上杭县农村党员干部现代远程教育网络建设领导小组办公室 <br \/>");
					document.write("      E-mail：shxycb@shycjy.cn&nbsp;&nbsp;闽ICP备06004741号<\/td>");
					document.write("  <\/tr>");
					document.write("<\/table>");
				}		
};
function a(id)
{
	return UtilFunction.getObject(id);
}