function RoundLaden(site)
{
  var id=document.getElementById("inhalt");
  id.src=site;
}
function SetBGColor(elem, farbe)
{elem.style.backgroundColor = farbe;
elem.style.cursor = 'hand'}

function openwin(theURL,winName,features) {neuesFenster=window.open(theURL,winName,features);
neuesFenster.focus();neuesFenster.moveTo(20,20)}function openinfo(focusfenster) {neuesFenster=window.open('info.htm','Info','resizable=0, width=300,height=239, scrollbars=no');
  focusfenster.focus();
  neuesFenster.moveTo(0,0)}
  
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
win.focus();}

function StartAutoPan() {
   document.ptviewer.startAutoPan( 0.2, 0.0, 1.0 );
}
function StopAutoPan() {
    document.ptviewer.stopAutoPan();
}
function DoPanLeft(){
	document.ptviewer.startAutoPan( -0.2, 0.0, 1.0 );
}
function DoPanRight(){
	document.ptviewer.startAutoPan( 0.2, 0.0, 1.0 );
}
function DoPanDown(){
	document.ptviewer.startAutoPan( 0, -0.2, 1.0 );
}
function DoPanUp(){
	document.ptviewer.startAutoPan( 0, 0.2, 1.0 );
}
function DoZoomIn() {
	document.ptviewer.startAutoPan( 0.0, 0.0,0.99);
}
function DoZoomOut() {
	document.ptviewer.startAutoPan( 0.0, 0.0,1.01);
}
