//you must include script_fade or else this won't work -opacity
function makeactive(thename) { 
var thetitle;
/*necessary for a connect problem*/
thetitle=thename;
if (thetitle=='city2'){
thetitle='city'
}
if (thetitle=='categories2'){
thetitle='categories'
}

/*opacity('window', 0, 99, 1000);*/
document.getElementById("categories").className = "menu_off"; 
document.getElementById("categoriestab").className = "notselected"; 
document.getElementById("city").className = "menu_off"; 
document.getElementById("citytab").className = "notselected"; 
document.getElementById("vendor").className = "menu_off"; 
document.getElementById("vendortab").className = "notselected"; 

document.getElementById(thetitle).className = "menu_on";
document.getElementById(thetitle+'tab').className = "selected";

/*necessary for a connect problem*/
if (thename=='city2'){
thetitle='city2';
}
if (thename=='categories2'){
thetitle='categories2';
}


callAHAH('includes/include_'+thetitle+'.asp?content= '+new Date().getTime()+'&connect=yes', 'window', '<img border="0" src="images/pleasewait.gif" width="16" height="16" alt="Loading">', 'Sorry, we received an error processing your request.'); 
} 

