
arrSrc=new Array("material.jpg","produkte.jpg","termine.jpg","material2.jpg","produkte2.jpg");
arrImages=new Array();


/*************** Funktionen ***************/

for (i=0;i<arrSrc.length;i++) {

	arrImages[i]=new Image();
	arrImages[i].src="gfx/"+arrSrc[i];

} // for

function randomPicture() {

	tmp=Math.ceil(Math.random()*arrSrc.length-1);
	document.images["startbild"].src=arrImages[tmp].src;

} // randomPicture



function fliptext(text) {

	window.status=text;
	return true;

} // fliptext



function openDetail(datei,breite,hoehe) {
	
	if (datei!="") {
	
		detail = window.open('gfx_galerie/'+datei,'detailansicht','width='+breite+',height='+hoehe+',resizable=no,menubar=no,dependent=yes,scrollbars=no');
		detail.focus();
	
	} // if

} // openDetail


function ieBlur() {

	window.defaultStatus="Schoene Schalen";
	
	if (document.images && navigator.userAgent.indexOf("MSIE")!=-1){
	
		for (i=0;i<document.links.length;i++){
	
			target=eval("document.links[i]")
			target.onfocus=keinRahmen

		} // for

	} // if

} // ieblur

function keinRahmen(){

	obj=window.event.srcElement
	if (obj.tagName == "A"||obj.tagName=="AREA") obj.blur()

} // ieBlur


function revString(text) {

   if (text!="") {

   	wert="";

   	for (i=text.length-1;i>=0;i--) wert+=text.charAt(i);

  	return wert;

   } // if

} // revString


function eMail(linkID){

	if (linkID) document.getElementById(linkID).href=revString("ed.nelahcs"+"-eneohcs"+"@"+"ofni:"+"otl"+"iam");
	
} // eMail



// eof <-------------
