// --- MAY BE EDITED ---
//
//var PSDocumentRoot = "http:/www.PS.de/";
//var PSDocumentRoot = "/home/wiese/PS/website/public_html/";

if(typeof PSDocumentRoot == 'undefined')
{
//	var PSDocumentRoot = '../';
	var PSDocumentRoot = './';

}

var PSLocalizedRoot = PSDocumentRoot + PSDocumentLanguage + '/';


// --- MUST NOT BE EDITED ---
var PSIsNav4 = false;
var PSIsIE4 = false;

if (parseInt(navigator.appVersion.charAt(0)) >= 4) 
{
  PSIsNav4 = (navigator.appName == "Netscape") ? true : false;
  PSIsIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
}


var PSAltHomePage="Credentials";
var PSAltPrinter="Printer";
var PSPrintDocumentText="Print page...";
var PSAltTopOfDocument="top of Document";
var PSLastUpdateText="LAST UPDATE";
var PSAllRightsReservedText="ALL RIGHTS RESERVED";
var PSCompany="Company";
var PSInfo="Info";
var PSServices="Services";
var PSProducts="Products";
var PSNews="News";
var PSSitemap="Sitemap";
var PSContact="Contact";



// --- MAY BE EDITED ---
function PS_GenerateCSS(win_)
{
  if (win_.location.search != "?Print")
  {
    win_.document.writeln('<style type="text/css">');
    win_.document.writeln('body { background-color: #FFFFFF; background-image: url(' + PSLocalizedRoot + '/images/bg_' + PSDocumentMainSection + '.jpg); background-repeat: no-repeat}');
    win_.document.writeln('</style>');
  }
}

function PS_GenerateMainNavigator(win_)
{
  var geckoGap = 49;

  if (win_.location.search != "?Print")
  {
      win_.document.writeln(
        '<a href="' + PSDocumentRoot + 'index.htm" target="_top"><img src="' + PSDocumentRoot + 'images/_.gif" width="280" height="49" border="0" alt="PS homepage"></a><br><img src="' + PSDocumentRoot + 'images/nav_transparent.gif" width="295" height="269" usemap="#MapNavigator" border="0" name="ImageNavigator">' +

        '<map name="MapNavigator">' +
          '<area shape="circle" coords="176,218,27" href="' + PSLocalizedRoot + 'company.htm" alt="' + PSCompany + '" title="' + PSCompany + '" onMouseOut="PS_SwapImage(\'ImageNavigator\',0)" onMouseOver="PS_SwapImage(\'ImageNavigator\',1)" target="_top">' +
          '<area shape="circle" coords="119,228,27" href="' + PSLocalizedRoot + 'services.htm" alt="' + PSServices + '" title="' + PSServices + '" onMouseOut="PS_SwapImage(\'ImageNavigator\',0)" onMouseOver="PS_SwapImage(\'ImageNavigator\',2)" target="_top">' +
          '<area shape="circle" coords="66,205,27" href="' + PSLocalizedRoot + 'products.htm" alt="' + PSProducts + '" title="' + PSProducts + '" onMouseOut="PS_SwapImage(\'ImageNavigator\',0)" onMouseOver="PS_SwapImage(\'ImageNavigator\',3)" target="_top">' +
          '<area shape="circle" coords="38,155,27" href="' + PSLocalizedRoot + 'news.htm" alt="' + PSNews + '" title="' + PSNews + '" onMouseOut="PS_SwapImage(\'ImageNavigator\',0)" onMouseOver="PS_SwapImage(\'ImageNavigator\',4)" target="_top">' +
          '<area shape="circle" coords="44,98,27" href="' + PSLocalizedRoot + 'sitemap.htm" alt="' + PSSitemap + '" title="' + PSSitemap + '" onMouseOut="PS_SwapImage(\'ImageNavigator\',0)" onMouseOver="PS_SwapImage(\'ImageNavigator\',5)" target="_top">' +
          '<area shape="circle" coords="84,56,27" href="' + PSLocalizedRoot + 'contact.htm" alt="' + PSContact + '" title="' + PSContact + '" onMouseOut="PS_SwapImage(\'ImageNavigator\',0)" onMouseOver="PS_SwapImage(\'ImageNavigator\',6)" target="_top">' +
        '</map>');
  }
  else
  {
    win_.document.writeln('<img src="' + PSDocumentRoot + 'images/_.gif" width="10" height="1" alt="" border="0">');
  }
}


function PS_GenerateHeader(win_)
{
/*
  if (win_.location.search != "?Print")
  {
    //win_.document.writeln('<img src="' + PSDocumentRoot + 'images/_.gif" width="320" height="50" alt="' + PSDocumentTitle + '" border="0" align="left"><div align="right"><a href="' + PSDocumentRoot + 'index.htm" target="_top"><img src="' + PSDocumentRoot + 'images/credentials.gif" width="100" height="42" alt="' + PSAltHomePage + '" hspace="10" vspace="10" border="0"></a><br clear="all"></div><p><center><h1>' + PSDocumentTitle + '</h1></center>');
    win_.document.writeln('<br><div align="right"><a href="' + PSDocumentRoot + 'index.htm" target="_top"><img src="' + PSDocumentRoot + 'images/credentials.gif" width="100" height="42" alt="' + PSAltHomePage + '" hspace="10" vspace="10" border="0"></a><br clear="all"></div>');

  }
  else
  {
    win_.document.writeln('<center><a href="' + PSDocumentRoot + 'index.htm" target="_top"><img src="' + PSDocumentRoot + 'images/credentials.gif" width="100" height="42" alt="' + PSAltHomePage + '" hspace="10" vspace="10" border="0"></a><p><h1>' + PSDocumentTitle + '</h1></center>');
  }
*/
}


function PS_GenerateContentsHeader(win_)
{
  if (win_.location.search != "?Print")
  {
    win_.document.writeln('<p>');
  }
  else
  {
    win_.document.writeln('<hr noshade size="1" width="100%"><p>');
  }
}



function PS_GenerateContentsFooter(win_)
{
  if (win_.location.search != "?Print")
  {
    win_.document.writeln('<p>');
  }
  else
  {
    win_.document.writeln('<p><hr noshade size="1" width="100%">');
  }
}


function PS_GeneratePrintingSupport(win_)
{
  if (win_.location.search != "?Print")
  {
    win_.document.writeln('<p><div align="center" class="printableversiontext"><a href="javascript:_printlocation = self.location.href.substring(0, self.location.href.lastIndexOf(\'#\')); if (_printlocation.length == 0) {_printlocation = self.location}; top.location = _printlocation + \'?Print\';"><img src="' + PSDocumentRoot + 'images/icon_printer.gif" width="16" height="16" alt="' + PSAltPrinter + '" border="0" align="absmiddle" hspace="5">printable version ...</a></div>');
  }
  else
  {
    win_.document.writeln('<div align="center" class="printableversiontext"><a href="javascript:void(self.print());"><img src="' + PSDocumentRoot + 'images/icon_printer.gif" width="16" height="16" alt="Printer" border="0" align="absmiddle" hspace="5">' + PSPrintDocumentText + '</a></div>');
  }
}


function PS_GenerateLanguageSwitchingSupport(win_)
{
  if (win_.location.search != "?Print")
  {
    win_.document.writeln(
      '<p><div align="center">' +
      '<table cellpadding="0" cellspacing="10" border="0">' +
      '<tr>' +
        '<td align="center" valign="middle">' +
          '<a href="' + PSDocumentRoot + 'en/' + PSDocumentFileName + '" target="_top" class="flagtext"><img src="' + PSDocumentRoot + 'images/en.gif" width="24" height="16" alt="" border="0"><br>ENGLISH</a>' +
        '</td>' +
        '<td align="center" valign="middle">' +
          '<a href="' + PSDocumentRoot + 'ger/' + PSDocumentFileName + '" target="_top" class="flagtext"><img src="' + PSDocumentRoot + 'images/ger.gif" width="24" height="16" alt="" border="0"><br>DEUTSCH</a>' +
        '</td>' +
      '</tr>' +
      '</table>' +
      '</div>');
  }
}

function PS_GenerateFooter(win_)
{
  if (win_.location.search != "?Print")
  {
      win_.document.writeln(
        '<br>' +
        '<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
          '<tr>' +
            '<td width="295" align="left" valign="top">' +
              '<img src="' + PSDocumentRoot + 'images/_.gif" width="295" height="1" alt="">' +
            '</td>' +
            '<td width="100%" align="center" valign="middle" class="copyrighttext">' +
              '<center><a href="#DocumentTop"><img src="../images/top.gif" border="0" alt="' + PSAltTopOfDocument + '"></a></center><p>' +
              PSLastUpdateText + ': ' + document.lastModified + '<br>' +
              'COPYRIGHT &copy; 2000-2004-05 <span class="PSlogofootertext"><i>y</i>Works</span> &middot; ' + PSAllRightsReservedText + '<br>' +
              'Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.<br>' +
              'WEBMASTER: <a href="mailto:webmaster@PS.de">webmaster@PS.de</a><br>' +
            '</td>' +
          '</tr>' +
        '</table>' +
        '<div align="right"><a href="http://www.algorithmic-solutions.com" target="_top"><img src="' + PSDocumentRoot + 'images/logo_algsol.gif" border="0" alt="Design &copy; copyright 2000 by Algorithmic Solutions Software GmbH Design Department, Germany"></a></div>');
  }
  else
  {
    win_.document.writeln(
        '<br>' +
        '<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
          '<tr>' +
            '<td width="100%" align="center" valign="middle" class="copyrighttext">' +
              PSLastUpdateText + ': ' + document.lastModified + '<br>' +
              'COPYRIGHT &copy; 2000-2004-05 <span class="PSlogofootertext"><i>y</i>Works</span> &middot; ' + PSAllRightsReservedText + '<br>' +
              'WEBMASTER: <a href="mailto:webmaster@PS.de">webmaster@PS.de</a><br>' +
              '<p><a href="http://www.algorithmic-solutions.com" target="_top"><img src="' + PSDocumentRoot + 'images/logo_algsol.gif" border="0" alt="Design &copy; copyright 2000 by Algorithmic Solutions Software GmbH Design Department, Germany"></a>' +
            '</td>' +
          '</tr>' +
        '</table>');
  }
}
