
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
   }
}


if (navigator.appVersion.indexOf("2.") != -1){
	check = false;
	}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
	check = false;
	}
else
 {
	check = true;
	}
if (check == true){
 
	image8 = new Image();
	image8.src = "images/layout/home.png";
	image8on = new Image();
	image8on.src = "images/layout/home_over.png";
	image8alt = new Image();
	image8alt.src = "images/layout/home.png";

	image9 = new Image();
	image9.src = "images/layout/zur_kasse.png";
	image9on = new Image();
	image9on.src = "images/layout/zur_kasse_over.png";
	image9alt = new Image();
	image9alt.src = "images/layout/zur_kasse.png";
		
}
imagealt = ""
function imageon(name){
	if (imagealt != name){
        	document[name].src = eval(name + "on.src");
	}
}
function imageoff(name){
	if (imagealt != name){
        	document[name].src = eval(name + ".src");
	}
}
function on(name){
        if (check == true){
	imageon(name);
	}
}
function off(name){
        if (check == true){
	imageoff(name);
	}
}
function alt(name){
	if (check == true){
	document[name].src = eval(name + "alt.src");
	if (imagealt != name){
		if (imagealt != ""){
			document[imagealt].src = eval(imagealt + ".src");
		}
	}
	imagealt = name
	}
}

function popup1() {
fenster = window.open("_applikationen/color.html","PopUp","width=600,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup2() {
fenster = window.open("_applikationen/crystalmesh.html","PopUp","width=600,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup3() {
fenster = window.open("_applikationen/perlen.html","PopUp","width=600,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup4() {
fenster = window.open("_applikationen/stoffe.html","PopUp","width=600,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup5() {
fenster = window.open("_applikationen/large_breeds.html","PopUp","width=350,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup6() {
fenster = window.open("_applikationen/small_breeds.html","PopUp","width=350,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup7() {
fenster = window.open("_applikationen/Bestellformular_Hundemaentel_Halsbaender.pdf","PopUp","width=600,height=600,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popup8() {
fenster = window.open("_applikationen/fahrzeugliste_2011.pdf","PopUp","width=1024,height=800,menubar=no,toolbar=no,scrollbars=yes,status=no,resizable=no,location=no,hotkeys=no")
}

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}

