// Button & Menu Options ---------------------------------//

//Time before menus auto-hide
	menu_pause = 250; 

// Use animation menus
// Requires scriptaculous
	anim_menus = 1;

// speed of animated menus
	menu_speed = .25;

//Auto link buttons to overview pages
	use_overview_pages = 0;

//Show sub-menus for current section( 0=no, 1=yes)
	section_subs = 0;

// Menu Direction up|center (default is down)
	menu_dir = "";

//Other button definitions
//"btn_name,menu_name(|menu_direction),section_id,img_src,img_src_on"
var otherBtns = new Array(
	//"ql_btn,ql_menu,0,uploaded/images/ql_btn.gif,uploaded/images/ql_btn.gif"
);

// List other images that need to be pre-loaded
var otherImages = new Array();

//other JS functions to run onLoad
function loadJS(){
	if(pageid==1){ getThemes(); }
}

var themeMods = new Array();

function getThemes(){
	themeMods = document.getElementById('leftbanner').getElementsByTagName('div');
	for(i=0;i<themeMods.length;i++){
		if(themeMods[i].className == 'campus_theme'){
			campusTitle = themeTxt('t',themeMods[i]);
			campusContent = themeTxt('c',themeMods[i]);
		}else if(themeMods[i].className == 'think_theme'){
			thinkTitle = themeTxt('t',themeMods[i]);
			thinkContent = themeTxt('c',themeMods[i]);		
		}else if(themeMods[i].className == 'portal_theme'){
			portalTitle = themeTxt('t',themeMods[i]);
			portalContent = themeTxt('c',themeMods[i]);
		}else if(themeMods[i].className == 'bears_theme'){
			bearsTitle = themeTxt('t',themeMods[i]);
			bearsContent = themeTxt('c',themeMods[i]);		
		}
	}

	//swapTheme('campus');
	document.themes.SetVariable('pageLoaded',1);
}

function themeTxt(type,ele){
	type = type == 't' ? "bannermodtitle" : "bannermodcontent";
	eles = document.getElementById(ele.id).getElementsByTagName('div');
	for(j=0;j<eles.length;j++){
		if(eles[j].className == type){
			return eles[j];
		}
	}
}

function swapTheme(name){
	document.themes.SetVariable('overlay.headlineTxt',eval(name+'Title').innerHTML);
	if(isIE){
		document.themes.SetVariable('overlay.storyTxt',eval(name+'Content').childNodes[0].innerHTML);
	}else{
		document.themes.SetVariable('overlay.storyTxt',eval(name+'Content').childNodes[1].innerHTML);
	}
}