// JavaScript Document

function ourOperations(id) {
		
	for (i=0; i<4 ;i++){
		var button = document.getElementById('button'+i);
		var section = document.getElementById('text'+i);
		if ( i == id) {
			button.style.backgroundPosition='bottom';
			section.className='visible-layer';
			position='bottom';
			button.style.color="#000000";
		}
		else {
			button.style.backgroundPosition='center';
			section.className='hidden-layer';
		}
	}
}
var position;
function control(button, hover) {
	
	if (hover){
		position = button.style.backgroundPosition;
		if (position == ""){
			position = "center";
			
			
		}
		button.style.color="#FFFFFF";
		button.style.backgroundPosition='top';
		
	}
	else{
			button.style.color="#000000";
		button.style.backgroundPosition=position;
	}
}


function arevaWebsite(id) {
		
	for (i=0; i<7 ;i++){
		var button = document.getElementById('button'+i);
		var section = document.getElementById('section'+i);
		
		var launch = document.getElementById('launch');
		if ( i == id) {
			
			button.style.backgroundPosition='top';
			section.className='visible-layer';
			launch.href = button.href;
			button.style.color="#FFFFFF";
			
		}
		else {
			
			button.style.backgroundPosition='center';
			section.className='hidden-layer';
			button.style.color="#000000";
		}
	}
}
function setTab(button) {
	button.style.backgroundPosition='bottom';
	button.style.color="#000000";
}
function clearTab(button) {
	button.style.backgroundPosition='center';
	button.style.color="#000000";
}
