function load_dbx()
{

	//initialise the docking boxes manager
	var manager = new dbxManager('main'); 	//session ID [/-_a-zA-Z0-9/]


	//create new docking boxes group
	var sidebar = new dbxGroup(
		'sidebar1', 		// container ID [/-_a-zA-Z0-9/]
		'vertical', 		// orientation ['vertical'|'horizontal']
		'7', 			// drag threshold ['n' pixels]
		'no',			// restrict drag movement to container axis ['yes'|'no']
		'10', 			// animate re-ordering [frames per transition, or '0' for no effect]
		'yes', 			// include open/close toggle buttons ['yes'|'no']
		'open', 		// default state ['open'|'closed']

		'open', 		// word for "open", as in "open this box"
		'close', 		// word for "close", as in "close this box"
		'click-down and drag to move this box', // sentence for "move this box" by mouse
		'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
		'use the arrow keys to move this box', // sentence for "move this box" by keyboard
		', or press the enter key to %toggle% it',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
		'%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
		);
		//create new docking boxes group
	var sidebar_right = new dbxGroup(
		'sidebar2', 		// container ID [/-_a-zA-Z0-9/]
		'vertical', 		// orientation ['vertical'|'horizontal']
		'7', 			// drag threshold ['n' pixels]
		'no',			// restrict drag movement to container axis ['yes'|'no']
		'10', 			// animate re-ordering [frames per transition, or '0' for no effect]
		'yes', 			// include open/close toggle buttons ['yes'|'no']
		'open', 		// default state ['open'|'closed']

		'open', 		// word for "open", as in "open this box"
		'close', 		// word for "close", as in "close this box"
		'click-down and drag to move this box', // sentence for "move this box" by mouse
		'click to %toggle% this box', // pattern-match sentence for "(open|close) this box" by mouse
		'use the arrow keys to move this box', // sentence for "move this box" by keyboard
		', or press the enter key to %toggle% it',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
		'%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
		);



};
function clearValue(field) {
	if (field.value != "") {
		field.value = "";
	}
}
function recallValue(field) {
	if (field.value == "") {
		field.value = "Search...";
	}
}

function mytheme_expandit(id) {
	myexpandit(id);
	updatecook(id);
} 

function mytheme_menuonload() {
	var expandmenu = getcook();
	myexpandit(expandmenu);
	updatecook(expandmenu);
}

function updatecook(itemmenu){
	if (document.getElementById(itemmenu).style.display!='none') {
		var expireDate = new Date;
		expireDate.setMinutes(expireDate.getMinutes()+10);
		document.cookie = "skidmarkMenu=" + itemmenu + "; expires=" + expireDate.toGMTString()+";path=/";
	} else {
		clearcook();
	}
}

function clearcook(){
	var expireDate = new Date;
	expireDate.setMinutes(expireDate.getMinutes()+10);
	document.cookie = "skidmarkMenu=" + "0" + "; expires=" + expireDate.toGMTString()+";path=/";
}

function getcook() {
	var search = "skidmarkMenu=";
	var offset = document.cookie.indexOf(search);
	if(offset != -1) {
		offset += search.length;
		var end = document.cookie.indexOf(";", offset);
		if(end == -1) {
			end = document.cookie.length;
			return unescape(document.cookie.substring(offset, end));
		}
	}
}
