
function FotoWindow(bildurl,b,h)
{
var eigenschaft,sbreite,shoehe,fenster,b,h;


// stellt die Bildschirmabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><meta http-equiv="imagetoolbar" content="no"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="pragma" content="no-cache"><head>');
  document.write("<script type='text/javascript' language='JavaScript'>");
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  document.write("</script>");
  document.write('<title>Zum Schließen drauf klicken</title></head>');
  document.write('<body onblur="window.close()" '); // bei Focusverlust schliessen
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}
var speed = 15 // decrease value to increase speed (must be positive)
// set pause between completion of message and beginning of following message
var pause = 2500 // increase value to increase pause
// set initial values
var timerID = null
var bannerRunning = false
// create array
var ar = new Array()
// assign the strings to the array's elements
ar[0] = "Die Fotos Deines Lebens"
ar[1] = "präsentiert von"
ar[2] = "schoko - auge ***kreative Fotografie***"
ar[3] = "alle Rechte vorbehalten Copyright © 2004"
// assign index of current message
var message = 0
// empty string initialization
var state = ""
// no value is currently being displayed
clearState()
// stop the banner if it is currently running
function stopBanner() {
	// if banner is currently running
	if (bannerRunning)
		// stop the banner
		clearTimeout(timerID)
	// banner is now stopped
	bannerRunning = false
}
// start the banner
function startBanner() {
	// make sure the banner is stopped
	stopBanner()
	// start the banner from the current position
	showBanner()
}
// assign state a string of "0" characters of the length of the current message
function clearState() {
	// initialize to empty string
	state = ""
	// create string of same length containing 0 digits
	for (var i = 0; i < ar[message].length; ++i) {
		state += "0"
	}
}
// display the current message
function showBanner() {
	// if the current message is done
	if (getString()) {
		// increment message
		message++
		// if new message is out of range wrap around to first message
		if (ar.length <= message)
			message = 0
		// new message is first displayed as empty string
		clearState()
		// display next character after pause milliseconds
		timerID = setTimeout("showBanner()", pause)
		// banner is now running
		bannerRunning = true
	} else {
		// initialize to empty string
		var str = ""
		// built string to be displayed (only character selected thus far are displayed)
		for (var j = 0; j < state.length; ++j) {
			str += (state.charAt(j) == "1") ? ar[message].charAt(j) : "     "
		}
		// partial string is placed in status bar
		window.status = str
		// add another character after speed milliseconds
		timerID = setTimeout("showBanner()", speed)
		// banner is now running
		bannerRunning = true
	}
}
function getString() {
	// set variable to true (it will stay true unless proven otherwise)
	var full = true
	// set variable to false if a free space is found in string (a not-displayed char)
	for (var j = 0; j < state.length; ++j) {
		// if character at index j of current message has not been placed in displayed string
		if (state.charAt(j) == 0)
			full = false
	}
	// return true immediately if no space found (avoid infinitive loop later)
	if (full)
		return true
	// search for random until free space found (braoken up via break statement)
	while (1) {
		// a random number (between 0 and state.length - 1 == message.length - 1)
		var num = getRandom(ar[message].length)
		// if free space found break infinitive loop
		if (state.charAt(num) == "0")
			break
	}
	// replace the 0 character with 1 character at place found
	state = state.substring(0, num) + "1" + state.substring(num + 1, state.length)
	// return false because the string was not full (free space was found)
	return false
}
function getRandom(max) {
	return Math.round((max - 1) * Math.random())
}
// -- End Hiding Here -->

//Start Pics Menu
image1 = new Image;
image1.src = "pics/menu_start2.gif";
image2 = new Image;
image2.src = "pics/menu_start1.gif";
image3 = new Image;
image3.src = "pics/menu_team2.gif";
image4 = new Image;
image4.src = "pics/menu_team1.gif";

image5 = new Image;
image5.src = "pics/menu_shooting2.gif";
image6 = new Image;
image6.src = "pics/menu_shooting1.gif";
image7 = new Image;
image7.src = "pics/menu_gal2.gif";
image8 = new Image;
image8.src = "pics/menu_gal1.gif";
image9 = new Image;
image9.src = "pics/menu_buch2.gif";
image10 = new Image;
image10.src = "pics/menu_buch1.gif";
image11 = new Image;
image11.src = "pics/menu_kontakt2.gif";
image12 = new Image;
image12.src = "pics/menu_kontakt1.gif";


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function FotoWindow(bildurl,b,h)
{
var eigenschaft,sbreite,shoehe,fenster,b,h;


// stellt die Bildschirmabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write("<script type='text/javascript' language='JavaScript'>");
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  document.write("</script>");
  document.write('<title>Zum Schließen drauf klicken</title><meta http-equiv=imagetoolbar content=no></head>');
  document.write('<body onblur="window.close()" '); // bei Focusverlust schliessen
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}

//-->

