
	$(function(){
		/*
		//Menu Highlighting
		var pageclass = $("body").id();
		alert(pageclass);
		*/
		
		// set global defaults for all Accordions
		$.extend($.fn.Accordion.defaults, {
			showSpeed: 500,
			hideSpeed: 500
		});
		// Menu Speed
		$('#menu').Accordion({
			active: 'a.selected',
			header: 'a.head'
		});
		
		
		//Slideshow//
				$('ul#slideshow').innerfade({
					speed: 'slow',
					timeout: 5000,
					type: 'sequence',
					containerheight: '270px'
				});
				
		/*NAVIGATION PAGE ID EXPANSION SELECTION*/
		var pageid = $("body").id();		
		if (pageid == 'newspg'){
			$('#menu').activate(0);
			}
		else if (pageid == 'staff'){
			$('#menu').activate(1);
			}
			else if (pageid == 'teachers'){
			$('#menu').activate(1);
			}
		else if (pageid == 'studentinfo'){
			$('#menu').activate(2);		
			}	
		else if (pageid == 'academics'){
			$('#menu').activate(3);
			}
		else if (pageid == 'guidance'){
			$('#menu').activate(4);
			}
		else if (pageid == 'library'){
			$('#menu').activate(5);
			}
		else if (pageid == 'quicklinks'){
			$('#menu').activate(6);
			}
		else if (pageid == 'home'){
		
		}	
		
		$("#facultylinks a").click(function(){ 
			//alert("test");
		     var to = '#' + this.href.split('#')[1]; 
		     $(to).ScrollTo(1000);
		});
		
		/*$("a.test").click(function(){
			window.open($(this).href); 
			return false;
		});*/
		
		
			
	});
		
		
		//Rounded Corners//
/*		$(".paragraph").corner("10px");
		$("#footer").corner("5px");
		$("#news").corner("10px");
*/

		//Fade-in Animations
/*		$("a#MakeAddressBig").click(function(){
		 	$('#address').animate({height: 150, opacity: .8}, 500);
  		});
		$("a#MakeAddressSmall").click(function(){
		 	$('#address').animate({height: 0, opacity: 0}, 500);
  		});
  		
		$("a#MakePhoneBig").click(function(){
		 	$('#phone').animate({height: 120, opacity: .8}, 500);
  		});
		$("a#MakePhoneSmall").click(function(){
		 	$('#phone').animate({height: 0, opacity: 0}, 500);
  		});
		  		
		$("a#MakeFaxBig").click(function(){
		 	$('#fax').animate({height: 120, opacity: .8}, 500);
  		});
		$("a#MakeFaxSmall").click(function(){
		 	$('#fax').animate({height: 0, opacity: 0}, 500);
  		});
  */
  	
 		/*
		$('#news').Accordion({
			header: 'h3',
			active: false
		});
		*/
