/************************************************************
ctcmnu.js 

The main ctc-tech menu functions
*************************************************************/

/** idiom to include the ctcutils **/
document.write("<script src=\"" + jspath +"js/ctcmodern.js\" type=\"text/javascript\"></script>");

function ctctitle(context) {
  jtitle("CTC Technology", "enquiries@ctc-tech.biz", context,
  	"Home", "./index.html",
  	"Technology", "./technology/technology.html",
  	"Case Histories", "./testimonials/ctc.html",
  	"Support", "./support/index.html",
  	"Services", "./services/softdev.html"
  	);
}

// do not need wrapper, as menu is absolutely positioned
function homemenu() {
	ctctitle("Home");

	addMenuItem("About CTC-Technology", "./index.html");
	addMenuItem("History", "./technology/history.html");
	addMenuItem("Try Before You Buy", "./technology/trynbuy.html");
	
	startContent();
}

function testmenu() {
	ctctitle("Case Histories");

	addMenuItem("CTC Technology", "./testimonials/ctc.html");
	addMenuItem("Small Business", "./testimonials/smallbusiness.html");
	addMenuItem("Network Group", "./testimonials/networkgroup.html");
	addMenuItem("Web Collaboration", "./testimonials/collaboration.html");

	startContent();
}

function techmenu() {
	ctctitle("Technology");

	addMenuItem("Overview", "./technology/technology.html");
	addMenuItem("Persistence Model", "./technology/persistence.html");
	addMenuItem("Model Driven Generation", "./technology/mdgen.html");
	addMenuItem("Model Driven Application", "./technology/mdapp.html");
	addMenuItem("Putting It Together", "./technology/together.html");
	addMenuItem("Customization", "./technology/customization.html");

	startContent();
}

function supportmenu() {
	ctctitle("Support");

	addMenuItem("Support", "./support/index.html");
	addMenuItem("Latest News", "./support/news.html");
	addMenuItem("Your Application", "./support/webapp.html");
	addMenuItem("Downloads", "./support/downloads.html");
	addMenuItem("FAQ", "./support/faq.html");

	startContent();
}

function servicesmenu() {
	ctctitle("Services");

	addMenuItem("Software Development", "./services/softdev.html");
	addMenuItem("Website Development", "./services/webdev.html");
	addMenuItem("Tech Support", "./services/support.html");
	addMenuItem("Licenses", "./services/licenses.html");

	startContent();
}
