//===================================
//opens up the company section
function setCompanyOpacity( value ) 
{
	document.getElementById("companyBlock").style.opacity = value / 10;
 	document.getElementById("companyBlock").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyCompanyPopup() 
{
	for( var i = 0 ; i <= 100 ; i++ )
		setTimeout( 'setCompanyOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyCompanyPopup() 
{
	//for( var i = 0 ; i <= 100 ; i++ ) 
	//{
   	//	setTimeout( 'setCompanyOpacity(' + (10 - i / 10) + ')' , 8 * i );
 	//}
	//setTimeout('closeMyCompanyPopup()', 800 );
	closeMyCompanyPopup();
}

function closeMyCompanyPopup() 
{
	document.getElementById("companyBlock").style.display = "none"
}

function fireMyCompanyPopup()
{
	//setCompanyOpacity( 0 );
	document.getElementById("clientBlock").style.display = "none";
	document.getElementById("contactBlock").style.display = "none";
	document.getElementById("servicesBlock").style.display = "none";
	document.getElementById("companyBlock").style.display = "block";
	//fadeInMyCompanyPopup();
}
//opens up the company section
//=====================================





//===================================
//opens up the Client section
function setClientOpacity( value ) 
{
	document.getElementById("clientBlock").style.opacity = value / 10;
 	document.getElementById("clientBlock").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyClientPopup() 
{
	for( var i = 0 ; i <= 100 ; i++ )
		setTimeout( 'setClientOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyClientPopup() 
{
	/*for( var i = 0 ; i <= 100 ; i++ ) 
	{
   		setTimeout( 'setClientOpacity(' + (10 - i / 10) + ')' , 8 * i );
 	}
	setTimeout('closeMyClientPopup()', 800 );*/
	closeMyClientPopup();
}

function closeMyClientPopup() 
{
	document.getElementById("clientBlock").style.display = "none"
}

function fireMyClientPopup()
{
	//setClientOpacity( 0 );
	document.getElementById("contactBlock").style.display = "none";
	document.getElementById("servicesBlock").style.display = "none";
	document.getElementById("companyBlock").style.display = "none";
	document.getElementById("clientBlock").style.display = "block";
	//fadeInMyClientPopup();
}
//opens up the client section
//=====================================




//===================================
//opens up the Contact section
function setContactOpacity( value ) 
{
	document.getElementById("contactBlock").style.opacity = value / 10;
 	document.getElementById("contactBlock").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyContactPopup() 
{
	for( var i = 0 ; i <= 100 ; i++ )
		setTimeout( 'setContactOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyContactPopup() 
{
	/*for( var i = 0 ; i <= 100 ; i++ ) 
	{
   		setTimeout( 'setContactOpacity(' + (10 - i / 10) + ')' , 8 * i );
 	}
	setTimeout('closeMyContactPopup()', 800 );*/
	closeMyContactPopup();
}

function closeMyContactPopup() 
{
	document.getElementById("contactBlock").style.display = "none"
}

function fireMyContactPopup()
{
	//setContactOpacity( 0 );
	document.getElementById("clientBlock").style.display = "none";
	document.getElementById("servicesBlock").style.display = "none";
	document.getElementById("companyBlock").style.display = "none";
	document.getElementById("contactBlock").style.display = "block";
	//fadeInMyContactPopup();
}
//opens up the contact section
//=====================================/**/




//===================================
//opens up the services section
function setServicesOpacity( value ) 
{
	document.getElementById("servicesBlock").style.opacity = value / 10;
 	document.getElementById("servicesBlock").style.filter = 'alpha(opacity=' + value * 10 + ')';
}

function fadeInMyServicesPopup() 
{
	for( var i = 0 ; i <= 100 ; i++ )
		setTimeout( 'setServicesOpacity(' + (i / 10) + ')' , 8 * i );
}

function fadeOutMyServicesPopup() 
{
	/*for( var i = 0 ; i <= 100 ; i++ ) 
	{
   		setTimeout( 'setServicesOpacity(' + (10 - i / 10) + ')' , 8 * i );
 	}
	setTimeout('closeMyServicesPopup()', 800 );*/
	closeMyServicesPopup();
}

function closeMyServicesPopup() 
{
	document.getElementById("servicesBlock").style.display = "none"
}

function fireMyServicesPopup()
{
	//setServicesOpacity( 0 );
	document.getElementById("clientBlock").style.display = "none";
	document.getElementById("contactBlock").style.display = "none";
	document.getElementById("companyBlock").style.display = "none";
	document.getElementById("servicesBlock").style.display = "block";
	//fadeInMyServicesPopup();
}
//opens up the services section
//=====================================/**/
