    var isie = navigator.appName.indexOf( "Microsoft" ) == -1 ? false : true;
NS4 = (document.layers);
IE4 = (document.all);
var _browser_name=navigator.appName.toLowerCase();
var _browser_version=navigator.appVersion.toLowerCase();
var _isNS=(_browser_name.indexOf('netscape')==-1)?false:true;
var _isNS6=((_isNS)&&(_browser_version.substring(0,1)==5))?true:false;	

	function check()
    {
        i=document.schnell.cat.selectedIndex;
		var locate;
		locate = "index.php?page=produkte&group=" + (document.schnell.cat.options[i].value);
		document.location=locate;
    }
	var colorContent = "#fffff";

function hi(id){
		
        if(isie) {
                obj = document.all["r_"+id];
                obj.style.backgroundColor="#84C3FE";
        } else if (_isNS6) {
                obj = document.getElementById("r_"+id);
                obj.style.backgroundColor="#84C3FE";
        } 
}

function lo(id) {
        if(isie) {
                obj = document.all["r_"+id];
                obj.style.backgroundColor="#A9D5FD";
        } else if (_isNS6) {
                obj = document.getElementById("r_"+id);
                obj.style.backgroundColor="#A9D5FD";
        }
}

function g(id)
{
	window.open('index.php?page=glossar&id='+id,'Glossar','width=300,height=200');
}

function show(id)
{
	document.getElementById(id).style.display="inline";
}

function hide(id)
{
	document.getElementById(id).style.display="none";
}

function highlight(id)
{
//	document.getElementById("head"+id).style.backgroundColor="#84C3FE";
	document.getElementById("head"+id).style.borderColor="#84C3FE";
	document.getElementById("head"+id).style.borderBottom="0px";
	document.getElementById("head"+id).style.fontWeight="bold";
}

function dehighlight(id)
{
//	document.getElementById("head"+id).style.backgroundColor="#FFFFFF";
	document.getElementById("head"+id).style.borderColor="#c9c9c9";
	document.getElementById("head"+id).style.borderBottom="1px solid #84C3FE";
	document.getElementById("head"+id).style.fontWeight="normal";
}

function switchto(id)
{
	switch(id)
	{
		case 1:
			hide('div_merkzettel');
			hide('div_gesehen');
			show('div_warenkorb');
			dehighlight(2);
			dehighlight(3);
			highlight(id);

			break;
		case 2:
			hide('div_warenkorb');
			hide('div_gesehen');
			show('div_merkzettel');
			dehighlight(1);
			dehighlight(3);
			highlight(id);
			
			break;
		case 3:
			hide('div_warenkorb');
			hide('div_merkzettel');
			show('div_gesehen');
			dehighlight(1);
			dehighlight(2);
			highlight(id);
			
			break;
	}

}

function shipto(field)
{
	if(document.getElementById('liefer'+field.name))
	{
		if(document.getElementById('liefer'+field.name).value=="")
		{
			document.getElementById('liefer'+field.name).value = field.value;
		}
	}
}