
/* Scripts copyright SRTI/iXIT Engineering Technology. */

/* Always check the browser version first */
var NS4	= (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4) ? 1 : 0;
var NS6	= (NS4 && document.getElementById) ? 1 : 0;
if (NS6) {
 NS4 = 0;
}
var IE =  (document.all) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var IE5 = (IE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;

/* Coordinates */
var x = 0;
var y = 0;

/* Get an event's x and y coordinates */
function getXY() {
  if (NS4 || NS6) {
      x = e.pageX; 
      y = e.pageY;
  } else {
      if (IE4) {
	  x = event.x; 
	  y = event.y;
      } else {
	  if (IE5) {
	      x = event.x + document.body.scrollLeft; 
	      y = event.y + document.body.scrollTop;
	  }
      }
  }
}

/* The product focus script ---------------------------------------- */

function SRTI_productFocus(index, language) {

    if (language == "de") {
	document.write("<font class=\"PRODUCTHEADER\">");
	document.write("<A HREF=\"");
	document.write(deProducts.link[index]);
	document.write("\"><b>");
	document.write(deProducts.name[index]);
	document.write("</b></A>");
	document.write("</font><br />");
	document.write("<font class=\"PRODUCTBODY\">");
	document.write(deProducts.text[index]);
	document.write("</font>");
    }
    if (language == "en") {
	document.write("<font class=\"PRODUCTHEADER\">");
	document.write("<A HREF=\"");
	document.write(enProducts.link[index]);
	document.write("\"><b>");
	document.write(enProducts.name[index]);
	document.write("</b></A>");
	document.write("</font><br />");
	document.write("<font class=\"PRODUCTBODY\">");
	document.write(enProducts.text[index]);
	document.write("</font>");
    }
}

function SRTI_listProductFocus(language) {
    var index;
    if (produktVon < produktBis) {
	for (index = produktVon; index <= produktBis; index++) {
	    SRTI_productFocus(index, language);
	}
    } else {
	for (index = produktVon; index >= produktBis; index--) {
	    SRTI_productFocus(index, language);
	}
    }
}
    

/* The footer script ---------------------------------------- */

function SRTI_footer(language) {
    if (language == "de") {
	document.write("<font class=\"FOOTER\"><A HREF=\"../legal/disclaimer.html\">Bitte beachten Sie den Haftungsausschluss</a> und <A HREF=\"../legal/impressum.html\">das Impressum.</a><br />"); 
	document.write("Bei Fragen oder Anregungen wenden Sie sich bitte an "); 
	document.write("<a href=\"mailto:wiltrud.feldhaus@stelzer-mt.com?subject=Stelzer Webseite\">wiltrud.feldhaus@stelzer-mt.com</a>");
	document.write("<br></font><font class=\"SUBFOOTER\">"); 
	document.write("Letzte &Auml;nderung am " + document.lastModified);
	document.write(" </script> </font>");
    }
    if (language == "en") {
	document.write("<font class=\"FOOTER\"><A HREF=\"../legal/disclaimer.html\">Please read the disclaimer </a> and <A HREF=\"../legal/impressum.html\">the site information.</a><br />"); 
	document.write("For questions or comments, please contact "); 
	document.write("<a href=\"mailto:wiltrud.feldhaus@stelzer-mt.com?subject=Stelzer Website\">wiltrud.feldhaus@stelzer-mt.com</a>");
	document.write("<br></font><font class=\"SUBFOOTER\">"); 
	document.write("Last modification  " + document.lastModified);
	document.write(" </script> </font>");
    }
}
	
/* The news script ---------------------------------------- */

function SRTI_listNews(language) {
    var index;
    if (nachrichtVon < nachrichtBis) {
	for (index = nachrichtVon; index <= nachrichtBis; index++) {
	    if (language == "de") {
		document.write("<font class=\"NEWSHEADER\">");
		document.write(deNews.header[index]);
		document.write("</font><br />");
		document.write("<font class=\"NEWSBODY\">");
		document.write(deNews.text[index]);
		document.write("</font>");
	    }
	    if (language == "en") {
		document.write("<font class=\"NEWSHEADER\">");
		document.write(enNews.header[index]);
		document.write("</font><br />");
		document.write("<font class=\"NEWSBODY\">");
		document.write(enNews.text[index]);
		document.write("</font>");
	    }
	}
    } else {
	for (index = nachrichtVon; index >= nachrichtBis; index--) {
	    if (language == "de") {
		document.write("<font class=\"NEWSHEADER\">");
		document.write(deNews.header[index]);
		document.write("</font><br />");
		document.write("<font class=\"NEWSBODY\">");
		document.write(deNews.text[index]);
		document.write("</font>");
	    }
	    if (language == "en") {
		document.write("<font class=\"NEWSHEADER\">");
		document.write(enNews.header[index]);
		document.write("</font><br />");
		document.write("<font class=\"NEWSBODY\">");
		document.write(enNews.text[index]);
		document.write("</font>");
	    }
	    document.write("<br />");
	}
    }
}





/* The product navigation script ---------------------------------------- */

function productNavigation(type) {
    var left,right;
	
    left="index.html";
    right="index.html";

    if (type == "sdr") {
	left="skr.html";
	right="vortex.html";
    }
    if (type == "vortex") {
	left="sdr.html";
	right="snr.html";
    }	
    if (type == "snr") {
	left="vortex.html";
	right="ssr.html";
    }
    if (type == "ssr") {
	left="snr.html";
	right="smsg.html";
    }
    if (type == "smsg") {
	left="ssr.html";
	right="hermet.html";
    }
    if (type == "hermet") {
	left="smsg.html";
	right="lifescience.html";
    }
    if (type == "lifescience") {
	left="hermet.html";
	right="skr.html";
    }
    if (type == "skr") {
	left="lifescience.html";
	right="sdr.html";
    }

    document.write("<table><tr>");
    document.write("<td halign=\"center\">");
    document.write("<A HREF=\""); 
    document.write(left);
    document.write("\"><img border=\"0\" src=\"../../images/leftarrow.gif\"></A>");
    document.write("</td>");
    document.write("<td width=\"5\"></td>");
    document.write("<td halign=\"center\">");
    document.write("<A HREF=\""); 
    document.write(right);
    document.write("\"><img border=\"0\" src=\"../../images/rightarrow.gif\"></A>");
    document.write("</td>");
    document.write("</tr></table>");
}
	
/* The openSparepartsDE script */

function openSparepartsDE() {
	SparepartDE = window.open("ersatzteile_de.pdf", "ErsatzteileDE",'width=650, height=600, top=25, left=200');
	SparepartDE.focus();
}

/* The openSparepartsEN script */

function openSparepartsEN() {
	SparepartEN = window.open("ersatzteile_en.pdf", "ErsatzteileEN",'width=650, height=600, top=25, left=200');
	SparepartEN.focus();
}


/* The openDayVoucherDE script */

function openDayVoucherDE () {
 dayVoucherDE =  window.open("gutschein_achema_de.pdf", "GutscheinDE",'width=650, height=600, top=25, left=200');
 dayVoucherDE.focus();
}

/* The openDayVoucherEN script */

function openDayVoucherEN () {
 dayVoucherEN =  window.open("gutschein_achema_en.pdf", "GutscheinEN",'width=650, height=600, top=25, left=200');
 dayVoucherEN.focus();
}

/* The openSonderFormDE script */

function openSonderFormDE() {
	SonderformDE = window.open("sonderdrucke_de.pdf", "SonderdruckDE",'width=650, height=600, top=25, left=200');
	SonderformDE.focus();
}

/* The openSonderFormEN script */

function openSonderFormEN() {
	SonderformEN = window.open("sonderdrucke_en.pdf", "SonderdruckEN",'width=650, height=600, top=25, left=200');
	SonderformEN.focus();
}

/* The openRequestDE script */

function openRequestDE() {
	RequestDE = window.open("anfrage_de.pdf", "Anfrage_DE",'width=650, height=600, top=25, left=200');
	RequestDE.focus();
}

/* The openRequestEN script */

function openRequestEN() {
	RequestEN = window.open("anfrage_en.pdf", "Anfrage_EN",'width=650, height=600, top=25, left=200');
	RequestEN.focus();
}

/* The openBrochureDE script */

function openBrochureDE() {
	BrochureDE = window.open("broschuere_de.pdf", "BroschuereDE",'width=650, height=600, top=25, left=200');
	BrochureDE.focus();
}

/* The openBrochureEN script */

function openBrochureEN() {
	BrochureEN = window.open("broschuere_en.pdf", "BroschuereEN",'width=650, height=600, top=25, left=200');
	BrochureEN.focus();
}























