// Creating custom :external selector
$.expr[':'].external = function(obj){
    return !obj.href.match(/^mailto\:/)
            && (obj.hostname != location.hostname)
			&& (!obj.href.match(/^javascript/));
};

$(document).ready(function() {

	// All external links
	$('a:external').click(function() {
		$(this).attr("target", "_blank");
	});


	//all PDF links in new window
	$("a[href*=.pdf]").click(function(){
		$(this).attr("target", "_blank");
	});


	$("#scroller").simplyScroll({
		autoMode: 'loop'
	});

});

