jQuery.noConflict();
jQuery(document).ready(function($){
	
      $('a').click(function() {
        this.blur();
      });



	$('body:not(.home) div.border_right_green').append("<div class='height_post1'></div>");

	
	$('ul.sidebar li').hover(function() {
		$(this).addClass('hovering');
	}, function() {
		$(this).removeClass('hovering');		
	});
	$('ul.sidebar li').biggerlink();

	$('ul.sidebar li').biggerlink();
	
	//Took off sifr because it was cutting off on Kevin's Firefox. Adding some styles to correct some things.
	//$('div.grid_9 h2').sifr({ path: 'swf/', save: true, font: 'univers' });
	//$('div.grid_9 h3').sifr({ path: 'swf/', save: true, font: 'univers' });
	//$('div.grid_4 h2').sifr({ path: 'swf/', save: true, font: 'univers_light' });
	
	$('div.grid_9 h2, div.grid_9 h3').css('font-weight','normal');	
	
//HOW PAGE

	$('div.grid_18_sub div.grid_9 div.entry div:not(#how_main)').hide();
	
	//$('body.how a#show-research').hover(function() {
		//$('div#billboard a:not(#show-research)').css({backgroundPosition:"0px 0px"});
		//$(this).css({backgroundPosition:"0px -118px"});
	//}, function() {
	//});
	
	//$('body.how a#show-media').hover(function() {
		//$('div#billboard a:not(#show-media)').css({backgroundPosition:"0px 0px"});
		//$(this).css({backgroundPosition:"0px -116px"});
	//}, function() {
	//});
	
	//$('body.how a#show-experiential').hover(function() {
		//$('div#billboard a:not(#show-experiential)').css({backgroundPosition:"0px 0px"});
		//$(this).css({backgroundPosition:"0px -94px"});
	//}, function() {
	//});
	
	//$('body.how a#show-pr').hover(function() {
		//$('div#billboard a:not(#show-pr)').css({backgroundPosition:"0px 0px"});
		//$(this).css({backgroundPosition:"0px -102px"});
	//}, function() {
	//});
	
	//$('body.how a#show-creative').hover(function() {
		//$('div#billboard a:not(#show-creative)').css({backgroundPosition:"0px 0px"});
		//$(this).css({backgroundPosition:"0px -85px"});
	//}, function() {
	//});
	
	
	
	
	$('a#show-research').click(function() {
		$('div#billboard a:not(#show-research)').css({backgroundPosition:"0px 0px"});
		$('div.grid_18_sub div.grid_9 div.entry div:not(#how_research)').hide();		
		$('div#how_research').fadeIn('fast');
		$(this).css({backgroundPosition:"0px -118px"});
	}, function() {

	});
	
	$('a#show-media').click(function() {
		$('div#billboard a:not(#show-media)').css({backgroundPosition:"0px 0px"});
		$('div.grid_18_sub div.grid_9 div.entry div:not(#how_media)').hide();		
		$('div#how_media').fadeIn('fast');
		$(this).css({backgroundPosition:"0px -116px"});
	}, function() {

	});
	
	$('a#show-experiential').click(function() {
		$('div#billboard a:not(#show-experiential)').css({backgroundPosition:"0px 0px"});
		$('div.grid_18_sub div.grid_9 div.entry div:not(#how_experiential)').hide();		
		$('div#how_experiential').fadeIn('fast');
		$(this).css({backgroundPosition:"0px -94px"});
	}, function() {

	});
	
	$('a#show-pr').click(function() {
		$('div#billboard a:not(#show-pr)').css({backgroundPosition:"0px 0px"});
		$('div.grid_18_sub div.grid_9 div.entry div:not(#how_pr)').hide();		
		$('div#how_pr').fadeIn('fast');
		$(this).css({backgroundPosition:"0px -102px"});
	}, function() {

	});
	
	$('a#show-creative').click(function() {
		$('div#billboard a:not(#show-creative)').css({backgroundPosition:"0px 0px"});
		$('div.grid_18_sub div.grid_9 div.entry div:not(#how_creative)').hide();		
		$('div#how_creative').fadeIn('fast');
		$(this).css({backgroundPosition:"0px -85px"});
	}, function() {

	});
	

//BIOS

	$('div.full_bio').hide();
	$('div.grid_9 h4 span a').click(function() {
	$('div.full_bio:visible').hide();
	$(this).parent().parent().next().show();
	}, function() {
		//$(this).parent().parent().next().hide();
		//$(this).parent().next().fadeIn();
		
		
	});

//DL TOGGLES
/*
$('dd').hide();
$('dt a').click(function() {
	$('dl dd:visible').hide();
	$(this).parent().next().fadeIn();
	return false;	
});
*/


//CYCLE
	$('ul.portfolio_list').cycle({ 
    fx:    'fade', 
    speed:  750,
    timeout: 4000,
    pager: '#portfolio_nav'
 });
 
	$('a.pause_slideshow').toggle(
		function() {
			$(this).html("Resume Slideshow");
			$('ul.portfolio_list').cycle('pause');	
		},
		function() {
			$(this).html("Pause Slideshow");
			$('ul.portfolio_list').cycle('resume');	
		}
	);
	
//CLIENT TOOLTIPS

	$('body.clients div.logo_column img').wrap("<div>").after("<p></p>");
	$('body.clients div.logo_column img').parent().css({position:"relative"});			
	$('body.clients div.logo_column img').next().css({position:"absolute",bottom:"0",left:"0",display:"none",width:"150px",textAlign:"center", backgroundColor:"#fff",margin:"0px 5px",border:"1px solid",padding:"5px"});			
	$('body.clients div.logo_column img').hover(function() {
		var newText = $(this).attr('alt');
		$(this).next().html(newText).fadeIn('fast');
	}, function() {
		$(this).next().fadeOut('fast');
	});

 });//close on ready
