
function PopupCalendar(InstanceName)
{
	///Global Tag
	this.instanceName=InstanceName;
	///Properties
	this.separator="-"
	this.oBtnTodayTitle="Today"
	this.oBtnCancelTitle="Cancel"
	this.weekDaySting=new Array("S","M","T","W","T","F","S");
	this.monthSting=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
	this.Width=200;
	this.currDate=new Date();
	this.today=new Date();
	this.startYear=1970;
	this.endYear=2099;
	///Css
	this.normalfontColor="#666666";
	this.selectedfontColor="red";
	this.divBorderCss="1px solid #BCD0DE";
	this.titleTableBgColor="#98B8CD";
	this.tableBorderColor="#CCCCCC"
	///Method
	this.Init=CalendarInit;
	this.Fill=CalendarFill;
	this.Refresh=CalendarRefresh;
	this.Restore=CalendarRestore;
	///HTMLObject
	this.oTaget=null;
	this.oPreviousCell=null;
	this.sDIVID=InstanceName+"_Div";
	this.sTABLEID=InstanceName+"_Table";
	this.sMONTHID=InstanceName+"_Month";
	this.sYEARID=InstanceName+"_Year";
	this.sTODAYBTNID=InstanceName+"_TODAYBTN";

}

function CalendarInit()				///Create panel
{
	var sMonth,sYear
	sMonth=this.currDate.getMonth();
	sYear=this.currDate.getYear();
	htmlAll="<div id='"+this.sDIVID+"' style='display:none;position:absolute;width:"+this.Width+";border:"+this.divBorderCss+";padding:2px;background-color:#FFFFFF'>";
	htmlAll+="<div align='center'>";
	/// Month
	htmloMonth="<select id='"+this.sMONTHID+"' onchange=CalendarMonthChange("+this.instanceName+") style='width:50%'>";
	for(i=0;i<12;i++)
	{			
		htmloMonth+="<option value='"+i+"'>"+this.monthSting[i]+"</option>";
	}
	htmloMonth+="</select>";
	/// Year
	htmloYear="<select id='"+this.sYEARID+"' onchange=CalendarYearChange("+this.instanceName+") style='width:50%'>";
	for(i=this.startYear;i<=this.endYear;i++)
	{
		htmloYear+="<option value='"+i+"'>"+i+"</option>";
	}
	htmloYear+="</select></div>";
	/// Day
	htmloDayTable="<table id='"+this.sTABLEID+"' width='100%' border=0 cellpadding=0 cellspacing=1 bgcolor='"+this.tableBorderColor+"'>";
	htmloDayTable+="<tbody bgcolor='#ffffff'style='font-size:13px'>";
	for(i=0;i<=6;i++)
	{
		if(i==0)
			htmloDayTable+="<tr bgcolor='" + this.titleTableBgColor + "'>";
		else
			htmloDayTable+="<tr>";
		for(j=0;j<7;j++)
		{

			if(i==0)
			{
				htmloDayTable+="<td height='20' align='center' valign='middle' style='cursor:hand'>";
				htmloDayTable+=this.weekDaySting[j]+"</td>"
			}
			else
			{
				htmloDayTable+="<td height='20' align='center' valign='middle' style='cursor:hand'";
				htmloDayTable+=" onmouseover=CalendarCellsMsOver("+this.instanceName+")";
				htmloDayTable+=" onmouseout=CalendarCellsMsOut("+this.instanceName+")";
				htmloDayTable+=" onclick=CalendarCellsClick(this,"+this.instanceName+")>";
				htmloDayTable+="&nbsp;</td>"
			}
		}
		htmloDayTable+="</tr>";	
	}
	htmloDayTable+="</tbody></table>";
	/// Today Button
	htmloButton="<div align='center' style='padding:3px'>"
	htmloButton+="<button id='"+this.sTODAYBTNID+"' style='width:40%;border:1px solid #BCD0DE;background-color:#eeeeee;cursor:hand'"
	htmloButton+=" onclick=CalendarTodayClick("+this.instanceName+")>"+this.oBtnTodayTitle+"</button>&nbsp;"
	htmloButton+="<button style='width:40%;border:1px solid #BCD0DE;background-color:#eeeeee;cursor:hand'"
	htmloButton+=" onclick=CalendarCancel("+this.instanceName+")>"+this.oBtnCancelTitle+"</button> "
	htmloButton+="</div>"
	/// All
	htmlAll=htmlAll+htmloMonth+htmloYear+htmloDayTable+htmloButton+"</div>";
	document.write(htmlAll);
	this.Fill();	
}
function CalendarFill()			///
{
	var sMonth,sYear,sWeekDay,sToday,oTable,currRow,MaxDay,iDaySn,sIndex,rowIndex,cellIndex,oSelectMonth,oSelectYear
	sMonth=this.currDate.getMonth();
	sYear=this.currDate.getYear();
	sWeekDay=(new Date(sYear,sMonth,1)).getDay();
	sToday=this.currDate.getDate();
	iDaySn=1
	oTable=document.all[this.sTABLEID];
	currRow=oTable.rows[1];
	MaxDay=CalendarGetMaxDay(sYear,sMonth);
	
	oSelectMonth=document.all[this.sMONTHID]
	oSelectMonth.selectedIndex=sMonth;
	oSelectYear=document.all[this.sYEARID]
	for(i=0;i<oSelectYear.length;i++)
	{
		if(parseInt(oSelectYear.options[i].value)==sYear)oSelectYear.selectedIndex=i;
	}
	////
	for(rowIndex=1;rowIndex<=6;rowIndex++)
	{
		if(iDaySn>MaxDay)break;
		currRow = oTable.rows[rowIndex];
		cellIndex = 0;
		if(rowIndex==1)cellIndex = sWeekDay;
		for(;cellIndex<currRow.cells.length;cellIndex++)
		{
			if(iDaySn==sToday)
			{
				currRow.cells[cellIndex].innerHTML="<font color='"+this.selectedfontColor+"'><i><b>"+iDaySn+"</b></i></font>";
				this.oPreviousCell=currRow.cells[cellIndex];
			}
			else
			{
				currRow.cells[cellIndex].innerHTML=iDaySn;	
				currRow.cells[cellIndex].style.color=this.normalfontColor;
			}
			CalendarCellSetCss(0,currRow.cells[cellIndex]);
			iDaySn++;
			if(iDaySn>MaxDay)break;	
		}
	}
}
function CalendarRestore()					/// Clear Data
{	
	var i,j,oTable
	oTable=document.all[this.sTABLEID]
	for(i=1;i<oTable.rows.length;i++)
	{
		for(j=0;j<oTable.rows[i].cells.length;j++)
		{
			CalendarCellSetCss(0,oTable.rows[i].cells[j]);
			oTable.rows[i].cells[j].innerHTML="&nbsp;";
		}
	}	
}
function CalendarRefresh(newDate)					///
{
	this.currDate=newDate;
	this.Restore();	
	this.Fill();	
}
function CalendarCellsMsOver(oInstance)				/// Cell MouseOver
{
	var myCell = event.srcElement;
	CalendarCellSetCss(0,oInstance.oPreviousCell);
	if(myCell)
	{
		CalendarCellSetCss(1,myCell);
		oInstance.oPreviousCell=myCell;
	}
}
function CalendarCellsMsOut(oInstance)				////// Cell MouseOut
{
	var myCell = event.srcElement;
	CalendarCellSetCss(0,myCell);	
}
function CalendarYearChange(oInstance)				/// Year Change
{
	var sDay,sMonth,sYear,newDate
	sDay=oInstance.currDate.getDate();
	sMonth=oInstance.currDate.getMonth();
	sYear=document.all[oInstance.sYEARID].value
	newDate=new Date(sYear,sMonth,sDay);
	oInstance.Refresh(newDate);
}
function CalendarMonthChange(oInstance)				/// Month Change
{
	var sDay,sMonth,sYear,newDate
	sDay=oInstance.currDate.getDate();
	sMonth=document.all[oInstance.sMONTHID].value
	sYear=oInstance.currDate.getYear();
	newDate=new Date(sYear,sMonth,sDay);
	oInstance.Refresh(newDate);	
}
function CalendarCellsClick(oCell,oInstance)
{
	var sDay,sMonth,sYear,newDate
	sYear=oInstance.currDate.getFullYear();
	sMonth=oInstance.currDate.getMonth();
	sDay=oInstance.currDate.getDate();
	if(oCell.innerText!=" ")
	{
		sDay=parseInt(oCell.innerText);
		if(sDay!=oInstance.currDate.getDate())
		{
			newDate=new Date(sYear,sMonth,sDay);
			oInstance.Refresh(newDate);
		}
	}
	sDateString=sYear+oInstance.separator+CalendarDblNum(sMonth+1)+oInstance.separator+CalendarDblNum(sDay);		///return sDateString
	if(oInstance.oTaget.tagName.toLowerCase()=="input")oInstance.oTaget.value = sDateString;
	CalendarCancel(oInstance);
	return sDateString;
}
function CalendarTodayClick(oInstance)				/// "Today" button Change
{	
	oInstance.Refresh(new Date());		
}
function getDateString(oInputSrc,oInstance)
{
	if(oInputSrc&&oInstance) 
	{
		var CalendarDiv=document.all[oInstance.sDIVID];
		oInstance.oTaget=oInputSrc;
		CalendarDiv.style.pixelLeft=CalendargetPos(oInputSrc,"Left");
		CalendarDiv.style.pixelTop=CalendargetPos(oInputSrc,"Top") + oInputSrc.offsetHeight;
		CalendarDiv.style.display=(CalendarDiv.style.display=="none")?"":"none";	
	}	
}
function CalendarCellSetCss(sMode,oCell)			/// Set Cell Css
{
	// sMode
	// 0: OnMouserOut 1: OnMouseOver 
	if(sMode)
	{
		oCell.style.border="1px solid #5589AA";
		oCell.style.backgroundColor="#BCD0DE";
	}
	else
	{
		oCell.style.border="1px solid #FFFFFF";
		oCell.style.backgroundColor="#FFFFFF";
	}	
}
function CalendarGetMaxDay(nowYear,nowMonth)			/// Get MaxDay of current month
{
	var nextMonth,nextYear,currDate,nextDate,theMaxDay
	nextMonth=nowMonth+1;
	if(nextMonth>11)
	{
		nextYear=nowYear+1;
		nextMonth=0;
	}
	else	
	{
		nextYear=nowYear;	
	}
	currDate=new Date(nowYear,nowMonth,1);
	nextDate=new Date(nextYear,nextMonth,1);
	theMaxDay=(nextDate-currDate)/(24*60*60*1000);
	return theMaxDay;
}
function CalendargetPos(el,ePro)				/// Get Absolute Position
{
	var ePos=0;
	while(el!=null)
	{		
		ePos+=el["offset"+ePro];
		el=el.offsetParent;
	}
	return ePos;
}
function CalendarDblNum(num)
{
	if(num < 10) 
		return "0"+num;
	else
		return num;
}
function CalendarCancel(oInstance)			///Cancel
{
	var CalendarDiv=document.all[oInstance.sDIVID];
	CalendarDiv.style.display="none";		
}

var oCalendarEn=new PopupCalendar("oCalendarEn");
oCalendarEn.Init();

function setHomepage(obj, url){ 

	var aUrls=document.URL.split("/"); 

	var vDomainName=" http://"+aUrls[2]+"/"; 

	try{//IE 

		obj.style.behavior="url(#default#homepage)"; 

		obj.setHomePage(vDomainName); 

	}

	catch(e){//other 

		if(window.netscape){//ff 

			try { 

				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 

			} 

			catch (e){ 

				alert("dkd\OOmȉhVb~/n(WOmȉhV0W@WheQ about:config v^Vf?n6qT\[signed.applets.codebase_principal_support]n:N'true'"); 

			} 

			var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); 

			prefs.setCharPref('browser.startup.homepage',vDomainName); 

		} 

	} 

		if(window.netscape)alert("ff"); 

		} 

		function addFavorite(){ 

			var aUrls=document.URL.split("/"); 

			var vDomainName=" http://"+aUrls[2]+"/"; 

			var description=document.title; 

			try{//IE 

			window.external.AddFavorite(vDomainName,description); 

			}catch(e){//FF 

			window.sidebar.addPanel(description,vDomainName,""); 

		} 

	} ;



function addBookmark(obj,title,url)

{

    if (obj.sidebar)

    { 

        obj.sidebar.addPanel(title, url,""); 

    }

    else if( document.all )

    {

        window.external.AddFavorite( url, title);

    }

    else if( window.opera && window.print )

    {

        return true;

    }

}



function login()

{

    document.getElementById('un2').value = document.getElementById('username2').value;

    document.getElementById('pw2').value = document.getElementById('password2').value;

    document.all.oalogin.submit();

}



function doZoom(size){

    document.getElementById("texts").style.fontSize = size;

}



function doColor(color)

{

    document.getElementById("detail").style.backgroundColor = color;

}



function MM_CheckFlashVersion(reqVerStr,msg){

  with(navigator){

    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);

    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);

    if (!isIE || !isWin){  

      var flashVer = -1;

      if (plugins && plugins.length > 0){

        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";

        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;

        if (desc == "") flashVer = -1;

        else{

          var descArr = desc.split(" ");

          var tempArrMajor = descArr[2].split(".");

          var verMajor = tempArrMajor[0];

          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");

          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;

          flashVer =  parseFloat(verMajor + "." + verMinor);

        }

      }

      // WebTV has Flash Player 4 or lower -- too low for video

      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

 

      var verArr = reqVerStr.split(",");

      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);

  

      if (flashVer < reqVer){

        if (confirm(msg))

          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";

      }

    }

  } 

}



function zyhzssearch()

{

    if (document.getElementById('zyhzs').value != '')

    {

        window.open('zyhzssearch.aspx?keyword='+escape(document.getElementById('zyhzs').value));

    }

}



function zhfwssearch()

{

if (document.getElementById('zhfws').value != '')

{

window.open('zhfwssearch.aspx?keyword='+escape(document.getElementById('zhfws').value));

}

}



function search()
{

    if (document.getElementById('keyword').value == '')

        return;

    if (document.getElementById('gov').checked)

    {

        window.open( 'tozf.aspx?keyword=' + escape(document.getElementById('keyword').value));

    }

    else

    {

        window.open('search.aspx?keyword=' + escape(document.getElementById('keyword').value));

    }

}

function trim(arg)
{
return arg.replace(/^\s\s*/, "").replace(/\s\s*$/, "");
}

function advancesearch()
{
    if (document.getElementById('advancekeyword').value == '')
        return;
    var arr = 'keyword=' + escape(document.getElementById('advancekeyword').value);
    var selObj = document.getElementById('nodecode');
    if (selObj.options[selObj.selectedIndex].value!='')
        arr += '&nodecode='+selObj.options[selObj.selectedIndex].value;
    if (document.getElementById('similarasc').checked == true)
    {
        arr+='&similar=asc';
    }
    if (document.getElementById('similardesc').checked == true)
    {
        arr+='&similar=desc';
    }
    if (document.getElementById('timeasc').checked == true)
    {
        arr+='&time=asc';
    }
    if (document.getElementById('timedesc').checked == true)
    {
        arr+='&time=desc';
    }
    if (document.getElementById('clickasc').checked == true)
    {
        arr+='&click=asc';
    }
    if (document.getElementById('clickdesc').checked == true)
    {
        arr+='&click=desc';
    }
    if (trim(document.getElementById('timefrom').value) != "" && trim(document.getElementById('timeto').value) != "")
    {
        arr+='&timefrom=' + document.getElementById('timefrom').value + '&timeto=' + document.getElementById('timeto').value;
    }
    self.location='search.aspx?' + arr;
}

function selfsearch()

{

    if (document.getElementById('keyword').value == '')

        return;

    if (document.getElementById('gov').checked)

    {

        window.open( 'tozf.aspx?keyword=' + escape(document.getElementById('keyword').value));

    }

    else

    {

        self.location= 'search.aspx?keyword=' + escape(document.getElementById('keyword').value);

    }

}



function votes(id)

{

    var i;

    for (i=0;i<voteitem;i++)

    {

        if (document.getElementById('v'+i).checked)

        {

            i=document.getElementById('v'+i).value;

            break;

        }

    }

    window.open("voteresult.aspx?id="+id+"&item="+i,"n");

}



function voteview()

{

window.open("voteresult.aspx");

}



function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval("self.location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}



function scrollShow(obj, count, ht, delay)

{

 var end = (count * 2 - 1) * ht;

 var offset = 0;

 var stop = false;

 obj.innerHTML += obj.innerHTML;

 obj.onmouseover = function(){stop = true};

 obj.onmouseout = function(){stop = false};

 function scrollStart()

 {

  if(!stop)

  {

   if (offset >= end)

   {

    obj.scrollTop = offset = (count - 1) * ht;

   }

   obj.scrollTop = offset;

   offset ++;

  }

  if (offset % ht == 0)

  {

   setTimeout(scrollStart, delay);

   return false;

  }

  setTimeout(scrollStart, 5);

 }

 setTimeout(scrollStart, delay);

}



(function($){

$.fn.extend({

        Scroll:function(opt,callback){

                //SpeRYS

                if(!opt) var opt={};

                var _this=this.eq(0).find("ul:first");

                var        lineH=_this.find("li:first").height(), //SL?
                        line=opt.line?parseInt(opt.line,10):parseInt(this.height()/lineH,10), //k!knRvLpe؞:NNO\sS6r[hVؚ^

                        speed=opt.speed?parseInt(opt.speed,10):50, //wSR^pe<P'Y^baky	

                        timer=opt.timer?parseInt(opt.timer,10):30000; //nRveky	

                if(line==0) line=1;

                var upHeight=0-line*lineH;

                //nRQpe

                scrollUp=function(){

                        _this.animate({

                                marginTop:upHeight+315

                        },speed,function(){

                                for(i=1;i<=line;i++){

                                        _this.find("li:first").appendTo(_this);

                                }

                                _this.css({marginTop:0});

                        });

                }

                // ?hNN~[

                _this.hover(function(){

                        clearInterval(timerID);

                },function(){

                        timerID=setInterval("scrollUp()",timer);

                }).mouseout();

        }        

})

})(jQuery);



$(document).ready(function(){

        $("#scrollDiv").Scroll({line:4,speed:2000,timer:5000});

});



// JavaScript Document

$(function() {

    $(".Gxzx_center_sndt").hide();

    $(".Gxzx_center_spzx").hide();

    $(".Gxzx_center_gxkx").hide();

    $(".body_list_right_sqlm_spxm").hide();

    $("#menu").css("display", "block");

    $(".Gxzx_center_ssxx").show();

    for (var i = 1; i < 9; i++) {

        $(".down_menu" + i).hide();

    }

    $(".Gxzx_center_title_t1").mousemove(

		function() {

		    $(this).css({ background: "url(images/title_blue_left.jpg) bottom repeat-x", color: "#FFFFFF", cursor: "hand" });

		    $(this).siblings(".Gxzx_center_title_t3").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t2").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t2").children("span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t3").children("span").css({ background: "url(images/title_gray_right.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t3_1").children("span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t3_1").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).children("span").css({ background: "url(images/title_middle.jpg) bottom no-repeat right" });

		    $(this).parent().siblings(".Gxzx_center_ssxx").show();

		    $(this).parent().siblings(".Gxzx_center_gxkx").hide();

		    $(this).parent().siblings(".Gxzx_center_sndt").hide();

		    $(this).parent().siblings(".Gxzx_center_spzx").hide();

		});

		$(".Gxzx_center_title_t2").mousemove(

		function() {

		    $(this).css({ "background": "url(images/title_blue_left.jpg) bottom repeat-x", color: "#FFFFFF", cursor: "hand" });

		    $(this).siblings(".Gxzx_center_title_t3").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t1").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t3_1").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t1").children("span").css({ background: "url(images/title_middle4.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t3").children("span").css({ background: "url(images/title_gray_right.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t3_1").children("span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).children("span").css({ background: "url(images/title_middle.jpg) bottom no-repeat right" });

		    $(this).parent().siblings(".Gxzx_center_ssxx").hide();

		    $(this).parent().siblings(".Gxzx_center_gxkx").show();

		    $(this).parent().siblings(".Gxzx_center_sndt").hide();

		    $(this).parent().siblings(".Gxzx_center_spzx").hide();

		    

		});

		$(".Gxzx_center_title_t3").mousemove(

		function() {

		    $(this).css({ "background": "url(images/title_blue_left.jpg) bottom repeat-x", color: "#FFFFFF", cursor: "hand" });

		    $(this).siblings(".Gxzx_center_title_t2").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t1").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t3_1").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".Gxzx_center_title_t1").children("span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t2").children("span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t2").children(".body_index_top_center_title_t2_span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).siblings(".Gxzx_center_title_t3_1").children("span").css({ background: "url(images/title_middle4.jpg) bottom no-repeat right" });

		    $(this).children("span").css({ background: "url(images/title_blue_right3.jpg) bottom no-repeat right" });

		    $(this).parent().siblings(".Gxzx_center_ssxx").hide();

		    $(this).parent().siblings(".Gxzx_center_gxkx").hide();

		    $(this).parent().siblings(".Gxzx_center_sndt").show();

		    $(this).parent().siblings(".Gxzx_center_spzx").hide();

		});

    $(".body_index_top_center_title_t3_1").mousemove(

		function() {

		    $(this).css({ "background": "url(images/title_blue_left.jpg) bottom repeat-x", color: "#FFFFFF", cursor: "hand" });

		    $(this).siblings(".body_index_top_center_title_t2").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".body_index_top_center_title_t1").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".body_index_top_center_title_t3").css({ color: "#000000", background: "url(images/title_gray_left.jpg) bottom repeat-x" });

		    $(this).siblings(".body_index_top_center_title_t1").children("span").css({ background: "url(images/title_middle2.jpg) bottom no-repeat right" });

		    $(this).siblings(".body_index_top_center_title_t2").children("span").css({ background: "url(images/title_middle4.jpg) bottom no-repeat right" });

		    $(this).siblings(".body_index_top_center_title_t3").children("span").css({ background: "url(images/title_gray_right.jpg) bottom no-repeat right" });

		    $(this).children("span").css({ background: "url(images/title_middle.jpg) bottom no-repeat right" });

		    $(this).parent().siblings(".Gxzx_center_gxkx").hide();

		    $(this).parent().siblings(".Gxzx_center_sndt").hide();

		    $(this).parent().siblings(".Gxzx_center_ssxx").hide();

		    $(this).parent().siblings(".Gxzx_center_spzx").show();

		});

    $(".body_list_right_sqlm_t1").mousemove(function() {

        $(this).css({ "background": "url(../images/title_blue_left.jpg) bottom repeat-x", color: "#FFFFFF", cursor: "hand" });

        $(this).children("span").css({ background: "url(../images/title_middle.jpg) bottom no-repeat right" });

        $(this).siblings(".body_list_right_sqlm_t2").css({ color: "#000000", background: "url(../images/title_gray_left.jpg) bottom repeat-x" });

        $(this).siblings(".body_list_right_sqlm_t2").children("span").css({ background: "url(../images/title_gray_right.jpg) bottom no-repeat right" });

        $(this).parent().siblings(".body_list_right_sqlm_tpxm").show();

        $(this).parent().siblings(".body_list_right_sqlm_spxm").hide();

    });

    $(".body_list_right_sqlm_t2").mousemove(function() {

        $(this).css({ "background": "url(../images/title_blue_left.jpg) bottom repeat-x", color: "#FFFFFF", cursor: "hand" });

        $(this).children("span").css({ background: "url(../images/title_blue_right3.jpg) bottom no-repeat right" });

        $(this).siblings(".body_list_right_sqlm_t1").css({ color: "#000000", background: "url(../images/title_gray_left.jpg) bottom repeat-x" });

        $(this).siblings(".body_list_right_sqlm_t1").children("span").css({ background: "url(../images/title_middle5.jpg) bottom no-repeat right" });

        $(this).parent().siblings(".body_list_right_sqlm_tpxm").hide();

        $(this).parent().siblings(".body_list_right_sqlm_spxm").show();

    });



    /*down_menu*/

    $("#menu").children().hover(

			function() {

			    $(this).show();

			},

			function() {

			    $(this).fadeOut("fast");

			});

    $(".subpreview").children().hover(

			function() {

			    $(this).show();
			    $(".down_menu8").show();

			},

			function() {

			    $(this).hide();
			    $(".down_menu8").hide();

			});



    $(".dh_menu").hover(

		   function() {

		       var left = $(this).css("left");

		       var id = $(this).attr("id");

		       var x = $(this).offset().left;

		       var y = $(this).offset().top;

		       $(".down_menu" + id).css({ left: x - 15, top: y + 18 });

		       $(".down_menu" + id).show();

		   },

		   function() {

		       var id = $(this).attr("id");

		       $(".down_menu" + id).hide();

		   });


    $(".pr_menu").hover(

		   function() {

		       var left = $(this).css("left");

		       var id = $(this).attr("id");

		       var x = $(this).offset().left;

		       var y = $(this).offset().top;

		       $(".preview" + id).css({ left: x - 310, top: y - 30 });

		       $(".preview" + id).show();

		   },

		   function() {

		       var id = $(this).attr("id");

		       $(".preview" + id).hide();

		   });

    //     $(".").click(function(){

    //     

    //        

    //     }) 

    $(".ldjj_right_fg").hide();

    $(".ldjj_right_jh").hide();

    $(".sj_jj").click(function() {

        $(".ldjj_right_jj").show()

        $(".ldjj_right_fg").hide();

        $(".ldjj_right_jh").hide();

        $(".ldjj_title_name").replaceWith("<p>" + $(this).html() + "</p>");

        $(".ldjj_title_name").css({ "text-align": "left", "background": "url(images/detail_title_icon.gif) no-repeat left", "line-height": "37px", "width": "100%", "padding-left": "40px", "color": "#03347a", "font-size": "14px" });

    });

    $(".sj_fg").click(function() {

        $(".ldjj_right_jj").hide()

        $(".ldjj_right_fg").show();

        $(".ldjj_right_jh").hide();

        $(".ldjj_title_name").replaceWith("<p>" + $(this).html() + "</p>");

        $(".ldjj_title_name").css({ "text-align": "left", "background": "url(images/detail_title_icon.gif) no-repeat left", "line-height": "37px", "width": "100%", "padding-left": "40px", "color": "#03347a", "font-size": "14px" });

    });

    $(".sj_jh").click(function() {

        $(".ldjj_right_jj").hide()

        $(".ldjj_right_fg").hide();

        $(".ldjj_right_jh").show();

        $(".ldjj_title_name").replaceWith("<p>" + $(this).html() + "</p>");

        $(".ldjj_title_name").css({ "text-align": "left", "background": "url(images/detail_title_icon.gif) no-repeat left", "line-height": "37px", "width": "100%", "padding-left": "40px", "color": "#03347a", "font-size": "14px" });

    });

    $(".prXWGc70").hide();
    $(".prXWGc71").hide();
    $(".prXWGc72").hide();
	$(".prXWGc73").hide();

    $(".menu3").hover(function() {
        var left = $(this).css("left");
        var id = $(this).attr("id");
        var x = $(this).offset().left;
        var y = $(this).offset().top;
        // alert(""+ x+"  "+y);
        $(".prXWGc" + id).css({ left: x + 100, top: y - 10 });
		if(id == 73)
		{
		$(".prXWGc" + id).css({ left: x + 100, top: y - 70 });
		}
        $(".prXWGc" + id).show();
    },
    function() {
        var id = $(this).attr("id");
        $(".prXWGc" + id).hover(function() {
            //$(this).css({ left: x - 120, top: y - 30 });
            $(this).show();
        },
        function() {
            $(this).hide();
        });

        $(".prXWGc" + id).hide();
    });
    //$(".subItem").hide();
    $(".Item").click(function() {
    $(this).find(".subItem").show();
        //alert("23432");
    },
    function() {
        $(this).prev(".subItem").hide();
    });

})
$(function() {
    $(".Tit").hover(
			function() {
			    $(".Tit").removeClass("Tit_on");
			    $(this).addClass("Tit_on");
			    $(".Til_fg_1").addClass("Til_fg_2");
			    $(".Til_fg_1").removeClass("Til_fg_1");
			    $(this).next().removeClass();
			    $(this).next().addClass("Til_fg_1");

			},

			function() {

			});
});


