// JavaScript Document to get around target _blank not STRICT valid


function externalLinks() { 
 if (!document.getElementsByTagName) return; 
 var anchors = document.getElementsByTagName("a"); 
 for (var i=0; i<anchors.length; i++) { 
   var anchor = anchors[i]; 
   if (anchor.getAttribute("href") && 
       anchor.getAttribute("rel") == "external") 
     anchor.target = "_blank"; 
 } 
} 
window.onload = externalLinks;

//graduate profile landing page
$(function(){
	
function showGraduates(){
	if(! $('.graduate_profiles') ){
		return false;
	}else{

		$('.graduate_profiles li:first-child a').addClass('on');
		$('.category_1').show();
		$('.graduate_profiles li a').each(function(intIndex){
				var which = intIndex+1;
				$(this).click(function(e){
					
					var thisBox = $('.category_'+which);
					if(thisBox.css('display') !== 'block'){
						$('.graduate_profiles .boxrow1').fadeOut('fast');
						thisBox.fadeIn('fast');
						$('.graduate_profiles li a').removeClass('on');
						$(this).addClass('on');
					}
					e.preventDefault();
				});
		});
		
	}
}
return showGraduates();

	

});
