﻿//Core Graphic generic include file for all websites
//Author: Rick Blouch

$j = jQuery.noConflict();     
$j(document).ready(function() {
    //If an anchor tag that has an href also has a rel="external", give it a target value of "_blank"
    //to tell the browser to open the link in a new window.
    $j("a").each(function(){
        if(this.getAttribute("href")){
            if(this.getAttribute("rel")){
                var external = /external/;
                if(external.test(this.getAttribute("rel"))){
                    this.target = "_blank";
                }
            }
        }
    });
}); 