
// utils.js - alle javascript code

// zet deze op 0 in de hoofdpagina

var subpagina = 1;


// functie toonFotos: toont foto's in het topregelveld/fotoveld

function toonFotos()

{

   // document.writeln('<p>');
   
   fotoItem('100%', '100%', 'plaatjes/header.jpg', 'header studio b.m');

  // document.writeln('</p>');

}


// functie toonMenu: javascript definities voor menuveld Entree

function toonMenuEntree()

{

   // menu

  document.writeln('<ul id="menu_ul">');  // <UL> OPEN


    menuItem('index.html', 'ENTREE');

 //   menuItem('particulier/particulier.html', 'PARTICULIER');

 //    menuItem('businesscoaching/businesscoaching.html', 'ONDERNEMERSCOACHING');

    menuItem('lifecoaching/lifecoaching.html', 'LIFE COACHING');

    menuItem('massages/massages.html', 'MASSAGES');

    menuItem('budgetcoaching/budgetcoaching.html', 'BUDGET COACHING');

    menuItem('wiebenik/wiebenik.html', 'WIE BEN IK');

    menuItem('infoenprijzen/infoenprijzen.html', 'OVERIGE INFO & PRIJZEN');

    menuItem('boeken/boeken.html', 'BOEKEN');



  document.writeln('</ul>'); // </UL> GESLOTEN


}



// functie toonMenu: javascript definities voor menuveld Particulier

function toonMenuParticulier()

{


   // menu
  document.writeln('<ul id="menu_ul">');  // <UL> OPEN


    menuItem('particulier/particulier.html', 'PARTICULIER');

    menuItem('index.html', 'TERUG NAAR ENTREE');

  document.writeln('</ul>'); // </UL> GESLOTEN


}



// functie toonMenu: javascript definities voor menuveld Businesscoaching

function toonMenuBusinesscoaching()

{


   // menu
  document.writeln('<ul id="menu_ul">');  // <UL> OPEN


    menuItem('businesscoaching/businesscoaching.html', 'ONDERNEMERSCOACHING');

    menuItem('index.html', 'TERUG NAAR ENTREE');

  document.writeln('</ul>'); // </UL> GESLOTEN


}


// functie toonMenu: javascript definities voor menuveld Budgetcoaching

function toonMenuBudgetcoaching()

{


   // menu
  document.writeln('<ul id="menu_ul">');  // <UL> OPEN


    menuItem('budgetcoaching/budgetcoaching.html', 'BUDGET COACHING');

    menuItem('waarombudgetcoaching/waarombudgetcoaching.html', 'Waarom budget coaching');

    menuItem('werkwijzebudgetcoaching/werkwijzebudgetcoaching.html', 'Werkwijze budget coaching');

    menuItem('index.html', 'TERUG NAAR ENTREE');

  document.writeln('</ul>'); // </UL> GESLOTEN


}


// functie toonMenu: javascript definities voor menuveld Lifecoaching

function toonMenuLifecoaching()

{


   // menu
  document.writeln('<ul id="menu_ul">');  // <UL> OPEN


    menuItem('lifecoaching/lifecoaching.html', 'LIFE COACHING');

 //   menuItem('waaromlifecoaching/waaromlifecoaching.html', 'Waarom life coaching');

 //   menuItem('werkwijzelifecoaching/werkwijzelifecoaching.html', 'Werkwijze life coaching');  

    menuItem('index.html', 'TERUG NAAR ENTREE');

  document.writeln('</ul>'); // </UL> GESLOTEN


}


// functie toonMenu: javascript definities voor menuveld Massages

function toonMenuMassages()

{


   // menu
  document.writeln('<ul id="menu_ul">');  // <UL> OPEN


    menuItem('massages/massages.html', 'MASSAGES');

    menuItem('index.html', 'TERUG NAAR ENTREE');

  document.writeln('</ul>'); // </UL> GESLOTEN


}


function toonInfo()

{

    // logo

    document.writeln('<p>');

    document.writeln('</p>');

    document.writeln('<h2 style="color: #006779;">  </h2>');

    document.writeln('<ul id="info_ul">');  // <UL> OPEN:

    infoItem('  ');


  document.writeln('</ul>'); // </UL> GESLOTEN



  document.writeln('<h2 style="color: #EBA71f;">   </h2>');

  document.writeln('<ul id="info_ul">');  // <UL> OPEN

    infoItem('06 1077 3007');

    infoItem('<a href="mailto:info@studiobm.nl">info@studiobm.nl</a>');

  document.writeln('</ul>'); // </UL> GESLOTEN



  document.writeln('<h2 style="color: #006779;"></h2>');

  document.writeln('<ul id="info_ul">');  // <UL> Adres

    infoItem('');

  document.writeln('</ul>'); // </UL> GESLOTEN



  //foto Grietje


  document.writeln('<div style="margin-right: 2%; margin-top: 5%; margin-left: 5%;">');

  fotoItem('90%', '20%', 'plaatjes/fotogrietje.jpg', 'foto Grietje');

  document.writeln('</div>');


}



// hulpfunctie menuItem(url, omschrijving)

// hier niks in aanpassen

function menuItem(url, omschrijving)

{

    document.writeln('<li id="menu_li">',

      '<a id="menu_a" href="' +

      (subpagina ? '../' : '') + 

      url + '">' + omschrijving + '</a>',

      '</li>');


}


// hulpfunctie fotoItem(width, height, url, alttekst)

// hier niks in aanpassen

function fotoItem(width, height, url, alttekst)

{

  document.write(

      '<IMG id="foto" STYLE="width: ' + width + '; height: ' + height + ';" SRC="' +

      (subpagina ? '../' : '') + 

      url + '" ALT="' + alttekst + '">'

      );


}


function infoItem(omschrijving)

{

    document.writeln('<li id="info_li">', omschrijving, '</li>');


}


