function Ebene_back() { 
  var i,x,a=document.DO_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function Vorladen() { 
var d=document; 
  	if(d.images){ 
  	if(!d.DO_p) d.DO_p=new Array();
var i,j=d.DO_p.length,a=Vorladen.arguments; 
	for(i=0; i<a.length; i++)
   	 if (a[i].indexOf("#")!=0){ d.DO_p[j]=new Image; d.DO_p[j++].src=a[i];}}
}

function Bilder(n, d) { 
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  	for(i=0;!x&&d.Ebenes&&i<d.Ebenes.length;i++) x=Bilder(n,d.Ebenes[i].document);
  	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function wechseln() { 
var i,j=0,x,a=wechseln.arguments; document.DO_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  	 if ((x=Bilder(a[i]))!=null){document.DO_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//var scrlStr ="~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "
//var width = 8;
//var strLen = scrlStr.length;
//var pos = 1 - width;             
//function scroll()
//{
// var scroll = "";               
//    pos++;                          
//    if (pos == strLen)              
//        pos = 1 - width;           
//    if (pos<0) {                    
//
//        for (var i=1; i<=Math.abs(pos); i++)
//
//            scroll = scroll + " ";  
//
//       scroll = scroll + scrlStr.substring(0, width - i + 1);
// }
//else
//
//   scroll = scroll + scrlStr.substring(pos, pos + width);
//   window.status = scroll;         
 //   setTimeout("scroll()",300);     
//}

function DoAutorotationStart1() {
        document.ptviewer.startAutoPan( 0.5, 0.0, 1.0 );
}

function DoAutorotationFastStart1() {
        document.ptviewer.startAutoPan( 1.5, 0.0, 1.0 );
}

function DoAutorotationFastStart2() {
        document.ptviewer.startAutoPan( -1.5, 0.0, 1.0 );
}

function DoAutorotationStart2() {
        document.ptviewer.startAutoPan( -0.5, 0.0, 1.0 );
}

function DoAutorotationStart3() {
        document.ptviewer.startAutoPan( 0.0, 0.5, 1.0 );
}

function DoAutorotationFastStart3() {
        document.ptviewer.startAutoPan( 0.0, 1.5, 1.0 );
}

function DoAutorotationFastStart4() {
        document.ptviewer.startAutoPan( 0.0, -1.5, 1.0 );
}
function DoAutorotationStart4() {
        document.ptviewer.startAutoPan( 0.0, -0.5, 1.0 );
}

function DoAutorotationStop() {
        document.ptviewer.stopAutoPan();
}

function DoZoomIn() {
	var pv=document.ptviewer; pv.moveTo(pv.pan(),pv.tilt(),40,30);
}

function DoZoomOut() {
	var pv=document.ptviewer; pv.moveTo(pv.pan(),pv.tilt(),140,30);
}

function DoShowHideHotspots() {
	document.ptviewer.toggleHS();
}

function CallHelp() {
	help();
}

function DoShowHideHotspots() {
	document.ptviewer.toggleHS();
}

function ladenSub(welche){
    parent.java.location.href="pfau"+welche+".htm"; 
    parent.java.focus();
    }

var i = 1;
var test = "demo";

function zeigeEbeneNr(ebene_nr){
    verbergen(eval('"' + test + i +'"'));
    zeigen(eval('"' + test + ebene_nr +'"'));
    i = ebene_nr; 
    }

function verbergenEbeneNr(ebene_nr){
    verbergen(eval('"' + test + i +'"'));
    i = ebene_nr;
    }


function zeigen(name) {
if (document.layers) {
    document.layers[''+name].visibility = "show";               
    }
    else {
    document.all[''+name].style.visibility = "visible"
    }
}

function verbergen(name) {
if (document.layers){
    document.layers[''+name].visibility = "hide"
    }
    else {
    document.all[''+name].style.visibility = "hidden"
    }
}

    