/* Copyright (c) 2008 Inticco Solutions ISSA SA, www.inticco.com */

function addEvent(obj, type, fn){
	if(obj.addEventListener){
		obj.addEventListener(type, fn, false);
	}	else if (obj.attachEvent){
		obj["e"+type+fn] = fn;
		obj[type+fn] = function(){obj["e"+type+fn](window.event);}
		obj.attachEvent("on"+type, obj[type+fn]);
	}
}


addEvent(window, 'load', function(x,i){
	if(!document.getElementById){
		return false;
	}

/*	if(document.getElementById('col-1').getElementsByTagName('ul')[0])
	{
		for(i in x = document.getElementById('col-1').getElementsByTagName('ul')[0].childNodes)
		{
			if(x[i] && x[i].tagName && x[i].tagName.toLowerCase() == 'li' && x[i].getElementsByTagName('ul') && x[i].getElementsByTagName('ul')[0])
			{
				x[i].getElementsByTagName('strong')[0].getElementsByTagName('a')[0].onfocus = function()
				{
					this.parentNode.parentNode.className = this.parentNode.parentNode.className ? this.parentNode.parentNode.className + ' expand' : 'expand';
				}
				x[i].onmouseover = function()
				{
					this.className = this.className ? this.className + ' expand' : 'expand';
				}
				x[i].onmouseout = function()
				{
					this.className = this.className.replace(/ ?expand/, '');
				}
			}
		}
	}
*/	
	for(i in x = document.getElementById('footnotes').getElementsByTagName('a')){
		if(x[i] && x[i].href){
			x[i].target = '_blank';
		}
	}
	
});

