Keep getting error attaching carousel to layout cell

Hi all,

…using basic functionality from examples:

	var myLayout = new dhtmlXLayoutObject({
		parent: document.body,
		pattern: "3T"
		skin: "dhx_skyblue"
	});

myCarousel = myLayout.cells("c").attachCarousel({
			item_width: 240,
			item_height: 280,
			offset_item: 30,
			offset_left: 30,
			offset_top: 15
		});

And it keep throwing errors:
Uncaught TypeError: Cannot read property ‘evs’ of undefined
at new dhtmlXCarousel (dhtmlxcarousel.js:9)
at window.dhtmlXLayoutCell.dhtmlXCellObject.attachCarousel (dhtmlxcarousel.js:9)

Example also at fendrikat.com/demo1/ , does anyone by an chance have a thought on how to fix please ?

Thanks so much,

Frank

…found it, was my mistake - used dhtmlx version 4.x and documentation from 5.x, now working fine…