[Record Set #1]
Description	= [Admin Panel Clock]
		+ Displays a live clock on the admin main menu.
		+ 
		+ [Explanation]
		+ "Content" and "Head" will only be added when the URL contains "wp-admin" and an element with id="adminmenu" is found.
		+ 
		+ Whatever is in "Content" will be added at "Reference". "Location" specifies where in relation to "Reference" the "Content" is added. In this case "Content" will be added just "afterBegin" of "adminmenu" element, Ie. the list item is added to the "adminmenu" list before all other menu items. The reason it is on the right hand side of the menu is because it is floated right.
		+ 
		+ "Head" contains CSS and Javascript for the clock. The code is initiated with "schedule" (an enhanced onload function).
		+ 
		+ [Usage]
		+ (De)Activate by (un)ticking "Active" tickbox, followed by "Update".
Eval		= 
Needle		= wp-admin
Userlevel	= 
Active		= true
Content		= <li id="clock"><a class="current" href="#" onclick="return khanh.clock.toggle();" title="Click to stop clock">%%=date('H:i:s')%%</a></li>
Reference	= adminmenu
Location	= afterBegin
Head		= <style type="text/css">
		+ #clock {
		+ 	float: right;
		+ 	font-family: Courier New, Courier, monospace;
		+ }
		+ </style>
		+ 
		+ <script type="text/javascript">
		+ /*<![CDATA[*/
		+ if (!khanh) var khanh = {};
		+ if (!khanh.clock) {
		+ 	khanh.clock = {
		+ 		clock: 0,
		+ 		timerID: 0,
		+ 		stopTime: 0,
		+ 	
		+ 		start: function() {
		+ 			this.clock = document.getElementById('clock').firstChild;
		+ 			this.timerID = setInterval('khanh.clock.show()', 1000);
		+ 			this.show();
		+ 		},
		+ 		
		+ 		toggle: function() {
		+ 			if (this.timerID) {
		+ 				clearInterval(this.timerID);
		+ 				this.timerID = 0;
		+ 				this.clock.title = 'Click to start clock';
		+ 				this.clock.className = '';
		+ 				this.stopTime = new Date();
		+ 			} else {
		+ 				this.clock.className = 'current';
		+ 				this.clock.title = 'Click to stop clock';
		+ 				this.timerID = setInterval('khanh.clock.show()', 1000);
		+ 				this.show();
		+ 				var now = new Date();
		+ 				alert('stopped @ ' + this.time(this.stopTime) + ', restarted @ ' + this.time(now) + ', difference: ' + ((now - this.stopTime) / 1000) + ' seconds');
		+ 			}
		+ 			return false;
		+ 		},
		+ 		
		+ 		show: function() {
		+ 			this.clock.innerHTML = this.time(new Date());
		+ 		},
		+ 		
		+ 		time: function(now) {
		+ 			var hours = now.getHours();
		+ 			var minutes = now.getMinutes();
		+ 			var seconds = now.getSeconds();
		+ 			return (hours < 10 ? '0' : '') + hours + ':' +
		+ 				(minutes < 10 ? '0' : '') + minutes + ':' +
		+ 				(seconds < 10 ? '0' : '') + seconds;
		+ 		}
		+ 	};
		+ }
		+ 
		+ khanh.event.wait('clock', 'khanh.clock.start()');
		+ //]]>
		+ </script>
Foot		= 

[Record Set #2]
Description	= [Quicktag Button (Method 1)]
		+ Demo showing how to add button to Quicktag panel.
		+ 
		+ [Explanation]
		+ "Content" will only be added when the URL contains "post.php", or "page-new.php" and an element with id="ed_toolbar" is found.
		+ 
		+ Whatever is in "Content" will be added at "Reference". "Location" specifies where in relation to "Reference" the "Content" is added. In this case "Content" will be added just "beforeEnd" of "ed_toolbar" element, Ie. "method 1" button is added to the "ed_toolbar" list after all other items.
		+ 
		+ [Usage]
		+ This demo makes use of embedded php functions. In this example, the date() function is called to retrieve the date (inside %% %% tags), then printed by kca (with = prefixing the function name).
		+ 
		+ (De)Activate by (un)ticking "Active" tickbox, followed by "Update".
Eval		= 
Needle		= post.php, post-new.php, page-new.php
Userlevel	= 
Active		= true
Content		= <input class="ed_button" type="button" value="method 1" title="This button was created on %%=date('F j, Y, at g:i a')%%" onClick="alert('Button created at %%=date('H:i:s')%%'); return false;" />
Reference	= ed_toolbar
Location	= beforeEnd
Head		= 
Foot		= 

[Record Set #3]
Description	= [Quicktag Button (Method 2)]
		+ Demo showing how to add button to Quicktag panel.
		+ 
		+ [Explanation]
		+ "Head" will only be added when the URL contains "post.php" or "page-new.php".
		+ 
		+ "Head" contains CSS and Javascript for the "method 2" button. The code is initiated with "schedule" (an enhanced onload function).
		+ 
		+ [Usage]
		+ Makes use of embedded php functions. In this example, the date() function is called to retrieve the date (inside %% %% tags), then printed by kca (with = prefixing the function name).
		+ 
		+ (De)Activate by (un)ticking "Active" tickbox, followed by "Update".
Eval		= 
Needle		= post.php, post-new.php, page-new.php
Userlevel	= 
Active		= true
Content		= 
Reference	= 
Location	= 
Head		= <script type="text/javascript">
		+ /*<![CDATA[*/
		+ function addTestButton() {
		+ 	edButtons[edButtons.length] = 
		+ 	new edButton('ed_test'
		+ 		,'method 2'
		+ 		,''
		+ 		,''
		+ 		,''
		+ 		,-1
		+ 	);
		+ 	khanh.dom.insertAdjacentHTML(document.getElementById('ed_toolbar'), 'beforeEnd', '<input type="button" id="' + edButtons[edButtons.length - 1].id + '" accesskey="' + edButtons[edButtons.length - 1].access + '" class="ed_button" title="This button was created on %%=date('F j, Y, at g:i a')%%" onclick="alert(\'Button created at %%=date('H:i:s')%%\');return false;" value="' + edButtons[edButtons.length - 1].display + '"  />');
		+ }
		+ 
		+ khanh.event.wait('ed_toolbar', 'addTestButton()', 1000);
		+ //]]>
		+ </script>
Foot		= 

