<!--
	jQuery(document).ready(function(){
		var locked = false;
		var logo_hovered = false;
		
		jQuery('.sub-menu').each(function(){
			if(jQuery(this).parent().position().left != undefined){
				if(parseInt(jQuery(this).parent().position().left + jQuery(this).width()) > jQuery('#wrapper').width()){
					jQuery(this).css("left","auto");
					jQuery(this).css("right","0");
				}
			}
		});
		
		function animateElements(){
			jQuery("#teaser").unbind("mouseover",animateElements);
			
			jQuery('#header').stop(true).animate({'paddingTop':'25px'},600);
			jQuery('#masthead').stop(true).animate({'opacity':'0'},600);
			jQuery('#access .menu-item').each(function(index){
				if(!jQuery(this).parent().hasClass('sub-menu')){
					jQuery(this).stop(true).delay((index * 75)).fadeTo(600,0);
				}
			});
			jQuery('#main').stop(true).animate({'top':'-85px'},600);
			jQuery('#mini_logo').stop(true).delay(400).css({'display':'block','opacity':0,'z-index':1}).animate({'top':'6px','opacity':1},600);
			jQuery('#footer').stop(true).fadeTo(600,0,function(){
				jQuery("#mini_logo").bind("mouseover",showElements);
			});
		}
		
		function showElements(){
			jQuery("#teaser").bind("mouseover",animateElements);
			
			jQuery('#header').stop(true).animate({'paddingTop':'40px'},600);
			jQuery('#masthead').stop(true).animate({'opacity':'1'},600);
			jQuery(jQuery('#access .menu-item').get().reverse()).each(function(index){
				if(!jQuery(this).parent().hasClass('sub-menu')){
					jQuery(this).stop(true).delay((index * 75)).fadeTo(600,1);
				}
			});
			jQuery('#main').stop(true).animate({'top':'0px'},600);
			jQuery('#mini_logo').stop(true).animate({'top':'35px','opacity':0,'z-index':-1},300,function(){
				jQuery(this).css({'display':'block','opacity':0});
			});
			jQuery('#footer').stop(true).fadeTo(600,1,function(){
				//jQuery("#site-title").bind("mouseover",animateElements);
			});
		}
		
		//if(jQuery.browser.msie == undefined || (parseInt(jQuery.browser.version) > 8 && jQuery.browser.msie)) jQuery("#teaser").bind("mouseover",animateElements);
	});
-->
