
 
 $(function(){
 
 
 /*****原菜单***/////
	 //alert(request("page"));
	 /*
	$(".meun .meunfont a:contains("+request("page")+")").css("color","red");
	//菜单效果
	$(".meun .meunfont a").hover(
	function(){
		$(this).css("color","red");
	},function(){
	 $(".meun .meunfont a").css("color","#000000");
	 $(".meun .meunfont a:contains("+request("page")+")").css("color","red");
	});
	*/
	/*****原菜单***/////
	/*
	$(".meun .meunfont a").click(function(){
		 $("#txtMuem").val($(this).text());
		 var $can = "&page=";
		 var $txt = $("#txtMuem").val();
		 var $url = $(this).attr("href");
		 $(this).attr("href",$url+$can+$txt);
	});
	*/	
	 
	 /*****原菜单***/////
	 
	 
	  /*****新菜单***/////
	  
	
	 
	  if(request("page")!="1")
	{
	
		location.href="index.aspx?page=1";
	}
	var url = location.href; 
	if(url.indexOf("page")!=-1)
	{ 
		$(".meun .meunfont img[name='"+request("page")+"']")
				.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
	}
	 
	//菜单效果  //鼠标移入效果
	$(".meun .meunfont img").mouseover(function(){ 
		$(this).attr("src",$(this).attr("id")+"a.jpg");
	});
	
	//********鼠标移出效果
	$(".meun .meunfont img[name='1']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='2']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='3']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 	
	$(".meun .meunfont img[name='4']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='5']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='6']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='7']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='8']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='9']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	$(".meun .meunfont img[name='10']").mouseout(function(){
		$(this).attr("src",$(this).attr("id")+".jpg");
		if(url.indexOf("page")!=-1)
		{
			$(".meun .meunfont img[name='"+request("page")+"']")
					.attr("src",$(".meun .meunfont img[name='"+request("page")+"']").attr("id")+"a.jpg");
		}
	}); 
	  
	   /*****新菜单***/////
	
	
	
	
	//站内搜索文本框提示效果
	$("#txtselect").focus(function(){
	 var txtsel=$(this).val();
		if(txtsel=="在此输入查询内容")
		{
			$(this).val("");
		}
	});
	$("#txtselect").blur(function(){
		var txtsel=$(this).val();
		if(txtsel=="")
		{
			$(this).val("在此输入查询内容");
		}
	});
	//站内搜索按钮
	$("#btnselect").click(function(){
		if($("#txtselect").val()==""||$("#txtselect").val()=="在此输入查询内容")
		{
			alert("您尚未输入查询内容");
		}
		else
		{
			window.open("ShowSelect.aspx?str="+escape($("#txtselect").val()));
		}
	});
	
	
	
	
	
	$("#xxdt").mouseover(function(){
	//西乡动态
		$("#xxdtcont").show();
		$(this).attr("class","newsconten2");
		$("#jrgzcont").hide();
		//$("#zfyxcont").hide();
		//$("#zyxwcont").hide();
		$("#jrgz").attr("class","newsconten1");
		//$("#zfyx").attr("class","content4");
		//$("#zyxw").attr("class","content4");
		$("#jrgzlink").attr("href","ShowAaricleList_XWDT_XX2.aspx?Col=2");
		
		//$("#line1").hide();
		//$("#line2").show();
		//$("#line3").show();
	});
	$("#jrgz").mouseover(function(){
	//今日关注
		$("#xxdtcont").hide();
		$(this).attr("class","newsconten3");
		$("#jrgzcont").show();
		$("#xxdtcont").hide();
		$("#xxdt").attr("class","newsconten4");
		$("#jrgzlink").attr("href","ShowAaricleList_XWDT_XX2.aspx?Col=1");
	});
	$("#sqgj").mouseover(function(){
	//社区广角
		$("#xxdtcont").hide();
		$(this).attr("class","content3");
		$("#sqgjcont").show();
		$("#zfyxcont").hide();
		$("#zyxwcont").hide();
		$("#xxdt").attr("class","content4");
		$("#zfyx").attr("class","content4");
		$("#zyxw").attr("class","content4");
		$("#xxdtlink").attr("href","ShowAaricleList_XWDT_XX2.aspx?Col=5&Column2=社区广角");
		
		//$("#line2").hide();
		$("#line1").hide();
		$("#line3").show();
	});
	$("#zfyx").mouseover(function(){
	//执法一线
		$("#xxdtcont").hide();
		$(this).attr("class","content3");
		$("#sqgjcont").hide();
		$("#zyxwcont").hide();
		$("#zfyxcont").show();
		$("#xxdt").attr("class","content4");
		$("#sqgj").attr("class","content4");
		$("#zyxw").attr("class","content4");
		$("#xxdtlink").attr("href","ShowAaricleList_XXGK_XX2.aspx?seq=5100&sseq=15");
		
		$("#line3").hide();
		//$("#line2").hide();
		$("#line1").hide();
	});
	$("#zyxw").mouseover(function(){
	//重要新闻
		$("#xxdtcont").hide();
		$(this).attr("class","content3");
		$("#sqgjcont").hide();
		$("#zfyxcont").hide();
		$("#zyxwcont").show();
		$("#xxdt").attr("class","content4");
		$("#sqgj").attr("class","content4");
		$("#zfyx").attr("class","content4");
		$("#xxdtlink").attr("href","ShowAaricleList_XWDT_XX2.aspx?Col=3&Column2=重要新闻");
		
		//$("#line2").show();
		$("#line1").show();
		$("#line3").hide();
	});
	/*
	$("#qyzc").mouseover(function(){ //企业之窗
		$(this).attr("class","content3");
		$("#zlxz").attr("class","content4");
		$("#qyzccont").show();
		$("#zlxzcont").hide();
		$("#qyzclink").attr("href","ShowAaricleList_XX.aspx?seq=5400&Sseq=4");
	});
	*/
	$("#qyzc").mouseover(function(){ //企业之窗
		$(this).attr("class","content3");
		$("#zfcg").attr("class","content4");
		$("#qyzccont").show();
		$("#zfcgcont").hide();
		$("#qyzclink").attr("href","ShowAaricleList_XX.aspx?seq=5400&Sseq=4");
	});
	$("#zlxz").mouseover(function(){ //资料下载
		$(this).attr("class","content3");
		$("#qyzc").attr("class","content4");
		$("#qyzccont").hide();
		$("#zlxzcont").show();
		$("#qyzclink").attr("href","#");
	});
	/*
   $("#zfcg").mouseover(function(){ //政府采购
	$(this).attr("class","content3");
		$("#gcztb").attr("class","content4");
		$("#gcztbcont").hide();
		$("#zfcgcont").show();
		$("#zfcglink").attr("href","ShowAaricleList_XX.aspx?seq=5300&sseq=1");
   });
   */
   $("#zfcg").mouseover(function(){ //政府采购
	$(this).attr("class","content3");
		$("#qyzc").attr("class","content4");
		$("#qyzccont").hide();
		$("#zfcgcont").show();
		$("#qyzclink").attr("href","ShowAaricleList_XX.aspx?seq=5300&sseq=1");
   });
   /*
    $("#gcztb").mouseover(function(){ //工程招投标
	$(this).attr("class","content3");
		$("#zfcg").attr("class","content4");
		$("#gcztbcont").show();
		$("#zfcgcont").hide();
		$("#zfcglink").attr("href","ShowAaricleList_XXGK_XX2.aspx?seq=5300&sseq=3");
   });
   */
   $("#gcztb").mouseover(function(){ //工程招投标
	$(this).attr("class","content3");
		$("#ztjj").attr("class","content4");
		$("#gcztbcont").show();
		$("#ztjjcont").hide();
		$("#ztjjlink").attr("href","ShowAaricleList_XXGK_XX2.aspx?seq=5300&sseq=3");
   });
   $("#ztjj").mouseover(function(){ //专题聚焦
	$(this).attr("class","content3");
		$("#gcztb").attr("class","content4");
		$("#ztjjcont").show();
		$("#gcztbcont").hide();
		$("#ztjjlink").attr("href","ShowAaricleList_XX.aspx?seq=6000&sseq=1");
   });
 
   
   
  
    function request(paras){ 
		var url = location.href;  
		var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");  
		var paraObj = {}  
		for (i=0; j=paraString[i]; i++){  
		paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length);  
		}  
		var returnValue = paraObj[paras.toLowerCase()];  
		if(typeof(returnValue)=="undefined"){  
		return "";  
		}else{  
		return returnValue; 
		}
	 }
   
 });
 

 

											
											
