/**
 * menu.js
 * Copyright (C) 2010
 * Author: Vanity Tracy Stuurland <vanity.stuurland@lightmaker.com>
 * Created: 2010-07-07
 */

sfHover = function() {
	if (!document.getElementsByTagName) return false;
	var sfSubnav = document.getElementById("subnav").getElementsByTagName("li");

	// if you only have one main menu - delete the line below //
	var sfSubsubnav = document.getElementById("subsubnav").getElementsByTagName("li");

	for (var i=0; i<sfSubnav.length; i++) {
		sfSubnav[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfSubnav[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}

	// if you only have one main menu - delete the "for" loop below //
	for (var i=0; i<sfSubsubnav.length; i++) {
		sfSubsubnav[i].onmouseover=function() {
			this.className+=" sfhover1";
		}
		sfSubsubnav[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover1\\b"), "");
		}
	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover);



$(document).ready(function() {
	
	$("#subsubnav .experts").mouseover(function() { 
		
		$("#subsubnav .experts ul").css({			
			'display' : 'block'
		});
		
		/*$("#subsubnav .experts ul.children").animate({
			'height' : 'toggle'
		 }, { duration: "fast", queue: false });*/
		
	});
	
	$("#subsubnav .experts").mouseout(function() { 
		
		$("#subsubnav .experts ul").css({			
			'display' : 'none'
		});
		
		/*$("#subsubnav .experts ul.children").animate({
			'height' : 'toggle'
		}, { duration: "fast", queue: false });*/
		
	});
	


	$(".columnWrapTweets").css({			
		'visibility' : 'visible'
	}, 1000);
	
	$(".columnWrapComments").css({			
		'visibility' : 'visible'
	}, 1000);
	
	$("#wrapSidebar").css({			
		'height' : '850px'
	}, 1000);

	
	
});


