// jQuery newWin Plugin 1.0.1 (20100315)
// By John Terenzio | http://plugins.jquery.com/project/newwin | MIT License
// 
// modified by greg titcomb (fcsu) 2010.03.19
(function($)
{
	$.fn.newWin=function()
	{
		return this.each(function()
		{
			// check to see if this.hostname has the class 'internal', or if it's on this domain, or if it's within the 'whitelisted' domains
			if( (this.protocol=='http:'||this.protocol=='https:') && !$(this).hasClass('internal') && !(this.hostname==location.hostname||this.hostname=='www.fcsuvt.org'||this.hostname=='www.bfasta.net'||this.hostname=='www.sacsvt.org'||this.hostname=='www.satecvt.org'||this.hostname=='www.ffcsvt.org'||this.hostname=='www.nwtconline.org'||this.hostname=='www.earlychildhoodsuccess.org'||this.hostname=='www.collinsperley.com') ){
				$(this).click(function(){
					open(this.href);
					return false;
				})
				.addClass('externallink')
				.each(function(){
					if($(this).attr('title')){
						$(this).attr('title', $(this).attr('title') + ' (opens in new window)');
					}else{
						$(this).attr('title', '(Opens in new window)');
					}
				});
			}
		});
	};
})(jQuery);