// Manuel Schott
// tplanet.de
// platonic.de
// finalstage.org

var url = 'http://www.romantik-pension.de/';

function screenwidth()
 {
 if(window.innerWidth)
  return window.innerWidth
 else if(document.body && document.body.offsetWidth)
  return document.body.offsetWidth
 else return 800;
 }

function screenheight()
 {
 if(window.innerHeight)
  return window.innerWidth
 else if(document.body && document.body.offsetHeight)
  return document.body.offsetHeight
 else return 600;
 }


function posobject(obj)
 {
 obj.style.left=((screenwidth()-670)/2);
 //if(z>1) obj.style.top=((screenheight()-550)/2);
 }



// menu

content=new Array("","startseite","umgebung","zimmer","bilder","anfahrt","kontakt");
pages=new Array("","index","umgebung","zimmer","bilder","anfahrt","kontakt");

function page(nr)
 {
 self.location.href=url+pages[nr]+'.html';
 }

function mover(nr)
 {
 if(document.images)
  {
  obj=eval("document.i"+nr);
  obj.src=url+'img/'+content[nr]+'_o.jpg';
  }
 }

function mout(nr)
 {
 if(document.images)
  {
  obj=eval("document.i"+nr);
  obj.src=url+'img/'+content[nr]+'_n.jpg';
  }
 }

