function PPL(strProductName, strProductPage)
// Print Product List per line in selectionlist
{
   switch (PPL.arguments.length) 
   {
      case 1:
      {
         strProductPage = '#';
         break;
      }
      default: {}
   }
   document.write('<OPTION VALUE="' + strProductPage + '">' + strProductName + '</OPTION>');
}

function LoadProduct(strPage)
{
	if (strPage == "#") return;
	
	var strCurLocation = location;
	strCurLocation = strCurLocation + "";
	
	if (strCurLocation.indexOf("http") != -1)
	{
		newLocation = "http://www.taf-oss.nl/nl/products/" + strPage;
		location = newLocation;
	}
	else
	{
		if (strCurLocation.indexOf("products") == -1) // dan niet afkomstig van een pagina van de productlijst 
		{
			strPage = "products/" + strPage;	
		}
		location = strPage;
	}
}

function PrintProductList()
// Aangepast voor Nederlandse teksten
// Print total productlist in selectionlist
{
	var prefix = "";
	   
   document.write('<DIV CLASS="NoPrint">');
   document.write('<FORM NAME="ProductListForm">');
   //document.write('<INPUT TYPE=BUTTON VALUE="Toon" CLASS="button1" onClick="location.href=this.form.productlist.options[this.form.productlist.selectedIndex].value" TITLE="Selecteer een product (of de prijslijst of EBS)">&nbsp;');
   //document.write('<SELECT CLASS="list" NAME="productlist" onChange="location.href=this.form.productlist.options[this.form.productlist.selectedIndex].value">');
   document.write('<INPUT TYPE=BUTTON VALUE="Toon" CLASS="button1" onClick="LoadProduct(this.form.productlist.options[this.form.productlist.selectedIndex].value);" TITLE="Selecteer een product (of de prijslijst of EBS)">&nbsp;');
   document.write('<SELECT CLASS="list" NAME="productlist" onChange="LoadProduct(this.form.productlist.options[this.form.productlist.selectedIndex].value);">');

   PPL('-=-=-=-=-=-=-=-= Maak uw selectie =-=-=-=-=-=-=-=-');
   PPL('Artikel: EBS Maakt \'t verschil',prefix + 'ebs.htm');
   PPL('Artikel: De Betonnen Box vs De Houten Box',prefix + 'betonhout.htm');   
	PPL('');   
   PPL('--- Model ---------------------------------------------------------- ');
   //PPL('Excalibur',prefix + 'excalibur.htm');   
   PPL('- Hagrid',prefix + 'hagrid.htm');
   PPL('- Extrema Vaganza',prefix + 'extrema.htm');
   PPL('- Synergie, Synergie EBS, Super Synergie EBS',prefix + 'syn.htm');
   PPL('- Royal Excalibur mark II',prefix + 'royal-mark2.htm');
   PPL('- Merlin',prefix + 'mer.htm');
	PPL('');   
   PPL('--- Accessoires ------------------------------------------------- ');
   PPL('interlink TAF Next II',prefix + 'next2ext.htm');   
	PPL('');   
   PPL('------------------------------------------------------------------------- ');   
   PPL('Prijslijst',prefix + 'prices.htm');
	PPL('');   
	PPL('----[ Niet meer nieuw leverbaar, optie via inruil ]---- ');   
   PPL('Cadans 3',prefix + 'cadans3.htm');
   PPL('Cadans 5/IV',prefix + 'cadans5.htm');
   PPL('Cadans 28² Twintower',prefix + 'cadans28.htm');
   PPL('Harrie, Harrie XXL en Harrie XXL EBS ',prefix + 'harrie.htm');
   PPL('Pilotis, Pilotis EBS, Super Pilotis EBS',prefix + 'pil.htm');
   PPL('Royal Excalibur, Excalibur',prefix + 'royal.htm');
   PPL('TAF-Q Amplifier',prefix + 'taf-q.htm');
   PPL('Tj&eacute;&eacute; en Tj&eacute;&eacute; Sub',prefix + 'tjee.htm');

                  
   document.write('</SELECT>');
   document.write('</FORM>');
   document.write('</DIV>');
}

function PrintProductName(strProductName)
{
   document.write('<IMG SRC="../img/punt.gif" CLASS="titelpunt">');
   document.write('<B CLASS="TitelTekst">' + strProductName + '</B><P>');
}

function PrintTitle(strTitle)
{
   document.write('<IMG SRC="img/punt.gif" CLASS="titelpunt">');
   document.write('<B CLASS="TitelTekst">' + strTitle + '</B><P>');
}

function PrintButton()
// Aangepast voor Nederlandse teksten
{
  var prefix = '../';

   // Als root opgegeven, dan prefix meenemen
   if ((PrintButton.arguments.length) == 1) prefix = '';
 
   document.write('<DIV CLASS="NoPrint"><A CLASS="PrintText" HREF="javascript:window.print();"><IMG CLASS="PrintButton" SRC="' + prefix + 'img/printertje.gif">Deze pagina afdrukken</A></DIV>');
}

function DisplayOldNews()
{
   if (OldNewsDiv.style.display == 'block')
   {
      OldNewsDiv.style.display = 'none';
   }
   else
   {
      OldNewsDiv.style.display = 'block';
   }
}


