$(document).ready(function(){checkForIE6();$('#lkhome').hover(function(){collapseDropDowns();$('#homemenu').show()},function(){});$('#lkinfo').hover(function(){collapseDropDowns();$('#infomenu').show()},function(){});$('#lkclasses').hover(function(){collapseDropDowns();$('#classesmenu').show()},function(){});$('#lkawards').hover(function(){collapseDropDowns();$('#awardsmenu').show()},function(){});$('#lkmembers').hover(function(){collapseDropDowns();$('#membersmenu').show()},function(){});$('#lkgallery').hover(function(){collapseDropDowns();$('#gallerymenu').show()},function(){});$('#homemenu').hover(function(){},function(){$('#homemenu').hide()});$('#infomenu').hover(function(){},function(){$('#infomenu').hide()});$('#classesmenu').hover(function(){},function(){$('#classesmenu').hide()});$('#awardsmenu').hover(function(){},function(){$('#awardsmenu').hide()});$('#membersmenu').hover(function(){},function(){$('#membersmenu').hide()});$('#gallerymenu').hover(function(){},function(){$('#gallerymenu').hide()});if($('.wordingbox').is(':visible')){var newheight=$('.wordingbox').height();newheight+=20;$('#wordingboxbottom').attr('style','top:'+newheight+'px')}if($('.wordingbox250').is(':visible')){var newheight=$('.wordingbox250').height();newheight+=20;$('#wordingboxbottom250').attr('style','top:'+newheight+'px')}if($('.wordingbox585').is(':visible')){var newheight=$('.wordingbox585').height();newheight+=20;$('#wordingboxbottom585').attr('style','top:'+newheight+'px')}});function checkForIE6(){if((window.XMLHttpRequest==undefined)&&(ActiveXObject!=undefined)){location.href="ie6.php"}}function isIE(){if(navigator.userAgent.match(/MSIE \d\.\d+/))return true;return false}function collapseDropDowns(){$('#homemenu').hide();$('#infomenu').hide();$('#classesmenu').hide();$('#awardsmenu').hide();$('#membersmenu').hide();$('#gallerymenu').hide()}function zIndexWorkaround(){if(isIE()){$("#links").parents().each(function(){var p=$(this);var pos=p.css("position");if(pos=="relative"||pos=="absolute"||pos=="fixed"){p.hover(function(){$(this).addClass("on-top")},function(){$(this).removeClass("on-top")})}})}}