var currTabId = "thome";
var currTabDiv = "home";

function HideDiv(d) {
if(d.length < 1) { return; }
document.getElementById(d).style.display = "none";
}
function ShowDiv(d) {
if(d.length < 1) { return; }
HideDiv(currTabDiv);
currTabDiv = d;
document.getElementById(d).style.display = "block";
if (d == "wands" || d == "walkthru" || d == "xray" || d == "radiation" || d == "train" || d == "trace") { return; }
setUnactiveTab(currTabId);
currTabId = "t" + d;
setActiveTab(currTabId);
}
function setUnactiveTab(tabID) {
if(tabID.length < 1) { return; }
document.getElementById(tabID).setAttribute("class", "tab"); 
document.getElementById(tabID).setAttribute("className", "tab"); 
}
function setActiveTab(tabID) {
var currTabElem = document.getElementById(tabID); 
currTabElem.setAttribute("class", "currtab"); 
currTabElem.setAttribute("className", "currtab"); 
return; 
} 
function dummy() {return}
function LoadMap(d) {
if(d.length < 1) { return; }
var picstr = "<iframe width='550' height='550' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=11+Shoaf+St,+Lexington,+NC+27292&amp;sll=37.0625,-95.677068&amp;sspn=61.711173,106.787109&amp;ie=UTF8&amp;ll=35.837194,-80.263023&amp;spn=0.019135,0.023603&amp;z=15&amp;iwloc=A&amp;output=embed'></iframe><br /><small><a target='_blank' href='http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=11+Shoaf+St,+Lexington,+NC+27292&amp;sll=37.0625,-95.677068&amp;sspn=61.711173,106.787109&amp;ie=UTF8&amp;ll=35.837194,-80.263023&amp;spn=0.019135,0.023603&amp;z=15&amp;iwloc=A' style='color:#0000FF;text-align:left'>View Larger Map with Street View.</a></small>";
document.getElementById(d).innerHTML = picstr;
}