// JavaScript Document
function setSelectedNavs() {
	$('body.focus li#focusNav a.topNav').css({color:'#8cc63f',backgroundPosition:'0 -22px'});
	$('body.thinking li#thinkingNav a.topNav').css({color:'#8cc63f',backgroundPosition:'0 -22px'});
	$('body.work li#workNav a.topNav').css({color:'#8cc63f',backgroundPosition:'0 -22px'});
	$('body.team li#teamNav a.topNav').css({color:'#8cc63f',backgroundPosition:'0 -22px'});
	$('body.contactus li#contactUsNav a.topNav').css({color:'#8cc63f',backgroundPosition:'0 -22px'});
	$('body.clientaccess li#clientAccessNav a.topNav').css({color:'#8cc63f',backgroundPosition:'0 -22px'});
}
$(document).ready(function(){
	//$('#intro').css('color','#000');
	//$('#intro em').css('color','#000');
	//$('#intro em').animate({ color:"#8cc63f"},2000, function () {
		//$('#intro').animate({ color:"#8c8c8d"},1500);
	//});
	//$("#primary-nav > li").hoverIntent(
		//function(){
			//$("ul", this).fadeIn(200);
		//},
		//function(){
			//$("ul", this).fadeOut(400);
		//}
	//);
	$('#printIcon + *').css('margin-top','0px');
	$('#body #subContent > *:first-child').css('margin-top','0px');
	$('#body #mainContent > *:first-child').css('margin-top','0px');
	$('#body #midContent > *:first-child').css('margin-top','0px');
	$('a.rollover').each(function() {
		$back = $("img", this).attr("src").substring(0,$("img", this).attr("src").length -4);
		$(this).css('background-image','url(' + $back + '_green.jpg)');
	});
	$('a.rollover').hover(
		function(){
			$("img", this).fadeTo(100,.01);
		},
		function(){
			$("img", this).fadeTo(100,1);
		}
	);
	setTimeout('setSelectedNavs()',400);
});

function IEHoverPseudo() {
	var navItems = document.getElementById("primary-nav").getElementsByTagName("li");
	for (var i=0; i<navItems.length; i++) {
		if(navItems[i].className == "menuparent") {
			navItems[i].onmouseover=function() { this.className += " over"; }
			navItems[i].onmouseout=function() { this.className = "menuparent"; }
		}
	}
}