$(document).ready(function(){
	
	// Open external links 
	
	jQuery("a[rel*=external]").click(function(){
		window.open(this.href);
		return false;
	})
	
	// Cufon 
	

	// Scroll To plugin
	
	jQuery.fn.extend({
	  scrollTo : function(speed, easing) {
	    return this.each(function() {
	      var targetOffset = $(this).offset().top;
	      $('html,body').animate({scrollTop: targetOffset}, speed, easing);
	    });
	  }
	});
	
		// Back to top links
				
		jQuery('#Nav a').click(function(e){
			var attr = jQuery(this).attr('href');
			jQuery(attr).scrollTo(500);
			jQuery("#Nav li").removeClass("active");
			jQuery(this).parent().addClass("active");
			
			e.preventDefault();
		});
	

	// Last Child Hacks for IE
	
	if(jQuery.browser.msie){
		jQuery('ul.breadCrumbs li:last-child a').css('background', "none");
		jQuery('.module dl:last-child').css({
			border:"none",
			marginBottom:0
		})
	}

		
});
