function mOver(menuItem) {
   menuItem.style.cursor = 'hand';
   menuItem.style.color = '#A9D0F5';
}
function mOut(menuItem) {
   menuItem.style.cursor = 'default';
   menuItem.style.color = '#ffffff';
}
function mOverMenu(menuItem){
   menuItem.style.cursor = 'hand';
	menuItem.style.borderColor = "#9d9d9d";
	menuItem.style.backgroundColor = "#f1f1f1";
	menuItem.style.color = "#000000";
}
function mOutMenu(menuItem){
   menuItem.style.cursor = 'default';
	menuItem.style.borderColor = "#ffffff";
	menuItem.style.backgroundColor = "#ffffff";
	menuItem.style.color = "#000000";
}
function mDown(url) {
	window.location = url;
}

function newWindow(page) {
	newWindow = window.open(page, 'NewWindow', 'toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes') ;
}

function DisplayImage(imgURL,iWidth,iHeight)
{
	var image = "images/transparent.gif" ;

	newWindow = window.open('', 'ScreenShot', 'toolbar=no,scrollbars=0,resizable=0,width=' + iWidth + ',height=' + iHeight) ;

	newWindow.document.writeln('<html>') ;
	newWindow.document.writeln('<head>') ;
	newWindow.document.writeln('<title>Bavarian Technic Software: Screen Shot</title>') ;
	newWindow.document.writeln('</head>') ;
	newWindow.document.writeln('<body style="margin:0px;padding:0px;background-image:url(\'' + image + '\')">') ;
	newWindow.document.writeln('<IMG src="' + imgURL + '" STYLE="position:absolute; left:0px; height:' + iHeight + '; width:' + iWidth + '" />') ;
	newWindow.document.writeln('</body>') ;
	newWindow.document.writeln('</html>') ;

	newWindow.document.close() ;
	newWindow.resizeBy(iWidth-newWindow.document.body.clientWidth,iHeight-newWindow.document.body.clientHeight) ;
	newWindow.focus() ;
}




function tabOver(tab) {
	if (document.getElementById) // DOM3 = IE5, NS6
	{
   		document.getElementById(tab).className = 'tabLINKhover';
   	}
}
function tabOut(tab) {
	if (document.getElementById) // DOM3 = IE5, NS6
	{
   		document.getElementById(tab).className = 'tabLINK';
   	}
}
function toggleVisibleMenu(id)
{
  var array = new Array("products","downloads","howtobuy","technicalsupport","links","company") ;

  for ( var x = 0; x < array.length; ++x )  
  {
    var e = document.getElementById(array[x]) ;
    e.style.display = (array[x] == id) ? "" : "none" ;
  }
}
