var cms_menu = '';

init_menu();

function init_menu()
{
	if(typeof CMS_Menu == 'function')
	{
		cms_menu = new CMS_Menu();

		cms_menu.ids_menue_layer.push('menue_bereich');
		//cms_menu.ids_menue_layer.push('footer_menue_bereich');

		cms_menu.classnames_menu_item_layer.push('haupt_nav');
		cms_menu.classnames_menu_item_layer.push('sub_nav_1');
		//cms_menu.classnames_menu_item_layer.push('sub_nav_2');
		
		ajax_navigation.afterload_object_name	= 'cms_menu';
		//ajax_navigation.history_object_name		= 'cms_menu';
	}
	else
	{
		setTimeout('init_menu();', 100);
	}
}

/**
 * @author kbader
 * @version 1.0
 * Konfigurationsdatei für die Galeriefunktion. Die Aktivierung erfolgt durch den Funktionsaufruf.
 */
function initFCLyteBox()
{
	try 
	{
		var myLytebox = new LyteBox();
	
		/*** Start Global Configuration ***/
		myLytebox.theme				 =	'grey';	 // themes: grey (default), red, green, blue, gold
		myLytebox.hideFlash		 =	true;		 // controls whether or not Flash objects should be hidden
		myLytebox.outerBorder	 =	true;		 // controls whether to show the outer grey (or theme) border
		myLytebox.resizeSpeed	 =	10;			 // controls the speed of the image resizing (1=slowest and 10=fastest)
		myLytebox.maxOpacity	 =	50;			 // higher opacity = darker overlay, lower opacity = lighter overlay
		myLytebox.navType			 =	1;			 // 1 = "Prev/Next" buttons on top left and left (default), 2 = "<< prev | next >>" links next to image number
		myLytebox.autoResize	 =	true;		 // controls whether or not images should be resized if larger than the browser window dimensions
		myLytebox.doAnimations =	true;		 // controls whether or not "animate" Lytebox, i.e. resize transition between images, fade in/out effects, etc.
		myLytebox.borderSize	 = 	2;			 // if you adjust the padding in the CSS, you will need to update this variable -- otherwise, leave this alone...
		/*** End Global Configuration ***/
		
		/*** Configure Slideshow Options ***/
		myLytebox.slideInterval		 = 7000;	 // Change value (milliseconds) to increase/decrease the time between "slides" (10000 = 10 seconds)
		myLytebox.showNavigation	 = true;	 // true to display Next/Prev buttons/text during slideshow, false to hide
		myLytebox.showClose				 = true;	 // true to display the Close button, false to hide
		myLytebox.showDetails			 = true;	 // true to display image details (caption, count), false to hide
		myLytebox.showPlayPause		 = true;	 // true to display pause/play buttons next to close button, false to hide
		myLytebox.autoStart				 = false;	 // true to automatically start the slideshow, false to start manualy
		myLytebox.autoEnd					 = false;	 // true to automatically close Lytebox after the last image is reached, false to keep open
		myLytebox.autoRepeat			 = true;	 // true to automatically repeat the slideshow after the last image is reached (only possible if 'this.autoEnd = false'), false to end the slideshow
		myLytebox.pauseOnNextClick = false;	 // true to pause the slideshow when the "Next" button is clicked
		myLytebox.pauseOnPrevClick = true;	 // true to pause the slideshow when the "Prev" button is clicked
		/*** End Slideshow Configuration ***/
		
		myLytebox.initialize();
	}
	catch(e)
	{
		alert(e)
	}
}