var var1 = 'Col1{fc7301}' var var2 = 'Col2{FFFFFF}' var var3 = 'Col3{FFDDaa}' function fcnGetNewMapHeightRezize(){ var D = document; var val = 0; if(document.all){ val = D.documentElement.offsetHeight - 114; }else{ val = D.documentElement.clientHeight - 110; } return val; } function fcnShowHideTags() { if (TagsShown == 1) { // hide left panel and make map bigger document.getElementById("shtags").style.left = "0px"; document.getElementById("TagsDIV").style.width = "0px"; document.getElementById("mapdiv").style.left = "11px"; document.getElementById("showhidetags").src = "/Includes/ASPX/ImageGen.aspx?ImgType=Directory&DirectoryType=ShowTag&width=10&height=93&HexFront=fc7301&HexBack=FFFFFF&Trans=true"; TagsShown = 0; setTimeout("map.checkResize()",200); } else { // show left panel and make map smaller document.getElementById("showhidetags").src = "/Includes/ASPX/ImageGen.aspx?ImgType=Directory&DirectoryType=HideTag&width=10&height=93&HexFront=fc7301&HexBack=FFFFFF&Trans=true"; document.getElementById("shtags").style.left = "275px"; document.getElementById("TagsDIV").style.width = "275px"; document.getElementById("mapdiv").style.left = "286px"; TagsShown = 1; setTimeout("map.checkResize()",200); } } function fcnShowHideListings() { if (ListingsShown == 1) { // hide right panel and make map bigger document.getElementById("shlistings").style.right = "2px"; document.getElementById("ListingsDIV").style.width = "0px"; document.getElementById("mapdiv").style.right = "11px"; document.getElementById("showhidelistings").src = "/Includes/ASPX/ImageGen.aspx?ImgType=Directory&DirectoryType=ShowListing&width=10&height=93&HexFront=fc7301&HexBack=FFFFFF&Trans=true"; ListingsShown = 0; setTimeout("map.checkResize()",200); } else { // show right panel and make map smaller document.getElementById("showhidelistings").src = "/Includes/ASPX/ImageGen.aspx?ImgType=Directory&DirectoryType=HideListing&width=10&height=93&HexFront=fc7301&HexBack=FFFFFF&Trans=true"; document.getElementById("shlistings").style.right = "285px"; document.getElementById("ListingsDIV").style.width = "285px"; document.getElementById("mapdiv").style.right = "296px"; ListingsShown = 1; setTimeout("map.checkResize()",200); } } function listingmousein(target) { document.getElementById(target.id).style.backgroundColor = "#FFDDaa"; document.getElementById(target.id).style.backgroundImage = "url(\'/Includes/ASPX/GetDirectoryImage.aspx?ImageType=BGTarget&MaxWidth=30&MaxHeight=30\')"; document.getElementById(target.id).style.backgroundRepeat = "no-repeat"; } function listingmouseout(target) { if (target.id=="listing" + lastlistingid) { //listing was selected document.getElementById(target.id).style.backgroundColor = "#FFDDaa"; document.getElementById(target.id).style.backgroundImage = ""; document.getElementById(target.id).style.backgroundRepeat = "no-repeat"; } else { //listing wasn"t selected document.getElementById(target.id).style.backgroundColor = ""; document.getElementById(target.id).style.backgroundImage = ""; document.getElementById(target.id).style.backgroundRepeat = "no-repeat"; } } function marker_clicked(marker){ if(marker){ if (marker.popupid){ //if listing panel is there if (lastlistingid != 0 && document.getElementById("listing" + lastlistingid)){ document.getElementById("listing" + lastlistingid).style.backgroundColor = "" document.getElementById("listing" + lastlistingid).style.backgroundImage = "url(\'/Includes/ASPX/GetDirectoryImage.aspx?ImageType=BGTarget&MaxWidth=30&MaxHeight=30\')" document.getElementById("listing" + lastlistingid).style.backgroundRepeat = "no-repeat"; } //if listing panel is there and visible if(document.getElementById("listing" + marker.popupid)){ document.getElementById("listing" + marker.popupid).style.backgroundColor = "#FFDDaa" document.getElementById("listing" + marker.popupid).style.backgroundImage = "" document.getElementById("listing" + marker.popupid).scrollIntoView(false) } var bitPremium var bitImages bitPremium = marker.islistingpremium bitImages = marker.listingimages if (bitPremium != 0) { document.getElementById("bubblediv").style.width = "400px"; if (bitImages > 0) { document.getElementById("bubbleif").width = 400; document.getElementById("bubbleif").height = 223; } else { document.getElementById("bubbleif").width = 400; document.getElementById("bubbleif").height = 140; } } else { document.getElementById("bubblediv").style.width = "200px"; document.getElementById("bubbleif").width = 200; document.getElementById("bubbleif").height = 100; } lastlistingid = marker.popupid document.getElementById("bubbleif").src = "bubble.aspx?ListingID=" + marker.popupid element = document.getElementById("bubblediv") element = element.cloneNode(true) element.style.display = "block" map.openInfoWindow(marker.getPoint(), element) } } }