
//onload function
function generic()
{

	//initialise the docking boxes manager
	var manager = new dbxManager('main'); 	//session ID [/-_a-zA-Z0-9/]

	//create new docking boxes group
	var box1 = new dbxGroup(
		'Cat1', 		// container ID [/-_a-zA-Z0-9/]
		'vertical', 		// orientation ['vertical'|'horizontal']
		'7', 			// drag threshold ['n' pixels]
		'yes',			// 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']

		'maximieren', 		// word for "open", as in "open this box"
		'minimieren', 		// word for "close", as in "close this box"
		'Anklicken und ziehen, um die Box vertikal zu verschieben', // sentence for "move this box" by mouse
		'Box %toggle%', // pattern-match sentence for "(open|close) this box" by mouse
		'Benutze jetzt die Pfeiltasten, um die Box zu verschieben', // sentence for "move this box" by keyboard
		', oder verwende ENTER, um die Box zu %toggle%',  // 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 box2 = new dbxGroup(
		'Cat2', 		// container ID [/-_a-zA-Z0-9/]
		'vertical', 		// orientation ['vertical'|'horizontal']
		'7', 			// drag threshold ['n' pixels]
		'yes',			// 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']

		'maximieren', 		// word for "open", as in "open this box"
		'minimieren', 		// word for "close", as in "close this box"
		'Anklicken und ziehen, um die Box vertikal zu verschieben', // sentence for "move this box" by mouse
		'Box %toggle%', // pattern-match sentence for "(open|close) this box" by mouse
		'Benutze jetzt die Pfeiltasten, um die Box zu verschieben', // sentence for "move this box" by keyboard
		', oder verwende ENTER, um die Box zu %toggle%',  // 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 box3 = new dbxGroup(
		'Cat3', 		// container ID [/-_a-zA-Z0-9/]
		'vertical', 		// orientation ['vertical'|'horizontal']
		'7', 			// drag threshold ['n' pixels]
		'yes',			// 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']

		'maximieren', 		// word for "open", as in "open this box"
		'minimieren', 		// word for "close", as in "close this box"
		'Anklicken und ziehen, um die Box vertikal zu verschieben', // sentence for "move this box" by mouse
		'Box %toggle%', // pattern-match sentence for "(open|close) this box" by mouse
		'Benutze jetzt die Pfeiltasten, um die Box zu verschieben', // sentence for "move this box" by keyboard
		', oder verwende ENTER, um die Box zu %toggle%',  // pattern-match sentence-fragment for "(open|close) this box" by keyboard
		'%mytitle%  [%dbxtitle%]' // pattern-match syntax for title-attribute conflicts
		);		

};

//setup onload function
if(typeof window.addEventListener != 'undefined')
{
	//.. gecko, safari, konqueror and standard
	window.addEventListener('load', generic, false);
}
else if(typeof document.addEventListener != 'undefined')
{
	//.. opera 7
	document.addEventListener('load', generic, false);
}
else if(typeof window.attachEvent != 'undefined')
{
	//.. win/ie
	window.attachEvent('onload', generic);
}

//** remove this condition to degrade older browsers
else
{
	//.. mac/ie5 and anything else that gets this far
	
	//if there's an existing onload function
	if(typeof window.onload == 'function')
	{
		//store it
		var existing = onload;
		
		//add new onload handler
		window.onload = function()
		{
			//call existing onload function
			existing();
			
			//call generic onload function
			generic();
		};
	}
	else
	{
		//setup onload function
		window.onload = generic;
	}
}

