jQuery(document).ready(custom_init);function custom_init(){init_utils();init_dropDowns();if(jQuery.browser.msie){init_ie()}}function init_dropDowns(){jQuery("ul.links").each(function(){jQuery("ul.links li:nth-child(1)").addClass("firstRow");jQuery("ul.links li:nth-child(2)").addClass("firstRow");jQuery("ul.links li:nth-child(3)").addClass("firstRow");jQuery("ul.links li:nth-child(4)").addClass("firstRow")});var config_megaDropDowns={sensitivity:4,interval:300,timeout:100,over:addHover,out:removeHover};var config_otherDropDowns={sensitivity:1,interval:0,timeout:100,over:function(){},out:removeHover};jQuery("#nav_primary a.hasChildren").click(toggleHover);setTimeout(function(){jQuery("#nav_primary .subNav").each(function(){var contentHeight=jQuery(this).outerHeight()-11})},500);jQuery("#nav_top .parent a.hasChildren").click(toggleHover);jQuery(".nav_quicklinks .parent a.hasChildren").click(toggleHover);jQuery(".moduleContent .parent a.hasChildren").click(toggleHover);jQuery(".module_logon .parent a.hasChildren").click(toggleHover);jQuery(".module_logon label").click(function(){jQuery(this).siblings('input:first').attr('checked','checked');var selectedHtml=jQuery('span a',this).html();jQuery(this).parents('.menu_logon:first').find('.hasChildren span').html(selectedHtml);showHideDemolink();jQuery(this).parents('.parent:first').removeClass('hovering');jQuery(this).parents('.parent:first').find('.subNav').hide()});jQuery(".module_logon .subNav input[type='radio']").focus(function(){jQuery(this).siblings('label:first').addClass('hover')});jQuery(".module_logon .subNav input[type='radio']").blur(function(){jQuery(this).siblings('label:first').removeClass('hover')})}function toggleHover(){if(jQuery(this).hasClass('hasChildren')){if(jQuery(this).parents('.parent:first').hasClass('hovering')){jQuery(this).parents('.parent:first').removeClass('hovering');jQuery(this).parents('.parent:first').find('.subNav').hide()}else{jQuery('.parent').removeClass('hovering');jQuery('.parent .subNav').hide();jQuery(this).parents('.parent:first').addClass('hovering')}return false}}function addHover(){if(jQuery(this).hasClass('parent')||jQuery(this).hasClass('hasChildren')){var target=this;if(jQuery(this).hasClass('hasChildren')){target=jQuery(this).parents('.parent:first')}jQuery('.parent').removeClass('hovering');jQuery('.parent .subNav').hide();jQuery(target).addClass("hovering");jQuery(target).find('.subNav').show()}}function removeHover(){if(jQuery(this).hasClass('parent')||jQuery(this).hasClass('hasChildren')){var target=this;if(jQuery(this).hasClass('hasChildren')){target=jQuery(this).parents('.parent:first')}jQuery(target).removeClass("hovering");jQuery(target).find('.subNav').hide()}}function init_ie(){var config_supersleightGifPath="scripts/x.gif";var version=parseInt(jQuery.browser.version);jQuery('#navigation #leftnav .display_nav li:last-child, #navigation #leftnav .anznav_currentthirdlevel li:last-child, #anz-lotus #navigation li.anznav_expandable .hide_nav li:last-child').addClass('last-child');jQuery('#navigation #leftnav .display_nav li:first-child, #navigation #leftnav .anznav_currentthirdlevel li:first-child, #anz-lotus #navigation li.anznav_expandable .hide_nav li:first-child').addClass('first-child');if(version<7){jQuery('.hasChildren_logon').hover(function(){jQuery(this).addClass('hasChildren_logon_hover')},function(){jQuery(this).removeClass('hasChildren_logon_hover')});jQuery('.module_logon .subNav li').hover(function(){jQuery('label',this).addClass('hover')},function(){jQuery('label',this).removeClass('hover')});jQuery('.moduleContent ul li.parent .subNav ul li').hover(function(){jQuery('a',this).addClass('hover')},function(){jQuery('a',this).removeClass('hover')});if(jQuery('.notice').length>0){jQuery('.notice').css('top',jQuery(this).scrollTop()+jQuery(window).height()-jQuery('.notice').outerHeight()-80+"px");jQuery(window).scroll(function(){if(jQuery('.notice').length>0){jQuery('.notice').css('top',jQuery(this).scrollTop()+jQuery(window).height()-jQuery('.notice').outerHeight()-80+"px")}})}}}function init_utils(){jQuery('.offscreen').hide().removeClass('offscreen');jQuery('#anz-lotus #navigation li.anznav_expandable a.currentPage').parent().addClass('CurrentLhnList')}
