function initstatus() {
	document.getElementById('madepossible').innerHTML = "<div style='font-size: 17px; text-align: center;'>Marchadium</div><div style='text-align: center;'>made possible by<div><a href='http://www.sphereserver.net' target='_sphereserver'>http://www.sphereserver.net</a></div></div>";
	document.getElementById('statuslinks').innerHTML = "<table border='1' cellpadding='0' cellspacing='0' style='border-width: 0px;' width='100%'><tr><td id='pagestyle_td' width='100%'><table width='100%' border='0' cellpadding='0' cellspacing='0'><tr><td style='width: 33%; text-align: center; font-size: 12px;'><a href='' onclick=\"postloading(); loadpage_window('loadpage.php?page=http://shard.marchadium.ca:2593/web/marchadium_players.html','marchadiumclients','height=40,width=200,screenX="+window.screenX+",left="+window.screenX+",screenY="+window.screenY+",top="+window.screenY+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0'); return false;\" onfocus='this.blur();'>Clients</a></td><td style='width: 33%; text-align: center; font-size: 12px;'><a href='' onclick=\"postloading(); loadpage_window('loadpage.php?page=http://shard.marchadium.ca:2593/web/marchadium_guilds.html','marchadiumguilds','height=40,width=200,screenX="+window.screenX+",left="+window.screenX+",screenY="+window.screenY+",top="+window.screenY+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0'); return false;\" onfocus='this.blur();'>Guilds</a></td><td style='width: 33%; text-align: center; font-size: 12px;'><a href='' onclick=\"postloading(); loadpage_window('loadpage.php?page=http://shard.marchadium.ca:2593/web/marchadium_vendors.html','marchadiumvendors','height=40,width=200,screenX="+window.screenX+",left="+window.screenX+",screenY="+window.screenY+",top="+window.screenY+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0'); return false;\" onfocus='this.blur();'>Vendors</a></td></tr></table></td></tr></table>";
}

function postloading() {
}

function loadpage_window(page, id, attributes) {
	document.getElementById('loading').innerHTML = "&nbsp;";
	f_loading();
	window.open(page, id, attributes);
}

function loadpage(page, id) {
	document.getElementById('loading').innerHTML = "&nbsp;";
	f_loading();
	f_loadpage(page, id);
}

function f_loadpage(page, id) {
	xmlhttp = null;
	try {
		xmlhttp = new XMLHttpRequest();
		} catch (e) {
		try {
			xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
		} catch (e) {
			xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
		}
	}
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4)
		try {
			if (xmlhttp.status == 200) {
				f_erase_loading();
				document.getElementById(id).innerHTML = xmlhttp.responseText;
			}
		} catch (e) {
			f_erase_loading();
			document.getElementById(id).innerHTML = 'Error, contact the server administrator.';
		}
	}
	xmlhttp.open('get', page);
	xmlhttp.send(null);
}

function f_loading() {
	if (document.getElementById('loading').innerHTML == "&nbsp;") {
		document.getElementById('loading').innerHTML = "<div style='width: 100%;'><center><table style='width: 867px; text-align: center;'><tr><td style='width: 150px;'></td><td style='width: 717px; text-align: center;'><center><img id='imgloading' src='loading.gif' alt='Loading, please wait...' border='0' /></td></tr></table></center></div>";
	}
}

function f_erase_loading() {
	if (document.getElementById('loading').innerHTML !== '&nbsp;') {
		if (document.getElementById('imgloading')) {
			document.getElementById('imgloading').src = 'loading_done.gif';
			setTimeout("document.getElementById('loading').innerHTML = ''", 750);
		}
	}
	else {
		document.getElementById('loading').innerHTML = '';
	}
}

function news_name(e, x) {
	if (window.event) {
		key = event.keyCode;
	}
	else {
		key = e.which;
	}
	if (x >= 18) {
		if (key != 8) {
			return false;
		}
	}
	if (key == 13) {
		document.getElementById('pwd').focus();
		return false;
	}
}

function getcookie(c_name) {
	if (document.cookie.length > 0) {
		c_start = document.cookie.indexOf(c_name + "=");
		if (c_start != -1) {
			c_start = c_start + c_name.length+1;
			c_end = document.cookie.indexOf(";",c_start);
			if (c_end == -1) {
					c_end = document.cookie.length;
			}
			return unescape(document.cookie.substring(c_start,c_end));
		}
	}
	return null;
}

function postnews() {
	if (getcookie('marchadium_news') != null) {
		alert("You can not post so fast.");
		return false;
	}
	date = new Date();
	date.setTime(date.getTime()+(60*1000));
	expires = " ; expires="+date.toGMTString();
	document.cookie = "marchadium_news=1"+expires+"; path=/";
	return true;
}

function f_expand(x, id) {
	if (x.style.color == '') {
		x.style.color = '#ffffff';
		if (id == 'blacksmithing') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_iron.html', 'main'); return false;\" onfocus='this.blur();'>Iron</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_chert.html', 'main'); return false;\" onfocus='this.blur();'>Chert</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_zeolite.html', 'main'); return false;\" onfocus='this.blur();'>Zeolite</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_igneous.html', 'main'); return false;\" onfocus='this.blur();'>Igneous</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_xenolith.html', 'main'); return false;\" onfocus='this.blur();'>Xenolith</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_seismic.html', 'main'); return false;\" onfocus='this.blur();'>Seismic</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_eolian.html', 'main'); return false;\" onfocus='this.blur();'>Eolian</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_ventifact.html', 'main'); return false;\" onfocus='this.blur();'>Ventifact</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_quartz.html', 'main'); return false;\" onfocus='this.blur();'>Quartz</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_flume.html', 'main'); return false;\" onfocus='this.blur();'>Flume</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_silver.html', 'main'); return false;\" onfocus='this.blur();'>Silver</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_horst.html', 'main'); return false;\" onfocus='this.blur();'>Horst</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_talus.html', 'main'); return false;\" onfocus='this.blur();'>Talus</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_gold.html', 'main'); return false;\" onfocus='this.blur();'>Gold</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_glacial.html', 'main'); return false;\" onfocus='this.blur();'>Glacial</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_wadi.html', 'main'); return false;\" onfocus='this.blur();'>Wadi</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_ultramafic.html', 'main'); return false;\" onfocus='this.blur();'>Ultramafic</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_regolith.html', 'main'); return false;\" onfocus='this.blur();'>Regolith</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_kerogen.html', 'main'); return false;\" onfocus='this.blur();'>Kerogen</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_basalt.html', 'main'); return false;\" onfocus='this.blur();'>Basalt</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_diagenesis.html', 'main'); return false;\" onfocus='this.blur();'>Diagenesis</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_alluvium.html', 'main'); return false;\" onfocus='this.blur();'>Alluvium</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_pangaea.html', 'main'); return false;\" onfocus='this.blur();'>Pangaea</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_laccolith.html', 'main'); return false;\" onfocus='this.blur();'>Laccolith</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_lava_rock.html', 'main'); return false;\" onfocus='this.blur();'>Lava Rock</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_nebula.html', 'main'); return false;\" onfocus='this.blur();'>Nebula</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_moon_rock.html', 'main'); return false;\" onfocus='this.blur();'>Moon Rock</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_shadowflare.html', 'main'); return false;\" onfocus='this.blur();'>Shadowflare</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_nova.html', 'main'); return false;\" onfocus='this.blur();'>Nova</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_supernova.html', 'main'); return false;\" onfocus='this.blur();'>Supernova</a></div><div style='width: 100%; text-align: left; color: #ffffff; font-size: 11px;'><span style='margin: 0px 0px 0px 25px;'>Elemental Armor</span></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_air.html', 'main'); return false;\" onfocus='this.blur();'>Air</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_blood.html', 'main'); return false;\" onfocus='this.blur();'>Blood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_cold.html', 'main'); return false;\" onfocus='this.blur();'>Cold</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_earth.html', 'main'); return false;\" onfocus='this.blur();'>Earth</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_energy.html', 'main'); return false;\" onfocus='this.blur();'>Energy</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_fire.html', 'main'); return false;\" onfocus='this.blur();'>Fire</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_flame.html', 'main'); return false;\" onfocus='this.blur();'>Flame</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_frozen.html', 'main'); return false;\" onfocus='this.blur();'>Frozen</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_poison.html', 'main'); return false;\" onfocus='this.blur();'>Poison</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_blacksmithing_water.html', 'main'); return false;\" onfocus='this.blur();'>Water</a></div>";
		}
		if (id == 'bowcraft') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_log.html', 'main'); return false;\" onfocus='this.blur();'>Regular Logs</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_oak.html', 'main'); return false;\" onfocus='this.blur();'>Oak</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_ash.html', 'main'); return false;\" onfocus='this.blur();'>Ash</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_yew.html', 'main'); return false;\" onfocus='this.blur();'>Yew</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_frostwood.html', 'main'); return false;\" onfocus='this.blur();'>Frostwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_sunwood.html', 'main'); return false;\" onfocus='this.blur();'>Sunwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_energytimber.html', 'main'); return false;\" onfocus='this.blur();'>Energytimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_poisontimber.html', 'main'); return false;\" onfocus='this.blur();'>Poisontimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_firetimber.html', 'main'); return false;\" onfocus='this.blur();'>Firetimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_icetimber.html', 'main'); return false;\" onfocus='this.blur();'>Icetimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_bloodwood.html', 'main'); return false;\" onfocus='this.blur();'>Bloodwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_bowcraft_heartwood.html', 'main'); return false;\" onfocus='this.blur();'>Heartwood</a></div>";
		}
		if (id == 'carpentry') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_log.html', 'main'); return false;\" onfocus='this.blur();'>Regular Logs</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_oak.html', 'main'); return false;\" onfocus='this.blur();'>Oak</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_ash.html', 'main'); return false;\" onfocus='this.blur();'>Ash</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_yew.html', 'main'); return false;\" onfocus='this.blur();'>Yew</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_frostwood.html', 'main'); return false;\" onfocus='this.blur();'>Frostwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_sunwood.html', 'main'); return false;\" onfocus='this.blur();'>Sunwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_energytimber.html', 'main'); return false;\" onfocus='this.blur();'>Energytimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_poisontimber.html', 'main'); return false;\" onfocus='this.blur();'>Poisontimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_firetimber.html', 'main'); return false;\" onfocus='this.blur();'>Firetimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_icetimber.html', 'main'); return false;\" onfocus='this.blur();'>Icetimber</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_bloodwood.html', 'main'); return false;\" onfocus='this.blur();'>Bloodwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_heartwood.html', 'main'); return false;\" onfocus='this.blur();'>Heartwood</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_houses.html', 'main'); return false;\" onfocus='this.blur();'>Houses</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_carpentry_boats.html', 'main'); return false;\" onfocus='this.blur();'>Boats</a></div>";
		}
		if (id == 'inscription') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_inscription_magery.html', 'main'); return false;\" onfocus='this.blur();'>Magery</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_inscription_necromancy.html', 'main'); return false;\" onfocus='this.blur();'>Necromancy</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_inscription_rare_reagent.html', 'main'); return false;\" onfocus='this.blur();'>Rare Reagents</a></div>";
		}
		if (id == 'tailoring') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_clothing.html', 'main'); return false;\" onfocus='this.blur();'>Clothing</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_armor.html', 'main'); return false;\" onfocus='this.blur();'>Armor</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_misc.html', 'main'); return false;\" onfocus='this.blur();'>Misc</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_spined.html', 'main'); return false;\" onfocus='this.blur();'>Spined</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_horned.html', 'main'); return false;\" onfocus='this.blur();'>Horned</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_barbed.html', 'main'); return false;\" onfocus='this.blur();'>Barbed</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_gemmed_clothing.html', 'main'); return false;\" onfocus='this.blur();'>Gemmed Clothing</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_gemmed_armor.html', 'main'); return false;\" onfocus='this.blur();'>Gemmed Armor</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tailoring_daemon_bone.html', 'main'); return false;\" onfocus='this.blur();'>Daemon Bone</a></div>";
		}
		if (id == 'taming') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_taming_misc.html', 'main'); return false;\" onfocus='this.blur();'>Misc</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_taming_coloured.html', 'main'); return false;\" onfocus='this.blur();'>Coloured Rides</a></div>";
		}
		if (id == 'tinkering') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tinkering_misc.html', 'main'); return false;\" onfocus='this.blur();'>Misc</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tinkering_fishing.html', 'main'); return false;\" onfocus='this.blur();'>Fishing Equipment</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/skill_tinkering_gemmed.html', 'main'); return false;\" onfocus='this.blur();'>Gemmed Weapons</a></div>";
		}
		if (id == 'events') {
			document.getElementById(id).innerHTML = "<div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/event_capture_the_flag.html', 'main'); return false;\" onfocus='this.blur();'>Capture the Flag</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/event_capture_the_head.html', 'main'); return false;\" onfocus='this.blur();'>Capture the Head</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/event_monster_bash.html', 'main'); return false;\" onfocus='this.blur();'>Monster Bash</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/event_stair_builder.html', 'main'); return false;\" onfocus='this.blur();'>Stair Builder</a></div><div style='width: 100%; text-align: left;'><a href='' style='margin: 0px 0px 0px 25px; font-size: 11px;' onclick=\"loadpage('pages/event_tournament.html', 'main'); return false;\" onfocus='this.blur();'>Tournament</a></div>";
		}
	}
	else {
		document.getElementById(id).innerHTML = '';
		x.style.color = '';
	}
}

function f_help_downloading(x) {
	if (x == 1) {
		document.getElementById('downloadhelp').innerHTML = "<table width='600' border='1' cellpadding='0' cellspacing='0' style='border-width: 0px;'><tr><td nowrap width='100%' id='pagestyle_td' style='text-align: center; vertical-align: top;'><a href='' onfocus='this.blur();' onclick=\"f_help_downloading('x'); return false;\">Close</a></td></tr><td width='100%' id='pagestyle_td' style='text-align: center;'><div style='font-size: 17px; text-align: center;'>Choosing the Right File</div><div style='text-align: center;'>First you will need to know which client version your Ultima Online game is.  To do this run client.exe and look for the version number at the login screen.</div><div style='text-align: center;'>Once retrieving your client version, choose the right file from the download list.  Files listed in the downloads here have the client version in their name.  Choose the client version which matches your Ultima Online client version.</div></td></tr></table><div style='height: 20px;'></div>";
	}
	if (x == 2) {
		document.getElementById('downloadhelp').innerHTML = "<table width='600' border='1' cellpadding='0' cellspacing='0' style='border-width: 0px;'><tr><td nowrap width='100%' id='pagestyle_td' style='text-align: center; vertical-align: top;'><a href='' onfocus='this.blur();' onclick=\"f_help_downloading('x'); return false;\">Close</a></td></tr><td width='100%' id='pagestyle_td' style='text-align: center;'><div style='font-size: 17px; text-align: center;'>Installing the Marchadium Files</div><div style='text-align: center;'>You will need WinRAR to open and extract the files listed in the downloads here.  You can get <a href='http://www.rarsoft.com' target='_winrar'>WinRAR Here</a>.</div><div style='text-align: center;'>After downloading the file simply open it and extract the contents to your Ultima Online folder.  Afterwards you can run the newly extract client and login to play.  Auto account creation is active.</div></td></tr></table><div style='height: 20px;'></div>";
	}
	if (x == 'x') {
		document.getElementById('downloadhelp').innerHTML = "";
	}
}