/////////////////////////////////////////////////////////////////////////////////
// Skriptsammlung für www.sabine-jaeschke.de
//
// Author: Johannes Jaeschke
// Stand: 2005-09-14
/////////////////////////////////////////////////////////////////////////////////




//--VARIABLEN-------------------------------------------

Bild011 = new Image();
Bild011.src = "./bilder/bild11.jpg";
Bild012 = new Image();
Bild012.src = "./bilder/bild12.jpg";
Bild021 = new Image();
Bild021.src = "./bilder/bild21.jpg";
Bild022 = new Image();
Bild022.src = "./bilder/bild22.jpg";
Bild031 = new Image();
Bild031.src = "./bilder/bild31.jpg";
Bild032 = new Image();
Bild032.src = "./bilder/bild32.jpg";
Bild041 = new Image();
Bild041.src = "./bilder/bild41.jpg";
Bild042 = new Image();
Bild042.src = "./bilder/bild42.jpg";
var Bild01s = 1;
var Bild02s = 1;
var Bild03s = 1;
var Bild04s = 1;



//--FUNKTIONEN-------------------------------------------

//Anti-Fremdframe
function antiFrame(){
	if(top!=self){
		top.location=self.location;
	}
}



//Copyright
function copyright(){
	window.status="COPYRIGHT www.sebion.de";
}



//Bilder-FadeInOut
function bildwechsel(bildnr) {
	if (bildnr == "01"){
		if (Bild01s == 1) {
			Bild01s = 2;
			document.all.bild01.filters.blendTrans.Apply();
			document.all.bild01.src = Bild012.src;
			document.all.bild01.filters.blendTrans.Play();
		} else {
			Bild01s = 1;
			document.all.bild01.filters.blendTrans.Apply();
			document.all.bild01.src = Bild011.src;
			document.all.bild01.filters.blendTrans.Play();
		}
	}else if(bildnr == "02"){
		if (Bild02s == 1) {
			Bild02s = 2;
			document.all.bild02.filters.blendTrans.Apply();
			document.all.bild02.src = Bild022.src;
			document.all.bild02.filters.blendTrans.Play();
		} else {
			Bild02s = 1;
			document.all.bild02.filters.blendTrans.Apply();
			document.all.bild02.src = Bild021.src;
			document.all.bild02.filters.blendTrans.Play();
		}
	}else if(bildnr == "03"){
		if (Bild03s == 1) {
			Bild03s = 2;
			document.all.bild03.filters.blendTrans.Apply();
			document.all.bild03.src = Bild032.src;
			document.all.bild03.filters.blendTrans.Play();
		} else {
			Bild03s = 1;
			document.all.bild03.filters.blendTrans.Apply();
			document.all.bild03.src = Bild031.src;
			document.all.bild03.filters.blendTrans.Play();
		}
	}else if(bildnr == "04"){
		if (Bild04s == 1) {
			Bild04s = 2;
			document.all.bild04.filters.blendTrans.Apply();
			document.all.bild04.src = Bild042.src;
			document.all.bild04.filters.blendTrans.Play();
		} else {
			Bild04s = 1;
			document.all.bild04.filters.blendTrans.Apply();
			document.all.bild04.src = Bild041.src;
			document.all.bild04.filters.blendTrans.Play();
		}
	}
}


// Rechtsklick verboten
function antiRechtsklick_GUT(){
	info = "Informationen erhalten Sie unter info@anderrott.de";
	browserVersion = parseInt(navigator.appVersion);
	browserName = navigator.appName;

	function nrc(e){
		if((browserName == "Netscape") && (e.which>1)){
			alert(info);
			return false
		}else if((browserName == "Microsoft Internet Explorer") && (event.button > 1)){
			alert(info);
			return false
		}
	}

	document.onmousedown = nrc;
	if(document.layers) window.captureEvents(Event.MOUSEDOWN);
	if((browserName == "Netscape") && (browserVersion < 5)) window.onmousedown = nrc;

	function one(){
		return true
	}

	onerror = one;
}

function antiRechtsklick(){
	info = "Informationen erhalten Sie unter info@anderrott.de";
	alert(info);
	return false
}