if (document.images) {

	nav00off = new Image();
	nav00off.src= "/images/nav_pl/nv_main_00_lo.gif";
	nav00on = new Image();
	nav00on.src= "/images/nav_pl/nv_main_00_hi.gif";

	nav01off = new Image();
	nav01off.src= "/images/nav_pl/nv_main_01_lo.gif";
	nav01on = new Image();
	nav01on.src= "/images/nav_pl/nv_main_01_hi.gif";

	nav02off = new Image();
	nav02off.src= "/images/nav_pl/nv_main_02_lo.gif";
	nav02on = new Image();
	nav02on.src= "/images/nav_pl/nv_main_02_hi.gif";

	nav03off = new Image();
	nav03off.src= "/images/nav_pl/nv_main_03_lo.gif";
	nav03on = new Image();
	nav03on.src= "/images/nav_pl/nv_main_03_hi.gif";

	nav04off = new Image();
	nav04off.src= "/images/nav_pl/nv_main_04_lo.gif";
	nav04on = new Image();
	nav04on.src= "/images/nav_pl/nv_main_04_hi.gif";

	nav05off = new Image();
	nav05off.src= "/images/nav_pl/nv_main_05_lo.gif";
	nav05on = new Image();
	nav05on.src= "/images/nav_pl/nv_main_05_hi.gif";

	preloaded = true;
}



function imgStart(imgName) {	
	if (imgName != ""){
		if (preloaded) {
    		if (document.images) {
				image = imgName.substring(0,5);
				document[image].src = eval(image + "on.src");
    	    }
		}
		if (imgName.length > 5){
			document[stat].src = "/images/nv_sec_hi.gif";
			theOne = eval("imgName + '_l'");
				for(i=0;i<document.links.length;i++){
					if(document.links[i].name == theOne){
						document.links[i].className = 'secact';
					}
				}
		}
	}
}


function imgOn(imgName) {	
//	alert(imgName);
	if (imgName != ""){
		if (preloaded) {
    		if (document.images) {
				leImage = imgName.substring(0,5);
				document[leImage].src = eval(leImage + "on.src");
    	    }
		}
	}
}


function imgOff(imgName) {
   if (preloaded) {
        if (document.images) {
			theImage = imgName.substring(0,5);
			theStat = stat.substring(0,5);
        	if (theImage != theStat){
        		document[theImage].src = eval(theImage + "off.src");
			}
        }
	}
}

function CtImgOn(imgName) {	
	if (document.images) {
		
		hilit = new Image();
		hilit.src = "photos/im_" + imgName + "_hi.jpg";
		document[imgName].src = hilit.src;
	}



whichOne = imgName + 'txt'; 
showTxt(whichOne);

}


function CtImgOff(imgName) {
	if (document.images) {
		lolit = new Image();
		lolit.src = "photos/im_" + imgName + "_lo.jpg";
		document[imgName].src = lolit.src;
	}
}


var theVis = "prodpics00";
var theLPos = 0;


function showIt(which,where) {

var obj;

	if (which.substring(0,7) == "prodpic"){
		hideIt(theVis);
		theVis = which;
	}
	if (is.ie){
		obj = eval(which + 'Div.style');

		if (typeof(select1Div) != 'undefined'){
			if (which.indexOf('00') > -1 || which.indexOf('01') > -1 || which.indexOf('02') > -1){
				select1Div.style.visibility = "hidden";
			//} else {
				//select2Div.style.visibility = "hidden";
			}
		}
		if (typeof(select2Div) != 'undefined'){
			if (which.indexOf('02') > -1){
				select2Div.style.visibility = "hidden";
			}
		}
		if (typeof(landSelDiv) != 'undefined'){
			if (which.indexOf('02') > -1){
				landSelDiv.style.visibility = "hidden";
			}
		}
	} else {
		obj = eval('document.getElementById("' + which + 'Div").style');
	}
	if (typeof(where) != 'undefined'){
		theLPos=where.offsetLeft + 331;
		obj.left=theLPos + "px";
	}
	obj.visibility = "visible";

}


function showNav(which,where) {

var obj;

	if (which.substring(0,7) == "prodpic"){
		hideIt(theVis);
		theVis = which;
	}
	if (is.ie){
		obj = eval(which + 'Div.style');
		obj2 = eval(which + '_topDiv.style');

		if (typeof(select1Div) != 'undefined'){
		
			if (which.indexOf('00') > -1 || which.indexOf('01') > -1 || which.indexOf('02') > -1){
				select1Div.style.visibility = "hidden";

			//} else {
				//select2Div.style.visibility = "hidden";
			}


		}
		if (typeof(select2Div) != 'undefined'){
			if (which.indexOf('02') > -1){
				select2Div.style.visibility = "hidden";
			}
		}
		if (typeof(landSelDiv) != 'undefined'){
			if (which.indexOf('02') > -1){
				landSelDiv.style.visibility = "hidden";
			}
		}
	} else {
		obj = eval('document.getElementById("' + which + 'Div").style');
		obj2 = eval('document.getElementById("' + which + '_topDiv").style');
	}
	if (typeof(where) != 'undefined'){


		if (navigator.userAgent.indexOf("Netscape6") > -1 ){
			theLPos=where.offsetLeft - 10;
			obj.left=theLPos + "px";
			the2LPos = theLPos + 10;
			obj2.left=the2LPos + "px";
		}else{
			theLPos=where.offsetLeft + 332;
			obj.left=theLPos + "px";
			the2LPos = theLPos + 9;
			obj2.left=the2LPos + "px";
		}



	}
	obj.visibility = "visible";
	obj2.visibility = "visible";
}







function hideNav(which) {

	if (is.ie){
		obj = eval(which + 'Div.style');
		obj2 = eval(which + '_topDiv.style');
		obj.visibility = "hidden";
		obj2.visibility = "hidden";


		if (typeof(select1Div) != 'undefined'){
			if (which.indexOf('00') > -1 || which.indexOf('01') > -1 || which.indexOf('02') > -1){
				select1Div.style.visibility = "visible";
			//} else {
				//select2Div.style.visibility = "visible";
			}
		}
		if (typeof(select2Div) != 'undefined'){
			if (which.indexOf('02') > -1){
				select2Div.style.visibility = "visible";
			}
		}
		if (typeof(landSelDiv) != 'undefined'){
			if (which.indexOf('02') > -1){
				landSelDiv.style.visibility = "visible";
			}
		}

	} else if (is.ns6) {
		obj = eval('document.getElementById("' + which + 'Div").style');
		obj.visibility = "hidden";
		obj2 = eval('document.getElementById("' + which + '_topDiv").style');
		obj2.visibility = "hidden";

	} else {
		obj = eval('document.getElementById("' + which + 'Div").style');
		obj.visibility = "hidden";
		obj2 = eval('document.getElementById("' + which + '_topDiv").style');
		obj2.visibility = "hidden";
	}
}




function hideIt(which) {

	if (is.ie){
		obj = eval(which + 'Div.style');
		obj.visibility = "hidden";

		if (typeof(select1Div) != 'undefined'){
			if (which.indexOf('00') > -1 || which.indexOf('01') > -1 || which.indexOf('02') > -1){
				select1Div.style.visibility = "visible";
			//} else {
				//select2Div.style.visibility = "visible";
			}
		}
		if (typeof(select2Div) != 'undefined'){
			if (which.indexOf('02') > -1){
				select2Div.style.visibility = "visible";
			}
		}
		if (typeof(landSelDiv) != 'undefined'){
			if (which.indexOf('02') > -1){
				landSelDiv.style.visibility = "visible";
			}
		}
	} else if (is.ns6) {
		obj = eval('document.getElementById("' + which + 'Div").style');
		obj.visibility = "hidden";
	} else {
		obj = eval('document.getElementById("' + which + 'Div").style');
		obj.visibility = "hidden";
	}
}


var acText = "prodpic_00txt";

function showTxt(which){

	hideIt(acText);
	if (is.ie){
		obj = eval(which + 'Div.style');
	} else {
		obj = eval('document.getElementById("' + which + 'Div").style');
	}
	obj.visibility = "visible";
	acText = which;
}



function openProd(url){

	if(screen.availHeight < 600){
		theH = 456;
		window.open(url,"prodpic","width=516,height="+ theH +",scrollbars=yes,resizeable=no,menubar=yes,status=yes,top=0,left=0");
	} else {
		theH = 590;
		window.open(url,"prodpic","width=500,height="+ theH +",scrollbars=no,resizeable=no,menubar=yes,status=yes,top=0,left=0");
	}
}

function open_detail(url) {	
	if(screen.availHeight < 600){
		theH = 544;
	} else {
		theH = 680;
	}
	window.open(url,"detail","width=516,height="+ theH +",left=0,top=0,scrollbars=yes,resizeable=no,menubar=no");
}

function open_contact(url) {	
	if(screen.availHeight < 600){
		theH = 544;
	} else {
		theH = 710;
	}
	window.open(url,"contact","width=523,height="+ theH +",top=0,left=0,scrollbars=yes,resizeable=no,menubar=no");
}

function print_it(url) {
	if(screen.availHeight < 600){
		theH = 544;
	} else {
		theH = 680;
	}
	window.top.gedruckt = "nein";
	var opener = window.open(url, "drucken","width=516,height="+ theH +",left=0,top=0,scrollbars=yes,resizeable=no,menubar=no");
}

function getPLZ_teaser(){
	if(document.forms.plz_search.plz_global.value == ""){
		alert('Bitte geben Sie eine Postleitzahl ein.');
	} else {
		document.forms.plz_search.submit();
	}
}

