<!--
function Anzeigen(name)
{
if(document.layers) {document.layers[name].visibility="visible";}
if(document.all) {document.all(name).style.visibility="visible";}
if(document.getElementById) {document.getElementById(name).style.visibility="visible";}
}
//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ver.indexOf("MSIE 6")>-1) && this.dom)?1:0
	this.ie4=(document.all && !this.dom)?1:0
	this.ns5=(this.dom && parseInt(this.ver) >= 5)?1:0
	this.ns4=(document.layers && !this.dom)?1:0
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
bw=new checkBrowser()

//Browsererkennung (IE oder nicht IE)
var IE = document.all?true:false;

function change(name,url)
{
	document.images[name].src="images/nav/"+url;
}

function change2(name,url,name2,url2)
{
	document.images[name].src="images/nav/"+url;
	document.images[name2].src="images/nav/"+url2;
}

images = new Array();

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function preloadImages() {
	if (document.images) {
		
		dummy1 = newImage("images/nav/kl_logo_off.jpg");
		dummy2 = newImage("images/nav/os_logo_off.jpg");
		dummy3 = newImage("images/nav/as_logo_off.jpg");
		dummy4 = newImage("images/nav/ugruppe_on.jpg");
		dummy5 = newImage("images/nav/kontakt_on.jpg");
		dummy6 = newImage("images/nav/impressum_on.jpg");
		dummy7 = newImage("images/nav/home_on.jpg");
		dummy26 = newImage("images/layout/li_square.jpg");
					
	}
}

function routekl() { Fenster = window.open("route_kl.html", "route", "width=280,height=320"); }
function routeos() { Fenster = window.open("route_os.html", "route", "width=280,height=320"); }

function direktanfrage() {
	var name = "info";
	var domain = "frischkorn-gmbh.de";
	document.write('<area shape=\"rect\" alt=\"Frischkorn Direktanfrage\" coords=\"127,6,263,27\" href=\"mailto:' + name + '&#64;' + domain + '\">');
}

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all
var dragswitch=0
var nsx
var nsy
var nstemp
function drag_drop_ns(name){
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}
function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}
function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx
crossobj.style.top=tempy+e.clientY-offsety
return false
}
}
function initializiere_drag(e){
crossobj=ns6? document.getElementById("popupbox") : document.all.popupbox
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "HTML" : "BODY"
while (firedobj.tagName!=topelement&&firedobj.id!="dragbar"){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}
if (firedobj.id=="dragbar"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY
tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)
dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmousedown=initializiere_drag
document.onmouseup=new Function("dragapproved=false")
function box_weg(){
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.popupbox.visibility="hide"
}
function box_on(){
if (ie4||ns6)
crossobj.style.visibility="visible"
else if (ns4)
document.popupbox.visibility="show"
}
//-->