
	var dp = function() {
		return {
			menu: function() {
				return {
					init: function() {
						var uls = document.getElementsByTagName('ul');

						for (var ul_count = 1; ul_count < uls.length; ul_count++) {
							var ul = uls[ul_count];

							if (ul.className && (ul.className == 'menu_sub')) {
								ul.style.position = 'absolute';
								ul_id = ul.getAttribute('id');
								dp.menu.toggle(ul_id, 'off');
							}
						}
					},

					toggle: function(menu, state) {
						the_menu = document.getElementById(menu);

						if (state == 'on') {
							the_menu.style.left = 'auto';
						} else {
							the_menu.style.left = '-10000px';
						}
					}
				};
			}(),
			
			tf: function() {
				return {
					init: function() { 
						var switches = document.getElementsByClassName('acc_title');
						var lists    = document.getElementsByClassName('acc_body');

						dp.tf.remove_links(switches);

						blogroll = new fx.Accordion(
							switches,
							lists,
							{
								opacity: false,
								duration: 500
							}
						);

						blogroll.showThisHideOpen(lists[0]);
					},
					
					remove_links: function(switches) {
						for (var i = 0; i < switches.length; i++) {
							var the_switch = switches[i];

							the_link = the_switch.firstChild;
							the_text = document.createTextNode(the_link.firstChild.nodeValue);
							
							the_switch.removeChild(the_link);
							the_switch.appendChild(the_text);
						}
					}
				};
			}()
		};
	}();
