
var browserName=navigator.appName; // 'Netscape' or 'Microsoft Internet Explorer'
var browserVer=parseInt(navigator.appVersion); 

var MyTimer;
var HideTime = 1000;

function HideAllDdl() {
for(i = 0; i <= NavCount-1; i++) {
//transOpac("Ddl"+i, 1000, 100, 0);
document.getElementById("Ddl"+i).style.display="none"
}
}

function ShowDdl(id) {
document.getElementById("Ddl"+id).style.display="block"
}






<!--

var bo_ns_id = 0;

function startIeFix(){
  if(isIE()){
    document.write('<div id="bo_ns_id_' + bo_ns_id + '"><!-- ');
  }
}

function endIeFix(){
  if(isIE()){
    document.write('</div>');
    var theObject = document.getElementById("bo_ns_id_" + bo_ns_id++);
    var theCode = theObject.innerHTML;
    theCode = theCode.substring(4 ,9+theCode.indexOf("</object>"))
    document.write(theCode);
  }
}

function isIE(){
  // only for Win IE 6+
  // But not in Windows 98, Me, NT 4.0, 2000
  var strBrwsr= navigator.userAgent.toLowerCase();
  if(strBrwsr.indexOf("msie") > -1 && strBrwsr.indexOf("mac") < 0){
    if(parseInt(strBrwsr.charAt(strBrwsr.indexOf("msie")+5)) < 6){
      return false;
    }
    if(strBrwsr.indexOf("win98") > -1 ||
       strBrwsr.indexOf("win 9x 4.90") > -1 ||
       strBrwsr.indexOf("winnt4.0") > -1 ||
       strBrwsr.indexOf("windows nt 5.0") > -1)
    {
      return false;
    }
    return true;
  }else{
    return false;
  }
}











function transOpac(id, millisec, opacStart, opacEnd) { 
    var speed = Math.round(millisec / 100); 
    var timer = 0; 

    if(opacStart > opacEnd) { 
        for(i = opacStart; i >= opacEnd; i--) { 
            setTimeout("changeOpac('" + id + "', " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } else if(opacStart < opacEnd) { 
        for(i = opacStart; i <= opacEnd; i++) 
            { 
            setTimeout("changeOpac('" + id + "', " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } 
} 



function transPosY(id, millisec, posStart, posEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(posStart > posEnd) { 
        for(i = posStart; i >= posEnd; i--) { 
            setTimeout("changePos('" + id + "',0 , " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } else if(posStart < posEnd) { 
        for(i = posStart; i <= posEnd; i++) 
            { 
            setTimeout("changePos('" + id + "',0 , " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } 
}

function transPosX(id, millisec, posStart, posEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(posStart > posEnd) { 
        for(i = posStart; i >= posEnd; i--) { 
            setTimeout("changePos('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } else if(posStart < posEnd) { 
        for(i = posStart; i <= posEnd; i++) 
            { 
            setTimeout("changePos('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } 
}



function transWidth(id, millisec, widthStart, widthEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(widthStart > widthEnd) { 
        for(i = widthStart; i >= widthEnd; i--) { 
            setTimeout("changeSize('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } else if(widthStart < widthEnd) { 
        for(i = widthStart; i <= widthEnd; i++) 
            { 
            setTimeout("changeSize('" + id + "', " + i + ", 0)",(timer * speed)); 
            timer++; 
        } 
    } 
}

function transHeight(id, millisec, HeightStart, HeightEnd){
    var speed = Math.round(millisec / 100); 
    var timer = 0; 
    if(HeightStart > HeightEnd) { 
        for(i = HeightStart; i >= HeightEnd; i--) { 
            setTimeout("changeSize('" + id + "', 0, " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } else if(HeightStart < HeightEnd) { 
        for(i = HeightStart; i <= HeightEnd; i++) 
            { 
            setTimeout("changeSize('" + id + "', 0, " + i + ")",(timer * speed)); 
            timer++; 
        } 
    } 
}



function changePos(id, x, y){
    var object = document.getElementById(id).style; 
    object.position="relative";
    if (x!=0){
    object.left=x+"px";
    }
    else if (y!=0){
    object.top=y+"px";
    }
}
function changeSize(id, width, height){
    var object = document.getElementById(id).style; 
    object.overflow='hidden'
    if (height!=0){
    object.height=height+"px";
    }
    else if (width!=0){
    object.width=width+"px";
    }
}
function changeOpac(id, opacity) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity + ")"; 
} 

