

Ext.onReady(function(){
    var tb = new Ext.Toolbar();
    tb.render('toolbar');
	    tb.add({
	        text: 'Home',
			url: 'index.cfm',
			handler:onItemClick
	    });
		tb.addSeparator();
		tb.add({
	        text: 'Courses',
			url: 'index.cfm?event=showCourses',
			handler:onItemClick
	    });
	    tb.addSeparator();
	    tb.add({
	        text: 'Course Builder',
			url: 'index.cfm?event=showCourseBuilder',
			handler:onItemClick
	    });
	    tb.addSeparator();
	    tb.add({
	        text: 'Calendar of Events',
			url: 'index.cfm?event=showCalendar',
			handler:onItemClick
	    });
	    tb.addSeparator();
	    tb.add({
	        text: 'Training Partners',
			url: 'index.cfm?event=showPartners',
			handler:onItemClick
	    });
		tb.addSeparator();
	    tb.add({
	        text: 'Contact Us',
			url: 'index.cfm?event=emailform',
			handler:onItemClick
	    });
	    
    function onItemClick(item){
		location.href = item.url;
    }
    
    function displayWindow(){
    	var riWindow = new Ext.Window({
		animateTarget:'infoWindow',
		modal:true,
		constrain :true,
        width: 400,
        height:400,
		title:'Course Description'});

	riWindow.show();
    }
});



