﻿var NS4 = (navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? true : false;
var IE4 = (document.all && !document.getElementById)? true : false;
var IE5 = (document.getElementById && document.all)? true : false;
var NS6 = (document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var W3C = (document.getElementById)? true : false;

if (IE4||IE5){
	height1 = 9;
} else {
	height1 = 10;
}

if (IE4||IE5){
	height2 = 5;
} else {
	height2 = 8;
}


document.writeln("<DIV id=\"subcontent\" class=\"booking_bckgrnd\" style=\"position:absolute; border: 0px; width: 329px; display:none;\">");
document.writeln("<div style=\"width: 100%; padding: 0px;\">");

document.writeln("<table align=\"center\" width=\"329\" height=\"200\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">");
document.writeln("<form name=\"roomrate_form\" target=\"_blank\" action=\"/ru/RoomRateProcess.htm\" method=\"post\" onsubmit=\"return redirect();pageTracker._linkByPost(this)\">");
document.writeln("<input type=\"hidden\" name=\"property\" value=\"\">");
//document.writeln("<input type=\"hidden\" name=\"depart_date\" value=\"\">");
//document.writeln("<input type=\"hidden\" name=\"arrival_date\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"guests\" value=\"\">");
//document.writeln("<input type=\"hidden\" name=\"children\" value=\"\">");
//document.writeln("<input type=\"hidden\" name=\"iata\" value=\"\">");
//document.writeln("<input type=\"hidden\" name=\"rate_access_code\" value=\"\">");
document.writeln("<input type=\"hidden\" name=\"LANGUAGE\" value=\"en\">");
document.writeln("<tr>");
document.writeln("<td bgcolor=\"#4D4D4D\" valign=\"top\">");
document.writeln("<table align=\"center\" width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#000000\" bordercolor=\"#646464\" style=\"border-width:1px; border-collapse:collapse\">");
document.writeln("<tr>");
document.writeln("<td background=\"/Swissotel.com/ru/images/booking/reservation_bg.jpg\" valign=\"top\" align=\"center\" style=\"background-repeat:repeat-x\">");
document.writeln("<table width=\"281\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("<tr>");
document.writeln("<td height=\"30\"><img src=\"/Swissotel.com/ru/images/booking/rm_rate_header.jpg\" width=\"281\" height=\"30\" border=\"0\" usemap=\"#Map\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\""+height1+"\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height1+"\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("<table width=\"256\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"text1\">");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" align=\"left\"><strong>Выберите отель</strong></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"2\" colspan=\"5\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\"5\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" align=\"left\"><select name=\"dest\" id=\"dest\" style=\"width:249px\" class=\"textbox3\" onChange=\"populateHotel()\"></select></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" height=\""+height2+"\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height2+"\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" align=\"left\"><select name=\"hotel\" id=\"hotel\" style=\"width:249px\" class=\"textbox3\"></select></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" height=\""+height1+"\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height1+"\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td width=\"50%\" align=\"left\"><strong>Заезд</strong></td>");
document.writeln("<td width=\"50%\" align=\"left\"><strong>Выезд</strong></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"2\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align=\"left\">");
document.writeln("<INPUT TYPE=\"text\" NAME=\"arrival_date\" VALUE=\"\" style=\"width:70px\" class=\"textbox3\" onBlur=\"javascript:checkarrivedate();\">");

							d = new Date()
							arrive_day = d.getDate();
			
							d1 = new Date()
							with (d1) setDate(getDate()-1)
							arrive_day1 = d1.getDate();
							
							if (arrive_day < 10){
								mystring1 = new String("0")
								mystring2 = new String(arrive_day)
								arrive_day = mystring1.concat(mystring2);
							}
							
							arrive_mth = d.getMonth()+1;
							arrive_mth1 = d1.getMonth()+1;
							
							if (arrive_mth < 10){
								mystring1 = new String("0")
								mystring2 = new String(arrive_mth)
								arrive_mth = mystring1.concat(mystring2);
							}
							
							arrive_year = d.getFullYear();
							arrive_year1 = d1.getFullYear();
							arrive_date = arrive_day+'/'+arrive_mth+'/'+arrive_year;
							arrive_date1 = arrive_mth1+'/'+arrive_day1+'/'+arrive_year1;
							document.roomrate_form.arrival_date.value = arrive_date;
										
							var cal = new CalendarPopup("testdiv1");
							cal.setCssPrefix("TEST");
							cal.addDisabledDates(null, arrive_date1);
							cal.offsetX = -78;
							cal.offsetY = 18;

document.writeln("<A HREF=\"#\" onClick=\"cal.select(document.forms['roomrate_form'].arrival_date,'anchor1','dd/MM/yyyy'); return false;\" NAME=\"anchor1\" ID=\"anchor1\"><img src=\"/Swissotel.com/ru/images/booking/calendar.gif\" border=\"0\" align=\"absmiddle\"></A>"); 				
document.writeln("</td>");
document.writeln("<td align=\"left\">");
document.writeln("<INPUT TYPE=\"text\" NAME=\"depart_date\" VALUE=\"\" style=\"width:70px\" class=\"textbox3\" onBlur=\"javascript:checkdepartdate();\">");

							d2 = new Date()
							with (d2) setDate(getDate()+1)
							depart_day = d2.getDate();
							
							d3 = new Date()
							with (d3) setDate(getDate()-1)
							depart_day1 = d3.getDate();
							
							if (depart_day < 10){
								mystring1 = new String("0")
								mystring2 = new String(depart_day)
								depart_day = mystring1.concat(mystring2);
							}
			
							depart_mth = d2.getMonth()+1;
							depart_mth1 = d3.getMonth()+1;
							
							if (depart_mth < 10){
								mystring1 = new String("0")
								mystring2 = new String(depart_mth)
								depart_mth = mystring1.concat(mystring2);
							}
							
							depart_year = d2.getFullYear();
							depart_year1 = d3.getFullYear();
							depart_date = depart_day+'/'+depart_mth+'/'+depart_year;
							depart_date1 = depart_mth1+'/'+depart_day1+'/'+depart_year1;
							
							document.roomrate_form.depart_date.value = depart_date;

							var cal1 = new CalendarPopup("testdiv1");
							cal1.setCssPrefix("TEST");
							cal1.addDisabledDates(null, depart_date1);
							cal1.offsetX = -78;
							cal1.offsetY = 18;

document.writeln("<A HREF=\"#\" onClick=\"cal1.select(document.forms['roomrate_form'].depart_date,'anchor2','dd/MM/yyyy',(document.forms['roomrate_form'].depart_date.value=='')?document.forms['roomrate_form'].arrival_date.value:null); return false;\" NAME=\"anchor2\" ID=\"anchor2\"><img src=\"/Swissotel.com/ru/images/booking/calendar.gif\" border=\"0\" align=\"absmiddle\"></A>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\""+height1+"\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height1+"\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align=\"left\"><strong>Взрослые</strong></td>");
document.writeln("<td align=\"left\"><strong>Количество ночей</strong></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"2\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align=\"left\">");
document.writeln("<select name=\"noguests\" class=\"textbox3\">");
document.writeln("<option value=\"1\">1</option>");
document.writeln("<option value=\"2\">2</option>");
document.writeln("<option value=\"3\">3</option>");
document.writeln("<option value=\"4\">4</option>");
document.writeln("</select>");			
document.writeln("</td>");
document.writeln("<td align=\"left\">");
document.writeln("<table width=\"100\"  border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bordercolor=\"#646464\" style=\"border-width:1px; border-collapse:collapse\">");
document.writeln("<tr>");
document.writeln("<td align=\"left\"><span ID=\"noOfnites\" class=\"text3\"></span></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td height=\""+height1+"\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height1+"\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align=\"left\"><strong>Дети (0-12 лет)</strong></td>");
document.writeln("<td align=\"left\">&nbsp;</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"2\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align=\"left\">");
document.writeln("<select name=\"children\" class=\"textbox3\">");
document.writeln("<option value=\"0\">0</option>");
document.writeln("<option value=\"1\">1</option>");
document.writeln("<option value=\"2\">2</option>");
document.writeln("</select>");			
document.writeln("</td>");
document.writeln("<td align=\"left\">");
document.writeln("&nbsp;");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"15\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\"15\" border=\"0\"></td>");
document.writeln("</tr>");


document.writeln("<tr>");
document.writeln("<td align=\"left\"><strong>ID Компании/Номер IATA</strong></td>");
document.writeln("<td align=\"left\"><strong>Цены</strong></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"2\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\"2\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td align=\"left\"><input type=\"text\" name=\"iata\" id=\"iata\" style=\"width:114px\" class=\"textbox3\" value=\"\"></td>");
document.writeln("<td align=\"left\">");

document.writeln("<select name=\"rate_access_code\" class=\"textbox3\" style=\"width:114px\">");
document.writeln("<option value=\"All\">All Available Rates</option>");
document.writeln("<option value=\"RAC\">Best Available Rates</option>");
document.writeln("<option value=\"ADV\">Advance Savings</option>");
//document.writeln("<option value=\"WKD\">Weekend Rates</option>");
document.writeln("<option value=\"PKG\">Promotions</option>");
document.writeln("</td>");

document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\""+height2+"\" colspan=\"2\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height2+"\" border=\"0\"></td>");
document.writeln("</tr>");

document.writeln("<tr>");
document.writeln("<td colspan=\"2\" align=\"center\">");
document.writeln("<input name=\"rm_submit\" id=\"rm_submit\" type=\"image\" src=\"/Swissotel.com/ru/images/booking/rm_rate_submit.jpg\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('rm_submit','','/Swissotel.com/ru/images/booking/rm_rate_submit_ro.jpg',1)\">");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" height=\""+height2+"\"><img src=\"/Swissotel.com/ru/images/space.gif\" width=\"1\" height=\""+height2+"\" border=\"0\"></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td colspan=\"2\" align=\"center\">");
document.writeln("<table width=\"256\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("<tr>");
document.writeln("<td align=\"center\"><a href=\"http://reservations.swissotel.com/ChangeReservation.aspx\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('rm_modify','','/Swissotel.com/ru/images/booking/rm_rate_modify_ro.jpg',1)\" target=\"_blank\"><img src=\"/Swissotel.com/ru/images/booking/rm_rate_modify.jpg\" name=\"rm_modify\" width=\"128\" height=\"22\" border=\"0\"></a></td>");
document.writeln("<td align=\"center\"><a href=\"http://reservations.swissotel.com/ChangeReservation.aspx\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('rm_cancel','','/Swissotel.com/ru/images/booking/rm_rate_cancel_ro.jpg',1)\" target=\"_blank\"><img src=\"/Swissotel.com/ru/images/booking/rm_rate_cancel.jpg\" name=\"rm_cancel\" width=\"129\" height=\"22\" border=\"0\"></a></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"14\" colspan=\"3\"><img src=\"/Swissotel.com/ru/images/space.gif\" height=\"14\" width=\"1\" border=\"0\" align=\"absmiddle\"></td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("</table>");
document.writeln("</td>");
document.writeln("</tr>");
document.writeln("</form>");
document.writeln("</table>");
				
document.writeln("<table align=\"center\" width=\"329\" height=\"80\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">");
document.writeln("<tr>");
document.writeln("<td height=\"80\" background=\"/Swissotel.com/ru/images/booking/best_rate_guarantee_bg1.jpg\"><table align=\"center\" width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#4A4A4A\" bordercolor=\"#646464\" style=\"border-width:1px; border-collapse:collapse\">");
document.writeln("<tr>");
document.writeln("<td bgcolor=\"#000000\" height=\"19\" class=\"text1\" align=\"right\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("<tr>");
document.writeln("<td height=\"38\" align=\"center\" background=\"/Swissotel.com/ru/images/booking/best_rate_guarantee_bg2.jpg\"><a href=\"/en/Best%20Rates%20Terms.htm\"><img src=\"/Swissotel.com/ru/images/booking/best_rate_guarantee1.jpg\" width=\"283\" height=\"38\" border=\"0\"></a></td>");
document.writeln("</tr>");
document.writeln("<tr>");
document.writeln("<td height=\"35\" background=\"/Swissotel.com/ru/images/booking/best_rate_guarantee_bg.jpg\">");
document.writeln("<table width=\"261\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"text1\">");
document.writeln("<tr>");
document.writeln("<td align=\"left\"><strong>Лучшие цены на размещение в отелях <br>\"Swissotel Hotels & Resorts\" - на официальном сайте отеля!</strong></td>");
document.writeln("</tr>");
document.writeln("</table></td>");
document.writeln("</tr>");
document.writeln("</table></td>");
document.writeln("</tr>");
document.writeln("</table></td>");
document.writeln("</tr>");
document.writeln("</table>");
	
document.writeln("</div>");
document.writeln("</div>");

document.writeln("<map name=\"Map\">");
document.writeln("<area shape=\"rect\" coords=\"233,14,274,26\" href=\"#\" onClick=\"overlayclose('subcontent'); return false\">");
document.writeln("</map>");