 function ShowNavMenu(object1,object2,height,lwidth) {
	var width1 = 0;
	var width2 = 0;
	var winWidth = 0;
	var winHeight = 0;

	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
	}
	if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){
	}
	if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)){
	}
	//NS - FIREFOX, SAFARI
	if( typeof( window.innerWidth ) == 'number' ) {
		winWidth = window.innerWidth;
		winHeight = window.innerHeight;
		if (winWidth < 1010) {
			width = 0;
		}
		else {
			width = (winWidth - 1010)/2 - 1;
			if (/Macintosh;/.test(navigator.userAgent)){
				width = width + 12;
			}
			else {
				if (/Safari[\/\s](\d+\.\d+)/.test(navigator.userAgent)){
					width = width + 4;
				}
			}
		}
	}
	else {
		//
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight )) {
			winWidth = document.documentElement.clientWidth;
			winHeight = document.documentElement.clientHeight;
			if (winWidth < 988) {
				width = 0;
			}
			else {
				width = (winWidth - 988)/2;
			}
		}
		else {
			//IE
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				winWidth = document.body.clientWidth;
				winHeight = document.body.clientHeight;
				if (winWidth < 988) {
					width = 0;
				}
				else {
					width = (winWidth - 988)/2;
				}
			}
		}
	}
	width1 = width + lwidth;
	width2 = width1 - 162;
	if (document.getElementById) {
	  document.getElementById(object1).style.left = width1;
	  document.getElementById(object1).style.top = height;
	  document.getElementById(object1).style.visibility = 'visible';
	  document.getElementById(object2).style.left = width2;
	  document.getElementById(object2).style.top = height;
	  document.getElementById(object2).style.visibility = 'visible';
	}
	else if (document.layers && document.layers[object1]) {
	  document.layers[object1].style.left = width1;
	  document.layers[object1].style.top = height;
	  document.layers[object1].visibility = 'visible';
	  document.layers[object2].style.left = width2;
	  document.layers[object2].style.top = height;
	  document.layers[object2].visibility = 'visible';
	}
	else if (document.all) {
	  document.all[object1].style.left = width1;
	  document.all[object1].style.top = height;
	  document.all[object1].style.visibility = 'visible';
	  document.all[object2].style.left = width2;
	  document.all[object2].style.top = height;
	  document.all[object2].style.visibility = 'visible';
	}
}
        
function HideNavMenu(object1,object2) {
	if (document.getElementById) {
	  document.getElementById(object1).style.visibility = 'hidden';
	  document.getElementById(object2).style.visibility = 'hidden';
	}
	else if (document.layers && document.layers[object1]) {
	  document.layers[object1].visibility = 'hidden';
	  document.layers[object2].visibility = 'hidden';
	}
	else if (document.all) {
	  document.all[object1].style.visibility = 'hidden';
	  document.all[object2].style.visibility = 'hidden';
	}
}

