var overelement = null;
var allas = null;
var inoverprogress = false;
// JavaScript Document
function spamprot(na,dom,lnd) {
 var spam = 'mailto:'+na+'@'+dom+'.'+lnd;
 document.location.href=spam;
}

function openwindow_incenter(url, name, width, height)
{
	leftVal = (screen.width-width) / 2;
	topVal = (screen.height-height) / 2;
	return window.open(url, name, 'width=' + width + ',height=' + height + ',left='+leftVal+',top='+topVal);

}

function overproduct(menua)
{
	return;
	if(inoverprogress == true)
	{
		return;
	}
	
	if(allas == null)
	{
		allas = document.getElementsByTagName("a");
	}

	for(n = 0; n < allas.length; n++)
	{
		if(allas[n].href == menua.href && allas[n] != menua)
		{
				overelement = allas[n];
				inoverprogress = true;
				if(overelement.className == "imageborder")
				{
					//new style
					overelement.className = "imageborder_over";
				}
				else
				{
					overelement.onmouseover();
				}
				
				inoverprogress = false;
			
		}
	}
}

function outproduct()
{
	if(overelement !== null)
	{
		if(overelement.className == "imageborder_over")
		{
			//new style
			overelement.className = "imageborder";
		}
		else
		{
			overelement.onmouseout();
		}
		overelement = null;
	}
}


window.onload = function()
{
	var content = document.getElementById("content");
	var s = document.location.href;
	//fix händler OPERA Bug
	if(content !== null && (s.replace("haendler", "") != s))
	{
		content.style.overflow = "auto";
	}
}
