$(function() {

	$("p.exec-name a").click(function () {
		$(this).parent().next().toggle();
		$(this).toggleClass('on');
		return false;
	});
	
	$("h3.news a").click(function () {
		$(this).parent().next().toggle();
		return false;
	});
	
	$("a.opt-form").click(function () {
		$(".opt-out-form").toggle();
		return false;
	});				
	
	$("h5.privacy-title a").click(function () {
		$(this).parent().next().toggle();
		return false;
	});	
	
	$("dl.privacy-list dt a").click(function () {
		$(this).parent().next().toggle();
		return false;
	});
	
	$("a.open").click(function () {
		$(this).parent().next().toggle();
		return false;
	});			
	
	/** 
      * Open external links in a new window 
      */ 
      
     $('.external').click(function(event) { 
          event.stopImmediatePropagation(); 
          openNewWindow(this.href); 
          return false; 
     }); 
      
     function openNewWindow(href) { 
          window.open(href); 
          return false; 
     }
     
     $('.external a').click(function(event) { 
          event.stopImmediatePropagation(); 
          openNewWindow(this.href); 
          return false; 
     }); 
      
     function openNewWindow(href) { 
          window.open(href); 
          return false; 
     }	   

	$('.internal').click(function(){
    	location.href = $('a:first', this).attr("href"); 
 	});
 	
 	/* Webtrends Form Submission Tracking */
 	
 	$('#contact-submit').click(function() {
		dcsMultiTrack('DCS.dcsuri', '/contact/', 'WT.ti', 'Contact%20Form%20Submission');
	});
	
 	$('#optout-submit').click(function() {
		dcsMultiTrack('DCS.dcsuri', '/privacy/', 'WT.ti', 'Opt%20Out%20Submission');
	});	

});
