document.write('<script type="text/javascript" language="JavaScript"  src="scripts/cookies.js"></script>');
document.write('<script type="text/javascript" language="JavaScript"  src="scripts/NumberFormat154.js"></script>');
document.write('<script type="text/javascript" language="JavaScript"  src="scripts/stringTokenizer.js"></script>');
document.write('<script type="text/javascript" language="JavaScript"  src="scripts/hashtable.js"></script>');
document.write('<script type="text/javascript" language="JavaScript"  src="scripts/jsOpenSource.js"></script>');


//
// Left Menu Name, Comment, Href, is Submenu? 0 or 1
//
var leftMenuArray = new Array(
new Array("Main","","",0),
new Array("Home","Wanza Golf","index.html",1),
new Array("About WGC","Contact Us","aboutus.html",1),
new Array("Contact Us","Contact Us","contactus.php",1),
new Array("Registered Players","Wanza Golf","registration.html#jul2009",1),
new Array("<font color=\"red\">Register here</font>","Wanza Golf Tournament Registration","entryform.php",1),

new Array("Tournament 2008","Golf Tournaments","",0),
new Array("<b>WGC Jul 2008</b>","Wanza Golf","wgcjul2008.html",1),
new Array("- Tournament Information","Wanza Golf Tournament Info","wgcjul2008.html",1),
new Array("- Groupings","Groupings","groupings3.html#jul2008",1),
new Array("- Scores","Player List - Confirmed","players3.html#Stable",1),
new Array("- Winners Gallery","Wanza Golf Trophies and Prizes","galleryJul2008.html",1),


new Array("Past Tournaments","Previous Golf Tournaments","",0),
new Array("<b>WGC Jul 2007</b>","Wanza Golf","wgcjul2007.html",1),
new Array("- Tournament Information","Wanza Golf Tournament Info","wgcjul2007.html",1),
new Array("- Groupings","Groupings","groupings2.html#jul2007",1),
new Array("- Scores","Stableford and Gross Order","players2.html#Stable",1),
new Array("- Winners Gallery","Wanza Golf Trophies and Prizes","galleryJul2007.html",1),

new Array("<b>WGC Oct 2006</b>","Wanza Golf","wgcoct2006.html",1),
new Array("- Tournament Information","Wanza Golf Tournament Info","wgcoct2006.html",1),
new Array("- Groupings","Groupings","groupings.html#oct2006",1),
new Array("- Scores","Stableford and Gross Order","players.html#Stable",1),
new Array("- Winners Gallery","Wanza Golf Trophies and Prizes","galleryOct2006.html",1),


new Array("Sponsors","Golf Tournament Sponsors","",0),
new Array("<font color=\"#999966\">WGC Jul 2008","Wanza Golf</font>","sponsors.html",1),
new Array("<font color=\"#999966\">WGC Jul 2007","Wanza Golf</font>","sponsors.html",1),
new Array("WGC Oct 2006","Wanza Golf Sponsors","sponsors.html",1),



new Array("Gallery","WGC Players","",0),
new Array("WGC Jul 2008 Winners","Wanza Golf Tournament Jul 2008 Gallery","galleryJul2008.html",1),
new Array("WGC Jul 2008 (Flash)","Wanza Golf Tournament Jul 2008 Gallery","Wanza-Golf2008/wgc2008-1/Wanza-Golf2008-1.html",1),
new Array("WGC Jul 2007 Winners","Wanza Golf Tournament Jul 2007 Gallery","galleryJul2007.html",1),
new Array("WGC Jul 2007 (Flash)","Wanza Golf Tournament Jul 2007 Gallery","Wanza-Golf2007/Wanza-Golf2007.html",1),
new Array("WGC Oct 2006 Winners","Wanza Golf Tournament Oct 2006 Gallery","galleryOct2006.html",1),
new Array("WGC Oct 2006 (Flash)","Wanza Golf Tournament Jul 2006 Gallery","Wanza-Golf2006/Wanza-Golf2006.html",1),
new Array("My Gallery","Golf Shots","mygallery.html",1),
new Array("Pro Tours Gallery","Various Photos","protoursgallery.html",1),

new Array("Rules of Golf","Golf resources","",0),
new Array("Rules &amp; Equipment","Rules of Golf BBC","http://news.bbc.co.uk/sport1/hi/golf/rules_and_equipment/default.stm\" target=\"newWin\"",1),
new Array("The R&amp;A, St Andrews","Rules RANDA","http://www.randa.org/index.cfm?cfid=3893888&cftoken=54766998&action=rules.home\" target=\"newWin\"",1),


new Array("Golf Fun","Golf Fun Stuff","",0),
new Array("Famous Golf Quotes","Golf Quotes","golfquotes.html",1),
new Array("Golf Humour","Golf Jokes","golfjokes.html",1),

new Array("Wanza Communities","Wanza Community Sites","",0),
new Array("Site List","Site List - Courtesy of Wanza Samaj ","http://wanzasamaj.org/wanza-samaj-useful-links.html\" target=\"newWin\"",1),
new Array("Wanza Samaj (UK)","Wanza Samaj (Uk)","http://www.wanzasamaj.org/main.html\" target=\"newWin\"",1)


);

/***
new Array("Golf Sites","Golf resources","",0),
new Array("The R&amp;A, St Andrews","","#",1),
new Array("- Rules of Golf","Rules of Golf","http://www.randa.org/index.cfm?cfid=3893888&cftoken=54766998&action=rules.home\" target=\"newWin\"",1),
new Array("- Championships","Championships","http://www.randa.org/index.cfm?cfid=3893888&cftoken=54766998&action=championship.home\" target=\"newWin\"",1),
**/

//
// Footer Name, Comment, Href
//new Array("Links","Golf and Other Useful Resource Links","links.html"),
var footerArray = new Array(
new Array("Home","Golfing packages in Thailand","/index.html"),
new Array("Bookmark","Add us in your favorites","javascript:window.external.AddFavorite('http://www.golfs4u.com','www.golfs4u.com');"),
new Array("Terms&nbsp;&amp;&nbsp;Conditions","Our Terms and Conditions","terms_conditions.html"),
new Array("Privacy&nbsp;Policy","Privacy Policy","privacy_policy.html"),
new Array("Exchange&nbsp;Rate","Exchange Rate","javascript:show_popwin_rates()"),
new Array("Feedback","We Like Feedback","general_golf.html#feedback"),

new Array("About&nbsp;Us","About Us","about_us.html"),
new Array("Online&nbsp;Booking","Online Booking Form","javascript:void(0)\" onclick=\"popUpWindow(\'/easyzisp/mailer.php?ID=4&type=f\', 20,20, 550, 650, \'yes\' )"),
new Array("Contact&nbsp;Us","Contact Us","javascript:void(0)\" onclick=\"popUpWindow(\'/easyzisp/mailer.php?ID=5&type=f\', 20,20, 400, 440, \'yes\' )"),
new Array("Top","Top of Page","#top"));





function buildLeftMenus()
{
  document.getElementById('left_menus').innerHTML = buildLeftMenusTable();
}

function buildLeftMenusTable()
{
var htmlValue = '';
htmlValue = '<div align="center" style="font-size:10px;font-family:Verdana,Arial"><small><i>website sponsored by</i></small><br>GOLFS4U.com</div><div id="vertmenu">';

var menuLength = leftMenuArray.length;
var firstLoop = true;

for (var i=0; i< menuLength; i++ ){
  if (leftMenuArray[i][3] == 0) {
	if (!firstLoop){htmlValue = htmlValue.concat('</ul>');}
    htmlValue = htmlValue.concat('<h1>'+leftMenuArray[i][0]+'</h1><ul>');
    firstLoop = false;
  }
  else {

	htmlValue = htmlValue.concat('<li><a href = "'+leftMenuArray[i][2]+'"  tabindex="i" target="_top">'+leftMenuArray[i][0]+'</a></li>');
  }
}

htmlValue = htmlValue.concat('</div>');

return htmlValue;

}

function makeFooter(){
	document.getElementById('footer_1').innerHTML = getLastModified();
}

function makeFooterx(){
  var listItems = footerArray.length;
  var htmlValue = '';
  htmlValue = htmlValue.concat('<table align="center" width="400"  border="0" cellspacing="0" cellpadding="0">');
  htmlValue = htmlValue.concat('<tr>');

  htmlValue = htmlValue.concat('<td style=" background-color:#FFFFFF; font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#6600CC" align="center" valign="middle" height="100">');
  for (var i=0; i< listItems; i++) {
    htmlValue = htmlValue.concat('<a class="blue_link" href="'+footerArray[i][aHref]+'">'+footerArray[i][aBtnName]+'</a>');
    if ( i < listItems -1 ) {
	  htmlValue = htmlValue.concat('<span style="font-size:16px;" >&nbsp;|&nbsp;</span>');
	}
  }
  htmlValue = htmlValue.concat('<br><br>Copyright Golfs4u.com &copy; , 2005. All Rights Reserved.');
  htmlValue = htmlValue.concat('<br><a class="blue_link" href="javascript:void(0)\" onclick=\"popUpWindow(\'/easyzisp/mailer.php?ID=4&type=f\', 20,20, 550, 650, \'yes\' )">info@golfs4u.com</a>');
  htmlValue = htmlValue.concat('</td>');
  htmlValue = htmlValue.concat('</tr>');
  htmlValue = htmlValue.concat('<tr>');

  htmlValue = htmlValue.concat('<td>');

  htmlValue = htmlValue.concat('<table>');
  htmlValue = htmlValue.concat('<tr>');
  htmlValue = htmlValue.concat('<td align="right" valign="middle"><a href="http://validator.w3.org/check?uri=referer" ><img src="images/system/valid-html401.gif" alt="Valid HTML 4.01 Transitional" height="31" width="88" border="0"></a></td>');
  htmlValue = htmlValue.concat('<td align="right" valign="middle">'+getM5UKSDesigns()+'</td>');
  htmlValue = htmlValue.concat('<td align="left" valign="middle"><a href="http://jigsaw.w3.org/css-validator/"><img height="31" width="88" border="0" src="images/system/valid-css.bmp"  alt="Valid CSS!"></a></td>');
  htmlValue = htmlValue.concat('</tr></table>');

  htmlValue = htmlValue.concat('</td>');
  htmlValue = htmlValue.concat('</tr></table>');

  htmlValue = htmlValue.concat('<tr>');
  htmlValue = htmlValue.concat('<td align="center" valign="middle"><p>'+getLastModified()+'</p></td>');
  htmlValue = htmlValue.concat('</tr>');
  htmlValue = htmlValue.concat('</tr></table>');

  document.getElementById('footer_1').innerHTML = htmlValue;

}

function getM5UKSDesigns()
{
 var htmlVal= '';
 htmlVal = htmlVal.concat('<table width="90" nowrap border="2" cellspacing="0" cellpadding="0"><tr><td align="center" valign="top" height="15" style=""><small>Website by:<br></small>');
 htmlVal = htmlVal.concat('<a href="javascript:void(0)\" onclick=\"popUpWindow(\'/easyzisp/mailer.php?ID=5&type=f\', 20,20, 400, 440, \'yes\')" title="M5UKS Designs, email: webmaster@golfs4u.com"><small>M5UKS Designs</small></a>');
 htmlVal = htmlVal.concat('</td></tr></table>');
 return htmlVal;
}


function getLastModified()
{

  var dte = new Date(document.lastModified);
  var dateStr = dte.toDateString();
  return '<div align="center">Last Modified : '+dateStr+'</div>';

}

var statsOn = true;
function getMyCounter()
{
  if ( statsOn )
  {
     var htmlVal= '';
	 htmlVal = htmlVal.concat('<script type="text/javascript" language="javascript">');
	 htmlVal = htmlVal.concat('var sc_project=1806566;');
	 htmlVal = htmlVal.concat('var sc_invisible=1;');
	 htmlVal = htmlVal.concat('var sc_partition=13;');
	 htmlVal = htmlVal.concat('var sc_security="11111f02";');
	 htmlVal = htmlVal.concat('</script>');
	 htmlVal = htmlVal.concat('<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c14.statcounter.com/counter.php?sc_project=1806566&amp;java=0&amp;security=11111f02&amp;invisible=1" alt="web site hit counter" border="0"></a> </noscript>');

	 return htmlVal;

  }
}

function getMyBox(title, img, width, alt, text)
{

  var htmlVal= '';
 // alert(title+img+width+alt+text);
  //htmlVal = htmlVal.concat('<table width="'+width+'"  style="background-image:url(images/system/highlight_bg.gif); background-repeat:no-repeat; border-left:1px solid #CCC; border-right:1px solid #CCC;"  border="0" cellspacing="0" cellpadding="0">');
  htmlVal = htmlVal.concat('<table width="'+width+'"  style="border-left:1px solid #CCC; border-right:1px solid #CCC;"  border="0" cellspacing="0" cellpadding="0">');

  htmlVal = htmlVal.concat('<tr>');
  htmlVal = htmlVal.concat('<td align="center"><div class="gradhdr1">'+title+'</div></td>');
  htmlVal = htmlVal.concat('</tr>');
  htmlVal = htmlVal.concat('<tr>');
  htmlVal = htmlVal.concat('<td align="center" width="'+width+'" style=" border-bottom:1px solid #CCC;border-right:1px solid #FFF;"><img src="'+img+'"  border="0" alt="'+alt+'"></td>');
  htmlVal = htmlVal.concat('</tr>');
  htmlVal = htmlVal.concat('<tr>');
  htmlVal = htmlVal.concat('<td align="center" height="50" valign="middle" style="  border-bottom:1px solid #CCCCCC;">'+text+'</td>');
  htmlVal = htmlVal.concat('</tr>');
  htmlVal = htmlVal.concat('</table>');
  //alert(htmlVal);
  return htmlVal;
}





