(function() { var w = "460"; var h = "335"; var cssw = w; var cssh = h; if(w.indexOf("%") == -1) { cssw += "px"; } if(h.indexOf("%") == -1) { cssh += "px"; } var mapid = "CentreforBionetworking"; var mapVersion = "1.0"; var a = {}; a["4662475238"] = {w: 180, h: 150}; var slot = 4662475238; var $sm_gebcn = function(className) { var allElements = document.getElementsByTagName("*"); var results = []; var element; for (var i = 0; i < allElements.length; i++) { element = allElements[i]; if(element.className == "$sm_adcontent") { results.push(element); } } return results; } var $sm_geif = function() { var iframes = document.getElementsByTagName("iframe"); var results = []; for(var i = 0; i < iframes.length; i++) { if(iframes[i].name.indexOf("google") != -1) { results.push(iframes[i]); } } return results; } var $sm_odw = document.write; var $sm_elw = []; var $sm_stdw = function(str) { document.write = $sm_odw; document.write(str); document.write = mywrite; } var mywrite = function(str) { var els = $sm_gebcn("$sm_adcontent"); if(els.length > 0) { var el = els[els.length-1]; if(!findInArray(el, $sm_elw)) { if(str.indexOf("<"+"ins") != -1) { el.innerHTML = str; $sm_elw.push(el); } else if(str.indexOf("google_protectAndRun") != -1) { $sm_stdw(str); var ads = $sm_geif(); el.appendChild(ads[ads.length-1]); $sm_elw.push(el); } else { $sm_stdw(str); } } else { $sm_stdw(str); } } else { $sm_stdw(str); } } document.write = mywrite; function findInArray(val, ary) { for(var i = 0; i < ary.length; i++) { if(ary[i] == val) { return true; } } return false; } var wurl ="//widgets.scribblemaps.com/widget.html"; if((mapVersion && mapVersion == "2.0") || true) { wurl = "//widgets.scribblemaps.com/sm/"; } var skipAd = true; if(window.location.href.indexOf("scribblemaps.com") != -1 || window.location.href.indexOf("localhost") != -1) { skipAd = true; } var url = window.location.href.toString(); var s = ''; s += '
'; s += ''; if(!skipAd) { s += '