﻿/* JavaScript for Software-Dokumentation Web Site */
/* (c) 2009 M.Kraft */


function header(currPage)
  {
    if (currPage == "index.html")
        document.write('M.Kraft &ndash; Software-Dokumentation');
    else
        document.write('M.Kraft &ndash; Software-Dokumentation');
  }

function firstpage()
  {
    document.write("Welcome to my company's Homepage! &nbsp; &nbsp; &nbsp; &nbsp; Please select a language: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href='en/index.html'>English</a><br />");
    document.write("Willkommen auf meiner Firmen-Homepage! &nbsp;Bitte w&auml;hlen Sie eine Sprache: &nbsp; <a href='de/index.html'>Deutsch</a>");
  }


function firstfooter() {
document.write("<hr class='hr'>");
document.write("2009 Alle Rechte vorbehalten. / All rights reserved. <a href='mailto:&#77;&#46;&#75;&#114;&#97;&#102;&#116;&#64;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#45;&#100;&#111;&#107;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;&#46;&#110;&#101;&#116'>&#77;&#46;&#75;&#114;&#97;&#102;&#116;&#64;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#45;&#100;&#111;&#107;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;&#46;&#110;&#101;&#116</a> &nbsp; &nbsp; &nbsp;");
firsttime ();
document.write('<br>' +'<hr class="hr">');
}

function de_footer() {
document.write('<hr class="hr">' +'<a href="javascript:history.back()">Zur&uuml;ck</a>' +"&nbsp; &nbsp; URL: http://www.software-dokumentation.net/ &nbsp; &nbsp; © 2009 <a href='mailto:&#77;&#46;&#75;&#114;&#97;&#102;&#116;&#64;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#45;&#100;&#111;&#107;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;&#46;&#110;&#101;&#116'>&#77;&#46;&#75;&#114;&#97;&#102;&#116;&#64;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#45;&#100;&#111;&#107;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;&#46;&#110;&#101;&#116</a> &nbsp; &nbsp; &nbsp;");
zeit ();
document.write('<br>' +'<hr class="hr">');
}


function en_footer() {
document.write('<hr class="hr">' +'<a href="javascript:history.back()">Back</a>' +"&nbsp; &nbsp; URL: http://www.software-dokumentation.net/ &nbsp; &nbsp; © 2009 <a href='mailto:&#77;&#46;&#75;&#114;&#97;&#102;&#116;&#64;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#45;&#100;&#111;&#107;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;&#46;&#110;&#101;&#116'>&#77;&#46;&#75;&#114;&#97;&#102;&#116;&#64;&#115;&#111;&#102;&#116;&#119;&#97;&#114;&#101;&#45;&#100;&#111;&#107;&#117;&#109;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;&#46;&#110;&#101;&#116</a> &nbsp; &nbsp; &nbsp;");
time ();
document.write('<br>' +'<hr class="hr">');
}

function navigation(currPage)
  {
    if (currPage == "index.html")
      document.write('<li>| <a class="active">Startseite</a> |</li>&nbsp; &nbsp;');
    else
     document.write('<li><a href="index.html">Startseite</a></li>&nbsp; &nbsp;');

    if (currPage == "ziele.html")
      document.write('<li>|  <a class="active">Ziele</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="ziele.html">Ziele</a></li>&nbsp; &nbsp;');

    if (currPage == "leistungen.html")
      document.write('<li>|  <a class="active">Leistungen</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="leistungen.html">Leistungen</a></li>&nbsp; &nbsp;');

    if (currPage == "referenzen.html")
      document.write('<li>|  <a class="active">Referenzen</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="referenzen.html">Referenzen</a></li>&nbsp; &nbsp;');

    if (currPage == "preise.html")
      document.write('<li>|  <a class="active">Preise</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="preise.html">Preise</a></li>&nbsp; &nbsp;');

    if (currPage == "arbeitsproben.html")
      document.write('<li>|  <a class="active">Arbeitsproben</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="arbeitsproben.html">Arbeitsproben</a></li>&nbsp; &nbsp;');

    if (currPage == "copyright.html")
      document.write('<li>|  <a class="active">Copyright</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="copyright.html">Copyright</a></li>&nbsp; &nbsp;');

    if (currPage == "impressum.html")
      document.write('<li>|  <a class="active">Impressum</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="impressum.html">Impressum</a></li>&nbsp; &nbsp;');

  }

function en_navigation(currPage)
  {
    if (currPage == "index.html")
      document.write('<li>| <a class="active">Main page</a> |</li>&nbsp; &nbsp;');
    else
     document.write('<li><a href="index.html">Main page</a></li>&nbsp; &nbsp;');

    if (currPage == "goals.html")
      document.write('<li>|  <a class="active">Goals</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="goals.html">Goals</a></li>&nbsp; &nbsp;');

    if (currPage == "work.html")
      document.write('<li>|  <a class="active">Work</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="work.html">Work</a></li>&nbsp; &nbsp;');

    if (currPage == "references.html")
      document.write('<li>|  <a class="active">References</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="references.html">References</a></li>&nbsp; &nbsp;');

    if (currPage == "rates.html")
      document.write('<li>|  <a class="active">Rates</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="rates.html">Rates</a></li>&nbsp; &nbsp;');

    if (currPage == "samples.html")
      document.write('<li>|  <a class="active">Samples</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="samples.html">Samples</a></li>&nbsp; &nbsp;');

    if (currPage == "copyright.html")
      document.write('<li>|  <a class="active">Copyright</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="copyright.html">Copyright</a></li>&nbsp; &nbsp;');

    if (currPage == "contact.html")
      document.write('<li>|  <a class="active">Contact</a> |</li>&nbsp; &nbsp;');
    else
      document.write('<li><a href="contact.html">Contact</a></li>&nbsp; &nbsp;');

  }

function zeit() {
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 am "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+ "."+year+" um "+lastmod.getHours()+":"+min+":"+sec);
}

function time() {
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("Last modified "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+ "."+year+" at "+lastmod.getHours()+":"+min+":"+sec);
}


function firsttime() {
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 am "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+ "."+year+" um "+lastmod.getHours()+":"+min+":"+sec+ " / Last modified "+lastmod.getDate()+"."+(lastmod.getMonth()+1)+ "."+year+" at "+lastmod.getHours()+":"+min+":"+sec);
}

/* Use these functions (doSection, noSection) to make sidebars appear and disappear. */
/* Used in sample section */

function doSection (secNum){
	//display the section if it's not displayed; hide it if it is displayed
	if (secNum.style.display=="none"){secNum.style.display=""}
	else{secNum.style.display="none"}
}

function noSection (secNum){
	//remove the section when user clicks in the opened DIV
	if (secNum.style.display==""){secNum.style.display="none"}
}

function doExpand(paraNum,arrowNum){
	//expand the paragraph and rotate the arrow; collapse and rotate it back
	if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="../pics/arrowdn.gif"}
	else{paraNum.style.display="none";arrowNum.src="../.pics/arrowrt.gif"}
}

//These functions control the behavior of the homepage go arrows.
function liteGo(spNo){
	spNo.style.background="#00cc33";
	spNo.style.color="#FFFFFF";
}

function liteOff(spNo){
	spNo.style.background="transparent";
	spNo.style.color="#000000";
}
