function faq_module(  ){
	this.CurrentOpen = null;
}

faq_module.Instance = null;

faq_module.Get = function( ){
	if ( faq_module.Instance == null ){
		faq_module.Instance = new faq_module();
	}
	return faq_module.Instance;
}

faq_module.prototype.Open = function( id, jump ){
	if ( this.CurrentOpen != id ){
		if ( $('#' + this.CurrentOpen ).find( '#' + id).length == 0 ){
			$( '#' + id ).stop();		
			this.Close();
			this.CurrentOpen = id;
		}
		$( '#' + id ).show( 1000 );
		if ( jump ) {
			NavigateToElement( '#' + id );
		}
		this.CurrentOpen = id;
	}
}

faq_module.prototype.Close = function( id ){
	if ( this.CurrentOpen != null ){
		$( '#' + this.CurrentOpen ).hide();
	}
}

function faq_open( id, jump ){
	faq_module.Get().Open( 'kb_div_' + id, jump == true ) ;
}

function faq_close( ){
	faq_module.Get().Close();
}

