/*		function extTarget( )
			JM & AP
			r5 - 2007/11/10

			changes target on external links
			so that they open in a new window
			now takes into account presence of subdomains
--------------------------------------------------- */
function extTarget_install() {

	var n = '';
	//		get window information
	var w = window.location.hostname;
	var t = w.split( '.' );		
	//		do we have a subdomain
	if(( 'com' == t[t.length -1] ) && ( t.length >= 3 )) { t[0] = ''; }
	w = t.join( '.' );

	var a = document.links;
	for( var i = 0; i < a.length; i++ ) {
		n = a[i].hostname;
		t = n.split( '.' );
		if(( 'com' == t[t.length -1] ) && ( t.length >= 3 )) { t[0] = ''; }
		n = t.join( '.' );
		if(( '' != n ) && ( n != w )) { a[i].target = '_blank'; }
	}
}
