fullpathOn = 0;

// see theACC
/* 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 
["TICKETS <img src='http://graphics.fansonly.com/schools/sdsu/graphics/sdsu-04-drop-arrow.gif' width='10' height='10' border='0' alt=''>","",1,"/tickets/sdsu-tickets.html","","sportsL","below","Sports"]
] // END OF FAMILY -- do not remove

var schedbuttondata= [  // BEGIN FAMILY -- do not remove 
["SDSU ATHLETICS <img src='http://graphics.fansonly.com/schools/sdsu/graphics/sdsu-04-drop-arrow.gif' width='10' height='10' border='0' alt=''>","",1,"/school-bio/sdsu-school-bio.html","","ticketsL","below","Tickets"]
] // END OF FAMILY -- do not remove

var ticketsbuttondata= [  // BEGIN FAMILY -- do not remove 
["TRAVEL","",1,"/travel/sdsu-travel.html","","","below",""]
] // END OF FAMILY -- do not remove

var hurclubbuttondata= [  // BEGIN FAMILY -- do not remove 
["STUDENT ATHLETE SERVICES <img src='http://graphics.fansonly.com/schools/sdsu/graphics/sdsu-04-drop-arrow.gif' width='10' height='10' border='0' alt=''>","",1,"/s-finder/sdsu-s-finder.html","","hurclubL","below",""]
] // END OF FAMILY -- do not remove


allsportsdata=[
["TICKET INFO","",1,"/tickets/sdsu-tickets.html","","","","Ticket Info"],
["BUY ONLINE","",1,"http://ev9.evenue.net/cgi-bin/ncommerce3/SEGetGroupList?linkID=sdsu&groupCode=&RSRC=&RDAT=&url=http%3A//ev9.evenue.net/cgi-bin/ncommerce3/ExecMacro/evenue/ev68/se/Main.d2w/report%3FlinkID%3Dsdsu","","","","Buy Online"],
["RENEW ONLINE","",1,"http://ev9.evenue.net/cgi-bin/ncommerce3/GetApps?linkID=sdsu&RSRC=&RDAT=&linkSource=SR&caller=appList","","","","Renew Online"]
]//end of family, last entry no comma

ticketsdata=[
["MISSION STATEMENT","",1,"/ot/sdsu-mission-statement.html","","","","SDSU mission statement"],
["ATHLETIC DEPARTMENT","",1,"/school-bio/directory.html","","","","Athletic department"],
["ATHLETIC DIRECTOR","",1,"/school-bio/athletic-director.html","","","","Athletic director"],
["ATHLETIC MEDICINE","",1,"/school-bio/ath-medicine.html","","","","Athletic Medicine"],
["AZTEC ATHLETIC FOUNDATION","",1,"/boosters/aaf-home.html","","","","Aztec athletic foundation"],
["AUDIO/VIDEO","",1,"javascript:window.open('http://all-access.cstv.com/cstv/player/player.html?code=sdsu','VideoBroadcastMediaPlayer','toolbar=no,resizable=no,scrollbars=no,width=1000,height=710'); void('');","","","","Multimedia"],
["BAND","",1,"http://band.sdsu.edu/","_new","","","Band"],
["BUDDY ICONS","",1,"/ot/sdsu-buddy-icons.html","","","","Buddy Icons"],
["CAMPS","",1,"/camps/sdsu-camps.html","","","","Camps"],
["CHEERLEADING","",1,"/sports/c-cheer/sdsu-c-cheer-body.html","","","","Cheerleading"],
["COMMUNITY OUTREACH","",1,"/school-bio/sdsu-community-outreach.html","","","","Community outreach"],
["COMPLIANCE","",1,"/ot/sdsu-compliance.html","","","","Compliance"],
["DANCE","",1,"/sports/c-dance/sdsu-c-dance-body.html","","","","Dance"],
["HALL OF FAME","",1,"/trads/sdsu-trads-98hof.html","","","","hall of fame"],
["PRESIDENT","",1,"/school-bio/president-weber.html","","","","President"],
["SDSU BACKGROUND","",1,"/school-bio/sdsu-school-bio.html","","","","SDSU background"],
["SITE MAP","",1,"/s-finder/sdsu-s-finder.html","","","","Site map"],
["STUDENT-ATHLETE SUPPORT","",1,"/school-bio/sass.html","","","","Student-Athlete Support"],
["SPONSORSHIP OPPORTUNITIES","",1,"http://www.learfield.com/gestalt/go.cfm?objectid=EFB96CFA-EFA3-496D-62116FEDDD70D8FB","_new","","","sponsorhsip"],
["TRADITIONS","",1,"/trads/sdsu-trads.html","","","","traditions"],
["WIRELESS","",1,"/wireless/sdsu-wireless.html","","","","wireless"]
]//end of family, last entry no comma


hurclubdata=[
["FACILITIES","",1,"/facilities/sdsu-facilities.html","","","",""],
["SAN DIEGO STATE UNIVERSITY","",1,"http://www.sdsu.edu/","_new","","",""],
["NCAA CLEARINGHOUSE","",1,"http://www.ncaaclearinghouse.net/ncaa/NCAA/common/index.html","_new","","",""]
]//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((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+1 : 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){

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+1)+'" 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{
linkpath = ((fullpathOn==1)  && (dataGroup[dataGroupCount][i][0].indexOf("http") != 0))? "http://goaztecs.com" : ""; 

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;
