// Have a console no matter what...
if (typeof console == 'undefined')
{ console = { log: window.alert }; }

	function active_categories_navigation()	{
//			alert('hello');
//						document.getElementById('snh0sc1').getElementByTagName('img').style.border = 'white';
//			document.getElementById('arrowOn-snh1sc1').style.display = 'block';
	}

	// -- set 	
	function parseLinks() 
	{
		for(var i = 0; i < document.getElementsByTagName('a').length; i++) 
		{
			var node = document.getElementsByTagName('a')[i];
			if (node.className.match(/^flash_link$/)
				||node.className.match(/^flash_link\ /)
				||node.className.match(/\ flash_link$/)
				||node.className.match(/\ flash_link\ /)) 
			{
				node.href = "javascript:link('" + node.getAttribute('href') + "')";
			}
		}
	}	


	
	// -- init navigation / parsing linkelements
	function initNavigation()
	{
		parseLinks();	
	}
	
	
	// used from html and flash
	function link(newRequestURL)
	{
		externalFlashUpdate(newRequestURL);
	}	

	// updating the flash Object
	function externalFlashUpdate(newRequestURL)
	{
		flashObject().newRequestUrl(newRequestURL);
	}	
	
	// get flashObject
	function flashObject()
	{
		return document.getElementById('Vileda');
	}	
	
	function initialize( name ) {
	    var isIE = navigator.appName.indexOf("Microsoft") != -1;
//		alert('isIE: ' + isIE + ' ' + window[name]);
	    flash = (isIE) ? window[name] : document[name];
	}
	
	function selectRoom( id ) {
//	    initialize('Vileda');
	    $('Vileda').selectRoom(id);
	}
	
