var morelist = "<table><tr><td valign=top width=80><a href=\"javascript:OpenCity('GB','barnsley')\">Barnsley</a><br /><a href=\"javascript:OpenCity('GB','chatham')\">Chatham</a><br /><a href=\"javascript:OpenCity('GB','christchurch')\">Christchurch</a><br /><a href=\"javascript:OpenCity('GB','cornwall')\">Cornwall</a><br /><a href=\"javascript:OpenCity('GB','dorking')\">Dorking</a><br /><a href=\"javascript:OpenCity('GB','dorset')\">Dorset</a><br /><a href=\"javascript:OpenCity('GB','douglas')\">Douglas</a><br /><a href=\"javascript:OpenCity('GB','dover')\">Dover</a><br /><a href=\"javascript:OpenCity('GB','dudley')\">Dudley</a><br /><a href=\"javascript:OpenCity('GB','dunstable')\">Dunstable</a><br /><a href=\"javascript:OpenCity('GB','ealing')\">Ealing</a><br /><a href=\"javascript:OpenCity('GB','eastbourne')\">Eastbourne</a><br /><a href=\"javascript:OpenCity('GB','eastcote')\">Eastcote</a><br /><a href=\"javascript:OpenCity('GB','east sussex')\">East Sussex</a><br /><a href=\"javascript:OpenCity('GB','egham')\">Egham</a><br /><a href=\"javascript:OpenCity('GB','falmouth')\">Falmouth</a><br /><a href=\"javascript:OpenCity('GB','finchley')\">Finchley</a><br /><a href=\"javascript:OpenCity('GB','newcastle under lyme')\">Newcastle Under Lyme</a><br /><a href=\"javascript:OpenCity('GB','newcastle upon tyne')\">Newcastle Upon Tyne</a><br /><a href=\"javascript:OpenCity('GB','newquay')\">Newquay</a><br /><a href=\"javascript:OpenCity('GB','northampton')\">Northampton</a><br /><a href=\"javascript:OpenCity('GB','northumberland')\">Northumberland</a><br /></td><td valign=top width=80><a href=\"javascript:OpenCity('GB','norwich')\">Norwich</a><br /><a href=\"javascript:OpenCity('GB','nottingham')\">Nottingham</a><br /><a href=\"javascript:OpenCity('GB','okehampton')\">Okehampton</a><br /><a href=\"javascript:OpenCity('GB','oldham')\">Oldham</a><br /><a href=\"javascript:OpenCity('GB','oxford')\">Oxford</a><br /><a href=\"javascript:OpenCity('GB','penrith')\">Penrith</a><br /><a href=\"javascript:OpenCity('GB','peterborough')\">Peterborough</a><br /><a href=\"javascript:OpenCity('GB','plymouth')\">Plymouth</a><br /><a href=\"javascript:OpenCity('GB','poole')\">Poole</a><br /><a href=\"javascript:OpenCity('GB','portsmouth')\">Portsmouth</a><br /><a href=\"javascript:OpenCity('GB','preston')\">Preston</a><br /><a href=\"javascript:OpenCity('GB','richmond')\">Richmond</a><br /><a href=\"javascript:OpenCity('GB','ripley')\">Ripley</a><br /><a href=\"javascript:OpenCity('GB','rochdale')\">Rochdale</a><br /><a href=\"javascript:OpenCity('GB','rotherham')\">Rotherham</a><br /><a href=\"javascript:OpenCity('GB','rugby')\">Rugby</a><br /><a href=\"javascript:OpenCity('GB','salisbury')\">Salisbury</a><br /><a href=\"javascript:OpenCity('GB','scunthorpe')\">Scunthorpe</a><br /><a href=\"javascript:OpenCity('GB','sevenoaks')\">Sevenoaks</a><br /><a href=\"javascript:OpenCity('GB','sheffield')\">Sheffield</a><br /><a href=\"javascript:OpenCity('GB','shepperton')\">Shepperton</a><br /><a href=\"javascript:OpenCity('GB','shrewsbury')\">Shrewsbury</a><br /><a href=\"javascript:OpenCity('GB','slough')\">Slough</a><br /></td><td valign=top width=80><a href=\"javascript:OpenCity('GB','solihull')\">Solihull</a><br /><a href=\"javascript:OpenCity('GB','somerset')\">Somerset</a><br /><a href=\"javascript:OpenCity('GB','southampton')\">Southampton</a><br /><a href=\"javascript:OpenCity('GB','southport')\">Southport</a><br /><a href=\"javascript:OpenCity('GB','st. albans')\">St. Albans</a><br /><a href=\"javascript:OpenCity('GB','stafford')\">Stafford</a><br /><a href=\"javascript:OpenCity('GB','stansted')\">Stansted</a><br /><a href=\"javascript:OpenCity('GB','stratford upon avon')\">Stratford upon Avon</a><br /><a href=\"javascript:OpenCity('GB','stevenage')\">Stevenage</a><br /><a href=\"javascript:OpenCity('GB','stockport')\">Stockport</a><br /><a href=\"javascript:OpenCity('GB','stockton')\">Stockton</a><br /><a href=\"javascript:OpenCity('GB','stoke on trent')\">Stoke on Trent</a><br /><a href=\"javascript:OpenCity('GB','suffolk')\">Suffolk</a><br /><a href=\"javascript:OpenCity('GB','surrey')\">Surrey</a><br /><a href=\"javascript:OpenCity('GB','sutton')\">Sutton</a><br /><a href=\"javascript:OpenCity('GB','swansea')\">Swansea</a><br /><a href=\"javascript:OpenCity('GB','swindon')\">Swindon</a><br /><a href=\"javascript:OpenCity('GB','tamworth')\">Tamworth</a><br /><a href=\"javascript:OpenCity('GB','taunton')\">Taunton</a><br /><a href=\"javascript:OpenCity('GB','telford')\">Telford</a><br /><a href=\"javascript:OpenCity('GB','tewkesbury')\">Tewkesbury</a><br /><a href=\"javascript:OpenCity('GB','torquay')\">Torquay</a><br /></td><td valign=top width=80><a href=\"javascript:OpenCity('GB','tunbridge wells')\">Tunbridge Wells</a><br /><a href=\"javascript:OpenCity('GB','ullswater')\">Ullswater</a><br /><a href=\"javascript:OpenCity('GB','wakefield')\">Wakefield</a><br /><a href=\"javascript:OpenCity('GB','wallingford')\">Wallingford</a><br /><a href=\"javascript:OpenCity('GB','warrington')\">Warrington</a><br /><a href=\"javascript:OpenCity('GB','warwick')\">Warwick</a><br /><a href=\"javascript:OpenCity('GB','warwickshire')\">Warwickshire</a><br /><a href=\"javascript:OpenCity('GB','washington')\">Washington</a><br /><a href=\"javascript:OpenCity('GB','west drayton')\">West Drayton</a><br /><a href=\"javascript:OpenCity('GB','west midlands')\">West Midlands</a><br /><a href=\"javascript:OpenCity('GB','west sussex')\">West Sussex</a><br /><a href=\"javascript:OpenCity('GB','weston super mare')\">Weston Super Mare</a><br /><a href=\"javascript:OpenCity('GB','wigan')\">Wigan</a><br /><a href=\"javascript:OpenCity('GB','winchester')\">Winchester</a><br /><a href=\"javascript:OpenCity('GB','windermere')\">Windermere</a><br /><a href=\"javascript:OpenCity('GB','windsor')\">Windsor</a><br /><a href=\"javascript:OpenCity('GB','woburn')\">Woburn</a><br /><a href=\"javascript:OpenCity('GB','wokingham')\">Wokingham</a><br /><a href=\"javascript:OpenCity('GB','wolverhampton')\">Wolverhampton</a><br /><a href=\"javascript:OpenCity('GB','woodstock')\">Woodstock</a><br /><a href=\"javascript:OpenCity('GB','worcester')\">Worcester</a><br /><a href=\"javascript:OpenCity('GB','worksop')\">Worksop</a><br /></td></tr></table>";


// Main background color
	if (typeof fcolor == 'undefined') { var fcolor = "#B1B3E3";}
	
// Border color
	if (typeof backcolor == 'undefined') { var backcolor = "#333399";}
	
	
// Text color
	if (typeof textcolor == 'undefined') { var textcolor = "#000000";}
	
// caption text color
	if (typeof capcolor == 'undefined') { var capcolor = "#FFFFFF";}
	
// Color of "Close" when using Sticky
	if (typeof closecolor == 'undefined') { var closecolor = "#9999FF";}
	
	
// Width of the popups in pixels
	if (typeof width == 'undefined') { var width = "320";}
	
// border width
// 1-3 pixels is typical
	if (typeof border == 'undefined') { var border = "1";}
	
	
// X Offset
	if (typeof offsetx == 'undefined') { var offsetx = 10;}
	
// Y Offset
	if (typeof offsety == 'undefined') { var offsety = 10;}
	


ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false


if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
	} else {
		ie5 = false; }
} else {
	ie5 = false;
}

var x = 0;
var y = 0;
var snow = 0;
var sw = 0;
var cnt = 0;
var dir = 1;
var tr = 1;
if ( (ns4) || (ie4) ) {
	if (ns4) over = document.overDiv
	if (ie4) over = overDiv.style
	document.onmousemove = mouseMove
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
}

// Public functions to be used on pages.

// Simple popup right
function drs(text) {
	dts(1,text);
}

// Caption popup right
function drc(text, title) {
	dtc(1,text,title);
}

// Sticky caption right
function src(text,title) {
	stc(1,text,title);
}

// Simple popup left
function dls(text) {
	dts(0,text);
}

// Caption popup left
function dlc(text, title) {
	dtc(0,text,title);
}

// Sticky caption left
function slc(text,title) {
	stc(0,text,title);
}

// Simple popup center
function dcs(text) {
	dts(2,text);
}

// Caption popup center
function dcc(text, title) {
	dtc(2,text,title);
}

// Sticky caption center
function scc(text,title) {
	stc(2,text,title);
}

// Clears popups if appropriate
function nd() {
	if ( cnt >= 1 ) { sw = 0 };
	if ( (ns4) || (ie4) ) {
		if ( sw == 0 ) {
			snow = 0;
			hideObject(over);
		} else {
			cnt++;
		}
	}
}

// Non public functions. These are called by other functions etc.

// Simple popup
function dts(d,text) {
	txt = "<TABLE width="+width+" BORDER=0 CELLPADDING="+border+" CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><tr><TD><TABLE width=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><tr><TD><FONT FACE=\"Arial,Helvetica\" COLOR=\""+textcolor+"\" SIZE=\"-2\">"+text+"</font></td></tr></table></td></tr></table>"
	layerWrite(txt);
	dir = d;
	disp();
}

// Caption popup
function dtc(d,text, title) {
	txt = "<TABLE width="+width+" BORDER=1 bordercolor=\"#21225D\" CELLPADDING=0 CELLSPACING=0><tr><TD><TABLE width=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><tr><TD><SPAN ID=\"PTT\"><b><FONT COLOR=\""+capcolor+"\">"+title+"</font></b></SPAN></td></tr></table><TABLE width=100% BORDER=0 CELLPADDING=2 CELLSPACING=0><tr><td bgcolor=\"" +fcolor+ "\"><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\">"+text+"</font><SPAN></td></tr></table></td></tr></table>"
	layerWrite(txt);
	dir = d;
	disp();
}

// Sticky
function stc(d,text, title) {
	sw = 1;
	cnt = 0;
	txt = "<TABLE width="+width+" BORDER=1 bordercolor=\"#21225D\" CELLPADDING=0 CELLSPACING=0><tr><TD><TABLE width=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\""+backcolor+"\"><tr><TD><SPAN ID=\"PTT\"><b><FONT COLOR=\""+capcolor+"\">"+title+"</font></b></SPAN></td><td align=right><A style=\"cursor:hand\" onClick=\"cClick();\" alt=\"Close Box\"><img src=\'huk-os-close.gif\' width=36 height=12 border=0></a></td></tr></table><TABLE width=100% BORDER=0 CELLPADDING=2 CELLSPACING=0><tr><td bgcolor=\"" +fcolor+ "\"><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\">"+text+"</font><SPAN></td></tr></table></td></tr></table>"
	layerWrite(txt);
	dir = d;
	disp();
	snow = 0;
}

// Common calls
function disp() {
	if ( (ns4) || (ie4) ) {
		if (snow == 0) 	{
			if (dir == 2) { // Center
				moveTo(over,x+offsetx-(width/2),y+offsety);
			}
			if (dir == 1) { // Right
				moveTo(over,x+offsetx,y+offsety);
			}
			if (dir == 0) { // Left
				moveTo(over,x-offsetx-width,y+offsety);
			}
			showObject(over);
			snow = 1;
		}
	}
// Here you can make the text goto the statusbar.
}

// Moves the layer
function mouseMove(e) {
	if (ns4) {x=e.pageX; y=e.pageY;}
	if (ie4) {x=event.x; y=event.y;}
	if (ie5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (snow) {
		if (dir == 2) { // Center
			moveTo(over,x+offsetx-(width/2),y+offsety);
		}
		if (dir == 1) { // Right
			moveTo(over,x+offsetx,y+offsety);
		}
		if (dir == 0) { // Left
			moveTo(over,x-offsetx-width,y+offsety);
		}
	}
}

// The Close onMouseOver function for Sticky
function cClick() {
	hideObject(over);
	sw=0;
}

// Writes to a layer
function layerWrite(txt) {
        if (ns4) {
                var lyr = document.overDiv.document
                lyr.write(txt)
                lyr.close()
        }
        else if (ie4) document.all["overDiv"].innerHTML = txt
		if (tr) { trk(); }
}

// Make an object visible
function showObject(obj) {
        if (ns4) obj.visibility = "show"
        else if (ie4) obj.visibility = "visible"
}

// Hides an object
function hideObject(obj) {
        if (ns4) obj.visibility = "hide"
        else if (ie4) obj.visibility = "hidden"
}

// Move a layer
function moveTo(obj,xL,yL) {
        obj.left = xL
        obj.top = yL
}

function trk() {

	tr = 0;
}