function InitTabs(config, over, out) {
	for (var tab in config) {
		var _theTab = $(tab);
		_theTab.tab = config[tab];
		_theTab.onmouseover = function () {
			for (var _tab in config) {
				if (_tab != this.id) {
					$(_tab).className = out;
					$(config[_tab]).style.display = 'none';
				}
			}
			this.className = over;
			$(this.tab).style.display = '';
		}
	}
}

(function () {
	window.InitClassicProjectsPage = function (btnName, pnlName, pageSize) {
		$(btnName).onclick = function () {
			var pnl = $(pnlName);
			var items = pnl.getElementsByTagName('dl');
			if (pnl.index == undefined) {
				pnl.index = 0;
			}
			pnl.index += pageSize;
			if (pnl.index > (items.length - 1)) {
				pnl.index = 0;
			}
			for (var c = 0; c < items.length; c++) {
				if (c >= pnl.index && c < (pnl.index + pageSize)) {
					items.item(c).style.display = "";
				} else {
					items.item(c).style.display = "none";
				}
			}
		};
	};
})();



