function Put_Main_Menu_Item(new_page,link,text)
{
 document.write("<tr>\
				  <td class='mainmenuitem_td'>\
				   <a style='color: #FFFFFF' href='" + link + (new_page ? "' target='_blank'" : "'") + ">" +
					text + 
				   "</a>\
				  </td>\
				 </tr>");
}


function Put_Main_Menu_Items()
{
 Put_Main_Menu_Item(false,
					'http://users.skynet.be/fb226542',
					'Home');
 Put_Main_Menu_Item(false,
					'purpose.html',
					'Bedoeling');
 Put_Main_Menu_Item(false,
					'wandelingen.html',
					'Wandelingen');
 Put_Main_Menu_Item(false,
					'ArdennenWandelingen.html',
					'Andere Wandelingen');
 Put_Main_Menu_Item(true,
					'http://maps.google.be/maps/ms?msa=0&msid=105031079840421020103.00045aa4cb9cb6a876d1f',
					'Overzicht wandelingen op kaart');
 Put_Main_Menu_Item(true,
					'http://nl.wikiloc.com/wikiloc/user.do?name=pat',
					'Trajecten in Wikiloc');
 Put_Main_Menu_Item(false,
					'links.html',
					'Links');
 Put_Main_Menu_Item(false,
					'mailto:elecpost@hotmail.com',
					'Contact');
}


function Put_Body_Title(title)
{
 //There seems to be no alternative for "colspan" in CSS
 document.write("<tr>\
				  <td class='bodytitle_td' colspan='3'>\
				   <h1>" + title + "</h1>\
				  </td>\
				 </tr>");

}


function Put_Main_Menu_And_Page_Title(title,alignment)
{
 //Display the main menu
 //There seems to be no alternative for "cellspacing" in CSS
 document.write("<tr>\
                  <td class='mainmenu_td'>\
				    <table class='mainmenu_table' cellspacing='5px'>\
					 <script type='text/javascript'>\
					   Put_Main_Menu_Items();\
					  </script>\
				    </table>\
				    <br>\
				    <br>\
                  </td>");

 //Display the title of the current doc.
 //There seems to be no alternative for "colspan" in CSS
 document.write(" <td class='mainblock_td' colspan='2'>\
				   <div align='" + alignment + "'>\
	                <font face='Arial' color='#FFFFFF' size='2'>\
				    <table class='maintitle_table'>\
                     <tr>\
                      <td nowrap>\
                       <h2>" + title + "</h2>\
                      </td>\
                     </tr>\
                    </table>\
				   </div>");
}


function Put_Foot_Note()
{
 //The </font> tag closes the <font> section from the second document.write() call in function Put_Main_Menu() 
 //The </td> tag closes the <td class='mainblock_td'> section from the second document.write() call in function Put_Main_Menu() 
 //The </tr> tag closes the <tr> section from the first document.write() call in function Put_Main_Menu() 
 document.write("  </font>\
				  </td>\
				 </tr>\
				 <tr height='10%'>\
                  <td align='left'></td>\
                   <td align='center' style='padding-top: 50px; padding-bottom: 50px'>\
				    <font face='Arial' size='2' color='#000000'>\
                     Copyright © 2008. All content, scripting, programming and layout is copyrighted by Pat.\
					</font>\
                   </td>\
                  <td align='right' width='15%'></td>\
                 </tr>");
}


function Put_Overview_Of_Walk(duration,parking,parcours,map)
{
 document.write("<ul>\
			      <li><b>Duur : " + duration + "</b></li>\
				  <li><b>Parkeergelegenheid : " + parking + "</b></li>\
				  <li><b>Parcours : " + parcours + "</b></li>\
				  <li><b>Topografische kaart : " + map + "</b></li>\
				 </ul>\
				 <br>\
				 <br>\
				 <br>\
				 <br>");
}


function Put_Wikiloc_Info(wikiloc_link)
{
 document.write("<table class='wikiloc_table'>\
			      <tr>\
				   <td align='center'> " + wikiloc_link + " </td>\
			      </tr>\
		         </table>\
		         <br>\
				 <br>\
				 <br>\
				 <br>\
				 <br>");
}


function Display_Picture(picture)
{
 document.write("<br>\
				 <br>\
				 <table border='0' width='100%'>\
				  <tr>\
				   <td align='center'>	<img src=" + picture + " hspace='0'> </td>\
				  </tr>\
				 </table>\
				 <br>\
				 <br>\
				 <br>");
}


function blinkIt() 
{
 if (!document.all) 
 {
  return;
 }
 else 
  {
   for(i=0 ; i<document.all.tags('blink').length ; i++)
   {
    s=document.all.tags('blink')[i];
    s.style.visibility = (s.style.visibility=='visible') ?'hidden':'visible';
   }
  }
}

