//Tabs on MiView
	function showTab(obj){
		var sec = obj.substr(3,1);
		var sub = obj.substr(7,1);

		for(var x = 0; x < $$('div.miViewTaba').length; x++){
			$$('div.miViewTaba')[x].style.color = '#cccccc';
			$$('div.miViewTaba')[x].className = 'miViewTab';
		}
		
		$(obj).className = 'miViewTaba';
		$(obj).style.color = '#2B8BC5';
		
		for(var x = 0; x < $$('div.miViewSuba').length; x++){
			$$('div.miViewSuba')[x].className = 'miViewSub';
		}
		
		$('sec' + sec + 'sub' + sub).className = 'miViewSuba';
	}
	
	function showSec(obj){
		var sec = obj.replace('title','');

		var isSelected = false;
		if($(obj).className == 'miViewSecTitlea'){
			isSelected = true;	
		}

		for(var x = 0; x < $$('div.miViewSection').length; x++){
			$$('div.miViewSection')[x].style.display = 'none';
			$$('div.miViewSection')[x].style.color = '#cccccc';
		}
		
		for(var x = 0; x < $$('h5.miViewSecTitlea').length; x++){
			$$('h5.miViewSecTitlea')[x].style.color = '#cccccc';
			$$('h5.miViewSecTitlea')[x].className = 'miViewSecTitle';
		}

		if(isSelected == false){
			$(obj).style.color = '#2B8BC5';
			$(obj).className = 'miViewSecTitlea';

			$(sec).style.display = 'block';
		}
	}
	
	function tabOver(obj){
	$(obj).style.color = '#ffffff';
}

function tabOut(obj){
	if($(obj).className == 'miViewSecTitle' || $(obj).className == 'miViewTab'){
		$(obj).style.color = '#cccccc';	
	}else{
		$(obj).style.color = '#2B8BC5';	
	}
}

function tabOver2(obj){
	$(obj).style.color = '#ffffff';
}

function tabOut2(obj){
	if($(obj).className == 'miViewSecTitle2' || $(obj).className == 'miViewTab'){
		$(obj).style.color = '#cccccc';	
	}else{
		$(obj).style.color = '#2B8BC5';	
	}
}

function showSec2(obj){
	var sec = obj.replace('title','');

	var isSelected = false;
	if($(obj).className == 'miViewSecTitlea2'){
		isSelected = true;	
	}

	for(var x = 0; x < $$('div.miViewSection2').length; x++){
		$$('div.miViewSection2')[x].style.display = 'none';
		$$('div.miViewSection2')[x].style.color = '#cccccc';
	}
	
	for(var x = 0; x < $$('h5.miViewSecTitlea2').length; x++){
		$$('h5.miViewSecTitlea2')[x].style.color = '#cccccc';
		$$('h5.miViewSecTitlea2')[x].className = 'miViewSecTitle2';
	}

	if(isSelected == false){
		$(obj).style.color = '#2B8BC5';
		$(obj).className = 'miViewSecTitlea2';

		$(sec).style.display = 'block';
	}
}
