
mtLibAddEvent(
	function(){
		if(!document.getElementById) return;
		bookmarks.init();
	}
);

var bookmarks = {
	init : function(){
		var o = document.getElementById("bookmarkContent");
		if(o){
			o.style.overflow = "hidden";
			o.style.height = "0";
	
			var oBookmarkWhat = document.getElementById("bookmarkWhat");
			oBookmarkWhat.onclick = function(){
				bookmarks.toggleActive("bookmarkContent");
				return false;
			};
		};
	},
	
	toggleActive : function(sID){
		var o = document.getElementById(sID);
		if(o.style.overflow == "hidden" || o.style.overflow == ""){
			o.style.overflow = "visible";
			o.style.height = "auto";
		}else{
			o.style.overflow = "hidden";
			o.style.height = "0";
		};
	}
};
