

    // 判断IE
    var IsIE = ( navigator.appName == "Microsoft Internet Explorer" )
    
    // 判断IE6
    var IsIE6 = false;   
    document.write("<!--[if lte IE 6]><script>IsIE6 = true;</scr"+"ipt><![endif]-->");  
    
    // 判断FF
    var IsFF = window.navigator.userAgent.toLowerCase().lastIndexOf("firefox") != -1;
    
    // 判断Chrome
    var IsCH = window.navigator.userAgent.toLowerCase().lastIndexOf("chrome") != -1;

    // 通用的Event对象
    function getEvent() 
    {  
        if(IsIE) return window.event; 
           
        var func = getEvent.caller;        
        while( func!=null )
        {  
            var arg0 = func.arguments[0];
            if( arg0 )
            {
                if( ( arg0.constructor==Event || arg0.constructor ==MouseEvent ) || ( typeof(arg0)=="object" && arg0.preventDefault && arg0.stopPropagation ) )
                {  
                    return arg0;
                }
            }
            func = func.caller;
        }
        
        return null;
    }    


// public Value

    function TelZJ()
    {
        document.write( "<span class=\"TelClass\">01"+"0-51"+"28"+"09"+"83</span>" );
    }

    function TelL()
    {
        document.write( "<span class=\"TelClass\">13"+"81"+"06"+"43"+"84"+"7</span>" );
    }
    
    function TelY()
    {
        document.write( "<span class=\"TelClass\">13"+"81"+"06"+"43"+"84"+"7</span>" );
    }


    // 到目标滚动条垂直位置
    
    function ScrollToTop()
    {
        window.setTimeout( 'ScrollToTopGo()', 5 );
    }
    
    function ScrollToTopGo()
    {
        var VObj = ( !IsIE ) ? document.body : document.documentElement;
    
        if( VObj.scrollTop > 0 ) 
        {
            VObj.scrollTop -= 10;
            window.setTimeout( 'ScrollToTopGo()', 5 );
        }
        else VObj.scrollTop = 0;
    }
    
    
    
    // 打开关闭FAQ
    
        function OpenFAQ( url )
        {
            document.getElementById('Q1').style.display = "block";
            document.getElementById('Q2').style.display = "block";
            document.getElementById('Q3').style.display = "block";
            
     
            var FAQTop  = ( document.documentElement.scrollTop + ( window.screen.availHeight - 490 ) / 2 ) - 20;            if( IsCH == true )            {                FAQTop = ( document.body.scrollTop + ( window.screen.availHeight - 490 ) / 2 ) - 20;            }                        var FAQLeft = ( document.body.clientWidth - 680 ) / 2;
            
            document.getElementById('Q1').style.height = document.body.clientHeight +"px";
            document.getElementById('Q2').style.top    = FAQTop  +"px";
            document.getElementById('Q2').style.left   = FAQLeft +"px";
            document.getElementById('Q3').style.top    = FAQTop  + 10 +"px";
            document.getElementById('Q3').style.left   = FAQLeft + 10 +"px";
 
        }
        
        function CloseFAQ()
        {
            if( document.getElementById('Q3') != undefined ) document.getElementById('Q3').style.display = "none";
            if( document.getElementById('Q2') != undefined ) document.getElementById('Q2').style.display = "none";
            if( document.getElementById('Q1') != undefined ) document.getElementById('Q1').style.display = "none";
            if( document.getElementById('Q3') != undefined ) document.getElementById('Q3').getElementsByTagName("iframe")[0].src = "about:blank";
        }


        window.onresize = function(){ CloseFAQ(); }
