﻿function dropdownInit(wrapper, tagName)
{
    for(var i = 0; i < wrapper.getElementsByTagName(tagName).length; i++)
    {
        wrapper.getElementsByTagName(tagName)[i].onmouseover = function()
        {
            this.className = (this.className != "" ? this.className + " " : "") + " ieHover";
        };
        wrapper.getElementsByTagName(tagName)[i].onmouseout = function()
        {
            this.className = this.className.replace(/ ?ieHover/i, "");
        };
        var uls = wrapper.getElementsByTagName(tagName)[i].getElementsByTagName("ul");
    }
}
