// JavaScript Navigation dynamisch

function erstelleNav() {
 //URLGuestbook
 gbURL = 'javascript:openWindow("http://www.kanchanaburi-info.com/guestbook/","Guestbook")';
 //Tabellenanfang und -ende
 anfangTab = '<table border="0" cellpadding="0" cellspacing="0" width="180" bgcolor="#FFCC99">';
 endeTab   = '</table>';

 //Ueberschriften
 hlMaps    = anfangTab+'<tr><td><img src="../pic/navi_map.gif" width="180" height="35" alt="Kanchanaburi maps"></td></tr>'+endeTab;
 hlAttr    = anfangTab+'<tr><td><img src="../pic/navi_attraction.gif" width="180" height="35" alt="Kanchanaburi attractions"></td></tr>'+endeTab;
 hlTime    = anfangTab+'<tr><td><img src="../pic/navi_timetable.gif" width="180" height="35" alt="Bus and train timetables for Kanchanaburi"></td></tr>'+endeTab;
 hlInfo    = anfangTab+'<tr><td><img src="../pic/navi_info.gif" width="180" height="35" alt="further information about Kanchanaburi"></td></tr>'+endeTab;
 hlContact = anfangTab+'<tr><td><img src="../pic/navi_contact.gif" width="180" height="35" alt="contact us"></td></tr>'+endeTab;
 hlLinks   = anfangTab+'<tr><td><img src="../pic/navi_links.gif" width="180" height="35" alt="Kanchanaburi &amp; related links"></td></tr>'+endeTab;

 //Unterpunkte WELCOME
 aboutKan = '<tr><td width="10"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="about.html" title="About Kanchanaburi province">About Kanchanaburi</a></td><td width="15"><img src="../pic/navi_auslauf.gif" width="15" alt="" height="15"></td></tr>';
 goKan = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="goKan.html" title="Going to Kanchanaburi and around">Going there &amp; around</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 stay = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="guesthouse.html" title="Where to stay in Kanchanaburi">Guesthouses</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 hotel = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="hotel.html" title="online hotel reservations">Hotels &amp; reservations</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 golf = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="golf.html" title="Golf courses in Kanchanaburi">Golf courses</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 leisure = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="leisure.html" title="Leisure amenities in Kanchanaburi">Leisure amenities</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';

 //Unterpunkte TIMETABLE
 ttBus = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="bus.html" title="Bus timetable">Bus timetable</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 ttTrain = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="train.html" title="Train timetable">Train timetable</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';

 //Unterpunkte ATTRACTION
 overview = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="sitemap.html" title="Overview of Kanchanaburi&acute;s attractions">Overview of attractions</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 amphoe = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="amphoe.html" title="What is an &acute;Amphoe&acute;">What is an &acute;Amphoe&acute;</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 muang  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="muang.html" title="The city district">Amphoe Muang</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 sangkhla  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="sangkhlaburi.html" title="Sangkhlaburi district">Amphoe Sangkhla Buri</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 saiyok  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="saiyok.html" title="Sai Yok district">Amphoe Sai Yok</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 sisawat  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="srisawat.html" title="Si Sawat district">Amphoe Si Sawat</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 parks  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="nationalpark.html" title="National Parks in Kanchanaburi province">National Parks</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';


 //Unterpunkte MAPS
 mapProv = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="mapProv.html" title="Map of Kanchanaburi province">Map of Kan Province</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 mapCity = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="mapCity.html" title="City map of Kanchanaburi">Map of Kan City</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 mapThai = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="mapThai.html" title="Map of Thailand">Map of Thailand</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';

 //Unterpunkte INFORMATION
 money = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="money.html" title="Where to change money">Where to change money</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 visa  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="visa.html" title="Visa for Thailand">Visa for Thailand</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 festival  = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="festival.html" title="Festivals in Kanchanaburi">Calendar of events</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 weather = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="weather.html" title="Kanchanaburi weather">Kanchanaburi weather</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 rates = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="http://www.bangkokbank.com/Bangkok+Bank/Web+Services/Rates/FX+Rates.htm" title="Daily exchange rates from the Bangkok Bank - opens in a new window!" target="_blank">Exchange rates</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';

 //Unterpunkte CONTACT US
 adv = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="adv.html" title="Advertise with Kanchanaburi-info.com">Advertise with us</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 contact = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="contact.html" title="Contact us">Contact us</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 guestbook = '<tr><td width="15"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href='+gbURL+' title="Read and sign our guestbook">Guestbook</a></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 

 //Startseite festlegen und bookmark
 startCode = "this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.kanchanaburi-info.com');"; 
 sb_url = "http://www.kanchanaburi-info.com";
 sb_title="Kanchanaburi-info.com - a comprehensive guide to Kanchanaburi Province - River Kwai, Thailand";
 bookmarkCode = "javascript:window.external.addfavorite(sb_url,sb_title)"; 
 start = "<tr><td width='15'><img src='../pic/info2.gif' width='15' alt=''></td><td width='150'><a style='cursor:pointer' title='HELP OTHERS - make Kanchanaburi-info.com to your startpage' onClick="+startCode+">Start with us</a></td><td width='15' class='naviauslaufre'>&nbsp;</td></tr>";
 book = "<tr><td width='15'><img src='../pic/spacer.gif' width='15'></td><td width='150'><a style='cursor:pointer' title='Bookmark Kanchanaburi-info.com at your favorites' onClick="+bookmarkCode+">Bookmark us</a></td><td width='15' class='naviauslaufre'>&nbsp;</td></tr>";

 //Unterpunkte LINKS
 links = '<tr><td width="10"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="links.html" title="Useful links">Useful links</a></td><td width="15"><img src="../pic/navi_auslauf.gif" width="15" alt="" height="15"></td></tr>';
 toUs = '<tr><td width="10"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><a href="linktous.html" title="Link to Kanchanaburi-info.com and banner exchange">Link to us</a></td><td width="15"><img src="../pic/navi_auslauf.gif" width="15" alt="" height="15"></td></tr>';

 socialBookmarks = '<tr><td width="10"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150"><hr /></td><td width="15" class="naviauslaufre">&nbsp;</td></tr>';
 socialBookmarks += '<tr><td width="10"><img src="../pic/spacer.gif" width="15" alt=""></td><td width="150">';
 socialBookmarks += '<a href="http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http://www.kanchanaburi-info.com&amp;title=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand" title="bookmark Kanchanaburi-info.com at del.icio.us" target="_blank"><img src="../pic/bookmark/delicious.gif" alt="bookmark Kanchanaburi-info.com at del.icio.us" border="0" height="12" width="12"></a>';
 socialBookmarks += '<a style="padding-left: 3px;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://www.kanchanaburi-info.com&amp;bm_description=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand" title="bookmark Kanchanaburi-info.com at Mister Wong" target="_blank"><img src="../pic/bookmark/mrwong.gif" alt="bookmark Kanchanaburi-info.com at Mister Wong" border="0" height="12" width="12"></a>';
  socialBookmarks += '<a style="padding-left: 3px;" href="http://www.yigg.de/neu?exturl=http://www.kanchanaburi-info.com&amp;exttitle=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand&amp;extdesc=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand" title="bookmark Kanchanaburi-info.com at yigg" target="_blank"><img src="../pic/bookmark/yigg.gif" alt="bookmark Kanchanaburi-info.com at yigg" border="0" height="12" width="15"></a>';
  socialBookmarks += '<a style="padding-left: 3px;" href="http://linkarena.com/bookmarks/addlink/?url=http://www.kanchanaburi-info.com&amp;title=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand&amp;desc=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand" title="bookmark Kanchanaburi-info.com at Linkarena" target="_blank"><img src="../pic/bookmark/linkarena.gif" alt="bookmark Kanchanaburi-info.com at Linkarena" border="0" height="12" width="12"></a>';
  socialBookmarks += '<a style="padding-left: 3px;" href="http://www.folkd.com/submit/kanchanaburi-info.com" title="bookmark Kanchanaburi-info.com at folkd" target="_blank"><img src="../pic/bookmark/folkd.gif" alt="bookmark Kanchanaburi-info.com at folkd" border="0" height="12" width="23"></a>';
  socialBookmarks += '<a style="padding-left: 3px;" href="http://www.alltagz.de/bookmarks/?action=add&amp;address=http://www.kanchanaburi-info.com&amp;title=Kanchanaburi%20Province%20-%20River%20Kwai,%20Thailand" title="bookmark Kanchanaburi-info.com at alltagz" target="_blank"><img src="../pic/bookmark/alltagz.gif" alt="bookmark Kanchanaburi-info.com at alltagz" border="0" height="12" width="16"></a>';
  socialBookmarks += '</td><td width="15"><img src="../pic/navi_auslauf.gif" width="15" alt="" height="15"></td></tr>';

 outWelcome = anfangTab+aboutKan+goKan+stay+hotel+golf+leisure+endeTab;
 outTime = hlTime+anfangTab+ttBus+ttTrain+endeTab;
 outAttr = hlAttr+anfangTab+overview+amphoe+muang+sisawat+saiyok+sangkhla+parks+endeTab;
 outMaps = hlMaps+anfangTab+mapProv+mapThai+endeTab;
 outInfo = hlInfo+anfangTab+festival+money+visa+weather+rates+endeTab;
// outContact = hlContact+anfangTab+guestbook+adv+contact+endeTab;
 outContact = hlContact+anfangTab+adv+contact+endeTab;
 outLinks = hlLinks+anfangTab+links+toUs+endeTab;
 outStart = anfangTab+start+book+endeTab;
 outSocialBookmarks = anfangTab+socialBookmarks+endeTab;

 inhalt = outWelcome+outAttr+outTime+outMaps+outInfo+outLinks+outContact+outSocialBookmarks;
 document.write (inhalt);
}



// zum deaktivieren der Sprach-Links
function sprachen() {
 spacer = '<img src="../pic/spacer.gif" width="3" alt="">';
 en = '<a href="http://www.kanchanaburi-info.com/en/"><img src="../pic/flag/grossbritannien_fl_d1.gif" alt="English" width="30" height="15" border="0"></a>';
 de = '<a href="http://www.kanchanaburi-info.com/de/"><img src="../pic/flag/deutschland_fl_d1.gif" alt="German" width="30" height="15" border="0"></a>';
 th = '<img src="../pic/flag/thai_flag.gif" alt="Thai - Coming soon" width="30" height="15" border="0">';
	
 //document.write (en+spacer+de+spacer+th);
 document.write (en+spacer+de);
}



// Neues Fenster ohne Navigationszeile oeffnen (Parameter: Dateiname, Fenstername)
function openWindow(datei, fenstername) {
// fenster = window.open(datei, fenstername, "height=600,width=450,resizable=yes,left=0,top=0");
 fenster = window.open(datei, fenstername, "location=no,menubar=no,resizable=yes,scrollbars=yes,top=0");
 fenster.focus();
}



// Unternavigation Submenu
function erstelleSub() {
 // divTag_alt = '<hr><div align="right"><img src="../pic/back.gif" width="20" height="20" align="texttop" border="0"><a href="#attractions">back</a><img src="../pic/spacer.gif" width="8" alt="">|<img src="../pic/top.gif" width="20" height="20" align="texttop" border="0"><a href="#start">top</a> </div>';
 divBack = '<hr><div align="right"><img src="../pic/back.gif" width="20" height="20" align="texttop" border="0" alt="go back"><a href="javascript:history.back();">back</a>';
 divOver = '<img src="../pic/spacer.gif" width="8" alt="">|<img src="../pic/top1.gif" width="20" height="20" align="texttop" border="0" alt="go to page overview"><a href="#attractions">overview</a>';
 divTop = '<img src="../pic/spacer.gif" width="8" alt="">|<img src="../pic/top.gif" width="20" height="20" align="texttop" border="0" alt="go to top of the page"><a href="#start">top</a></div>';

 divTag = divBack + divOver + divTop;
 document.write (divTag);
}



// als Startseite im Internet Explorer festlegen
function startseite() {
 this.style.behavior='url(#define#homepage)'; 
 this.setHomePage('http://www.kanchanaburi-info.com');
}



// erstellt Tabelle für Wetterdaten Jan - Dec
function makeMonth() {
 line1 = '<tr><td>Year</td><td>Jan.</td><td>Feb.</td><td>Mar.</td><td>Apr.</td><td>May</td><td>June</td><td>July</td><td>Aug.</td><td>Sep.</td><td>Oct.</td><td>Nov.</td><td>Dec.</td></tr>';
 document.write(line1);
}