Event.observe(window, 'load', function()
{
	newNavigator = new NavigatorCollection();
	newNavigator.getNavigator(
	{
		'id'				: "topmenu",
		'submenu'			: "downblind"
	});
	
});

function SwapImage(element)
{
	this.active = element;
}

SwapImage.prototype.swap = function(element, id, src)
{
	
	if (this.active.id != element.id)
	{
		element.className = 'active';
		
		document.getElementById(id).src = src;
		
		this.active.className = '';
		this.active = element;
	}
}

function showFaq(id)
{
	if (!$('faq_text_' + id).visible())
	{
		$('faq_text_' + id).show();
		$('faq_h1_' + id).src = '/images/min.gif';
		$('text').style.offsetHeight = ($('text').style.offsetHeight  + $('faq').style.offsetHeight ) +"px";

		var wndo = new dw_scrollObj('textframe', 'text');
	    wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
	    wndo.setUpScrollControls('scrollbar', true, 'v');
	    
	    wndo.setUpScrollControls('textframe');
	}
	else
	{
		$('faq_text_' + id).hide();
		$('faq_h1_' + id).src = '/images/plus.gif';
		$('text').style.offsetHeight  = ($('text').style.offsetHeight  + $('faq').style.offsetHeight ) +"px";

		var wndo = new dw_scrollObj('textframe', 'text');
	    wndo.setUpScrollbar("dragBar", "track", "v", 1, 1);
	    wndo.setUpScrollControls('scrollbar', true, 'v');
	    wndo.setUpScrollControls('textframe');
		
	}
	
}
