/*
 *
 * http://www.webdesignerwall.com/tutorials/jquery-tutorials-for-designers/
 *
 */
jQuery(function ($) {
	/* You can safely use $ in this code block to reference jQuery */

$(document).ready(function(){

	$("a[href$=pdf]").addClass("pdf");

	$("a[href$=zip]").addClass("zip");

	$("a[href$=psd]").addClass("psd");

	var loc = window.location;
	var url = loc.href.substring(0, loc.href.indexOf('/', 7) );

	$("a:not([href^="+url+"])").not("[href^=/]").not("[href^=#]").not("[href^=javascript:;]").not("[href^=mailto:]")
	  .addClass("external")
	  .attr({ target: "_blank" });

});

});
