/* Base javascript functions - used on all base built sites
	 ---------------------------------------	jason / cf 2009
*/

$(document).ready(function() { 
		        $('ul.sf-menu').superfish({ 
		            delay:       100,                            // one second delay on mouseout 
		            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		            speed:       'fast',                          // faster animation speed 
		            autoArrows:  false,                           // disable generation of arrow mark-up 
		            dropShadows: false                            // disable drop shadows 
		        }); 
}); 


/*Add class & icon to all external links*/
$(document).ready(function(){
      $('a').filter(function(){
       return this.hostname && this.hostname !== location.hostname;
      })
      .addClass('externalLink');
});


/*Add pop up to all pdf file links*/
$(document).ready(function(){
	$("a[href*=.pdf]").click(function(){
    		window.open(this.href);
				return false;
	});
});







/*  add external class AND add new window pop-up
------------------------------------------------
userbility 101 - only use if client requests it!


$(document).ready(function(){
      $('a').filter(function(){
       return this.hostname && this.hostname !== location.hostname;
      })
      .addClass('externalLink')
      
      .click(function() {
    		window.open(this.href);
    		return false;
    	});
});
*/