var ars = 15;
nam = new Array(ars);
txt = new Array(ars);
pic = new Array(ars);
nam[0] = 'InfoAsset';
txt[0] = 'Data asset management for the energy industry.<br /><br />Elderberry has also created sophisticated web interfaces for infoAsset&rsquo;s customer catalogue and digital image library but there is no link as these sites are not in the public domain.';
nam[1] = 'Design for Transport';
txt[1] = 'A specialist engineering design consultancy.';
nam[2] = 'The Symposium Office';
txt[2] = 'Course booking for Imperial College London School of Medicine';
nam[3] = 'Westminster Mind';
txt[3] = 'The Westminster branch of the mental health charity.';
nam[4] = 'InfoCentric';
txt[4] = 'Data management consultancy.';
nam[5] = 'Big Wilf&rsquo;s Bell Muffles';
txt[5] = 'Leather muffles for church bells.';
nam[6] = 'ConfMed / O<sub>2</sub> Go Home';
txt[6] = 'Medical Conferences. O<sub>2</sub> Go Home is one of several small sites provided for this client.';
nam[7] = 'Institute of Obstetrics and Gynaecology Trust';
txt[7] = '[Elderberry provided ASP scripts for donations page only.]';
nam[8] = 'St Leonard&rsquo;s Church, Streatham';
txt[8] = '';
nam[9] = 'Surrey Association of Church Bellringers';
txt[9] = '';
nam[10] = 'Southwark Cathedral Society of Bellringers';
txt[10] = '';
nam[11] = 'Maximus Bibendus';
txt[11] = 'Tony&rsquo;s alter ego as a beer writer';	
nam[12] = 'Opus XVI Chamber Choir';
txt[12] = '';
nam[13] = 'Barber&rsquo;s Hop Quartet';
txt[13] = '';

var sp = 20;
var sp1 = 2000;
var dx = 2;
var maxx = 580;
var minx = -8000;
var tim1;
var wnd1;

function init()
{
	var i;
	var w = minx * -1;
	document.getElementById('ipanel').style.width = w+'px';
	scrollPanel(maxx, minx);
	for (i=0; i<ars; i++)
	{ pic[i] = preload('images/pf'+i+'.jpg');
	}
}

function showURL(num)
{
  var props = 'width=800,height=520,screenX=40,screenY=40,dependent=no,status=yes,menubar=yes,toolbar=yes,directories=no,scrollbars=yes,location=yes,resizable=yes';
  var wnd = parent.wnd=window.open(url[num], 'port', props);
}

function showsFloat(num)
{ 
	var t = 200 + (num * 24);
	document.getElementById('float').style.top = t+'px';
	document.getElementById('fli').src = pic[num].src;	
	document.getElementById('flh3').innerHTML = nam[num];
	document.getElementById('flp').innerHTML = txt[num];
	document.getElementById('float').style.visibility = 'visible';
}

function hidesFloat()
{
	document.getElementById('float').style.visibility = 'hidden';
}

function scrollPanel(x, mx)
{
	if (x>mx)
	{ x -= dx;
	}
	else
	{ x = maxx;
	}
	document.getElementById('ipanel').style.left = x+'px';
	tim1 = setTimeout('scrollPanel('+x+','+mx+')', sp);
}

function na(n)
{
	var msg;
	switch (n)
	{	case 'nyl': { msg = 'This website is not yet live.'; break; }
		case 'res': { msg = 'This website is not in the public domain.'; break; }
		default:  msg = 'This website is temporarily unavailable.';
	}
	alert('Sorry. '+msg);
}
