|
|
|
|
// JavaScript Document
|
|
|
|
|
|
|
|
|
|
///2009-07-09 debug
|
|
|
|
|
///Created by IMT.
|
|
|
|
|
/// Last modified by IMT. use jq 09.09.22
|
|
|
|
|
if(typeof $ =="function")
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
var ckbrowser = true;
|
|
|
|
|
|
|
|
|
|
if (!/*@cc_on!@*/0) //if not IE
|
|
|
|
|
{
|
|
|
|
|
ckbrowser = false;
|
|
|
|
|
}
|
|
|
|
|
var contentE = document.getElementById("utility");
|
|
|
|
|
var cli = contentE.getElementsByTagName("li");
|
|
|
|
|
//alert(document.getElementById("test").innerHTML);
|
|
|
|
|
//var cdiv = contentE.getElementsByTagName("div");
|
|
|
|
|
//document.getElementsByTagName("li").d;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function createElement(ce){
|
|
|
|
|
var hdtime;
|
|
|
|
|
var daele = ce.childNodes[0];
|
|
|
|
|
var did = daele.innerHTML.replace(/ /g,"");
|
|
|
|
|
var ele = document.getElementById(did);
|
|
|
|
|
// alert("ce"+ce.innerHTML);
|
|
|
|
|
//alert("ele"+ele.innerHTML);
|
|
|
|
|
if (ele) {
|
|
|
|
|
ele.style.display = "block";
|
|
|
|
|
ele.style.position = "absolute";
|
|
|
|
|
ele.style.zIndex = 1001;
|
|
|
|
|
ele.style.top = (ele.offsetTop - 32) + "px";
|
|
|
|
|
ele.style.left = (ce.offsetWidth + 25) + "px";
|
|
|
|
|
ele.style.width = ce.offsetWidth + "px";
|
|
|
|
|
ele.style.display = "none";
|
|
|
|
|
if (ckbrowser) {
|
|
|
|
|
var ceall = ce.all;
|
|
|
|
|
var el = parseInt(ceall.length);
|
|
|
|
|
var fa = true;
|
|
|
|
|
|
|
|
|
|
if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.match(/MSIE 8./i) != null)// =ie 8.'
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
ele.attachEvent("onmouseover", function(){
|
|
|
|
|
hoverevent();
|
|
|
|
|
});
|
|
|
|
|
ele.attachEvent("onmouseout", function(){
|
|
|
|
|
HidMenu();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
for (y = 0; y < el; y++) {
|
|
|
|
|
|
|
|
|
|
if (ceall[y].tagName == "DIV") {
|
|
|
|
|
|
|
|
|
|
ceall[y].attachEvent("onmouseover", function(){
|
|
|
|
|
hoverevent();
|
|
|
|
|
});
|
|
|
|
|
ceall[y].attachEvent("onmouseout", function(){
|
|
|
|
|
HidMenu();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if (fa && ceall[y].tagName == "A") {
|
|
|
|
|
fa = false;
|
|
|
|
|
ceall[y].attachEvent("onmouseover", function(){
|
|
|
|
|
hoverevent();
|
|
|
|
|
});
|
|
|
|
|
ceall[y].attachEvent("onmouseout", function(){
|
|
|
|
|
HidMenu();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
ce.addEventListener("mouseover", function(){
|
|
|
|
|
hoverevent();
|
|
|
|
|
}, false);
|
|
|
|
|
ce.addEventListener("mouseout", function(){
|
|
|
|
|
HidMenu();
|
|
|
|
|
}, false);
|
|
|
|
|
ele.addEventListener("mouseover", function(){
|
|
|
|
|
hoverevent();
|
|
|
|
|
}, false);
|
|
|
|
|
ele.addEventListener("mouseout", function(){
|
|
|
|
|
HidMenu();
|
|
|
|
|
}, false);
|
|
|
|
|
}
|
|
|
|
|
function hoverevent(){
|
|
|
|
|
//ele.style.display = "";
|
|
|
|
|
//alert($("#"+did).html())
|
|
|
|
|
$("#"+did).slideDown(300);
|
|
|
|
|
if (hdtime) {
|
|
|
|
|
clearTimeout(hdtime);
|
|
|
|
|
hdtime = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function HidMenu(){
|
|
|
|
|
hdtime = setTimeout("document.getElementById('" + did + "').style.display = 'none';", 300);//ele.style.display = "none" , 500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < cli.length; i++) {
|
|
|
|
|
|
|
|
|
|
if (cli[i].className.replace(/ /g,"") == "subnav") {
|
|
|
|
|
|
|
|
|
|
createElement(cli[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|