function popUp (url, width, height) {
		var id = new Date().getTime();

		var left = window.screen.width/2 - width/2;
		var scrollbars = 0;
		if (height > (window.screen.height - 120)) {
			height = window.screen.height - 120;
			width = width + 30;
			scrollbars = 1;
		}
		window.open (url, id, 'toolbar=0, scrollbars='+scrollbars+', location=0, statusbar=0, menubar=o, resizable=1, top=0, left='+left+', width='+width+', height='+height);
}

ProductMenu = {
	current:null,

	show:function (k) {
		if (k != this.current) this.hideCurrent (this.current);

		this.switchContent (k);
		return false;
	},

	hideCurrent:function(current) {
		var k = current;
		if (k == null) return;

		document.getElementById('content'+k).style.display = "none";
		document.getElementById('dt'+k).className = 'n';
	},

	switchContent:function(k) {
		if (k < 1) return false;

		var displayed = document.getElementById('content'+k).style.display;
		if (displayed == '' ||  displayed == 'none') {
			ProductMenu.current = k;
		}

		document.getElementById('content'+k).style.display = (displayed=="block") ? "none" : "block";
		document.getElementById('dt'+k).className = (displayed=="block") ? 'n' : 'o';
		return true;
	}
}


TabMenu = {
	current:{},

	show:function (tid, item) {
		if (this.current[tid] == item) return;

		if (this.current[tid]) {
			document.getElementById('tab-'+this.current[tid]).className = 'normal';
			document.getElementById('tab-'+this.current[tid]+'-content').style.display = 'none';
		}

		document.getElementById('tab-'+item).className = 'hl';
		document.getElementById('tab-'+item+'-content').style.display = 'block';

		this.current[tid] = item;
	}
}