
$(document).ready(function() {

	if ($('#mainMenu').length > 0){
		$('#mainMenu li').hover(function() {
			$(this).addClass('hover');
		},function() {
			$('#mainMenu li.hover').removeClass('hover');
		});
	}
	
	if ($('#mainMenu').length > 0){
		$('#mainMenu li:last-child').addClass('leadOut');
	}

	if ($('#footerSubContent').length > 0){
		$('#footerSubContent ul li').each(function() {
			if ($(this).is(':last-child')){
				$(this).addClass('leadOut');
			}
			$(this).find('div').wrapInner('<p />');
			$(this).children('h2').append($(this).find('img'));
		});

		$('#footerSubContent').find('li.leadOut').append($('#links').show());
	}

	if ($('#contactInfo').length > 0){
		$('#contactInfo').after($('#links').show());
	}

	if ($('#projectLists').length > 0){
		$('#projectLists li:last-child').append('<span class="pback"><a href="http://'+location.hostname+'/portfolio">BACK TO PORTFOLIO</a></span>');
		Cufon.replace('ul#projectLists span.back');
	}

	if ($('.wpcf7-form').length > 0){
		$('.wpcf7-form').find('br').remove();
	}
	
	if ($('#blogFooterFeature').length > 0){
		$('#blogFooterFeature div.cols:last').addClass('leadOut');
		$('#blogFooterFeature').equalHeights();
	}

	if ($('#projectLists').length > 0){
		$('#projectLists li').each(function() {
			if ($(this).find('a').length == 0){
				$(this).addClass('noma');
			}
		});
	}

});



