/* What the entries represent
1) visible text
2) rollover text if desired, otherwise left blank
3) lines of text
4) url
5) _new target window, otherwise left blank
6) name of pop menu to show up when this text is rolled over
7) pop menu orientation, enter "below" for menu to appear below & flush left, otherwise blank will allow menu to pop to the right & flush top
8) Specific ALT tag text, otherwise blank will allow alt tag to match visible text

*/
var sportbuttonsdata= [  // BEGIN FAMILY -- do not remove 
["MEN'S SPORTS &gt;","",1,"/s-finder/acc-default.html","","mensports","",""],
["WOMEN'S SPORTS &gt;","",1,"/default/acc-default.html","","womensports","","",""]
] // END OF FAMILY -- do not remove


fullpathOn = 1;

mendata=[
["BASEBALL","",1,"/sports/m-basebl/acc-m-basebl-body.html","","","",""],
["BASKETBALL","",1,"/sports/m-baskbl/acc-m-baskbl-body.html","","","",""],
["CROSS COUNTRY","",1,"/sports/c-xc/acc-c-xc-body.html","","","",""],
["FOOTBALL","",1,"/sports/m-footbl/acc-m-footbl-body.html","","","",""],
["GOLF","",1,"/sports/m-golf/acc-m-golf-body.html","","","",""],
["LACROSSE","",1,"/sports/m-lacros/acc-m-lacros-body.html","","","",""],
["SOCCER","",1,"/sports/m-soccer/acc-m-soccer-body.html","","","",""],
["SWIMMING","",1,"/sports/c-swim/acc-c-swim-body.html","","","",""],
["TENNIS","",1,"/sports/m-tennis/acc-m-tennis-body.html","","","",""],
["TRACK","",1,"/sports/c-track/acc-c-track-body.html","","","",""],
["WRESTLING","",1,"/sports/m-wrestl/acc-m-wrestl-body.html","","","",""]
]//end of family, last entry no comma

womendata=[
["BASKETBALL","",1,"/sports/w-baskbl/acc-w-baskbl-body.html","","","",""],
["CROSS COUNTRY","",1,"/sports/c-xc/acc-c-xc-body.html","","","",""],
["FIELD HOCKEY","",1,"/sports/w-fieldh/acc-w-fieldh-body.html","","","",""],
["GOLF","",1,"/sports/w-golf/acc-w-golf-body.html","","","",""],
["LACROSSE","",1,"/sports/w-lacros/acc-w-lacros-body.html","","","",""],
["ROWING","",1,"/sports/w-crew/acc-w-crew-body.html","","","",""],
["SOCCER","",1,"/sports/w-soccer/acc-w-soccer-body.html","","","",""],
["SOFTBALL","",1,"/sports/w-softbl/acc-w-softbl-body.html","","","",""],
["SWIMMING","",1,"/sports/c-swim/acc-c-swim-body.html","","","",""],
["TENNIS","",1,"/sports/w-tennis/acc-w-tennis-body.html","","","",""],
["TRACK","",1,"/sports/c-track/acc-c-track-body.html","","","",""],
["VOLLEYBALL","",1,"/sports/w-volley/acc-w-volley-body.html","","","",""]
]//end of family, last entry no comma

mainleftdata=[
["About The ACC","",1,"/this-is/acc-this-is.html","","","","About the A C C"],
["ACC Properties","",1,"/properties/acc-properties.html","","","","A C C Properties"],
["Corporate Partners","",1,"/corp-partners/acc-corp-partners.html","","","","A C C Corporate Partners"],
["Media Services","",1,"/mediaservices/index.html","","","","Media Services"],
["Sport Sciences","",1,"/ot/sports-sciences.html","","","",""],
["Tickets","",1,"/tickets/acc-tickets.html","","","",""],
["Travel Center","",1,"/travel/acc-travel.html","","","",""]
]//end of family, last entry no comma

blindit=[];
bcount=0;
dataGroup=[]; // track content of nav layers
dataGroupCount=0;
navSet=[];
navSetCount=0;
actNavL="";
macFrameToHide = "maincontentscrollIE";
macTimer = "";
var apVer = parseInt(navigator.appVersion);
var apName = navigator.appName.toString();
var apUsrAgt = navigator.userAgent.toString();
var re = /\/6.2.2/;
var isNS6 = re.exec(apUsrAgt)

function restoreFrame(){
//////////////
if( ((navigator.userAgent.indexOf("Opera") != -1)) || (isNS6)  || (  (navigator.appVersion.indexOf("Mac") != -1) && ( (navigator.appVersion.indexOf("MSIE") != -1)||(navigator.appVersion.indexOf("Safari") != -1) ) )){
var frameObj = browser("maincontentscrollIE");
var frameW = frameObj.width;
frameObj.style.width ='413px';
origin("maincontentscrollIE","maincontentscrolltarg",0,0);
}
/////////////
}// end func
function onLid(obj){

(document.layers) ? dataGroup[obj].rollChild.visibility = 'visible' : dataGroup[obj].rollChild.style.visibility = 'visible';
if(dataGroup[obj].menuChild){
//alert(dataGroup[obj].parent.id+'_roll_on');
var x = (dataGroup[obj].menuOrientation == "below")? 0 : dataGroup[obj].menuW;
var y = (dataGroup[obj].menuOrientation == "below")? dataGroup[obj].menuH : 0;
timerid=0;
Timeclr(parseInt(timerid))
origin(dataGroup[obj].menuChild,dataGroup[obj].parent.id,x,y);
showObj(dataGroup[obj].menuChild);
//////////////

if((isNS6) || ((navigator.appVersion.indexOf("Mac") != -1) && ( (navigator.appVersion.indexOf("MSIE") != -1)||(navigator.appVersion.indexOf("Safari") != -1) ) )){

clearTimeout(macTimer);

var frameObj = browser("maincontentscrollIE");
var frameW = frameObj.width;
frameObj.style.width ='200px';
origin("maincontentscrollIE","maincontentscrolltarg",213,0);
}
/////////////
}//end if
}// end func

function offLid(obj){

(document.layers) ? dataGroup[obj].rollChild.visibility = 'hidden' : dataGroup[obj].rollChild.style.visibility = 'hidden';
if(dataGroup[obj].menuChild){
Timeout(dataGroup[obj].menuChild,250,parseInt(timerid));
	if((isNS6) || ((navigator.appVersion.indexOf("Mac") != -1) && ( (navigator.appVersion.indexOf("MSIE") != -1)||(navigator.appVersion.indexOf("Safari") != -1) ) )){
	macTimer = setTimeout("restoreFrame()",500);
	}
}
}// end func

function blindSweep(){
var j=blindit.length-1;
do{hideObj(blindit[j]);}while(j--);
} // END FUNC

function navConstruct(level,famName,famData,useCss,famW,famH,vertSpc,lineHex,offHex,onHex){
linkpath = (fullpathOn==1)? "http://www.theacc.com" : ""; 

var build = "";
var divtype = (NS4) ? "span" : "div";
var brtype = (NS4) ? "<br>" : "";
var parO= '<'+divtype;
var parC= '</'+divtype+'>';
var vertSpc= (vertSpc != '1') ? (vertSpc):1;
var topvert= '<img src="http://graphics.fansonly.com/graphics/spacer.gif" width="1" height="'+vertSpc+'" border="0" alt=""><br>';
var vert= '<img src="http://graphics.fansonly.com/graphics/spacer.gif" width="1" height="'+(vertSpc-1)+'" border="0" alt="">';
dataGroup[dataGroupCount] = eval(famData).reverse();
var i = dataGroup[dataGroupCount].length-1
do{
var altTag = (dataGroup[dataGroupCount][i][7])? dataGroup[dataGroupCount][i][7]: dataGroup[dataGroupCount][i][0];
var urltarg = (dataGroup[dataGroupCount][i][4] != "")? "target=\"_new\" " : "";
var ontext = (dataGroup[dataGroupCount][i][1] == "")? dataGroup[dataGroupCount][i][0]: dataGroup[dataGroupCount][i][1];
var staticLocLayer = 'onMouseOver="actNavL=\''+famName+'_'+i+'_roll_on\';actNavLPar=\''+famName+'_'+i+'\';blindSweep();onLid(\''+famName+'_'+i+'\');" onMouseOut="offLid(\''+famName+'_'+i+'\')"';
var dynLocLayer = 'onMouseOver="clearTimeout(macTimer);Timeclr(parseInt(timerid));onLid(\''+famName+'_'+i+'\');showObj(actNavL,actNavLPar)" onMouseOut="macTimer = setTimeout(\'restoreFrame()\',500);hideObj(actNavL,actNavLPar);Timeout(\''+level+'\',250,parseInt(timerid));offLid(\''+famName+'_'+i+'\')"';
var navLayerType = (level != "window")? dynLocLayer : staticLocLayer;
build='<'+divtype+' id="'+famName+'_'+i+'" class="'+useCss+'obj">'+topvert+'<div class="'+useCss+'offset">'+dataGroup[dataGroupCount][i][0]+'</div>'+vert;
build+='<'+divtype+' id="'+famName+'_'+i+'_roll_on" class="'+useCss+'roll">'+topvert+'<div class="'+useCss+'offset">'+ontext+'</div></'+divtype+'>';
build+='<'+divtype+' id="'+famName+'_'+i+'_roll_line" class="'+useCss+'line"><img src="http://graphics.fansonly.com/graphics/spacer.gif" width="'+famW+'" height="1" border="0" alt=""></'+divtype+'>';
build+='<'+divtype+' id="'+famName+'_'+i+'_roll_lid" class="'+useCss+'lid"><a href="'+linkpath+dataGroup[dataGroupCount][i][3]+'" '+urltarg+navLayerType+'><img src="http://graphics.fansonly.com/graphics/spacer.gif" width="'+famW+'" height="'+(famH+(2*vertSpc)+1)+'" border="0" alt="'+altTag+'"></a></'+divtype+'>';
build+='</'+divtype+'>'+brtype;
var docWriteLevel = ((NS4) && (level != "window"))? eval("document."+level+".document") : document;
docWriteLevel.open();
docWriteLevel.write(build);
docWriteLevel.close();
}while(i--);

dataGroupCount++;
if(level != "window"){
blindit[bcount]= level;
bcount++;
}
navSet[navSetCount] = [level,famName,famData,famW,famH,lineHex,offHex,onHex,vertSpc];
navSetCount++;
}// end func

function navObjCreator(level,famName,famData,famW,famH,lineHex,offHex,onHex,vertSpc){
var arrayData = eval(famData);
var i =  arrayData.length-1;
do{
if (document.layers) {
var nsLevel = (level != 'window')? document.layers[level].id+'.document.'  : '';
var nsLevel2 = (level != 'window')? document.layers[level].id  : '';
}
var currLayer = famName+'_'+i;
dataGroup[currLayer] = browser(currLayer+'_roll_lid',nsLevel+currLayer);
dataGroup[currLayer].parent = browser(currLayer,nsLevel2);
dataGroup[currLayer].rollChild = browser(currLayer+'_roll_on',nsLevel+currLayer);
dataGroup[currLayer].lineChild = browser(currLayer+'_roll_line',nsLevel+currLayer);
dataGroup[currLayer].lidChild = browser(currLayer+'_roll_lid',nsLevel+currLayer);

if (!document.layers) {	// setting appearance attributes //
dataGroup[currLayer].parent.style.backgroundColor = offHex;
dataGroup[currLayer].parent.style.width = famW;
dataGroup[currLayer].parent.style.visibility= 'inherit';
dataGroup[currLayer].rollChild.style.backgroundColor = onHex;
dataGroup[currLayer].rollChild.style.width = famW;
dataGroup[currLayer].rollChild.style.height = (famH+(2*vertSpc)+1);
//dataGroup[currLayer].rollChild.style.clip = 'rect(0, 0, 124, 12)';
if (i< arrayData.length-1){
 dataGroup[currLayer].lineChild.style.backgroundColor = ((lineHex != ''))? lineHex: offHex;
}
dataGroup[currLayer].lineChild.style.width = famW;
}else{
   if(level != 'window'){ dataGroup[currLayer].parentLayer.parentLayer.bgColor=offHex;}
dataGroup[currLayer].parent.bgColor = offHex;
dataGroup[currLayer].parent.clip.width = famW;
dataGroup[currLayer].parent.clip.height =(famH+(2*vertSpc)-1);
dataGroup[currLayer].parent.visibility= 'inherit';
dataGroup[currLayer].rollChild.bgColor = onHex;
dataGroup[currLayer].rollChild.clip.width = famW;
dataGroup[currLayer].rollChild.clip.height = (famH+(2*vertSpc)-1);
if (i< arrayData.length-1){
dataGroup[currLayer].lineChild.bgColor = (lineHex != '')? lineHex: offHex;
}
dataGroup[currLayer].lineChild.clip.width = famW;
dataGroup[currLayer].lidChild.clip.height =dataGroup[currLayer].rollChild.clip.height;
} // end if
dataGroup[currLayer].menuChild = arrayData[i][5];
dataGroup[currLayer].menuOrientation = arrayData[i][6];
dataGroup[currLayer].menuW= famW;
dataGroup[currLayer].menuH= (famH+(2*vertSpc));
}while(i--);
   if(!NS4){dataGroup[famName+'_'+0].rollChild.style.clip='rect(0 '+famW+' '+(famH+(2*vertSpc))+' 0)';}
}// end func

function runNav(){
var i = navSetCount-1;
do{
navObjCreator(navSet[i][0],navSet[i][1],navSet[i][2],navSet[i][3],navSet[i][4],navSet[i][5],navSet[i][6],navSet[i][7],navSet[i][8]);
}while(i--);
}


if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;
}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight) 
location.reload();
}
if (NS4) window.onresize = reDo;
