window.addEvent('domready', function()
{
	dbug.enable();
	nsPrgsBar.enable(Config.prgsBar);//disable();

	if ($('frm_faq'))
		new nsFormExt(Config.Faq).initForm();
	
	if ($('frm_feedback'))
		new nsFormExt(Config.Feedback).initForm();


/*
	var toTargetElm  = $('toTarget');
	var currentURL = window.location.href;
//	alert(currentURL);
	if (toTargetElm && !currentURL.test(/\#/)) {

		var scroll = new Fx.Scroll(window, {
			wait:false, duration: 500,
			transition: Fx.Transitions.Quint.easeInOut
		});

		toTargetElm.addEvent('click', function(e) {
			if (e) new Event(e).stop();
			scroll.toElement('findTarget');
		});

		toTargetElm.fireEvent('click');
	}
*/
	var findTargetElm  = $('findTarget');
	var currentURL = window.location.href;
        
	if (findTargetElm && !currentURL.test(/\#/)) {
		var scroll = new Fx.Scroll(window, {
			wait:false, duration: 500,
			transition: Fx.Transitions.Quint.easeInOut
		});
		scroll.toElement('findTarget');
		//scroll.stop();
	}
});
