// JavaScript Document

//video page

$(document).ready(function() {
  
  	$('a.button').click(function() {
								 
  		var id = $(this).attr('id');
		$('#leftCol div').hide();
		$('#summary' + id).show(500);
		//$('#summary' + id).prevAll().hide();
		//$('#summary' + id).nextAll().hide();
  		// alert(id);
  		//return false;
  	});

});


//nav


//jQuery(function($) {
 // var path = location.pathname.substring(1);
 // $('#nav li a[@href$="' + path + '"]').addClass('selected');
//});

 $(function(){
   var path = location.pathname.substring(5);
   if ( path ) {
   	 $('#nav li a').each(function () {
		 if($(this).attr('href') == path) {
		 $(this).attr('class', 'selected');
		 }
	 });
	 
	 switch(path) {
		case 'agriculture.asp':
		case 'business.asp':
		case 'family_consumer_sciences.asp':
		case 'health_science_technology.asp':
		case 'information_technology.asp':
		case 'marketing.asp':
		case 'technology_engineering.asp':
		case 'skilled_technical.asp':
			$('#eightAreas').attr('class', 'selected');
		break;
	 }
	 
	 document.title = 'Career Pathways - ';
	 
	 switch(path) {
		case 'overview.asp':
			document.title += ' Overview';
		break;
		case 'eight_areas.asp':
			document.title += ' Eight Areas of Study';
		break;
		case 'benefits.asp':
			document.title += ' Benefits';
		break;
		case 'contact.asp':
			document.title += ' Contact';
		break;
		case 'agriculture.asp':
			document.title += ' Eight Areas of Study - Agriculture';
		break;
		case 'business.asp':
			document.title += ' Eight Areas of Study - Business';
		break;
		case 'family_consumer_sciences.asp':
			document.title += ' Eight Areas of Study - Family Consumer Sciences';
		break;
		case 'health_science_technology.asp':
			document.title += ' Eight Areas of Study - Health Science Technology';
		break;
		case 'information_technology.asp':
			document.title += ' Eight Areas of Study - Information Technology';
		break;
		case 'marketing.asp':
			document.title += ' Eight Areas of Study - Marketing';
		break;
		case 'technology_engineering.asp':
			document.title += ' Eight Areas of Study - Technology Engineering';
		break;
		case 'skilled_technical.asp':
			document.title += ' Eight Areas of Study - Skilled Technical';
		break;
		default:
			document.title += ' Home';
		break;
	 }
   }
 });




//sifr
if(typeof sIFR == "function"){
	sIFR();
};
