/**
	toggles tabs  using scriptaculous
**/
function toggleTab(num,items) {
	if ($('tabContent'+num).style.display == 'none') {
		for (var i=1; i<=items; i++) {
			var temph = 'tabHeader'+i;
			var h = $(temph);
			if (!h){
				var h = $('tabHeaderActive');
				h.id = temph;
			}
			
			var tempc = 'tabContent'+i;
			var c = $(tempc);
			if (c.style.display != 'none') {
				Effect.toggle(tempc, 'appear', {duration:0.5, queue:{scope:'menus',limit:3}});
			}
		}
	}
	
	var h = $('tabHeader'+num);
	if (h) {
		h.id = 'tabHeaderActive';
	}
	h.blur();
	
	var c = $('tabContent'+num);
	c.style.marginTop = '2px';
	Effect.toggle('tabContent'+num,'appear', {duration:0.5,queue:{scope:'menus',position:'end',limit:3}});
}