// JavaScript Document
document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-874">');
var vGet; //Value Get for function getDataFromUrl
/*----Set Get value,------*/
//My Menu =mnu1...mnu7

getDataFromUrl();
txt='<table border="0" cellspacing="0" cellpadding="0">';
txt+='<tr>';
txt+='<td align="left" valign="middle" class="Greytext_11"><a href="membership.html" class="Greytext_11">Membership</a></td>';
txt+='<td width="15" align="center" valign="middle" class="Greytext">•</td>';
txt+='<td align="left" valign="middle" class="Greytext_11"><a href="press.html" class="Greytext_11">Press</a></td>';
txt+='<td width="15" align="center" valign="middle" class="Greytext">•</td>';
txt+='<td align="left" valign="middle" class="Greytext"><a href="sitemap.html" class="Greytext_11">Site Map</a></td>';
txt+='<td width="15" align="center" valign="middle" class="Greytext">•</td>';
txt+='<td align="left" valign="middle" class="Greytext_11""><a href="javascript:popweather(\'phuket-weather.html\')" class="Greytext_11">Weather Forecast</a></td>';
txt+='</tr>';
txt+='</table>';

document.write(txt);

function getDataFromUrl(){
  var url = new String( window.location );
  var len_url = url.length;
  start_data = url.indexOf( "?" );
  if ( start_data < 0 ) return;   var alldata = url.substring( start_data+1, len_url );
  if ( alldata.length>0 ){
    var arraydata = alldata.split( "&" );
    var sub_array = new Array();
      data = arraydata[ 0 ];
      var sub_array = data.split( "=" );
		vGet=sub_array[1];
		return vGet;
    }
}
function popweather(URL) {
	w=300;
	h=250;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=0,resizable=0';
	win = window.open(URL,'book',settings);
}
function popmap(URL) {
	w=1030;
	h=515;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=0,resizable=0';
	win = window.open(URL,'book',settings);
}
