// ikb.js

function TinyMCEURL() {
	return 'tinymce.moxiecode.com/';
}

function TinyMCELink() {
	return EL('TinyMCE', TinyMCEURL());
}

function getTinyMCEDocURL (p_path) {

	return 'http://wiki.moxiecode.com/index.php/TinyMCE:' + (p_path == null ? 'Index' : p_path);
}

function TinyMCEDocLink (p_text, p_path, p_extra) {

	return EL (
		(p_text == null ? 'Online Documentation' : p_text)
	,	getTinyMCEDocURL(p_path)
	,	p_extra
	);
}

function getIKBLink() {
	return ELCOM('iKnowBase', 'iknowbase');
}

function getIKBLinks() {

	return UL (
		LEL('Local iKnowBase version information', 'localhost/ikbViewer')
	+	LIL('Installation Details Form', '../../oracle/ias/installation_details.htm')
	+	PLI(getEvitaLink())
	+	LI(getIKBLink())
	+	PLEL('FreeMarker', 'www.freemarker.org/')
	+	PLI (
			TinyMCELink()
		+	UL (
				LI(TinyMCEDocLink())
			)
		)
	+	PLI (
			getOraSubLink('Oracle Fusion Middleware', 'products/middleware/index.html')
		+	UL (
				LI (
					getPortalCenterLink('Portal')
				+	UL (
						LI (
							getOTNSubLink (
								'Oracle SOA Suite and Enterprise Portals - Enhance Employee Productivity with Process-Centric Portals'
							,	'products/ias/portal/pdf/oracle_soa_suite_portals.pdf'
							)
						)
					)
				)
			)
		)
	+	PLI(getOraSubLink('Oracle Database', 'database/index.html'))
	+	PLI (
			getOramagLink()
		+	UL (
				LI(getOramagSubLink('Process Portals: A New Way to See Business', '06-mar/o26portal.html'))
			)
		)
	+	PLI (
			getOraSubLink('Oracle Partner Network', 'partners/index.html')
		+	UL (
				LEL('e-vita Partner info', 'solutions.oracle.com/partners/evita')
			+	LEL('Oracle ACE Director Eirik Lygre', 'apex.oracle.com/pls/otn/f?p=19297:4:2717213701861978::NO:4:P4_ID:13')
			)
		)
	);
}

function writeIKBLinks() {
	p(getIKBLinks());
}

function writeSectionMoreInfoIKB() {
	writeSectionMoreInfo();
	writeIKBLinks();
}

function writeSectionVerifyIKB (p_name, p_port, p_path) {

	writeSection('verify', 'Verifying installation');

	writeOL (
		LI (
			'Go to the ' + p_name + ' homepage (e.g. '
		+	EL (
				null
			,	'http://localhost' + (p_port == null ? '' : ':' + p_port) + p_path
			)
		+	') using your web browser'
		)
	+	LI('Log in as orcladmin')
	+	LI('Click on Publishing')
	+	LI('Publish a news article')
	+	LI('View the article')
	+	LI('Delete the article')
	+	LI('Add a group, e.g. Disney')
	+	LI('Add a user, e.g. Donald Duck')
	+	LI('Include user Donald Duck in group Disney')
	);
}

