//10-22-04: Changed to /traffic to make live
function detailClick(source, type, id, info_html, title) {
viewspace = document.getElementById('dataview');
if(viewspace) {
html_title = "
"+title+"
";
html = html_title+info_html;
viewspace.innerHTML = html;
}
}
function gotoMap(map) {
var basehref="http://www.ajc.com/metro/content/metro/traffic/";
var nameparts = map.split("/");
var filename = "maps/"+nameparts[1]+".html";
if(!nameparts[1]) {
if(nameparts[0] == "atlanta") {
filename="maps/index.html";
}
else {
filename="index.html";
}
}
var url = basehref+filename;
window.location=url;
}
//Stub functions for GDoT area files
function zoomInOver() {
zoominover = 1;
}
function zoomInOut() {
zoominout = 1;
}
function zoomOutOver() {
zoomoutover = 1;
}
function zoomOutOut() {
zoomoutout = 1;
}
function detailOver(source, type, id, info_html, title) {
var detailover = 1;
}
function detailOut(source, type, id, info_html, title) {
var detailout = 0;
}
//FastLane functions
function changeDisplay(id, status) {
if(!document.getElementById) {
return false;
}
else {
elem = document.getElementById(id);
elem.style.display=status;
}
}
function changeTab(tabId, classValue) {
if(!document.getElementById) {
return false;
}
else {
elem = document.getElementById(tabId);
elem.className=classValue;
return true;
}
}
function fastLanePick(highway) {
if(!document.getElementById) {
return true;
}
var newDatasetId = highway;
var newTab = highway+"_tab";
changeDisplay(activeDatasetId, "none");
changeTab(activeTab, "selectable");
changeDisplay(newDatasetId, "block");
changeTab(newTab, "selected");
activeDatasetId = newDatasetId;
activeTab = newTab;
return false;
}
function createDataView() {
document.write('');
document.write('
Interactive map
');
document.write('NEW!
');
document.write('Click on the cones and signs to see more information about the construction or incident...');
document.write('');
}
document.write('');