$().ready(function() {
$.expr[':'].external = function(obj) {
    return !obj.href.match(/^mailto\:/)
            && (obj.hostname != location.hostname)
            && !obj.href.match(/^javascript\:/);
};

$('a:external').attr("target", "_blank");
	/*var featuredTitles = new Array();
		featuredTitles[1] = "Koodo &bull; Build-a-Bash";
		featuredTitles[2] = "White Ribbon Campaign &bull; Walk a Mile Toronto";
		featuredTitles[3] = "Consultec &bull; Moving Notice";
		featuredTitles[4] = "Asigra &bull; Rebranding";
		featuredTitles[5] = "Samsung &bull; Cleo Integrated Launch";
		
	$("#controller_titles").html(featuredTitles[1]);*/

	/*$(".featured_link").click(function(event) {
		event.preventDefault();
		var featureImage = "img-" + $(this).attr("id");
		$(".img-featured").hide();
		$("#" + featureImage).fadeIn();
		
		$(".featured_link").removeClass("active");
		$(this).addClass("active");
		
		var featureTitle = $(this).html();
		$("#controller_titles").html(featuredTitles[featureTitle]);
	});*/
	
	$(".infiltrators_item:nth-child(even)").addClass("odd");
	
	$(".portfolio_item:nth-child(even)").addClass("portfolio_item2");
});