source_local_IE = "file://D:/__Rayland-wk/1_Kunden/0805-021_Gebhard/_Gebhard-WEB/";
source_local_FF = "file://///D:/__Rayland-wk/1_Kunden/0805-021_Gebhard/_Gebhard-WEB/";

source_web  = "http://www.fewo-esther-gebhard.de/";

source         = source_web;
source_fzg   = source + 'images/fzg/';
source_con  = source + 'content/';

//---------------------------------------------------------------------------------------------------------------------------------------------

function noback() {
  history.go(1);
}

//---------------------------------------------------------------------------------------------------------------------------------------------

function OpenWinV(filename,height,width)
{
var ifile = source + filename;
var iheight = height;
var iwidth = width;
window.open(ifile,"titel","height="+ iheight +",width="+ iwidth +",left=250,top=200");
}

function OpenImageWinV(filename,height,width)
{
var ifile = source_img + filename + '.html';
var iheight = height;
var iwidth = width;
window.open(ifile,"titel","height="+ iheight +",width="+ iwidth +",left=200,top=150");
}
function OpenImageWin(filename)
{
var ifile = source_img + filename + '.html';
window.open(ifile, "titel", "height=400, width=600, left=100, top=100");
}

function OpenGuestbook()
{
var ifile = "http://www.guestbook-free.com/books2/srfsfun/";
window.open(ifile, "titel", "height=340, width=550, left=100, top=74, scrollbars=yes");
}

//---------------------------------------------------------------------------------------------------------------------------------------------
function snbut_setup ()
{
var count;

  for (count=0;count<11;count++)
     {
     navname = 'sn' + count;
     navid = top.document.getElementById(navname);
     if (navid) {navid.style.display = "none";}
     }
}

function change_content(navname)
{
snbut_setup();
switch (navname)
{
case 'willkommen': 	s_name ='sn0'; break;
case 'ferienwohnung': 	s_name ='sn1'; break;
case 'garten': 		s_name ='sn2'; break;
case 'preise': 		s_name ='sn3'; break;
case 'freizeitprogramm': 	s_name ='sn4'; break;
case 'impressum': 		s_name ='sn5'; break;
case 'kontakt': 		s_name ='sn6'; break;
case 'prinav01': 		s_name ='sn7'; break;
case 'prinav02': 		s_name ='sn8'; break;
case 'prinav03': 		s_name ='sn9'; break;
case 'anfahrt': 		s_name ='sn10'; break;
default: break;
}
var sid = top.document.getElementById(s_name);
if (sid) {sid.style.display = "inline"};
}

function change_inhalt(navname)
{
   parent.frames[0].location.href = source_con +  navname + '.html';
   change_content(navname);
}

//---------------------------------------------------------------------------------------------------------------------------------------------
function ViewImage(filename,ix,iy,ititle)
{
var ifile = source_fzg + filename;
var win;
var sWidth;
var sHeight;
var mapx = ix-180;
var mapy =iy-29;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",left=250,top=200,menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write('<map name="link"><area href="http://www.fotoatelier-schruefer.de" shape="rect" coords='+mapx+','+mapy+','+ix+','+iy+'" target="_blank"></map>');
win.document.write('<img border="0" src='+ifile+' usemap="#link">');
win.document.write("</div></body></html>");

win.document.close();
}

//---------------------------------------------------------------------------------------------------------------------------------------------
function ViewImage_archiv(filename,ix,iy,ititle)
{
var ifile = source_fzg + filename;
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",left=250,top=200,menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}
