$().ready(function(){
	
	/* togglepane */
	if(typeof(openit) === 'undefined') { openit = false; }
	$('div.accordion').initTogglePane({
		 headerClassClosed: 'closed'
		,startOpened: openit /* open whatever pane */
	});
	
	/* cluetip */
	$('a.cluetip').cluetip({
		 dropShadow: false
		,showTitle: false
		,local: true
		,width: 200
		,cursor: 'none'
		,positionBy: 'fixed'
		,topOffset: 6   /* in FF this should be 4 */
	});
	
	/* flash startmenu, middle of page */
	$('#flash_startmenu').flash({ 
		src: 'fileadmin/img/wsb_start_170108_4.swf',
		width: 573,
		height: 189,
		wmode: "transparent",
		allowScriptAccess: "always"
	},
	{
		update: false
	});
	
	/* flash header */
	$('#fl_layer').flash({ 
		src: 'fileadmin/img/wsb_header_09_transparent.swf',
		width: 384,
		height: 191,
		wmode: "transparent"
	},
	{
		update: false
	});
	
});

// memorizes initialize() event of map upon forst opening the pane
var gmapinit = 0;