/*
 * File: panelControl.js
 * Author: David J. Bradshaw
 *         dave.bradshaw@conchango.com
 * Date: 2004-07-14
 * Version: 1.1
 *
 * Desc: Hide/Show panels on the page. Panels must include the dynPanel class and an ID.
 *       Any panels that you want to be removed when a dynamic panel appears should be
 *       surrounded with <div id="dynBase"> ... </div>
 *
 * Dependancies:
 *			xBrowerFuncs.js
 *			panelControl.css
 *
 * (c) Conchango PLC 2004
 *     www.conchango.com
 */

//Include the style sheet to load the boxes in hidden
document.write('\n\t\t<link rel="stylesheet" type="text/css" href="/en/gb/css/panelcontrol.css">\n');

var panelControl = new Object();
panelControl.base = 'dynBase';
panelControl.current = panelControl.base;

panelControl.select = function (id)
{
	this._hide();
	getElementStyle(id).visibility = _visible;
	this.current = id;
}

panelControl.hide = function ()
{
	if (getElement(this.base))
		this.select(this.base);
	else
		this._hide();
}

panelControl._hide = function ()
{
	if (getElement(this.current))
		getElementStyle(this.current).visibility = _hidden;
}

function newwindow(w,h,webaddress) {
var viewimageWin = window.open(webaddress,'New_Window','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h);
}


