var arrLoop;
var folderHotels	= "hotels";
var arrCountries = new Array("Thailand", "Malaysia", "Singapore", "Vietnam", "Philippines", "Indonesia", "Laos", "Brunei", "Cambodia", "Myanmar", "Hong Kong", "Maldives", "India", "Korea", "Sri Lanka", "China", "Japan", "Taiwan", "Macau", "Australia"); // Country array
var idAff			= getAffId();
var domainAff		= "http://www.myaffiliateprogram.com/u/wireddst/t.asp?id=" + idAff + "&p=" + folderHotels;
document.writeln('<table width="150" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
document.writeln('<tr>');
document.writeln('	<td width="150" height="185" valign="top" background="http://wired-destinations.com/pres/images/aff/bg.gif">');
document.writeln('		<table width="150" height="185" border="0" cellpadding="0" cellspacing="0">');
document.writeln('		<form name="hotelsearch">');
document.writeln('		<tr><td width="150" height="22" valign="top"><img src="http://wired-destinations.com/pres/images/aff/header.gif"></td></tr>');
document.writeln('		<tr>');
document.writeln('			<td height="30" align="center" valign="bottom" background="http://wired-destinations.com/pres/images/aff/spacer.gif">');
document.writeln('				<select size="1" name="DropDownLocationBottom" onchange="gotoUrlAff(this.form.DropDownLocationBottom.options[selectedIndex].value)">');
for (arrLoop = 0; arrLoop < arrCountries.length; arrLoop++) {
    document.writeln('				<option value="' + domainAff + '/' + arrCountries[arrLoop] + '/index.htm">' + arrCountries[arrLoop] + '</option>');
}
document.writeln('				<option value="None" selected="selected">Choose location</option>');
document.writeln('				</select>');
document.writeln('			</td>');
document.writeln('		</tr>');
document.writeln('		<tr><td height="36" background="http://wired-destinations.com/pres/images/aff/spacer.gif"><img src="http://wired-destinations.com/pres/images/aff/spacer.gif" width="1" height="14"></td></tr>');
document.writeln('		<tr><td height="15" valign="middle" background="http://wired-destinations.com/pres/images/aff/spacer.gif"><img src="http://wired-destinations.com/pres/images/aff/spacer.gif" width="16" height="1"><img border="0" src="http://wired-destinations.com/pres/images/aff/bullet.gif" width="5" height="5" hspace="2"><font face="Verdana, Arial" size="1" color="#FFFFFF">Over 2000 Hotels</font></td></tr>');
document.writeln('		<tr><td height="15" valign="middle" background="http://wired-destinations.com/pres/images/aff/spacer.gif"><img src="http://wired-destinations.com/pres/images/aff/spacer.gif" width="16" height="1"><img border="0" src="http://wired-destinations.com/pres/images/aff/bullet.gif" width="5" height="5" hspace="2"><font face="Verdana, Arial" size="1" color="#FFFFFF">Save up to 75%</font></td></tr>');
document.writeln('		<tr><td height="15" valign="middle" background="http://wired-destinations.com/pres/images/aff/spacer.gif"><img src="http://wired-destinations.com/pres/images/aff/spacer.gif" width="16" height="1"><img border="0" src="http://wired-destinations.com/pres/images/aff/bullet.gif" width="5" height="5" hspace="2"><font face="Verdana, Arial" size="1" color="#FFFFFF">Book Online</font></td></tr>');
document.writeln('		<tr><td height="38" align="center" valign="middle" background="http://wired-destinations.com/pres/images/aff/spacer.gif"><a href="http://wd-travel.com"><img border="0" src="http://wired-destinations.com/pres/images/aff/logo.gif"></a></td></tr>');
document.writeln('		<script type="text/javascript">function gotoUrlAff(url) { if (url != "None") { location = url; } }</script>');
document.writeln('		</form>');
document.writeln('		</table>');
document.writeln('	</td></tr></table>');