function DoNothing(r) { return; } // Categories var MenuTimer = [0, 0, 0, 0], MenuTimerEnabled = [false, false, false, false], lastMenu = 500; function mOver(i) { // clear all timers for (var x = 0; x < 4; x++) { if (MenuTimerEnabled[x]) { MenuTimerEnabled[x] = false; clearTimeout(MenuTimer[x]); } } var m = document.getElementById('UVPropMenu'); // enable sprite image for mouseover if (i == 0) { m.className = 'mainSprite70 suvpmainstyle413x49'; } if (i == 1) { m.className = 'mainSprite70 suvpmainspace413x49'; } if (i == 2) { m.className = 'mainSprite70 suvpmainregion413x49'; } if (i == 3) { m.className = 'mainSprite70 suvpmainseason413x49'; } if (i == 4) { m.className = 'mainSprite70 suvpmaintopten413x49'; } // make all menus invisible for (x = 0; x < 4; x++) { document.getElementById('HdrTopMenuItem' + x).style.visibility = 'hidden'; } if (i != 4) { // make current menu visible document.getElementById('HdrTopMenuItem' + i).style.visibility = 'visible'; // make menu area visible document.getElementById('HdrTopMenuItems').style.display = 'block'; } else { document.getElementById('HdrTopMenuItems').style.display = 'none'; } } function mOut(i) { // set clearall timer MenuTimerEnabled[i] = true; MenuTimer[i] = setTimeout("mClearAll();", 666); } function mClearAll() { for (var x = 0; x < 4; x++) { document.getElementById('HdrTopMenuItem' + x).style.visibility = 'hidden'; } var m = document.getElementById('UVPropMenu'); m.className = 'mainSprite70 suvpmainblank413x49' document.getElementById('HdrTopMenuItems').style.display = 'none'; } function OpenWindow(wWidth, wHeight, wTitle, wContent) { // width, height, title, content var w = document.getElementById('PopupWindow'); w.innerHTML = ''; w.style.display = 'none'; // set window dimensions, center it on screen var extraPadding = 3; var newWidth = 0, newHeight = 0; newWidth = (wWidth + (extraPadding * 2)); newHeight = (wHeight + 16 + 1 + (extraPadding * 3)); // window area + 16[top] + 1[border between top/bottom] + 3 pads [top,middle,bottom] w.style.width = newWidth + "px"; w.style.height = newHeight + "px"; w.style.marginTop = "-" + (newHeight / 2) + "px"; w.style.marginLeft = "-" + (newWidth / 2) + "px"; // contents var wrapper = ""; wrapper = "
" + wTitle + "
" + "
" + "
" + "
" + wContent + "
"; w.innerHTML = wrapper; w.style.display = 'block'; DoBackground(); } // other cool functionality function GetLink(i, t) { var title = Base64.decode(t); // just JS class var content = "To link directly to
" + "" + title + "
" + "use the following link:

" + ""; OpenWindow(300, 111, "URL to item", content); } function DoReport(i, t) { var title = Base64.decode(t); // just JS class var content = "To file a report for
" + "" + title + "

" + "please select a reason to bring this item to our attention:
" + "" + " [send]"; OpenWindow(425, 100, "Report unruly entry", content); } function DecoratorProfile(t) { var c = Base64.decode(t); // just JS class OpenWindow(300, 365, "Decorator Profile", c); } function AddtoWatchlist(i) { document.getElementById('WatchlistArea_' + i).innerHTML = ""; var xhr = getAjax(); xhr.onreadystatechange = function() { if ((xhr.readyState == 4) && (xhr.status == 200)) { var r = xhr.responseText; document.getElementById('WatchlistArea_' + r).innerHTML = "This item is in your watchlist"; } } xhr.open("GET", 'https://' + homeDomain + '/pages/include_70_zabycatalogue.php?addtoWatchlist=' + i, true); xhr.send(null); } function AddtoPropFollow(i, u) { document.getElementById('propAlert_' + i).innerHTML = ""; var xhr = getAjax(); xhr.onreadystatechange = function() { if ((xhr.readyState == 4) && (xhr.status == 200)) { var r = xhr.responseText; var a = r.split("^"); document.getElementById('propAlert_' + a[0]).innerHTML = a[1]; } } xhr.open("GET", 'https://' + homeDomain + '/pages/include_70_zabycatalogue.php?addtoPropAlert=' + i + "+" + u, true); xhr.send(null); } function RemovePropFollow(i, u) { document.getElementById('propAlert_' + i).innerHTML = ""; var xhr = getAjax(); xhr.onreadystatechange = function() { if ((xhr.readyState == 4) && (xhr.status == 200)) { var r = xhr.responseText; var a = r.split("^"); document.getElementById('propAlert_' + a[0]).innerHTML = a[1]; } } xhr.open("GET", 'https://' + homeDomain + '/pages/include_70_zabycatalogue.php?delfromPropAlert=' + i + "+" + u, true); xhr.send(null); } function CleanInput(e) { CleanTheInput(e, " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); } function CheckZabyVWWChecks(i) { var cZaby = document.getElementById('searchZaby').checked, cVWW = document.getElementById('searchVWW').checked; if (i == 'v') { if (!cVWW) { document.getElementById('searchZaby').checked = true; } return; } if (i == 'z') { if (!cZaby) { document.getElementById('searchVWW').checked = true; } return; } if (!cZaby && !cVWW) { document.getElementById('searchZaby').checked = true; document.getElementById('searchVWW').checked = true; } } function SetupPriceOptions(i) { if (i == "all") { document.getElementById('priceAll').checked = true; document.getElementById('priceFree').checked = false; document.getElementById('priceRange').checked = false; document.getElementById('rangeMin').value = "0.00"; document.getElementById('rangeMin').disabled = true; document.getElementById('rangeMax').value = "0.00"; document.getElementById('rangeMax').disabled = true; } if (i == "free") { document.getElementById('priceAll').checked = false; document.getElementById('priceFree').checked = true; document.getElementById('priceRange').checked = false; document.getElementById('rangeMin').value = "0.00"; document.getElementById('rangeMin').disabled = true; document.getElementById('rangeMax').value = "0.00"; document.getElementById('rangeMax').disabled = true; } if (i == "range") { document.getElementById('priceAll').checked = false; document.getElementById('priceFree').checked = false; document.getElementById('priceRange').checked = true; document.getElementById('rangeMin').value = "0.00"; document.getElementById('rangeMin').disabled = false; document.getElementById('rangeMax').value = "0.00"; document.getElementById('rangeMax').disabled = false; } } function SetupCatalogueSearch() { // search variable defaults // preset defaults document.getElementById('DesignerSearchInput').value = ""; document.getElementById('sText').value = ""; document.getElementById('searchZaby').checked = true; document.getElementById('searchVWW').checked = true; FillTemplate(); document.getElementById('searchCustomized').checked = false; document.getElementById('searchModelHouse').checked = false; document.getElementById('priceAll').checked = true; document.getElementById('priceFree').checked = false; document.getElementById('priceRange').checked = false; document.getElementById('rangeMin').value = "0.00"; document.getElementById('rangeMax').value = "0.00"; var srch = "", d = location.href; // break apart querystring if (d.indexOf("&search=") > -1) { var f = d.split("&"); for (var x = 1; x < f.length; x++) { if (f[x].indexOf("search=") == 0) { srch = f[x].substring(7); } } } if (srch.length > 0) { // text:[0/1]:[0/1]:[0/1]:[0/1]:number:[all/free/range]:number:number srch = Base64.decode(srch); srch = srch.split(":"); if (srch.length != 9) { return; } document.getElementById('sText').value = srch[0]; CleanInput('sText'); if (srch[1] == "0") { document.getElementById('searchZaby').checked = false; } else { document.getElementById('searchZaby').checked = true; } if (srch[2] == "0") { document.getElementById('searchVWW').checked = false; } else { document.getElementById('searchVWW').checked = true; } CheckZabyVWWChecks(' '); FillTemplate(); if (srch[3] == "0") { document.getElementById('searchCustomized').checked = false; } else { document.getElementById('searchCustomized').checked = true; } if (srch[4] == "0") { document.getElementById('searchModelHouse').checked = false; } else { document.getElementById('searchModelHouse').checked = true; } if (srch[5].length != "0") { var L = document.getElementById('searchTemplateName'); var Lo = L.options; for (var x = 0; x < Lo.length; x++) { if (Lo[x].value == srch[5]) { L.selectedIndex = x; } } } SetupPriceOptions(srch[6]); if (srch[6] == "range") { document.getElementById('rangeMin').value = srch[7]; document.getElementById('rangeMax').value = srch[8]; } //document.getElementById('uvpSearchClosed').style.display='none'; document.getElementById('uvpSearchOpened').style.display='block'; } } function OpenSearch() { document.getElementById('uvpSearchClosed').style.display = 'none'; document.getElementById('uvpSearchOpened').style.display = 'block'; } function CloseSearch() { document.getElementById('uvpSearchClosed').style.display = 'block'; document.getElementById('uvpSearchOpened').style.display = 'none'; } function doSearch() { var Search = ""; Search += document.getElementById('sText').value + ":"; if (document.getElementById('searchZaby').checked) { Search += "1:"; } else { Search += "0:"; } if (document.getElementById('searchVWW').checked) { Search += "1:"; } else { Search += "0:"; } if (document.getElementById('searchCustomized').checked) { Search += "1:"; } else { Search += "0:"; } if (document.getElementById('searchModelHouse').checked) { Search += "1:"; } else { Search += "0:"; } Search += document.getElementById('searchTemplateName').options[document.getElementById('searchTemplateName').selectedIndex].value + ":"; if (document.getElementById('priceAll').checked) { Search += "all:0.00:0.00"; } if (document.getElementById('priceFree').checked) { Search += "free:0.00:0.00"; } if (document.getElementById('priceRange').checked) { Search += "range:" + document.getElementById('rangeMin').value + ":" + document.getElementById('rangeMax').value; } Search = Base64.encode(Search); document.location = "https://" + homeDomain + "/?page=70&search=" + Search; } function GotoPage(p) { var MoarVariables = ""; var lHref = location.href; if (lHref.indexOf("#") > -1) { // # exists in URL lHref = lHref.split("#"); lHref = lHref[0]; // need everything before # } if (lHref.indexOf("?") > -1) { // if ? exists in URL lHref = lHref.split("?"); lHref = lHref[1]; // lhref[0]=url, lhref[1]=parameters if (lHref.indexOf("&") > -1) { lHref = lHref.split("&"); for (var x = 0; x < lHref.length; x++) { var s = lHref[x].split("="); if ((s[0] != "page") && (s[0] != "p")) { if (s[0] == "search") { // carry over base64 encoding MoarVariables += "&" + lHref[x]; } else { MoarVariables += "&" + s[0] + "=" + s[1]; } } } } } location.href = "https://" + homeDomain + "/?page=70" + MoarVariables + "&p=" + p; } var dSeed; function DesignerSearch() { var q = document.getElementById('DesignerSearchInput').value; if (q.length == 0) { document.getElementById('DesignerSearchResults').style.display = 'none'; return; } q = encodeURIComponent(q); dSeed = Math.random(); var xhr = getAjax(); xhr.onreadystatechange = function() { if ((xhr.readyState == 4) && (xhr.status == 200)) { var r = xhr.responseText; var a = r.split("^"); var q = document.getElementById('DesignerSearchInput').value; if (q.length == 0) { return; } if (a[0] == dSeed) { document.getElementById('DesignerSearchResults').innerHTML = a[1]; document.getElementById('DesignerSearchResults').style.display = 'block'; } } } xhr.open("GET", 'https://' + homeDomain + '/pages/include_70_zabycatalogue.php?dSearch=' + q + "&dSeed=" + dSeed, true); xhr.send(null); } function FillTemplate() { var s = document.getElementById('searchTemplateName'); s.options.length = 0; // clear the destination dropdown try { s.add(new Option("All Types", "0"), null); } catch (e) { s.add(new Option("All Types", "0")); }; if (document.getElementById('searchZaby').checked) { try{s.add(new Option("Basic Zaby Layout 1 (No Boundaries) V1 [1108]","1108"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 (No Boundaries) V1 [1108]","1108"));} try{s.add(new Option("Basic Zaby Layout 1 /w Kitchen V2 [470]","470"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 /w Kitchen V2 [470]","470"));} try{s.add(new Option("Basic Zaby Layout 1 /w Kitchen V2 [1203]","1203"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 /w Kitchen V2 [1203]","1203"));} try{s.add(new Option("Basic Zaby Layout 1 V2 [1202]","1202"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 V2 [1202]","1202"));} try{s.add(new Option("Basic Zaby Layout 1 V3 [1057]","1057"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 V3 [1057]","1057"));} try{s.add(new Option("Basic Zaby Layout 1 V3 [1141]","1141"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 V3 [1141]","1141"));} try{s.add(new Option("Basic Zaby Layout 1 with Kitchen (No Boundaries) V1 [1109]","1109"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 with Kitchen (No Boundaries) V1 [1109]","1109"));} try{s.add(new Option("Basic Zaby Layout 1 with Kitchen and Deck (No Boundaries) V1 [1110]","1110"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 with Kitchen and Deck (No Boundaries) V1 [1110]","1110"));} try{s.add(new Option("Basic Zaby Layout 1 with Kitchen and Deck V3 [1059]","1059"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 with Kitchen and Deck V3 [1059]","1059"));} try{s.add(new Option("Basic Zaby Layout 1 with Kitchen V3 [1142]","1142"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 with Kitchen V3 [1142]","1142"));} try{s.add(new Option("Basic Zaby Layout 1 with Kitchen V3 [1058]","1058"),null);}catch(e){s.add(new Option("Basic Zaby Layout 1 with Kitchen V3 [1058]","1058"));} try{s.add(new Option("Basic Zaby Layout 2 (No Boundaries) V1 [1111]","1111"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 (No Boundaries) V1 [1111]","1111"));} try{s.add(new Option("Basic Zaby Layout 2 /w Kitchen V2 [473]","473"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 /w Kitchen V2 [473]","473"));} try{s.add(new Option("Basic Zaby Layout 2 /w Kitchen V2 [1204]","1204"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 /w Kitchen V2 [1204]","1204"));} try{s.add(new Option("Basic Zaby Layout 2 V2 [1205]","1205"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 V2 [1205]","1205"));} try{s.add(new Option("Basic Zaby Layout 2 V2 [472]","472"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 V2 [472]","472"));} try{s.add(new Option("Basic Zaby Layout 2 V3 [1139]","1139"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 V3 [1139]","1139"));} try{s.add(new Option("Basic Zaby Layout 2 V3 [1060]","1060"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 V3 [1060]","1060"));} try{s.add(new Option("Basic Zaby Layout 2 with Kitchen (No Boundaries) V1 [1112]","1112"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 with Kitchen (No Boundaries) V1 [1112]","1112"));} try{s.add(new Option("Basic Zaby Layout 2 with Kitchen and Deck (No Boundaries) V1 [1113]","1113"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 with Kitchen and Deck (No Boundaries) V1 [1113]","1113"));} try{s.add(new Option("Basic Zaby Layout 2 with Kitchen and Deck V3 [1062]","1062"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 with Kitchen and Deck V3 [1062]","1062"));} try{s.add(new Option("Basic Zaby Layout 2 with Kitchen V3 [1061]","1061"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 with Kitchen V3 [1061]","1061"));} try{s.add(new Option("Basic Zaby Layout 2 with Kitchen V3 [1140]","1140"),null);}catch(e){s.add(new Option("Basic Zaby Layout 2 with Kitchen V3 [1140]","1140"));} try{s.add(new Option("Brian's Zaby [793]","793"),null);}catch(e){s.add(new Option("Brian's Zaby [793]","793"));} try{s.add(new Option("Brian's Zaby (Vacant) [803]","803"),null);}catch(e){s.add(new Option("Brian's Zaby (Vacant) [803]","803"));} try{s.add(new Option("Country House Zaby (No Boundaries) V4 [1146]","1146"),null);}catch(e){s.add(new Option("Country House Zaby (No Boundaries) V4 [1146]","1146"));} try{s.add(new Option("Country House Zaby V3 [1063]","1063"),null);}catch(e){s.add(new Option("Country House Zaby V3 [1063]","1063"));} try{s.add(new Option("Fancy Zaby Layout 1 (No Boundaries) V1 [1114]","1114"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 1 (No Boundaries) V1 [1114]","1114"));} try{s.add(new Option("Fancy Zaby Layout 1 V3 [1064]","1064"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 1 V3 [1064]","1064"));} try{s.add(new Option("Fancy Zaby Layout 1 with Kitchen (No Boundaries) V1 [1115]","1115"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 1 with Kitchen (No Boundaries) V1 [1115]","1115"));} try{s.add(new Option("Fancy Zaby Layout 1 with Kitchen and Deck (No Boundaries) V1 [1116]","1116"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 1 with Kitchen and Deck (No Boundaries) V1 [1116]","1116"));} try{s.add(new Option("Fancy Zaby Layout 1 with Kitchen and Deck V3 [1066]","1066"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 1 with Kitchen and Deck V3 [1066]","1066"));} try{s.add(new Option("Fancy Zaby Layout 1 with Kitchen V3 [1065]","1065"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 1 with Kitchen V3 [1065]","1065"));} try{s.add(new Option("Fancy Zaby Layout 2 (No Boundaries) V4 [1130]","1130"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 2 (No Boundaries) V4 [1130]","1130"));} try{s.add(new Option("Fancy Zaby Layout 2 V3 [1067]","1067"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 2 V3 [1067]","1067"));} try{s.add(new Option("Fancy Zaby Layout 2 with Kitchen (No Boundaries) V4 [1131]","1131"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 2 with Kitchen (No Boundaries) V4 [1131]","1131"));} try{s.add(new Option("Fancy Zaby Layout 2 with Kitchen and Deck (No Boundaries) V1 [1125]","1125"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 2 with Kitchen and Deck (No Boundaries) V1 [1125]","1125"));} try{s.add(new Option("Fancy Zaby Layout 2 with Kitchen and Deck V3 [1069]","1069"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 2 with Kitchen and Deck V3 [1069]","1069"));} try{s.add(new Option("Fancy Zaby Layout 2 with Kitchen V3 [1068]","1068"),null);}catch(e){s.add(new Option("Fancy Zaby Layout 2 with Kitchen V3 [1068]","1068"));} try{s.add(new Option("Luxury Zaby (No Boundaries) V1 [1119]","1119"),null);}catch(e){s.add(new Option("Luxury Zaby (No Boundaries) V1 [1119]","1119"));} try{s.add(new Option("Luxury Zaby V3 [1070]","1070"),null);}catch(e){s.add(new Option("Luxury Zaby V3 [1070]","1070"));} try{s.add(new Option("Luxury Zaby with Kitchen (No Boundaries) V1 [1120]","1120"),null);}catch(e){s.add(new Option("Luxury Zaby with Kitchen (No Boundaries) V1 [1120]","1120"));} try{s.add(new Option("Luxury Zaby with Kitchen and Deck (No Boundaries) V1 [1121]","1121"),null);}catch(e){s.add(new Option("Luxury Zaby with Kitchen and Deck (No Boundaries) V1 [1121]","1121"));} try{s.add(new Option("Luxury Zaby with Kitchen and Deck V3 [1072]","1072"),null);}catch(e){s.add(new Option("Luxury Zaby with Kitchen and Deck V3 [1072]","1072"));} try{s.add(new Option("Luxury Zaby with Kitchen V3 [1071]","1071"),null);}catch(e){s.add(new Option("Luxury Zaby with Kitchen V3 [1071]","1071"));} try{s.add(new Option("Penthouse Zaby with Deck (No Boundaries) V1 [1122]","1122"),null);}catch(e){s.add(new Option("Penthouse Zaby with Deck (No Boundaries) V1 [1122]","1122"));} try{s.add(new Option("Penthouse Zaby with Deck V3 [1073]","1073"),null);}catch(e){s.add(new Option("Penthouse Zaby with Deck V3 [1073]","1073"));} try{s.add(new Option("Penthouse Zaby with Kitchen and Deck (No Boundaries) V1 [1123]","1123"),null);}catch(e){s.add(new Option("Penthouse Zaby with Kitchen and Deck (No Boundaries) V1 [1123]","1123"));} try{s.add(new Option("Penthouse Zaby with Kitchen and Deck V3 [1074]","1074"),null);}catch(e){s.add(new Option("Penthouse Zaby with Kitchen and Deck V3 [1074]","1074"));} try{s.add(new Option("Zaby Large Foundation V1 [1132]","1132"),null);}catch(e){s.add(new Option("Zaby Large Foundation V1 [1132]","1132"));} try{s.add(new Option("Zaby Medium Foundation V1 [1133]","1133"),null);}catch(e){s.add(new Option("Zaby Medium Foundation V1 [1133]","1133"));} try{s.add(new Option("Zaby Small Foundation V1 [1134]","1134"),null);}catch(e){s.add(new Option("Zaby Small Foundation V1 [1134]","1134"));} try{s.add(new Option("Zaby XLarge Foundation V1 [1107]","1107"),null);}catch(e){s.add(new Option("Zaby XLarge Foundation V1 [1107]","1107"));} } if (document.getElementById('searchVWW').checked) { try{s.add(new Option("Basic Club [327]","327"),null);}catch(e){s.add(new Option("Basic Club [327]","327"));} try{s.add(new Option("Basic Club* [1075]","1075"),null);}catch(e){s.add(new Option("Basic Club* [1075]","1075"));} try{s.add(new Option("Basic Office [320]","320"),null);}catch(e){s.add(new Option("Basic Office [320]","320"));} try{s.add(new Option("Basic Office Vacant [321]","321"),null);}catch(e){s.add(new Option("Basic Office Vacant [321]","321"));} try{s.add(new Option("Basic Office Vacant* [1077]","1077"),null);}catch(e){s.add(new Option("Basic Office Vacant* [1077]","1077"));} try{s.add(new Option("Basic Office* [1076]","1076"),null);}catch(e){s.add(new Option("Basic Office* [1076]","1076"));} try{s.add(new Option("Basic Park [351]","351"),null);}catch(e){s.add(new Option("Basic Park [351]","351"));} try{s.add(new Option("Basic Park Vacant [1154]","1154"),null);}catch(e){s.add(new Option("Basic Park Vacant [1154]","1154"));} try{s.add(new Option("Basic Park Vacant* [1155]","1155"),null);}catch(e){s.add(new Option("Basic Park Vacant* [1155]","1155"));} try{s.add(new Option("Basic Park* [1078]","1078"),null);}catch(e){s.add(new Option("Basic Park* [1078]","1078"));} try{s.add(new Option("Basic Store [359]","359"),null);}catch(e){s.add(new Option("Basic Store [359]","359"));} try{s.add(new Option("Basic Store Vacant [360]","360"),null);}catch(e){s.add(new Option("Basic Store Vacant [360]","360"));} try{s.add(new Option("Basic Store Vacant* [1081]","1081"),null);}catch(e){s.add(new Option("Basic Store Vacant* [1081]","1081"));} try{s.add(new Option("Basic Store* [1080]","1080"),null);}catch(e){s.add(new Option("Basic Store* [1080]","1080"));} try{s.add(new Option("Basic Street [373]","373"),null);}catch(e){s.add(new Option("Basic Street [373]","373"));} try{s.add(new Option("Basic Street Vacant [374]","374"),null);}catch(e){s.add(new Option("Basic Street Vacant [374]","374"));} try{s.add(new Option("Basic Street Vacant* [1083]","1083"),null);}catch(e){s.add(new Option("Basic Street Vacant* [1083]","1083"));} try{s.add(new Option("Basic Street* [1082]","1082"),null);}catch(e){s.add(new Option("Basic Street* [1082]","1082"));} try{s.add(new Option("Basic Theatre [343]","343"),null);}catch(e){s.add(new Option("Basic Theatre [343]","343"));} try{s.add(new Option("Basic Theatre Vacant [344]","344"),null);}catch(e){s.add(new Option("Basic Theatre Vacant [344]","344"));} try{s.add(new Option("Basic Theatre Vacant* [1085]","1085"),null);}catch(e){s.add(new Option("Basic Theatre Vacant* [1085]","1085"));} try{s.add(new Option("Basic Theatre* [1084]","1084"),null);}catch(e){s.add(new Option("Basic Theatre* [1084]","1084"));} try{s.add(new Option("Basic Vacant Club [328]","328"),null);}catch(e){s.add(new Option("Basic Vacant Club [328]","328"));} try{s.add(new Option("Basic Vacant Club* [1086]","1086"),null);}catch(e){s.add(new Option("Basic Vacant Club* [1086]","1086"));} try{s.add(new Option("City Lot [848]","848"),null);}catch(e){s.add(new Option("City Lot [848]","848"));} try{s.add(new Option("Cross Street [335]","335"),null);}catch(e){s.add(new Option("Cross Street [335]","335"));} try{s.add(new Option("Cross Street Vacant [336]","336"),null);}catch(e){s.add(new Option("Cross Street Vacant [336]","336"));} try{s.add(new Option("L Street [337]","337"),null);}catch(e){s.add(new Option("L Street [337]","337"));} try{s.add(new Option("L Street Vacant [338]","338"),null);}catch(e){s.add(new Option("L Street Vacant [338]","338"));} try{s.add(new Option("Large Club [329]","329"),null);}catch(e){s.add(new Option("Large Club [329]","329"));} try{s.add(new Option("Large Club 10 [410]","410"),null);}catch(e){s.add(new Option("Large Club 10 [410]","410"));} try{s.add(new Option("Large Club 10 Vacant [411]","411"),null);}catch(e){s.add(new Option("Large Club 10 Vacant [411]","411"));} try{s.add(new Option("Large Club 11 [418]","418"),null);}catch(e){s.add(new Option("Large Club 11 [418]","418"));} try{s.add(new Option("Large Club 11 Vacant [419]","419"),null);}catch(e){s.add(new Option("Large Club 11 Vacant [419]","419"));} try{s.add(new Option("Large Foundation [479]","479"),null);}catch(e){s.add(new Option("Large Foundation [479]","479"));} try{s.add(new Option("Large Park [353]","353"),null);}catch(e){s.add(new Option("Large Park [353]","353"));} try{s.add(new Option("Large Park Vacant [354]","354"),null);}catch(e){s.add(new Option("Large Park Vacant [354]","354"));} try{s.add(new Option("Large Property 15 [448]","448"),null);}catch(e){s.add(new Option("Large Property 15 [448]","448"));} try{s.add(new Option("Large Property 15 Vacant [449]","449"),null);}catch(e){s.add(new Option("Large Property 15 Vacant [449]","449"));} try{s.add(new Option("Large Property 17 [452]","452"),null);}catch(e){s.add(new Option("Large Property 17 [452]","452"));} try{s.add(new Option("Large Property 17 Vacant [453]","453"),null);}catch(e){s.add(new Option("Large Property 17 Vacant [453]","453"));} try{s.add(new Option("Large Property 18 [454]","454"),null);}catch(e){s.add(new Option("Large Property 18 [454]","454"));} try{s.add(new Option("Large Property 18 Vacant [455]","455"),null);}catch(e){s.add(new Option("Large Property 18 Vacant [455]","455"));} try{s.add(new Option("Large Property 3 Vacant [425]","425"),null);}catch(e){s.add(new Option("Large Property 3 Vacant [425]","425"));} try{s.add(new Option("Large Store [367]","367"),null);}catch(e){s.add(new Option("Large Store [367]","367"));} try{s.add(new Option("Large Store Vacant [368]","368"),null);}catch(e){s.add(new Option("Large Store Vacant [368]","368"));} try{s.add(new Option("Large Theatre [345]","345"),null);}catch(e){s.add(new Option("Large Theatre [345]","345"));} try{s.add(new Option("Large Theatre Vacant [346]","346"),null);}catch(e){s.add(new Option("Large Theatre Vacant [346]","346"));} try{s.add(new Option("Large Vacant Club [330]","330"),null);}catch(e){s.add(new Option("Large Vacant Club [330]","330"));} try{s.add(new Option("Large Vacant Office [322]","322"),null);}catch(e){s.add(new Option("Large Vacant Office [322]","322"));} try{s.add(new Option("Medium Club [331]","331"),null);}catch(e){s.add(new Option("Medium Club [331]","331"));} try{s.add(new Option("Medium Club 2 [400]","400"),null);}catch(e){s.add(new Option("Medium Club 2 [400]","400"));} try{s.add(new Option("Medium Club 2 Vacant [401]","401"),null);}catch(e){s.add(new Option("Medium Club 2 Vacant [401]","401"));} try{s.add(new Option("Medium Club 3 [402]","402"),null);}catch(e){s.add(new Option("Medium Club 3 [402]","402"));} try{s.add(new Option("Medium Club 3 Vacant [403]","403"),null);}catch(e){s.add(new Option("Medium Club 3 Vacant [403]","403"));} try{s.add(new Option("Medium Foundation [478]","478"),null);}catch(e){s.add(new Option("Medium Foundation [478]","478"));} try{s.add(new Option("Medium Office [323]","323"),null);}catch(e){s.add(new Option("Medium Office [323]","323"));} try{s.add(new Option("Medium Office Vacant [324]","324"),null);}catch(e){s.add(new Option("Medium Office Vacant [324]","324"));} try{s.add(new Option("Medium Park [355]","355"),null);}catch(e){s.add(new Option("Medium Park [355]","355"));} try{s.add(new Option("Medium Park Vacant [356]","356"),null);}catch(e){s.add(new Option("Medium Park Vacant [356]","356"));} try{s.add(new Option("Medium Property 1 [420]","420"),null);}catch(e){s.add(new Option("Medium Property 1 [420]","420"));} try{s.add(new Option("Medium Property 1 Vacant [421]","421"),null);}catch(e){s.add(new Option("Medium Property 1 Vacant [421]","421"));} try{s.add(new Option("Medium Property 11 [440]","440"),null);}catch(e){s.add(new Option("Medium Property 11 [440]","440"));} try{s.add(new Option("Medium Property 11 Vacant [441]","441"),null);}catch(e){s.add(new Option("Medium Property 11 Vacant [441]","441"));} try{s.add(new Option("Medium Property 16 [450]","450"),null);}catch(e){s.add(new Option("Medium Property 16 [450]","450"));} try{s.add(new Option("Medium Property 16 Vacant [451]","451"),null);}catch(e){s.add(new Option("Medium Property 16 Vacant [451]","451"));} try{s.add(new Option("Medium Property 4 [426]","426"),null);}catch(e){s.add(new Option("Medium Property 4 [426]","426"));} try{s.add(new Option("Medium Property 4 Vacant [427]","427"),null);}catch(e){s.add(new Option("Medium Property 4 Vacant [427]","427"));} try{s.add(new Option("Medium Store [369]","369"),null);}catch(e){s.add(new Option("Medium Store [369]","369"));} try{s.add(new Option("Medium Store 3 [388]","388"),null);}catch(e){s.add(new Option("Medium Store 3 [388]","388"));} try{s.add(new Option("Medium Store 3 Vacant [389]","389"),null);}catch(e){s.add(new Option("Medium Store 3 Vacant [389]","389"));} try{s.add(new Option("Medium Store 4 [390]","390"),null);}catch(e){s.add(new Option("Medium Store 4 [390]","390"));} try{s.add(new Option("Medium Store 4 Vacant [391]","391"),null);}catch(e){s.add(new Option("Medium Store 4 Vacant [391]","391"));} try{s.add(new Option("Medium Store 5 [392]","392"),null);}catch(e){s.add(new Option("Medium Store 5 [392]","392"));} try{s.add(new Option("Medium Store 5 Vacant [393]","393"),null);}catch(e){s.add(new Option("Medium Store 5 Vacant [393]","393"));} try{s.add(new Option("Medium Store 6 [394]","394"),null);}catch(e){s.add(new Option("Medium Store 6 [394]","394"));} try{s.add(new Option("Medium Store 6 Vacant [395]","395"),null);}catch(e){s.add(new Option("Medium Store 6 Vacant [395]","395"));} try{s.add(new Option("Medium Store 7 [396]","396"),null);}catch(e){s.add(new Option("Medium Store 7 [396]","396"));} try{s.add(new Option("Medium Store 7 Vacant [397]","397"),null);}catch(e){s.add(new Option("Medium Store 7 Vacant [397]","397"));} try{s.add(new Option("Medium Store Vacant [370]","370"),null);}catch(e){s.add(new Option("Medium Store Vacant [370]","370"));} try{s.add(new Option("Medium Theatre [347]","347"),null);}catch(e){s.add(new Option("Medium Theatre [347]","347"));} try{s.add(new Option("Medium Theatre Vacant [348]","348"),null);}catch(e){s.add(new Option("Medium Theatre Vacant [348]","348"));} try{s.add(new Option("Medium Vacant Club [332]","332"),null);}catch(e){s.add(new Option("Medium Vacant Club [332]","332"));} try{s.add(new Option("Showroom Large [561]","561"),null);}catch(e){s.add(new Option("Showroom Large [561]","561"));} try{s.add(new Option("Showroom Small [560]","560"),null);}catch(e){s.add(new Option("Showroom Small [560]","560"));} try{s.add(new Option("Skatepark [1199]","1199"),null);}catch(e){s.add(new Option("Skatepark [1199]","1199"));} try{s.add(new Option("Small Club [333]","333"),null);}catch(e){s.add(new Option("Small Club [333]","333"));} try{s.add(new Option("Small Club 7 [416]","416"),null);}catch(e){s.add(new Option("Small Club 7 [416]","416"));} try{s.add(new Option("Small Club 7 Vacant [417]","417"),null);}catch(e){s.add(new Option("Small Club 7 Vacant [417]","417"));} try{s.add(new Option("Small Club 8 [412]","412"),null);}catch(e){s.add(new Option("Small Club 8 [412]","412"));} try{s.add(new Option("Small Club 8 Vacant [413]","413"),null);}catch(e){s.add(new Option("Small Club 8 Vacant [413]","413"));} try{s.add(new Option("Small Club 9 [414]","414"),null);}catch(e){s.add(new Option("Small Club 9 [414]","414"));} try{s.add(new Option("Small Club 9 Vacant [415]","415"),null);}catch(e){s.add(new Option("Small Club 9 Vacant [415]","415"));} try{s.add(new Option("Small Foundation [477]","477"),null);}catch(e){s.add(new Option("Small Foundation [477]","477"));} try{s.add(new Option("Small Office [325]","325"),null);}catch(e){s.add(new Option("Small Office [325]","325"));} try{s.add(new Option("Small Park [357]","357"),null);}catch(e){s.add(new Option("Small Park [357]","357"));} try{s.add(new Option("Small Park Vacant [358]","358"),null);}catch(e){s.add(new Option("Small Park Vacant [358]","358"));} try{s.add(new Option("Small Property 10 [438]","438"),null);}catch(e){s.add(new Option("Small Property 10 [438]","438"));} try{s.add(new Option("Small Property 10 Vacant [439]","439"),null);}catch(e){s.add(new Option("Small Property 10 Vacant [439]","439"));} try{s.add(new Option("Small Property 5 [428]","428"),null);}catch(e){s.add(new Option("Small Property 5 [428]","428"));} try{s.add(new Option("Small Property 5 Vacant [429]","429"),null);}catch(e){s.add(new Option("Small Property 5 Vacant [429]","429"));} try{s.add(new Option("Small Property 6 [430]","430"),null);}catch(e){s.add(new Option("Small Property 6 [430]","430"));} try{s.add(new Option("Small Property 6 Vacant [431]","431"),null);}catch(e){s.add(new Option("Small Property 6 Vacant [431]","431"));} try{s.add(new Option("Small Property 9 [436]","436"),null);}catch(e){s.add(new Option("Small Property 9 [436]","436"));} try{s.add(new Option("Small Property 9 Vacant [437]","437"),null);}catch(e){s.add(new Option("Small Property 9 Vacant [437]","437"));} try{s.add(new Option("Small Store [371]","371"),null);}catch(e){s.add(new Option("Small Store [371]","371"));} try{s.add(new Option("Small Store 1 [384]","384"),null);}catch(e){s.add(new Option("Small Store 1 [384]","384"));} try{s.add(new Option("Small Store 1 Vacant [385]","385"),null);}catch(e){s.add(new Option("Small Store 1 Vacant [385]","385"));} try{s.add(new Option("Small Store 2 [386]","386"),null);}catch(e){s.add(new Option("Small Store 2 [386]","386"));} try{s.add(new Option("Small Store 2 Vacant [387]","387"),null);}catch(e){s.add(new Option("Small Store 2 Vacant [387]","387"));} try{s.add(new Option("Small Store Vacant [372]","372"),null);}catch(e){s.add(new Option("Small Store Vacant [372]","372"));} try{s.add(new Option("Small Theatre [365]","365"),null);}catch(e){s.add(new Option("Small Theatre [365]","365"));} try{s.add(new Option("Small Theatre Vacant [366]","366"),null);}catch(e){s.add(new Option("Small Theatre Vacant [366]","366"));} try{s.add(new Option("Small Vacant Club [334]","334"),null);}catch(e){s.add(new Option("Small Vacant Club [334]","334"));} try{s.add(new Option("Small Vacant Office [326]","326"),null);}catch(e){s.add(new Option("Small Vacant Office [326]","326"));} try{s.add(new Option("Spectacular Amphitheatre [376]","376"),null);}catch(e){s.add(new Option("Spectacular Amphitheatre [376]","376"));} try{s.add(new Option("Spectacular Amphitheatre Vacant [377]","377"),null);}catch(e){s.add(new Option("Spectacular Amphitheatre Vacant [377]","377"));} try{s.add(new Option("Spectacular Boardwalk [1129]","1129"),null);}catch(e){s.add(new Option("Spectacular Boardwalk [1129]","1129"));} try{s.add(new Option("Spectacular Boardwalk Vacant [1143]","1143"),null);}catch(e){s.add(new Option("Spectacular Boardwalk Vacant [1143]","1143"));} try{s.add(new Option("Spectacular Lobby 1 [378]","378"),null);}catch(e){s.add(new Option("Spectacular Lobby 1 [378]","378"));} try{s.add(new Option("Spectacular Lobby 1 Vacant [379]","379"),null);}catch(e){s.add(new Option("Spectacular Lobby 1 Vacant [379]","379"));} try{s.add(new Option("Spectacular Lobby 2 [380]","380"),null);}catch(e){s.add(new Option("Spectacular Lobby 2 [380]","380"));} try{s.add(new Option("Spectacular Lobby 2 Vacant [381]","381"),null);}catch(e){s.add(new Option("Spectacular Lobby 2 Vacant [381]","381"));} try{s.add(new Option("Spectacular Lobby 3 [382]","382"),null);}catch(e){s.add(new Option("Spectacular Lobby 3 [382]","382"));} try{s.add(new Option("Spectacular Lobby 3 Vacant [383]","383"),null);}catch(e){s.add(new Option("Spectacular Lobby 3 Vacant [383]","383"));} try{s.add(new Option("Store 1 [1206]","1206"),null);}catch(e){s.add(new Option("Store 1 [1206]","1206"));} try{s.add(new Option("Store 2 [1207]","1207"),null);}catch(e){s.add(new Option("Store 2 [1207]","1207"));} try{s.add(new Option("Store 3 [1208]","1208"),null);}catch(e){s.add(new Option("Store 3 [1208]","1208"));} try{s.add(new Option("Store 4 [1209]","1209"),null);}catch(e){s.add(new Option("Store 4 [1209]","1209"));} try{s.add(new Option("Store 5 [1210]","1210"),null);}catch(e){s.add(new Option("Store 5 [1210]","1210"));} try{s.add(new Option("Store 6 [775]","775"),null);}catch(e){s.add(new Option("Store 6 [775]","775"));} try{s.add(new Option("Store 7 [831]","831"),null);}catch(e){s.add(new Option("Store 7 [831]","831"));} try{s.add(new Option("Straight Street [341]","341"),null);}catch(e){s.add(new Option("Straight Street [341]","341"));} try{s.add(new Option("Straight Street Vacant [342]","342"),null);}catch(e){s.add(new Option("Straight Street Vacant [342]","342"));} try{s.add(new Option("Town Lot [849]","849"),null);}catch(e){s.add(new Option("Town Lot [849]","849"));} try{s.add(new Option("Water Foundation Large [869]","869"),null);}catch(e){s.add(new Option("Water Foundation Large [869]","869"));} try{s.add(new Option("Water Foundation Medium [870]","870"),null);}catch(e){s.add(new Option("Water Foundation Medium [870]","870"));} try{s.add(new Option("Water Foundation Small [871]","871"),null);}catch(e){s.add(new Option("Water Foundation Small [871]","871"));} try{s.add(new Option("Water Foundation X-Large [868]","868"),null);}catch(e){s.add(new Option("Water Foundation X-Large [868]","868"));} try{s.add(new Option("XLarge Foundation [480]","480"),null);}catch(e){s.add(new Option("XLarge Foundation [480]","480"));} } } function GotoVWW(i) { var xhr = getAjax(); xhr.onreadystatechange = function() { if ((xhr.readyState == 4) && (xhr.status == 200)) { var r = xhr.responseText; document.location = r; } } xhr.open("GET", 'https://' + homeDomain + '/pages/include_70_zabycatalogue.php?gotoVWW=' + i, true); xhr.send(null); } function PrecomposeMessage(i) { var b = "
"; b += "
Please enter a small message to this decorator
"; b += "
"; b += "
200 letters left
"; b += "
"; b += ""; b += "
"; b += "
"; b += "
"; OpenWindow(400, 175, "Compose a message", b); document.getElementById('messageBody').focus(); } function PrecomposeMessage_LetterCount() { var e = document.getElementById('messageBody').value; var c = e.length; if (c > 200) { e = e.substring(0, 200); document.getElementById('messageBody').value = e; c = 200; } var r = 200 - c; document.getElementById('messageCount').innerHTML = r + " letters left"; } function PrecomposeMessage_ShootMessage(i) { var m = document.getElementById('messageBody').value; m = Base64.encode(m); OpenWindow(400, 175, "Sending message...", "



Please wait...
"); var xhr = getAjax(); xhr.onreadystatechange = function() { if ((xhr.readyState == 4) && (xhr.status == 200)) { var r = xhr.responseText; CloseWindow(); } } xhr.open("GET", 'https://' + homeDomain + '/pages/include_70_zabycatalogue.php?SendCommunicationID=' + i + '&SendCommunicationMessage=' + encodeURIComponent(m), true); xhr.send(null); } //////////////////////////////////////////////////////////////////////////////////////////////// /** * * Base64 encode / decode * http://www.webtoolkit.info/ * **/ // From: http://www.webtoolkit.info/javascript-base64.html var Base64 = { // private property _keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", // public method for encoding encode : function (input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; input = Base64._utf8_encode(input); while (i < input.length) { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); } return output; }, // public method for decoding decode : function (input) { var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; //input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); while (i < input.length) { enc1 = this._keyStr.indexOf(input.charAt(i++)); enc2 = this._keyStr.indexOf(input.charAt(i++)); enc3 = this._keyStr.indexOf(input.charAt(i++)); enc4 = this._keyStr.indexOf(input.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; output = output + String.fromCharCode(chr1); if (enc3 != 64) { output = output + String.fromCharCode(chr2); } if (enc4 != 64) { output = output + String.fromCharCode(chr3); } } output = Base64._utf8_decode(output); return output; }, // private method for UTF-8 encoding _utf8_encode : function (string) { string = string.replace(/\r\n/g,"\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; }, // private method for UTF-8 decoding _utf8_decode : function (utftext) { var string = ""; var i = 0; var c = c1 = c2 = 0; while ( i < utftext.length ) { c = utftext.charCodeAt(i); if (c < 128) { string += String.fromCharCode(c); i++; } else if((c > 191) && (c < 224)) { c2 = utftext.charCodeAt(i+1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2; } else { c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3; } } return string; } } ////////////////////////////////////////////////////////////////////////////////////////////////