var x = 0; var y = 0; var flag=false; var global_shiftx=0; var global_shifty=0; var global_shift_x=-1850; var global_shift_y=-1800; var shift_x=global_shift_x; var shift_y=global_shift_y; var x_shift=0; var x_width=599; var y_height=600; var y_shift=0; var obj=Array(); //indicates whether area is selected or not var ptype = false; function newDiv(className) { var div = document.createElement("div"); div.className = className; return div; } function setBg(t, imageName, align) { //alert(imageName); t.style.background = "url('" + imageName + "') "+align+" no-repeat "; } function Clear(map) { //удаляем div //while (map.childNodes.length > 0) //{ // //map.removeChild(map.childNodes[0]); //} //удаляем div //var map=document.getElementById("area"); //if (map.childNodes.length>0) //for (var cl=0;cl<=map.childNodes.length;cl++) //{ // if (map.childNodes[cl] && ((map.childNodes[cl].className.substring(0,6)=="object"))) // { // // && ((map.childNodes[cl].className.substring(0,6)=="object")) // // || (map.childNodes[cl].className.substring(0,3)=="div") // //map.childNodes[cl].style.diplay="none"; // map.removeChild(map.childNodes[cl]); // } //} } function OnShow() { var s_x=shift_x; var s_y=shift_y; var map=document.getElementById("area"); DrawObjects(map); var j1=1; var i1=1; var j2=23; var i2=31; var flag_d=0; if (s_y<0) { j1=parseInt(Math.abs(s_y)/200); j2=j1+6; s_y=s_y+(j1*200); } if (s_x<0) { var del=Math.abs(s_x)/200; i1=parseInt(del); s_x_new=s_x+((i1)*200); i2=i1+8; } //alert(s_x+" "+shift_x+" "+i1+" "+del); for(j=j1;j=y_height || s_y+200<=0) { flag_d=1; } else if ((s_y+200)>0 && s_y<0) { height=200+s_y+"px"; top=0+global_shifty+"px"; yalign="bottom"; } else if ((s_y+200)<=y_height) { height=200; top=s_y+global_shifty+"px"; } else if ((s_y+200)>y_height && s_y=x_width || s_x+200<=0) && flag_d!=1) { flag_d=1; //alert(s_x+" "+i); } else if ((s_x+200)>0 && s_x<0) { width=200+s_x; left=0+global_shiftx+"px"; xalign="right"; } else if ((s_x+200)<=x_width) { width=200+"px"; left=s_x+global_shiftx; } else if (s_x"; } function ShiftLeft(shift) { if (shift=="left") { shift_x=(shift_x+20); } if (shift=="right") { shift_x=(shift_x-20); } if (shift=="top") { shift_y=(shift_y+20); } if (shift=="bottom") { shift_y=(shift_y-20); } if (shift=="center") { shift_y=global_shift_x; shift_x=global_shift_y; } OnShow(); } function DrawObjects(map) { var o=0; var y_k=2026+shift_y+global_shifty; var x_k=2661+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object11"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_11.jpg","2661","2026")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2257+shift_y+global_shifty; var x_k=1580+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object10"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_10.jpg","1580","2257")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=988+shift_y+global_shifty; var x_k=2339+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object9"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_9.jpg","2339","988")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2086+shift_y+global_shifty; var x_k=2599+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object8"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_8.jpg","2599","2086")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1882+shift_y+global_shifty; var x_k=2069+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object12"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_12.jpg","2069","1882")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1631+shift_y+global_shifty; var x_k=2298+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object13"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_13.jpg","2298","1631")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2790+shift_y+global_shifty; var x_k=2449+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object14"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_14.jpg","2449","2790")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2062+shift_y+global_shifty; var x_k=2651+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object15"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_15.jpg","2651","2062")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2694+shift_y+global_shifty; var x_k=2615+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object16"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_16.jpg","2615","2694")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=3110+shift_y+global_shifty; var x_k=2122+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object17"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_17.jpg","2122","3110")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2304+shift_y+global_shifty; var x_k=1773+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object18"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_18.jpg","1773","2304")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2919+shift_y+global_shifty; var x_k=765+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object19"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_19.jpg","765","2919")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1688+shift_y+global_shifty; var x_k=1661+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object20"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_20.jpg","1661","1688")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2516+shift_y+global_shifty; var x_k=2874+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object21"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_21.jpg","2874","2516")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1442+shift_y+global_shifty; var x_k=2242+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object22"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_22.jpg","2242","1442")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1440+shift_y+global_shifty; var x_k=2162+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object23"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_23.jpg","2162","1440")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1284+shift_y+global_shifty; var x_k=1660+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object24"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_24.jpg","1660","1284")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1712+shift_y+global_shifty; var x_k=2367+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object25"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_25.jpg","2367","1712")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1105+shift_y+global_shifty; var x_k=1667+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object26"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_26.jpg","1667","1105")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2537+shift_y+global_shifty; var x_k=1947+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object27"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_27.jpg","1947","2537")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2620+shift_y+global_shifty; var x_k=1306+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object28"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_28.jpg","1306","2620")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2720+shift_y+global_shifty; var x_k=2902+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object29"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_29.jpg","2902","2720")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1567+shift_y+global_shifty; var x_k=1546+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object30"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_30.jpg","1546","1567")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=3093+shift_y+global_shifty; var x_k=2882+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object31"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_31.jpg","2882","3093")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2357+shift_y+global_shifty; var x_k=1872+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object32"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_32.jpg","1872","2357")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2979+shift_y+global_shifty; var x_k=2119+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object33"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_33.jpg","2119","2979")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1872+shift_y+global_shifty; var x_k=2275+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object34"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_34.jpg","2275","1872")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2411+shift_y+global_shifty; var x_k=2053+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object35"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_35.jpg","2053","2411")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1711+shift_y+global_shifty; var x_k=2294+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object36"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_36.jpg","2294","1711")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2731+shift_y+global_shifty; var x_k=2080+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object37"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_37.jpg","2080","2731")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2152+shift_y+global_shifty; var x_k=2619+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object38"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_38.jpg","2619","2152")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2491+shift_y+global_shifty; var x_k=2121+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object39"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_39.jpg","2121","2491")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1734+shift_y+global_shifty; var x_k=2281+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object40"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_40.jpg","2281","1734")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=4076+shift_y+global_shifty; var x_k=1833+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object41"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_41.jpg","1833","4076")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=833+shift_y+global_shifty; var x_k=2084+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object42"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_42.jpg","2084","833")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2393+shift_y+global_shifty; var x_k=2505+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object43"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_43.jpg","2505","2393")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2259+shift_y+global_shifty; var x_k=3263+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object44"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_44.jpg","3263","2259")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2309+shift_y+global_shifty; var x_k=2830+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object45"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_45.jpg","2830","2309")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2228+shift_y+global_shifty; var x_k=2716+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object46"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_46.jpg","2716","2228")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2600+shift_y+global_shifty; var x_k=2186+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object47"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_47.jpg","2186","2600")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1821+shift_y+global_shifty; var x_k=1763+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object48"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_48.jpg","1763","1821")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1609+shift_y+global_shifty; var x_k=2255+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object49"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_49.jpg","2255","1609")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=3865+shift_y+global_shifty; var x_k=2293+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object50"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_50.jpg","2293","3865")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2448+shift_y+global_shifty; var x_k=2423+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object51"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_51.jpg","2423","2448")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2339+shift_y+global_shifty; var x_k=3113+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object52"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_52.jpg","3113","2339")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1609+shift_y+global_shifty; var x_k=2328+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object53"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_53.jpg","2328","1609")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2598+shift_y+global_shifty; var x_k=2201+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object54"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_54.jpg","2201","2598")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2666+shift_y+global_shifty; var x_k=2384+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object55"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_55.jpg","2384","2666")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1689+shift_y+global_shifty; var x_k=1629+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object56"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_56.jpg","1629","1689")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=2508+shift_y+global_shifty; var x_k=2542+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object57"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_57.jpg","2542","2508")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1937+shift_y+global_shifty; var x_k=2065+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object58"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_58.jpg","2065","1937")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=1570+shift_y+global_shifty; var x_k=1583+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object59"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_59.jpg","1583","1570")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; var y_k=3039+shift_y+global_shifty; var x_k=2918+shift_x+global_shiftx; if (((x_k+5)<=(x_width+global_shiftx) && (x_k+5)>=+global_shiftx) && ((y_k+5)<=(y_height+global_shifty) && (y_k+5)>=global_shifty)) { //удаляем div //while (map.childNodes.length > 0) //{ // map.removeChild(map.childNodes[0]); //} if (obj[o]) obj[o].style.display="none"; else obj[o]=map.appendChild(document.createElement("div")); obj[o].className="object60"; obj[o].style.position='absolute'; obj[o].style.height=10+"px"; obj[o].style.width=10+"px"; obj[o].style.top=y_k; obj[o].style.left=x_k; obj[o].style.zIndex=100; obj[o].style.cursor="pointer"; setBg(obj[o], "/maps/obj.gif", "center center"); obj[o].onclick=function() {ObjectPhoto(map,"cat_60.jpg","2918","3039")}; obj[o].style.display="block"; } else { if (obj[o]) obj[o].style.display="none"; } o++; } function ObjectPhoto(map,im,x,y) { for (var cl=0;cl<=map.childNodes.length;cl++) { if (map.childNodes[cl] && ((map.childNodes[cl].className.substring(0,7)=="object_"))) { map.removeChild(map.childNodes[cl]); } } var div2=map.appendChild(document.createElement("div")); div2.className="object_photo"; div2.style.position='absolute'; //div2.style.position='relative'; div2.style.backgroundColor="#f9f0de"; div2.style.border="1px solid #583919"; div2.innerHTML="
"; //div2.style.height="100%"; //div2.style.width="100%"; //div2.style.top=document.body.offsetHeight/3;//y+global_shifty; //div2.style.left=document.body.offsetWidth/3;//x+global_shiftx; div2.style.cursor="pointer"; div2.style.zIndex=22300; div2.onclick=function() {div2.style.display="none"}; }