User:Bkkbrad/map.js

document.write(' ');

//taken from http://www.protonfish.com/jslib/cstring.shtm function cookieString(field_name) { get_info = "; " + document.cookie + "; " name_begin = get_info.indexOf("; " + field_name + "=") if (name_begin != -1) { val_begin = (name_begin*-1-field_name.length-3)*-1 qs_val = get_info.substring(val_begin, get_info.indexOf("; ", val_begin)) if (qs_val != "") {return unescape(qs_val.replace(/\+/g, " "))} else {return ""} } else {return ""} }

function createMap {

//alert(document.cookie); cval = cookieString("showMap"); var disp = (cval == "false" || cval == "" ) ? "block" : "none"; var allNodes = document.getElementsByClassName("firstHeading"); allNodes[0].innerHTML += ""; allNodes[0].innerHTML += '' }

function toggleMap { var disp = document.getElementById("googlemap").style.display; document.getElementById("googlemap").style.display = (disp == 'none' ? 'block' : 'none'); }

$(createMap);