function openNewWindow_shapirobernstein() {popupWin = window.open('http://www.shapirobernstein.com/mbr/welcome.html','open_window',    'menubar,toolbar,location,status,resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ray_portrait() {popupWin = window.open('portrait.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ray_aero_club() {popupWin = window.open('ray_aero_club.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_lockheed_hudson() {popupWin= window.open('lockheed_hudson_large.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ray_flying_gear() {popupWin = window.open('flying_gear.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_copyright() {popupWin = window.open('copyright.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_cabin() {popupWin = window.open('mont_cabin.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_dining() {popupWin = window.open('mont_dining.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_embark() {popupWin = window.open('embark_original.html','open_window','resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_griffiths() {popupWin = window.open('rev_griffiths.html',
'open_window','resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_dad() {popupWin = window.open('dad.html', 
    'open_window','resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_feb_13th_pg1() {popupWin = window.open('feb_13th_pg1.html', 
    'open_window','resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_diary() {popupWin = window.open('diary_original_1&2.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_bbc() {popupWin = window.open('bbc.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_1() {popupWin = window.open('ej134_1.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_2() {popupWin = window.open('ej134_2.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_3() {popupWin = window.open('ej134_3.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_4() {popupWin = window.open('ej134_4.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_ham_1() {popupWin = window.open('ej134_ham_1.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_ham_2() {popupWin = window.open('ej134_ham_2.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_ham_3() {popupWin = window.open('ej134_ham_3.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_ej134_ham_4() {popupWin = window.open('ej134_ham_4.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_praa_sands_crew() {popupWin = window.open('praa_sands_crew.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_praa_sands_crewlist_1() {popupWin = window.open('praa_sands_crewlist_1.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}
function openNewWindow_churchill_atlantic() {popupWin = window.open('churchill_atlantic.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_leslie_howard() {popupWin = window.open('leslie_howard.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_colin_windley() {popupWin = window.open('colin_windley.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_mum() {popupWin = window.open('mum.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_walker() {popupWin = window.open('col_walker.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_first_of_the_few() {popupWin = window.open('first_of_the_few.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_vickers() {popupWin = window.open('vickers.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}
function openNewWindow_mitchell_1() {popupWin = window.open('mitchell_1.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}

function openNewWindow_mitchell_2() {popupWin = window.open('mitchell_2.html','open_window',
    'resizable,scrollbars,definable,width=640,height=480,left=100,top=75')
}
var fadeTo = "B8860B";

var fiBy = 50;

var foBy = 50;

var speed = 10;

var ignoreClass = "ignore";

var opera, ie, dom, x = 0, oc, fader, ocs = new Array();

if (navigator.userAgent.indexOf("Opera") != -1) opera = true
else if (document.all && !opera) ie = true
else if (!document.all && document.getElementById) dom = true;

function convertRGB(z)
	{
		var newfcS = "", splitter = "";
		splitter = z.split(",");
		splitter[0] = parseInt(splitter[0].substring(4, splitter[0].length));
		splitter[1] = parseInt(splitter[1]);
		splitter[2] = parseInt(splitter[2].substring(0, splitter[2].length-1));
		for (var q = 0; q < 3; q++)
			{
				splitter[q] = splitter[q].toString(16);
				if (splitter[q].length == 1) splitter[q] = "0" + splitter[q];
				newfcS += splitter[q];
			}
		return newfcS;
	}

function currentColour(index)
	{
		var temp, cc;
		if (opera) cc = document.links[index].style.color
		else if (ie) cc = document.links[index].currentStyle.color
		else if (dom) cc = document.defaultView.getComputedStyle(document.links[index], '').getPropertyValue("color");
		if (cc.length == 4 && cc.substring(0, 1) == "#")
			{
				temp = "";
				for (var a = 0; a < 3; a++)
					temp += cc.substring(a+1, a+2) + cc.substring(a+1, a+2);
				cc = temp;
			}
		else if (cc.indexOf("rgb") != -1) cc = convertRGB(cc)
		else if (cc.length == 7) cc = cc.substring(1, 7)
		else cc = fadeTo;
		return cc;
	}


function convert2Dec(hex)
	{	
		var rgb = new Array();
		for (var u = 0; u < 3; u++)
			rgb[u] = parseInt(hex.substring(u*2, u*2+2), 16);
		return rgb;
	}

function newRGB(f, n, d)
	{
		var change;
		if (d == 1) change = fiBy
		else change = foBy;
		for (var g = 0; g < 3; g++)
			{
				if (n[g] > f[g] && n[g] - change >= 0) n[g] -= change;
				if (n[g] < f[g] && n[g] + change <= 255) n[g] += change;
			}
		return n;
	}

function fade(index, d)
	{
		var fc, nc, temp = new Array(), finished = false;
		nc = convert2Dec(currentColour(index));
		if (d == 1) fc = convert2Dec(fadeTo)
		else fc = convert2Dec(ocs[x]);
		temp = convert2Dec(currentColour(index));
		nc = newRGB(fc, nc, d);
		if ((nc[0] == temp[0]) && (nc[1] == temp[1]) && (nc[2] == temp[2]))
			finished = true;
		if (!finished) document.links[x].style.color = "rgb(" + nc[0] + "," + nc[1] + "," + nc[2] + ")"
		else clearInterval(fader);
	}

function findLink(over)
	{
		if (document.layers) return;
		if (fader)
			{
				clearInterval(fader);
				document.links[x].style.color = "#" + ocs[x];
			}
		if (over && !this.id) this.id = over;
		x = 0;
		while (!(this.id == document.links[x].id) && (x < document.links.length))
			x++;
		if (this.id == document.links[x].id)
			{
				oc = currentColour(x);
				fader = setInterval("fade(" + x  + ", 1)", speed);
			}
	}

function clearFade()
	{
		if (document.layers) return;
		if (fader) clearInterval(fader);
		fader = setInterval("fade(" + x + ", 0)", speed);
	}

function init()
	{
		for (var i = 0; i < document.links.length; i++)
			{
				ocs[i] = currentColour(i);
				var currentOver = document.links[i].onmouseover;
				var currentOut = document.links[i].onmouseout;
				var ignoreIt = document.links[i].className == ignoreClass;
				if (!ignoreIt) document.links[i].id = "link" + i;
				if (!currentOver && !currentOut && !ignoreIt)
					{
						document.links[i].onmouseover = findLink; document.links[i].onmouseout = clearFade;}}}





if (opera || ie || dom) window.onload = init;


function MM_controlSound(x, _sndObj, sndFile) { //   v3.0
  var i, method = "", sndObj = eval(_sndObj);
  if (sndObj != null) {
    if (navigator.appName == 'Netscape') method = "play";
    else {
      if (window.MM_WMP == null) {
        window.MM_WMP = false;
        for(i in sndObj) if (i == "ActiveMovie") {
          window.MM_WMP = true; break;
      } }
      if (window.MM_WMP) method = "play";
      else if (sndObj.FileName) method = "run";
  } }
  if (method) eval(_sndObj+"."+method+"()");
  else window.location = sndFile;
}



function formHandler(){ 
   var URL = document.form.mysites.options
     [document.form.mysites.selectedIndex].value; 
   parent.location.href = URL; 
  } 