jQuery.noConflict();
jQuery(document).ready(function(){

	// Last child for overview page
	jQuery('div#overview div.column').last().addClass('last-child');
	// Last child for services / technology pages
	jQuery('div.services div.examples div.column').last().addClass('last-child');
	// Add 'button' classes to sidebar archives
	jQuery('div#sidebar div.archives li a').addClass('button');
	// Make overview panels same heights
	jQuery(".panel").equalHeights();
	jQuery(".panel.contact").equalHeights(0,320);

	var fadeDuration = 200; //time in milliseconds
	
	// Logo hover
	jQuery('div#logo-strip .logo').hover(function () {jQuery(this).stop().animate({top: '25px'}, fadeDuration);},function () {jQuery(this).stop().animate({top: '30px'}, fadeDuration);});

	// Drop-down nav hover
	jQuery('div#navigation ul a').hover(function () {jQuery(this).stop().animate({paddingLeft: '50px'}, fadeDuration);},function () {jQuery(this).stop().animate({paddingLeft: '40px'}, fadeDuration);});
		
	// Personas
	jQuery('div#personas ul li a').hover(function () {jQuery(this).stop().animate({paddingLeft: '80px'}, fadeDuration);},function () {jQuery(this).stop().animate({paddingLeft: '70px'}, fadeDuration);});	
    
	// Fading buttons
	jQuery('a.button, div#sm-strip a, input[type=submit]').css('opacity','1.0');
	jQuery('a.button, div#sm-strip a, input[type=submit]').hover(function () {jQuery(this).stop().animate({opacity: 0.7}, fadeDuration);},function () {jQuery(this).stop().animate({opacity: 1.0}, fadeDuration);});
	
	// Google Map
	jQuery('div#map a').click(function() {jQuery('div#google-map').fadeIn('normal', function() {});});
	jQuery('div#google-map a.close').click(function() {jQuery('div#google-map').fadeOut('normal', function() {});});
	
	// IE Z-index fix
	jQuery(function() {
		var zIndexNumber = 1000;
		jQuery('div#navigation').each(function() {
			jQuery(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 10;
		});
	});
  
  });

