
var ECWToolbar1 = new NCSToolbar("UID_VIEW_TOOLBAR", null, false, -1);
ECWToolbar1.addButton("Pan around the image by click-dragging the hand on the image",
  "/rdic-images/images/ecwtoolbar/roam.png", "/rdic-images/images/ecwtoolbar/roamSelect.png", true, ECWToolbarCB, "UID_VIEW_PAN");
ECWToolbar1.addButton("Zoom in or out of the image interactively by click-dragging the magnifier on the image",
  "/rdic-images/images/ecwtoolbar/zoom.png", "/rdic-images/images/ecwtoolbar/zoomSelect.png", true, ECWToolbarCB, "UID_VIEW_ZOOM");
ECWToolbar1.addButton("Zoom into the image by click-dragging a zoom box over the image",
  "/rdic-images/images/ecwtoolbar/zoombox.png", "/rdic-images/images/ecwtoolbar/zoomBoxSelect.png", true, ECWToolbarCB, "UID_VIEW_ZOOMBOX");
ECWToolbar1.addSpace ("SPACE", "UID_VIEW_SPACE1");
ECWToolbar1.addButton("Fit the image width in the window",
  "/rdic-images/images/ecwtoolbar/width.png", "/rdic-images/images/ecwtoolbar/widthSelect.png", false, ECWToolbarCB, "UID_VIEW_WIDTH");
ECWToolbar1.addButton("Fit the entire image in the window",
  "/rdic-images/images/ecwtoolbar/fullextents.png", "/rdic-images/images/ecwtoolbar/fullextentsSelect.png", false, ECWToolbarCB, "UID_VIEW_RESET");

if (clickmapbuilder == true)
{
	ECWToolbar1.addSpace ("SPACE", "UID_VIEW_SPACE1");

	ECWToolbar1.addButton("Click pointer to activate linked areas on image",
						  "/rdic-images/images/ecwtoolbar/pointer.png", 
						  "/rdic-images/images/ecwtoolbar/pointerSelect.png", true, 
						  ECWToolbarCB, "UID_VIEW_POINTER");  
	
	ECWToolbar1.addButton("Define rectangle",
						  "/rdic-images/images/ecwtoolbar/square.png",
						  "/rdic-images/images/ecwtoolbar/squareSelect.png", true,
						  ECWToolbarCB, "UID_ANNOT_SQUARE");

	ECWToolbar1.addButton("Define polygon",
						  "/rdic-images/images/ecwtoolbar/polygon.png",
						  "/rdic-images/images/ecwtoolbar/polygonSelect.png", true,
						  ECWToolbarCB, "UID_ANNOT_POLYGON");
	
	ECWToolbar1.addButton("Cut",
						  "/rdic-images/images/ecwtoolbar/cut.png",
						  "/rdic-images/images/ecwtoolbar/cutSelect.png", false,
						  ECWToolbarCB, "UID_VIEW_CUT");
}

ECWToolbar1.addSpace ("SPACE", "UID_VIEW_SPACE1");
ECWToolbar1.addButton("Print this page",
  "/rdic-images/images/ecwtoolbar/printer.png", "/rdic-images/images/ecwtoolbar/printerSelect.png", false, ECWToolbarCB, "UID_PRINT");  
//ECWToolbar1.addSpace ("SPACE", "UID_VIEW_SPACE1");
//ECWToolbar1.addPopdownCombo ("Image : ", imageArray, ECWToolbarCB, "UID_IMAGE_COMBO");

document.writeln(ECWToolbar1.rebuild());
ECWToolbar1.getTable().border=0;
ECWToolbar1.getTable().cellSpacing=2;
ECWToolbar1.getTable().cellPadding=0;
