function links_do(el){
	name = el.id;
	url = "http://"+links[name]['www']+links[name]['address'];
	window.status = url;
	document.location.href = url;
	return false;
}
function over_links(el, show){
	if (show == 1){
		name = el.id;
		url = "http://"+links[name]['www']+links[name]['address'];
		el.href=url;
		el.src=url;
		window.status = url;
	}else{
		window.status = "";
	}
}
function set_links(ids){
	var pos;
	var posOld;
	id = new Array();
	i=0;
	pos = ids.indexOf(";");
	id[0] = ids.substring(0,pos)
	i = i+1;
	while ((pos != -1) && (posOld != 0)){
		posOld = pos;
		pos = ids.indexOf(";",posOld+1);
		if (pos != -1){
			id[i] = ids.substring(posOld+1,pos);
			i = i+1;
		}
	}
	var el = new Array();
	for (i=0;i<=ids.length;i++){
		el[i] = document.getElementById(id[i]);
		if (el[i]){
			name = el[i].id;
			url = "http://"+links[name]['www']+links[name]['address'];
			el[i].onclick = "links_do(this);return false;";
			el[i].onmouseover = "over_links(this, 1);return true;";
			el[i].onmouseout = "over_links(this, 0);";
			el[i].href = url;
		}
	}
}
