/* - mark_special_links.js - */
// http://i70mtncorridorcss.com/portal_javascripts/mark_special_links.js?original=1
function scanforlinks(){if(typeof external_links_open_new_window=='string')
var elonw=external_links_open_new_window.toLowerCase()=='true';else elonw=false;if(typeof mark_special_links=='string')
var mslinks=mark_special_links.toLowerCase()=='true';else mslinks=false;var url=window.location.protocol+'//'+window.location.host;var static='http://static.i70css.webfactional.com/static/index.html';if(elonw){jq('a[href^=http]:not(.link-plain):not([href^='+url+'])not([href^='+static+'])').attr('target','external');jq("a[href $= '.pdf']").attr('target','pdf')}
if(mslinks){var protocols=/^(mailto|ftp|news|irc|h323|sip|callto|https|feed|webcal)/;var contentarea=jq(getContentArea());contentarea.find('a[href^=http]:not(.link-plain):not([href^='+url+']):not(:has(img))').wrap('<span></span>').parent().addClass('link-external')
contentarea.find('a[href]:not([href^=http]):not(.link-plain):not([href^='+url+']):not(:has(img))').each(function(){if(res=protocols.exec(this.href))
jq(this).wrap('<span></span>').parent().addClass('link-'+res[0])})}};jq(scanforlinks);
