/* 

	External Links receive class of "external" and CSS adds an icon. Does not work on sIFR-replaced headings.
	
*/

jQuery.noConflict();
var $j = jQuery;

$j(document).ready(function(){
$j("a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
}).addClass('external');
});

/*
this.blankwin = function(){
	var hostname = window.location.hostname;
	hostname = hostname.replace("www.","").toLowerCase();
	var a = document.getElementsByTagName("a");	
	this.check = function(obj){
		var href = obj.href.toLowerCase();
		return (href.indexOf("http://")!=-1 && href.indexOf(hostname)==-1) ? true : false;				
	};
	this.set = function(obj){
		//obj.target = "_blank";
		obj.className = obj.className + " external";
	};	
	for (var i=0;i<a.length;i++){
		if(check(a[i])) set(a[i]);
	};		
};
*/

