function timestamp() {
    lastmod=new Date(document.lastModified);
    if (lastmod.getYear()<2000) year=lastmod.getYear()+1900; else year=lastmod.getYear();
    if (lastmod.getYear()<10) year=lastmod.getYear()+2000;
    if (lastmod.getMinutes()<10) min="0"+lastmod.getMinutes(); else min=lastmod.getMinutes();
    if (lastmod.getSeconds()<10) sec="0"+lastmod.getSeconds(); else sec=lastmod.getSeconds();
    document.write("Letzte &Auml;nderung: "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+"."+year+", "+lastmod.getHours()+":"+min+":"+sec);
}


function author() {
    document.write("Webmaster der Siedler am Klingsee e.V.");
}

function hori_frameset3(strHght_top, strName_top, strHref_top,
    strHght_mid, strName_mid, strHref_mid,
    strHght_bot, strName_bot, strHref_bot) {
  document.write("<frameset rows='"+strHght_top+","+strHght_mid+","+strHght_bot+"' border=0 frameborder=0 framespacing=0>");
	document.write("  <frame src='"+strHref_top+"' name='"+strName_top+"' marginheight=0 marginwidth=0 scrolling=no>");
	document.write("  <frame src='"+strHref_mid+"' name='"+strName_mid+"' marginheight=0 marginwidth=0 scrolling=no>");
	document.write("  <frame src='"+strHref_bot+"' name='"+strName_bot+"' marginheight=0 marginwidth=0>");
  document.write("</frameset>");
}

function hori_frameset(strHght_top, strName_top, strHref_top, 
	strHght_bot, strName_bot, strHref_bot) {
  document.write("<frameset rows='"+strHght_top+","+strHght_bot+"' border=0 frameborder=0 framespacing=0>");
  document.write("  <frame src='"+strHref_top+"' name='"+strName_top+"' marginheight=0 marginwidth=2>");
  document.write("  <frame src='"+strHref_bot+"' name='"+strName_bot+"' marginheight=0 marginwidth=2>");
  document.write("</frameset>");
}

function verti_frameset(strWdth_lft, strName_lft, strHref_lft,
		strWdth_rgt, strName_rgt, strHref_rgt) {
  document.write("<frameset cols='"+strWdth_lft+","+strWdth_rgt+"' border=0 frameborder=0 framespacing=0>");
	document.write("  <frame src='"+strHref_lft+"' name='"+strName_lft+"' marginheight=0 marginwidth=0 scrolling=no>");
	document.write("  <frame src='"+strHref_rgt+"' name='"+strName_rgt+"' marginheight=0 marginwidth=2>");
  document.write("</frameset>");
}

function no_frames_area() {
  document.write("<noframes>");
    document.write("<h1>Herzlich willkommen auf der Homepage der Siedler am Klingesse e.V.</h1>");
    document.write("<p>Ihr Browser unterst&uuml;tzt keine Frames. </p>");
   document.write("</noframes>");
}

function check_frames() {
if (top.location.href == self.location.href) {
   top.location.href = 'index.html';
	 }
}

function header() {
    document.write("<table width='100%' border=0><tr><td align=right class='xsmall'>");
    timestamp();
    document.write("</td></tr></table>");
}

function ante_footer_print() {
    document.write("<table border=0 cellspacing=0 cellpadding=0 width='100%'><tr>");
    document.write("<td><a href='javascript:print();' title='Ausdruck'><img src='http://www.siedleramklingsee.de/icon/print.gif' width=16 height=16 border=0 alt='print'></a></td>");
    document.write("</tr></table>");
}

function ante_footer_top_print() {
    document.write("<table border=0 cellspacing=0 cellpadding=0 width='100%'><tr>");
    document.write("<td width=30><a href='#top' title='Zur&uuml;ck an Seitenanfang'><img src='http://www.siedleramklingsee.de/icon/top.gif' width=16 height=16 border=0 alt='Zur&uuml;ck an Seitenanfang''></a></td>");
    document.write("<td align=left><a href='javascript:print();' title='Ausdruck'><img src='http://www.siedleramklingsee.de/icon/print.gif' width=16 height=16 border=0 alt='Ausdruck'></a></td>");
    document.write("</tr></table>");
}
function footer() {
    document.write("<hr size=1>");
    document.write("<table border=0 cellspacing=0 cellpadding=0 width='100%' <tr>");
    document.write("<td class='xsmall' align=left valign=bottom><span style='color:#606060; font-size:7pt; '>&copy; 2004-2009 Siedler am Klingsee e.V., Maintal</span><br><a href='mailto:internet&#64siedleramklingsee.de'>Webmaster</a></td>");
   document.write("<td class='xsmall' align=center><a href='/index.html' target='_top' style='text-decoration:underline; font-weight:normal; '>Home</a> <a href='http://search.freefind.com/find.html?id=34161874&pid=r&mode=ALL&n=0&query=&sitemap=Site+Map' target='_self' style='text-decoration:underline; font-weight:normal; ' title='Sitemap'>Inhalt</a> <a href='/Impressum/intrtxt.htm' target='_self' style='text-decoration:underline; font-weight:normal; '>Impressum</a></td>");
	 document.write("<td class='xsmall' align=right valign=bottom><span style='color:#606060; font-size:7pt; '>Site optimiert f&uuml;r MS IE ab v4 und Firefox<br>Aufl&ouml;sung 1.024 x 768, Schriftgr&ouml;&szlig;e mittel</span></td>")
    document.write("</tr></table>");
}

function no_left_click() {
if (event.button==1)
	{
	alert("Bitte nutzen Sie hier nur die rechte Maustaste (z.B. zum Herunterladen von Dateien)!")
	}
}

function no_right_click() {
if (event.button==3)
	{
	alert("Rechte Maustaste ist auf dieser Seite deaktiviert")
	}
}

function open_popup(strFilename, lngWidth, lngHeight, lngX, lngY) {
	open(strFilename, "_x", "width=" + lngWidth + ",height=" + lngHeight + ",screenX=" + lngX + ",screenY=" + lngY + ",scrollbars=yes");
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function spawn(expr,qty,reversed){
var spawnee=[expr];
for(s=1;s<qty;s++){
spawnee[s]=expr+spawnee[s-1];
}
return reversed? spawnee.reverse() : spawnee();
}

function crumbs(divider,default_page,root){
if(!divider) {divider=" : "}
if(!default_page){default_page="index.html"}
var m=location.toString(),h="";
m=m.substring(m.indexOf("/")+1);
m=m.split("/");
var howmany=spawn("../",m.length,true);
howmany[m.length]=default_page;
for(i=1;i<m.length-2;i++){
h+=("<a href="+howmany[i+2]+" target='_top'>"+unescape( m[i]+"</a>"+divider))
}
h += document.title;
if(root) {
h=h.replace(eval("/"+location.host+"/"),root)
}
return h
}

function new_header() {
    document.write("<table width='100%' border=0><tr><td width='72%' class='xsmall'>");
		document.write(crumbs("/","","Startseite"));
		document.write("</td><td width='28%' align=right class='xsmall'>");
    timestamp();
    document.write("</td></tr></table>");
}
