// JavaScript Document
var tblContentWidth = 760;
var addPadding = 0;

function showWidth(){
	addPadding = 0;

	if (navigator.appName == "Microsoft Internet Explorer"){

		if (document.body.scrollWidth > tblContentWidth){

			addPadding = Math.round ( (document.body.scrollWidth - tblContentWidth) / 2);

		}
	}else{

		if ( document.width > (tblContentWidth + 15) ){

			addPadding = Math.round ( (document.body.scrollWidth - tblContentWidth) / 2);

		}

	}


}

var paddingArray = new Array();

paddingArray["company"] = 452;
paddingArray["contact"] = 550;

function showMenu(spanName){
showWidth();
	var curentSpan = window.document.getElementById(spanName);
	var curentPadding = 0;

	curentPadding = paddingArray[spanName];

	curentSpan.style.left = 0;

	curentSpan.style.left = parseInt(addPadding) + parseInt(paddingArray[spanName]) + "px";
	curentSpan.style.visibility = 'visible';

}


function hideMenu(spanName){
	window.document.getElementById(spanName).style.visibility = 'hidden';
}

function redirectDocument(address){
	parent.document.location = address;

}

function hide_menu(spanName){
	window.document.getElementById(spanName).style.display = 'none';
}
function show_menu(spanName){
	window.document.getElementById(spanName).style.display = 'block';
}
 

 




