function addEvent(obj, evType, fn, useCapture){
	if(obj.addEventListener){
		obj.addEventListener(evType, fn, useCapture);
		return true;
	}else if (obj.attachEvent){
		var r=obj.attachEvent("on"+evType, fn);
		return r;
	//}else{	alert("Handler could not be attached");
	}
}

function initCountrySelector(){
	o=document.getElementById("country-selector");
	o.className="";
	if(o.firstChild.nextSibling.nextSibling.nodeName=="A"){
		a=o.firstChild.nextSibling.nextSibling;
	}else if(o.firstChild.nextSibling.nextSibling.nextSibling.nodeName=="A"){
		a=o.firstChild.nextSibling.nextSibling.nextSibling;
	}
	if(a){
		a.onclick=function(){return false;};
	}
	o.onmouseover=function(){
		this.className="reveal";
	}
	o.onmouseout=function(){
		this.className="";
	}	
}

function targetBlank(url){
	win=window.open(url);
	return (typeof(win)=='object')?true:false;
}

addEvent(window, "load", initCountrySelector)