magic.update=
{
	//repeat: "repeat|repeat-x|repeat-y|no-repeat|initial|inherit"
	//size: "auto|xpx ypx|cover|contain|intial|inherit"
	//align:
	bg: null,
	//bg:{image:'img/bg/11.jpg', repeat:'repeat', size:'initial'},
	//bg:{color:0xBFBABB},
	//bg:{image:'img/bg/paper_lgray.jpg', repeat:'repeat', size:'normal'},
	//bg:{color:N1.randomColor(0x606060, 0xB0B0B0)},
	//bg:{image:'retro-floral-seamless-pattern_f.jpg'},
	//bg:{image:'img/bg/5.jpg', repeat:'no-repeat', size:'cover'},
	//bg:{image:'img/bg/caT.jpg', repeat:'no-repeat', size: 'cover'},
	//bg:{image:'img/MecanniqueGenerale.jpg', repeat:'no-repeat', size: 'initial', align:'center'},
	//bg:"url(nature-winter-snow-trees-white-1501396-2560x1700.jpg) no-repeat contain center",
	//bg:{color:0x404040},
	//bg:{color:0x2078F0},

	/*
	icons:{
	nodes:[
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20},
{text:"", iconURL:"", action:null, x:20, y:20}
	]
	},
	 */

	navigator: {
		bg: {
			color: 0xF0F0F0
		},
		dataTree: {
			text: {
				data: "<br><br><center><img height=80 width=80 style='width:80px, height:80px;' src='img/logo.png'></div><center><br>"
			},
			action: function () {
				var scr = document.createElement("script");
				
				scr.innerText = ''+'\n'+
				''+'\n'+
				'var win = desktop.windows.newWindow({'+'\n'+
				'		x: 300,'+'\n'+
				'		y: 300,'+'\n'+
				'		width: 200,'+'\n'+
				'		height: 300'+'\n'+
				'	});'+'\n'+
				'win.winarea.content.set({'+'\n'+
				'	text: {'+'\n'+
				'		data: "hallo from script!",'+'\n'+
				'		color: 0x203028,'+'\n'+
				'		size: 12,'+'\n'+
				'		font: "Verdana"'+'\n'+
				'	}'+'\n'+
				'});';
				document.getElementsByTagName("head")[0].appendChild(scr);
				//desktop.windows.arrange();
				//win.activate();
			},
			canCollapse: false,
			nodes: [{
					text: {
						data: "Welcome!!!"
					},
					action: function () {
						var win = desktop.windows.newWindow({
								x: 450,
								y: 150,
								width: 350,
								height: 500
							});
						win.winarea.content.load("data/welcome.json", "doc.welcome");
					}
				}, {
					text: {
						data: "Introduction"
					},
					nodes: [{
							text: {
								data: "About Birdesk"
							},
							action: null,
							nodes:
							[{
									text: {
										data: "Windows"
									},
									action: null
								}, {
									text: {
										data: "Windows content"
									},
									action: null
								}, {
									text: {
										data: "Icons"
									},
									action: null
								}, {
									text: {
										data: "Navigation"
									},
									action: null
								}, {
									text: {
										data: "Design schemata"
									},
									action: null
								}, {
									text: {
										data: "Data schemata"
									},
									action: null
								}, {
									text: {
										data: "Animations"
									},
									action: null
								}, {
									text: {
										data: "File formats"
									},
									action: null,
									nodes:
									[{
											text: {
												data: "HTML"
											},
											action: null
										}, {
											text: {
												data: "JHTML"
											},
											action: null
										}, {
											text: {
												data: "JSON"
											},
											action: null
										}, {
											text: {
												data: "JavaScript"
											},
											action: null
										}
									]
								}
							]
						}, {
							text: {
								data: "magic API"
							},
							action: function () {
								var win = desktop.windows.newWindow({
										x: 250,
										y: 250,
										width: 350,
										height: 550
									});
								win.winarea.content.load("data/magicAPI.json", "doc.magicAPI");
							}
						}, {
							text: {
								data: "desktop API"
							},
							action: function () {
								var win = desktop.windows.newWindow({
										x: 250,
										y: 250,
										width: 350,
										height: 550
									});
								win.winarea.content.load("data/desktopAPI.json", "doc.desktopAPI");
							}
						}, {
							text: {
								data: "Warning!"
							},
							action: function () {
								var win = desktop.windows.newWindow({
										x: 250,
										y: 250,
										width: 350,
										height: 550
									});
								win.winarea.content.load("data/warning.json", "doc.warning");
							}
						}
					]
				}, {
					text: {
						data: "Documentation"
					},
					actions: null
				}, {
					text: {
						data: "Demos:Birdesk"
					},
					nodes: [{
							text: {
								data: "Create navigation"
							},
							action: null
						}, {
							text: {
								data: "Add navigation items"
							},
							action: null
						}, {
							text: {
								data: "Remove navigation items"
							},
							action: null
						}, {
							text: {
								data: "Create windows"
							},
							action: null
						}, {
							text: {
								data: "Remove windows"
							},
							action: null
						}, {
							text: {
								data: "Animate windows"
							},
							action: null
						}, {
							text: {
								data: "(Un)collapse windows"
							},
							action: null
						}, {
							text: {
								data: "Bind any content"
							},
							action: "createNewRect"
						}, {
							text: {
								data: "Add icons"
							},
							action: "createNewRect"
						}, {
							text: {
								data: "Redesign desktop",
								color: 0x90B0FF
							},
							action: null
						}
					]
				}, {
					text: {
						data: "Demos:Games"
					},
					nodes: [{
							text: {
								data: "Reaction"
							},
							action: null
						}, {
							text: {
								data: "Visual matrix"
							},
							action: null
						}, {
							text: {
								data: "Visual memory"
							},
							action: null
						}
					]
				}, {
					text: {
						data: "Redesign"
					},
					nodes: [{
							text: {
								data: "schema1"
							},
							action: function () {
								magic.updateDesign({
									DefaultContent: {
										selectionColor: 0x308090
									},
									Navigator: {
										bg: {
											color: 0x202020
										}
									}
								});
							}
						}, {
							text: {
								data: "schema2"
							},
							action: function () {
								magic.updateDesign({
									DefaultContent: {
										selectionColor: function () {
											return magic.tools.randomColor(0x707070, 0xB0B0B0);
										}
									}
								});
							}
						}, {
							text: {
								data: "schema3"
							},
							action: function () {
								magic.updateDesign({
									DefaultContent: {
										selectionColor: function () {
											return magic.tools.randomColor(0x7080A0, 0x70A0FF);
										}
									}
								});
							}
						},
					]
				}, {
					text: {
						data: "Windows"
					},
					nodes: [{
							text: {
								data: "Cascade"
							},
							action: function () {
								desktop.windows.cascade(desktop.windows);
							}
						}, {
							text: {
								data: "Tile"
							},
							action: function () {
								desktop.windows.tile(desktop.windows);
							}
						}, {
							text: {
								data: "Intuition"
							},
							action: function () {
								desktop.windows.intuition(desktop.windows);
							}
						}, {
							text: {
								data: "Close"
							},
							action: function () {
								desktop.windows.closeWindow(desktop.windows.activeWindow);
							}
						}, {
							text: {
								data: "Minimize"
							},
							action: null
						}, {
							text: {
								data: "Normalize"
							},
							action: null
						}, {
							text: {
								data: "Maximize"
							},
							action: null
						}, {
							text: {
								data: "Close all"
							},
							action: function () {
								desktop.windows.closeAllWindows();
							}
						}, {
							text: {
								data: "Minimize all"
							},
							action: null
						}, {
							text: {
								data: "Normalize all"
							},
							action: null
						}, {
							text: {
								data: "Maximize all"
							},
							action: null
						}
					]
				}, {
					text: {
						data: "System Info"
					},
					action: function () {
						var info = "<table>" +
							"<tr><th colspan='2'>CLIENT SYSTEM</th></tr>";
						for (var i = 0; i < magic.sysInfo.engines.length; i++) {
							var engine = magic.sysInfo.engines[i];
							info = info + "<tr><td>" + engine.id + "</td><td>" + engine.ver + "</td></tr>";
						};
						for (var i = 0; i < magic.sysInfo.browsers.length; i++) {
							var browser = magic.sysInfo.browsers[i];
							info = info + "<tr><td>" + browser.id + "</td><td>" + browser.ver + "</td></tr>";
						};
						info = info + "<tr><td>Operating System: </td><td>" + magic.sysInfo.system.id + "</td></tr>" +
							"<tr><td colspan='2'>" + magic.sysInfo.info + "</td></tr>" +
							"<tr><th colspan='2'>APPLICATION</th></tr>" +
							"<tr><td>Engine: </td><td>Magic R2.87</td></tr>" +
							"<tr><td>Desktop: </td><td>Birdesk R2.0</td></tr>" +
							"</table>";

						var win = desktop.windows.newWindow({
								x: 430,
								y: 130,
								width: 220,
								height: 640
							});
						win.set({
							text: {
								data: "System Information",
								color: 0xFFFFFF,
								size: 12,
								font: "Verdana"
							}
						});
						win.winarea.caption.set({
							text: win.text
						});
						win.winarea.content.set({
							text: {
								data: info,
								color: 0x203028,
								size: 12,
								font: "Verdana"
							}
						});

					}
				}
			]
		}
	},

	windows: {
		settings: {
			intuition: {}
		}
	},

	designSchema: {
		Navigator: {},
		NavigatorTree: {},
		NavigatorList: {},
		DefaultContent: {
			selectionColor: function () {
				return magic.tools.randomColor(0x707070, 0xB0B0B0);
			},
			text: {
				color: 0xF0F0F0
			}
		},
		Window: {},
		Icon: {}
	},

	actions: {}
};
