// JavaScript Document
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function getlm(i)
{
if(i==2){
document.getElementById("s_list2").className="";
document.getElementById("s_list3").className="bb";
document.getElementById("s_list4").className="bb";
document.getElementById("s_list7").className="bb";
document.getElementById("s_list11").className="bb";
document.getElementById("s_list2").innerHTML="<table border=0 cellpadding=0 cellspacing=0><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=11' style='color:#FFFFFF'>党建要闻</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=12' style='color:#FFFFFF'>本地动态</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=13' style='color:#FFFFFF'>领导讲话</a></td></tr></table>";}
if(i==3){
document.getElementById("s_list3").className="";
document.getElementById("s_list2").className="bb";
document.getElementById("s_list4").className="bb";
document.getElementById("s_list7").className="bb";
document.getElementById("s_list11").className="bb";
document.getElementById("s_list3").innerHTML="<table border=0 cellpadding=0 cellspacing=0><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=14' style='color:#FFFFFF'>机关党建</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=15' style='color:#FFFFFF'>农村党建</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=16' style='color:#FFFFFF'>社区党建</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=17' style='color:#FFFFFF'>其他党建</a></td></tr></table>";}
if(i==4){
document.getElementById("s_list4").className="";
document.getElementById("s_list2").className="bb";
document.getElementById("s_list3").className="bb";
document.getElementById("s_list7").className="bb";
document.getElementById("s_list11").className="bb";
document.getElementById("s_list4").innerHTML="<table border=0 cellpadding=0 cellspacing=0><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=18' style='color:#FFFFFF'>干部管理</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=19' style='color:#FFFFFF'>干部教育</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=20' style='color:#FFFFFF'>干部监督</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=21' style='color:#FFFFFF'>干部任免</a></td></tr></table>";}
if(i==7){
document.getElementById("s_list7").className="";
document.getElementById("s_list2").className="bb";
document.getElementById("s_list3").className="bb";
document.getElementById("s_list4").className="bb";
document.getElementById("s_list11").className="bb";
document.getElementById("s_list7").innerHTML="<table border=0 cellpadding=0 cellspacing=0><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=22' style='color:#FFFFFF'>调研报告</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=23' style='color:#FFFFFF'>经验交流</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=24' style='color:#FFFFFF'>理论文摘</a></td></tr></table>";}
if(i==11){
document.getElementById("s_list11").className="";
document.getElementById("s_list2").className="bb";
document.getElementById("s_list3").className="bb";
document.getElementById("s_list4").className="bb";
document.getElementById("s_list7").className="bb";
document.getElementById("s_list11").innerHTML="<table border=0 cellpadding=0 cellspacing=0><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=25' style='color:#FFFFFF'>知识之窗</a></td></tr><tr><td height=20 style='background-color:#AD2404;'><a href='news_list.asp?tid=26' style='color:#FFFFFF'>警钟长鸣</a></td></tr></table>";}
}
function height(){
height=document.body.scrollHeight-81;
document.getElementById("divleft").style.height=height;
document.getElementById("divright").style.height=height;
}
function out(){
document.getElementById("s_list11").className="bb";
document.getElementById("s_list2").className="bb";
document.getElementById("s_list3").className="bb";
document.getElementById("s_list4").className="bb";
document.getElementById("s_list7").className="bb";
}
function show(i){
document.getElementById("s_list"+i).className="";
}
function ChangeLayer(tid,nid,lastid)
{
	for(var i = 2;i<=lastid;i++)
	{
		var CPage = document.getElementById("table"+tid+"_"+i);
		var CPageNav = document.getElementById("Image"+tid+i);	
		if(i==nid)
		{
			CPage.style.display="block";
			CPageNav.className="imageclass"+tid+"_"+i;

		}
		else
		{
			CPage.style.display="none";
			CPageNav.className="nimageclass"+tid+"_"+i;
		}
	}
}	