1(function()
2{
3	// Adds Sitemap shapes
4	Sidebar.prototype.addSitemapPalette = function()
5	{
6		var s = 'html=1;strokeColor=none;fillColor=#0079D6;labelPosition=center;verticalLabelPosition=middle;verticalAlign=top;align=center;fontSize=12;outlineConnect=0;spacingTop=-6;fontColor=#FFFFFF;sketch=0;shape=mxgraph.sitemap.';
7
8		// Space savers
9		var sb = this;
10		var gn = 'mxgraph.sitemap';
11		var dt = '';
12
13		var scale = 0.2;
14		var w = 600 * scale;
15		var h = 350 * scale;
16		this.setCurrentSearchEntryLibrary('sitemap');
17
18		var fns =
19		[
20			this.createVertexTemplateEntry(s + 'page;',
21					w, h, 'Page', 'Page', null, null, this.getTagsForStencil(gn, 'page', dt).join(' ')),
22			this.createVertexTemplateEntry(s + 'about_us;',
23					w, h, 'About us', 'About us', null, null, this.getTagsForStencil(gn, 'about', dt).join(' ')),
24			this.createVertexTemplateEntry(s + 'audio;',
25					w, h, 'Audio', 'Audio', null, null, this.getTagsForStencil(gn, 'audio', dt).join(' ')),
26			this.createVertexTemplateEntry(s + 'biography;',
27					w, h, 'Biography', 'Biography', null, null, this.getTagsForStencil(gn, 'biography', dt).join(' ')),
28			this.createVertexTemplateEntry(s + 'blog;',
29					w, h, 'Blog', 'Blog', null, null, this.getTagsForStencil(gn, 'blog', dt).join(' ')),
30			this.createVertexTemplateEntry(s + 'calendar;',
31					w, h, 'Calendar', 'Calendar', null, null, this.getTagsForStencil(gn, 'calendar', dt).join(' ')),
32			this.createVertexTemplateEntry(s + 'chart;',
33					w, h, 'Chart', 'Chart', null, null, this.getTagsForStencil(gn, 'chart', dt).join(' ')),
34			this.createVertexTemplateEntry(s + 'chat;',
35					w, h, 'Chat', 'Chat', null, null, this.getTagsForStencil(gn, 'chat', dt).join(' ')),
36			this.createVertexTemplateEntry(s + 'cloud;',
37					w, h, 'Cloud', 'Cloud', null, null, this.getTagsForStencil(gn, 'cloud', dt).join(' ')),
38			this.createVertexTemplateEntry(s + 'contact;',
39					w, h, 'Contact', 'Contact', null, null, this.getTagsForStencil(gn, 'contact', dt).join(' ')),
40			this.createVertexTemplateEntry(s + 'contact_us;',
41					w, h, 'Contact us', 'Contact us', null, null, this.getTagsForStencil(gn, 'contact', dt).join(' ')),
42			this.createVertexTemplateEntry(s + 'document;',
43					w, h, 'Document', 'Document', null, null, this.getTagsForStencil(gn, 'document', dt).join(' ')),
44			this.createVertexTemplateEntry(s + 'download;',
45					w, h, 'Download', 'Download', null, null, this.getTagsForStencil(gn, 'download', dt).join(' ')),
46			this.createVertexTemplateEntry(s + 'error;',
47					w, h, 'Error', 'Error', null, null, this.getTagsForStencil(gn, 'error', dt).join(' ')),
48			this.createVertexTemplateEntry(s + 'faq;',
49					w, h, 'FAQ', 'FAQ', null, null, this.getTagsForStencil(gn, 'faq frequently asked questions', dt).join(' ')),
50			this.createVertexTemplateEntry(s + 'form;',
51					w, h, 'Form', 'Form', null, null, this.getTagsForStencil(gn, 'form', dt).join(' ')),
52			this.createVertexTemplateEntry(s + 'gallery;',
53					w, h, 'Gallery', 'Gallery', null, null, this.getTagsForStencil(gn, 'gallery', dt).join(' ')),
54			this.createVertexTemplateEntry(s + 'game;',
55					w, h, 'Game', 'Game', null, null, this.getTagsForStencil(gn, 'game', dt).join(' ')),
56			this.createVertexTemplateEntry(s + 'home;',
57					w, h, 'Home', 'Home', null, null, this.getTagsForStencil(gn, 'home', dt).join(' ')),
58			this.createVertexTemplateEntry(s + 'info;',
59					w, h, 'Info', 'Info', null, null, this.getTagsForStencil(gn, 'info', dt).join(' ')),
60			this.createVertexTemplateEntry(s + 'jobs;',
61					w, h, 'Jobs', 'Jobs', null, null, this.getTagsForStencil(gn, 'jobs', dt).join(' ')),
62			this.createVertexTemplateEntry(s + 'log;',
63					w, h, 'Log', 'Log', null, null, this.getTagsForStencil(gn, 'log', dt).join(' ')),
64			this.createVertexTemplateEntry(s + 'login;',
65					w, h, 'Login', 'Login', null, null, this.getTagsForStencil(gn, 'login', dt).join(' ')),
66			this.createVertexTemplateEntry(s + 'mail;',
67					w, h, 'Mail', 'Mail', null, null, this.getTagsForStencil(gn, 'mail', dt).join(' ')),
68			this.createVertexTemplateEntry(s + 'map;',
69					w, h, 'Map', 'Map', null, null, this.getTagsForStencil(gn, 'map', dt).join(' ')),
70			this.createVertexTemplateEntry(s + 'news;',
71					w, h, 'News', 'News', null, null, this.getTagsForStencil(gn, 'news', dt).join(' ')),
72			this.createVertexTemplateEntry(s + 'payment;',
73					w, h, 'Payment', 'Payment', null, null, this.getTagsForStencil(gn, 'payment', dt).join(' ')),
74			this.createVertexTemplateEntry(s + 'photo;',
75					w, h, 'Photo', 'Photo', null, null, this.getTagsForStencil(gn, 'photo', dt).join(' ')),
76			this.createVertexTemplateEntry(s + 'portfolio;',
77					w, h, 'Portfolio', 'Portfolio', null, null, this.getTagsForStencil(gn, 'portfolio', dt).join(' ')),
78			this.createVertexTemplateEntry(s + 'post;',
79					w, h, 'Post', 'Post', null, null, this.getTagsForStencil(gn, 'post', dt).join(' ')),
80			this.createVertexTemplateEntry(s + 'pricing;',
81					w, h, 'Pricing', 'Pricing', null, null, this.getTagsForStencil(gn, 'pricing', dt).join(' ')),
82			this.createVertexTemplateEntry(s + 'print;',
83					w, h, 'Print', 'Print', null, null, this.getTagsForStencil(gn, 'print', dt).join(' ')),
84			this.createVertexTemplateEntry(s + 'products;',
85					w, h, 'Products', 'Products', null, null, this.getTagsForStencil(gn, 'products', dt).join(' ')),
86			this.createVertexTemplateEntry(s + 'profile;',
87					w, h, 'Profile', 'Profile', null, null, this.getTagsForStencil(gn, 'profile', dt).join(' ')),
88			this.createVertexTemplateEntry(s + 'references;',
89					w, h, 'References', 'References', null, null, this.getTagsForStencil(gn, 'references', dt).join(' ')),
90			this.createVertexTemplateEntry(s + 'script;',
91					w, h, 'Script', 'Script', null, null, this.getTagsForStencil(gn, 'script', dt).join(' ')),
92			this.createVertexTemplateEntry(s + 'search;',
93					w, h, 'Search', 'Search', null, null, this.getTagsForStencil(gn, 'search', dt).join(' ')),
94			this.createVertexTemplateEntry(s + 'security;',
95					w, h, 'Security', 'Security', null, null, this.getTagsForStencil(gn, 'security', dt).join(' ')),
96			this.createVertexTemplateEntry(s + 'services;',
97					w, h, 'Services', 'Services', null, null, this.getTagsForStencil(gn, 'services', dt).join(' ')),
98			this.createVertexTemplateEntry(s + 'settings;',
99					w, h, 'Settings', 'Settings', null, null, this.getTagsForStencil(gn, 'settings', dt).join(' ')),
100			this.createVertexTemplateEntry(s + 'shopping;',
101					w, h, 'Shopping', 'Shopping', null, null, this.getTagsForStencil(gn, 'shopping', dt).join(' ')),
102			this.createVertexTemplateEntry(s + 'sitemap;',
103					w, h, 'Sitemap', 'Sitemap', null, null, this.getTagsForStencil(gn, 'sitemap', dt).join(' ')),
104			this.createVertexTemplateEntry(s + 'slideshow;',
105					w, h, 'Slideshow', 'Slideshow', null, null, this.getTagsForStencil(gn, 'slideshow', dt).join(' ')),
106			this.createVertexTemplateEntry(s + 'sports;',
107					w, h, 'Sports', 'Sports', null, null, this.getTagsForStencil(gn, 'sports', dt).join(' ')),
108			this.createVertexTemplateEntry(s + 'success;',
109					w, h, 'Success', 'Success', null, null, this.getTagsForStencil(gn, 'success', dt).join(' ')),
110			this.createVertexTemplateEntry(s + 'text;',
111					w, h, 'Text', 'Text', null, null, this.getTagsForStencil(gn, 'text', dt).join(' ')),
112			this.createVertexTemplateEntry(s + 'upload;',
113					w, h, 'Upload', 'Upload', null, null, this.getTagsForStencil(gn, 'upload', dt).join(' ')),
114			this.createVertexTemplateEntry(s + 'user;',
115					w, h, 'User', 'User', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
116			this.createVertexTemplateEntry(s + 'video;',
117					w, h, 'Video', 'Video', null, null, this.getTagsForStencil(gn, 'video', dt).join(' ')),
118			this.createVertexTemplateEntry(s + 'warning;',
119					w, h, 'Warning', 'Warning', null, null, this.getTagsForStencil(gn, 'warning', dt).join(' '))
120		];
121
122		this.addPalette('sitemap', 'Sitemap', false, mxUtils.bind(this, function(content)
123				{
124					for (var i = 0; i < fns.length; i++)
125					{
126						content.appendChild(fns[i](content));
127					}
128		}));
129
130		this.setCurrentSearchEntryLibrary();
131	};
132})();
133