/* 
   Simple JQuery Accordion menu.
   HTML structure to use:

   <ul id="menu">
     <li><a href="#">Sub menu heading</a>
     <ul>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       ...
       ...
     </ul>
     <li><a href="#">Sub menu heading</a>
     <ul>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       <li><a href="http://site.com/">Link</a></li>
       ...
       ...
     </ul>
     ...
     ...
   </ul>

Copyright 2007 by Marco van Hylckama Vlieg

web: http://www.i-marco.nl/weblog/
email: marco@i-marco.nl
Download by http://sc.xueit.com
Free for non-commercial use
*/

function initMenu() {
if ($.browser.version == "6.0"){
	initNews();
}
  $('#menu ul').hide();
  $('#menu ul:first').show();
  $('#menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenu();});


/**语言下拉菜单**/

/*function menuFix() {
 var sfEls = document.getElementById("index_nav").getElementsByTagName("li");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseDown=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseUp=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onmouseout=function() {
  this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),

"");
  }
 }
}
window.onload=menuFix;

*/

function menuFix() {
//
if ($.browser.version == "6.0") {
if(document.getElementById("nav_Center")){
document.getElementById("nav_Center").className = "contact_nav_centerIE6";
}
if (document.getElementById("nei1")) {
document.getElementById("nei1").style.display = "";
}

}
//
 var sfEls = document.getElementById("index_nav").getElementsByTagName("li");
 for (var i=0; i<sfEls.length; i++) {
  sfEls[i].onmouseover=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseDown=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onMouseUp=function() {
  this.className+=(this.className.length>0? " ": "") + "sfhover";
  }
  sfEls[i].onmouseout=function() {
  this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), 
"");
  }
 }
}
window.onload=menuFix;

function initMenu() {
if ($.browser.version == "6.0"){
	initNews();
}
  $('#menu ul').hide();
  $('#menu ul:first').show();
  $('#menu li a').click(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
$(document).ready(function() {initMenu();});

//**分公司**//

  function showLink(id){
 
   document.getElementById(id).style.display="block";
   }
    function hiddenLink(id){
   document.getElementById(id).style.display="none";
   }
 function company_show(){
   document.getElementById('all_company_drop_box_id').style.display="block";
   }
   function company_hidden(){
   document.getElementById('all_company_drop_box_id').style.display="none";
   }
   function show_comp_box(num){
   		for(var i=0;i<6;i++){
			document.getElementById('all_company_box'+i).style.display="none";
			document.getElementById('all_company_re_id'+i).className="close";
		}
		document.getElementById('all_company_box'+num).style.display="block";
			document.getElementById('all_company_re_id'+num).className="open";
   }
    var selectTabIndex = -1;
   function initNews(){
	   for(i=1;i<=2;i++){
		   if(document.getElementById("nei"+i)){
			document.getElementById("nei"+i).style.display="none"
			document.getElementById("a"+i).style.background="url(../images/public/contact_xxk2.jpg)";
			document.getElementById("a"+i).style.color="#848484";
		   }
		}
	   }
function  news(x){

//
	
		for(i=1;i<=2;i++){
			document.getElementById("nei"+i).style.display="none"
			document.getElementById("a"+i).style.background="url(/images/public/contact_xxk2.jpg)";
			document.getElementById("a"+i).style.color="#848484";
		}
		document.getElementById("nei"+x).style.display=""
		document.getElementById("a"+x).style.background="url(/images/public/contact_xxk1.jpg)"
		document.getElementById("a"+x).style.color="#fff";
		selectTabIndex = x;
		
}  
   

//**行业**//

  function showLink(id){
 
   document.getElementById(id).style.display="block";
   }
    function hiddenLink(id){
   document.getElementById(id).style.display="none";
   }
 function company_showhy(){
   document.getElementById('all_companyhy_drop_box_id').style.display="block";
   }
   function company_hiddenhy(){
   document.getElementById('all_companyhy_drop_box_id').style.display="none";
   }
   function showhy_comp_box(num){
   		for(var i=0;i<11;i++){
			document.getElementById('all_companyhy_box'+i).style.display="none";
			document.getElementById('all_companyhy_re_id'+i).className="close";
		}
		document.getElementById('all_companyhy_box'+num).style.display="block";
			document.getElementById('all_companyhy_re_id'+num).className="open";
   }




/*contact的更多点击的隐藏层*/

function  more(x){

	document.getElementById("b"+x).style.display="none";
	document.getElementById("more"+x).style.display="block";
	document.getElementById("ty_quzi").style.display="block";

}
function  more2(x){

	for(var i=1;i<=2;i++){
		document.getElementById("b"+i).style.display="";
		document.getElementById("more"+i).style.display="none";
		document.getElementById("ty_quzi").style.display="none";
		
	}

}


/**/


function  setTab(x){

//

for(i=1;i<=2;i++){
document.getElementById("name"+i).style.display="none"
document.getElementById("a"+i).style.background="url(/images/club/club_mrzt_a.jpg)";
document.getElementById("a"+i).style.color="#848484";
}
document.getElementById("name"+x).style.display=""
document.getElementById("a"+x).style.background="url(/images/club/club_mrzt_ahover.jpg)"
document.getElementById("a"+x).style.color="#900";
selectTabIndex = x;

}



function  jjfa(x){
		for(i=1;i<=3;i++){
			document.getElementById("rui"+i).style.display="none"
			document.getElementById("a"+i).style.background="url(/images/solutions/case_a.png)";
			document.getElementById("a"+i).style.color="#848486";
		}
		document.getElementById("rui"+x).style.display=""
		document.getElementById("a"+x).style.background="url(/images/solutions/case_ahover.png)";
		document.getElementById("a"+x).style.color="#a20000";
		selectTabIndex = x;
		
}









function company_showjtcy() {
    document.getElementById('all_companyjtcy_drop_box_id').style.display = "block";
}function company_hiddenjtcy() {
    document.getElementById('all_companyjtcy_drop_box_id').style.display = "none";}







/* 自助服务 电子期刑订阅 */
function  case_a(x){
    for (i = 1; i <= 2; i++) {
//            document.getElementById("caseb" + 1).style.display = ""
//            document.getElementById("a" + 1).style.background = "url(../images/club/club3_fwtophover.jpg)";
//            document.getElementById("a" + 1).style.color = "#fff";
			document.getElementById("caseb"+i).style.display="none"
			document.getElementById("a"+i).style.background="";
			document.getElementById("a"+i).style.color="#bc0000";
		}
		document.getElementById("caseb"+x).style.display=""
		document.getElementById("a"+x).style.background="url(../images/club/club3_fwtophover.jpg)";
		document.getElementById("a"+x).style.color="#fff";
		selectTabIndex = x;
		
}


/* 用友云战略 */
function  clouda(x){
		for(i=1;i<4;i++){
			document.getElementById("cloudb"+i).style.display="none"
			document.getElementById("a"+i).style.background="";
			document.getElementById("a"+i).style.color="#bc0000";
		}
		document.getElementById("cloudb"+x).style.display=""
		document.getElementById("a"+x).style.background="";
		document.getElementById("a"+x).style.color="#999";
		selectTabIndex = x;
		
}


/* club4 */
function  clubc(x){
		/*for(i=1;i<6;i++){
			//document.getElementById("cloudf"+i).style.display="none"
			document.getElementById("c"+i).style.background="";
			document.getElementById("c"+i).style.color="#fff";
		}*/

		//document.getElementById("cloudf"+x).style.display=""
		document.getElementById("c"+x).style.background="url(../images/club/club_newsahover.jpg)";
		document.getElementById("c"+x).style.color="#bc0000";
		//selectTabIndex = x;
		
}

