﻿var _g_w=980;
var _g_t=-12;
function hover(obj,idx){
    var divs=document.getElementById ("_sub_nav_"+idx);
    var t=com.isIE==true?250+_g_t:11;
    var l=com.isIE==true?(screens .getViewWidth ()-980)/2:0;
    l=l<0?0:l;
    if (com.isIE8==true)
    {
        t=0;
        l=0;
    }
    divs.style.left=(obj.offsetLeft+obj.offsetWidth+l)+"px";
    divs.style.top=(obj.offsetTop+t)+"px";
    divs.className ="sublist_show";
    obj.className="lpointnow";
}
function hover_nav(obj,idx){var divs=document.getElementById ("_sub_nav_"+idx);var t=com.isIE==true?200+_g_t:11;var l=com.isIE==true?(screens .getViewWidth ()-980)/2:0;l=l<0?0:l;divs.style.left=(obj.offsetLeft+obj.offsetWidth+l)+"px";divs.style.top=(obj.offsetTop+t)+"px";divs.className ="sublist_show";}
function hovers(obj){obj.className="sublist_show";}
function overs(obj){obj.className="sublist_hide";}
function over(obj){if(obj!=null && obj!=undefined){if (obj.className=="lpointnow")obj.className="lpoint";}for (var i=0;i<=3;i++){document .getElementById ("_sub_nav_"+i.toString ()).className="sublist_hide";}}
function over_nav(obj){if(obj!=null && obj!=undefined){if (obj.className=="lpointnow")obj.className="lpoint";}for (var i=0;i<=4;i++){document .getElementById ("_sub_nav_"+i.toString ()).className="sublist_hide";}}
function a_click(pre,pre2,len,idx,coth,cnow,coth2,cnow2){for (var i=0;i<len ;i++){if (i!=idx){$(pre+i.toString ()).className=coth;$(pre2+i.toString ()).className=coth2;}else{ $(pre+i.toString ()).className=cnow;$(pre2+i.toString ()).className=cnow2;}}}
function _hover(obj,id,c){
    var list=document.getElementById (id);
    var t=com.isIE==true?213+_g_t:15;
    var vw=0;var l=0;
    if (com.isIE==true){
        vw=screens.getViewWidth ();
        if (vw<=_g_w ) 
        {
            l=820;
        }else 
        {
            l=(vw-_g_w)/2+820;
        }
        if (com.isIE8)
        {
            //alert("welcome ie8");
            l=-30;
            t=20;
        }
    }else 
        l=-36;
    list.style.left=(obj.offsetLeft+obj.offsetWidth+l)+"px";list.style.top=(obj.offsetTop+t)+"px";list.className ="sublist_show";obj.className="lpointnow";document.getElementById (c).className="sublist_hide";
}