// bug hover IE
// IE doesn't manage the hover subselector for other
// element than <A>
// The trick is to use a "over" class that we can manage with this
// small script.
// It is necessaary to run it at load time, once the page is loaded.
// CHAUVIERE, Paris, 2005
//

getElementByClassName = function ( name ) {
	var all, ret = new Array();
	if ( document.all ) all = document.all
	else all = getElementsByTagName( "*" );
	for ( i = 0, vitem = null ; vitem = all.item( i ) ; i ++ ) {
		if ( vitem.className.toLowerCase() == name.toLowerCase() )
			ret[ret.length] = vitem;
	}
	return ret;
}
;

function bug_ie_over() {
        if (document.all&&document.getElementById) {
                navRoot = document.getElementById("gallery");
                if ( navRoot == null ) return ;
                for (i=0; i<navRoot.childNodes.length; i++) {
                        node = navRoot.childNodes[i];

                        if (node.nodeName=="ddiv") {
                                node.onmouseover=function() {
                                  this.className=" over";
                                }
                                node.onmouseout=function() {
                                  this.className=this.className.replace(" over", "");
                                }

                        }
                }
        }
        ;
//        lstImg = getElementByClassName("iconbox") ;
//        for (i=0; i<lstImg.length; i++) {
//                node = lstImg[i];
//                node.onmouseover=function() {
//                  this.className=" over";
//                }
//                node.onmouseout=function() {
//                  this.className=this.className.replace(" over", "");
//               }
//        }
}
;

// END
