
$(document).ready(function(){
	
	$('#nav > li > a').click(function(){
    if ($(this).attr('class') != 'active'){
      $('#nav li ul').slideUp();
      $(this).next().slideToggle();
      $('#nav li a').removeClass('active');
      $(this).addClass('active');
    }
  });
	// execute your scripts when the DOM is ready. this is mostly a good habit
	<!-- jquerytools accordion tabs --> 
	$("#accordion").tabs("#accordion div.pane", {tabs: 'h3', effect: 'slide', initialIndex: 1});
	
	<!-- jquerytools scroller --> 
	$("#scrollbanner").scrollable({next: '.BannerNext', prev: '.BannerPrev', circular: true}).navigator().autoscroll({interval: 7000});
	
	<!-- jquerytools overlay -->
	$("a.pop[rel]").overlay({mask: '#000'});
	
	<!-- Plays id "player" if exists on page -->
	flowplayer("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
	  
	  clip: {
		// stop at the first frame and start buffering
		autoPlay: false,
		autoBuffering: true,
		scaling: "fit"
	  },
	// change the default controlbar skin
	
	plugins: {
		controls: {
			buttonColor: 'rgba(249, 246, 235, 0.9)',
			buttonOverColor: '#a06a39',
			backgroundColor: '#bfb79c',
			backgroundGradient: 'medium',
			
			sliderColor: '#b84126',
			progressColor: '#b84126',
			sliderBorder: 'none',
			
			volumeSliderColor: '#FFFFFF',
			volumeBorder: '1px solid #bfb79c',
			
			
			timeBgColor: '#bfb79c',
			timeColor: '#40403f',
			durationColor: '#40403f',
			
			tooltipColor: 'rgba(249, 246, 235, 0.7)',
			tooltipTextColor: '#40403f'
			
		}
		
	}
	
});



});	



//* Target Blank -----------------------------------------------------*/

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 = function() {
externalLinks();
}
	

