don't need SGN_TEST_SERVER env directly in test scripts
[sgn.git] / js / icon_nav.js
blob7a4e503b8057b36d19b1d16602fdc7e56006ce48
1 JSAN.use('jquery');
3 jQuery( function() {
4         var sfEls = document.getElementById("icon_nav").getElementsByTagName("LI");
5         for (var i=0; i<sfEls.length; i++) {
6                 sfEls[i].onmouseover=function() {
7                         this.className += " sfhover";
8                 }
9                 sfEls[i].onmouseout=function() {
10                         this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
11                 }
12         }
13 });
15 // for IE below 8, screw up lots of z-Indexes to work around the
16 // z-Index bug
17 if( jQuery.browser.msie && jQuery.browser.version < 8 ) {
18   jQuery( function() {
19             var zIndexNumber = 1000;
20             jQuery('#siteheader div, #icon_nav div, #icon_nav li, #icon_nav ul')
21               .each( function() {
22                        jQuery(this).css('zIndex', zIndexNumber);
23                        zIndexNumber -= 10;
24                      });
25           });