var rootpath = document.getElementById("mainlogolink").href.substring("0", document.getElementById("mainlogolink").href.lastIndexOf("/")+1)

function write_floatingdivbg(number, pic_path) {
document.write("<DIV class='floatingdivbg' id='floatingdivbg" + number + "'>")
document.write("<B class='myborder' style='margin: 0px 4px;'></B>")
document.write("<B class='myborder' style='margin: 0px 2px;'></B>")
document.write("<B class='myborder' style='margin: 0px 1px;'></B>")
document.write("<B class='myborder' style='margin: 0px 1px;'><B class='myinbox' style='margin: 0px 7px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 0px;'><B class='myinbox' style='margin: 0px 5px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 0px;'><B class='myinbox' style='margin: 0px 4px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 0px;'><B class='myinbox' style='margin: 0px 4px;'></B></B>")
document.write("<B class='myborderh' style='margin: 0px 0px;'><B class='myinboxh' style='margin: 0px 3px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 0px;'><B class='myinbox' style='margin: 0px 4px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 0px;'><B class='myinbox' style='margin: 0px 4px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 0px;'><B class='myinbox' style='margin: 0px 5px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 1px;'><B class='myinbox' style='margin: 0px 7px;'></B></B>")
document.write("<B class='myborder' style='margin: 0px 1px;'></B>")
document.write("<B class='myborder' style='margin: 0px 2px;'></B>")
document.write("<B class='myborder' style='margin: 0px 4px;'></B>")
document.write("	<div class='floatingdiv' id='floatingdiv" + number + "'>")
document.write("	<table border='0' class='floatingtable' id='floatingtable" + number + "' width='100%' cellpadding='0' cellspacing='0'>")
document.write("	 <tr>")
document.write("	  <td rowspan='3' width='10px' align='left' valign='top' style='padding-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px;'>")
document.write("	     <table border='0' width='100%' cellpadding='0' cellspacing='0'>")
document.write("	      <tr><td align='left' valign='top' style='padding-left: 4px; padding-top: 5px; padding-right: 3px; padding-bottom: 2px;'><img src='" + pic_path + "' border='0'></td></tr>")
document.write("	      <tr><td></td></tr>")
document.write("	    </table>")
document.write("	  </td>")
document.write("	  <td rowspan='3' width='5px'>")
document.write("	  </td>")
}

document.write("")
document.write("	<!--------------------Floating Leningradka-------------------->")
write_floatingdivbg("1", rootpath + "images2/leningradka_sm.gif")
document.write("	  <td><font class='metro_name' style='font-size:23px;'>м. Аэропорт</font><br></td></tr>")
document.write("	 <tr><td valign='top'><font class='adress' style='font-size:15px;'>Ленинградский проспект, д. 66</font><br></td></tr>")
document.write("	 <tr><td align='right'><font class='phone' style='font-size:23px;'>Тел.: 8-499-151-42-22&nbsp;</font></td></tr>")
document.write("	</table></div></DIV>")
document.write("	<!--------------------End of Floating Leningradka-------------------->")
document.write("")

document.write("")
document.write("	<!--------------------Floating Glagoleva-------------------->")
write_floatingdivbg("2", rootpath + "images2/glagoleva_sm.gif")
document.write("	   <td><font class='metro_name' style='font-size:23px;'>м. Октябрьское поле</font><br></td></tr>")
document.write("	  <tr><td valign='top'><font class='adress' style='font-size:15px;'>Ул. Генерала Глаголева, д. 1</font><br></td></tr>")
document.write("	  <tr><td align='right'><font class='phone'>Тел.: 942-08-61&nbsp;</font></td></tr>")
document.write("	</table></div></DIV>")
document.write("	<!--------------------End of Floating Glagoleva-------------------->")
document.write("")

document.write("")
document.write("	<!--------------------Floating Kuzminki-------------------->")
write_floatingdivbg("3", rootpath + "images2/leningradka2_sm.gif")
document.write("	   <td><font class='metro_name' style='font-size:23px;'>м. Кузьминки</font><br></td></tr>")
document.write("	  <tr><td valign='top'><font class='adress' style='font-size:15px;'>Ул. Привольная, д. 65/32</font><br></td></tr>")
document.write("	  <tr><td align='right'><font class='phone'>Тел.: 706-49-30&nbsp;</font></td></tr>")
document.write("	</table></div></DIV>")
document.write("	<!--------------------End of Floating Kuzminki-------------------->")
document.write("")

document.write("")
document.write("	<!--------------------Floating Alekseevskaia-------------------->")
write_floatingdivbg("4", rootpath + "images2/alekseevskaia_sm.gif")
document.write("	   <td><font class='metro_name' style='font-size:23px;'>м. Алексеевская</font><br></td></tr>")
document.write("	  <tr><td valign='top'><font class='adress' style='font-size:15px;'>Проспект Мира, д. 118</font><br></td></tr>")
document.write("	  <tr><td align='right'><font class='phone'>Тел.: 686-00-75&nbsp;</font></td></tr>")
document.write("	</table></div></DIV>")
document.write("	<!--------------------End of Floating Alekseevskaia-------------------->")
document.write("")

