// TARGETS BLANK IN XHTML STRICT

function relTags() {

	if (document.getElementsByTagName) {
	
		var anchors = document.getElementsByTagName( "a" );
		
		for (var loop = 0; loop < anchors.length; loop++) {
			
			var anchor = anchors[loop];
			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
				anchor.target = "_blank";
			}
		}
	}
}

window.onload = function() {
	relTags();
}


//alert(MastType);


// DETERMINE MASTHEADS; Large or not-so-large

$(function(){
    userWidth=$(window).width();

    if (userWidth < 1100) {

            $(function(){
                MastType = $('.masthead').attr('id');
                    $('#' + MastType)
                        .css( {backgroundImage: "url(media/mast_" + MastType + "_small.png)", backgroundPosition: "top center"} );
            });
    }

});
