<!--
function switch_image(target, url, obj) {
	document.getElementById('selected').removeAttribute('id');
	obj.setAttribute('id', 'selected');
	document.getElementById(target).src = url;
}
function startList() {
	if (document.all&&document.getElementById) {
		li = document.getElementById("nav").getElementsByTagName('li');
		for (i=0; i<li.length; i++) {
			li.item(i).onmouseover=function() {
				this.className+=" over";
			}
			li.item(i).onmouseout=function() {
				this.className=this.className.replace(" over", "");
			}
		}
	}
	/* Store All Data Entered Into Forms as a Cookie */
	var input = document.getElementsByTagName('input');
	for(i=0; i<input.length; i++) {
		input.item(i).onblur=function() {
			session_store(this.name, this.value);
		}
	}
	var textarea = document.getElementsByTagName('textarea');
	for(i=0; i<textarea.length; i++) {
		textarea.item(i).onblur=function() {
			session_store(this.name, escape(this.value));
		}
	}
	var select = document.getElementsByTagName('select');
	for(i=0; i<select.length; i++) {
		if(select.item(i).onchange) {
		} else {
			select.item(i).onchange=function() {
				session_store(this.name, this.value);
			}
		}
	}
}
function $(id) {
	return document.getElementById(id);
}
function m(ext, to, dom) {
	var e = to + '@' + dom + '.' + ext;
	document.write('<a href="mailto:'+e+'">'+e+'</a>');
}
function session_store(name, value) {
	/* Store Everything entered into a form as a Cookie so that it remembers what you want & who you are*/
	document.cookie = name+'='+value+'; path=/';
}
/* Opera Style Sheet */
if(navigator.userAgent.match(/Opera/)) {
	var new_stylesheet = document.createElement('link');
	new_stylesheet.type = "text/css";
	new_stylesheet.rel = "stylesheet";
	new_stylesheet.href = "/style-sheet/bareboat-chartering.css";
	document.getElementsByTagName('head').item(0).appendChild(new_stylesheet);
}
function more_information(url) {
	w = 620;
	h = screen.availHeight - 200;
	t = 200;
	if(h < 600) {
		h += 100;
		t -= 100;
	}
	return !window.open(url, "_blank", "height="+ h +", width="+ w +", top="+ t +", left=100, location=0, menubar=0, resizable=1, scrollbars=1, statusbar=0, titlebar=1", false);
}
function highlight_info(obj, dir) {
	var img = obj.getElementsByTagName('img');
	for(i=0; i<img.length; i++) {
		if(img.item(i).alt.match(/more\sinformation/i)) {
			if(dir == 'over') {
				img.item(i).src = '/images/orange-info.png';
			} else {
				img.item(i).src = '/images/info.png';
			}
			break;
		}
	}
}
//-->