// Button & Menu Options ---------------------------------//

// Use animation menus
// Requires scriptaculous
	var anim_menus = 1;

//Auto link buttons to overview pages
	var use_overview_pages = 0;

//Show sub-menus for current section( 0=no, 1=yes)
	var section_subs = 0;

//Other button definitions
//"btn_name,menu_name(|menu_direction),section_id,img_src,img_src_on"
//Ex. "ql_btn,ql_menu,0,uploaded/images/ql_btn.gif,uploaded/images/ql_btn.gif"
var otherBtns = new Array( );

// List other images that need to be pre-loaded
var otherImages = new Array();


//other JS functions to run onLoad
function loadJS(){

if(pageid==1){ 

//photoSwap stuff for the homepage

     var photoSrc = $j('.photo').eq(0).find('img[src$=jpg]').eq(0).attr('src');
     photoNumber = 0;
     $j('body').prepend('<img id="bgPhoto" src="'+photoSrc+'"><img id="bgPhoto2" src="'+photoSrc+'">');
     setInterval('photoSwap()',5500);

//draggable elements

     $j(".news-list").draggable({ handle: '#news-header' });
     $j(".cal-list").draggable({ handle: '#cal-header' });

     $j('#arrow_news').toggle(
          function(){ $j('.news-list .bannermodcontent').fadeIn('slow'); },
          function(){ $j('.news-list .bannermodcontent').fadeOut('slow'); }
);

     $j('#arrow_cal').toggle(
          function(){ $j('.cal-list .bannermodcontent').fadeIn('slow'); },
          function(){ $j('.cal-list .bannermodcontent').fadeOut('slow'); }
);


}
	document.fs_search.keywords.onfocus= function(){ if(this.value == "keywords"){this.value=""};}
	document.fs_search.keywords.onblur= function(){ if(this.value == ""){this.value="keywords"};}
}


function photoSwap () {
	photoNumber = photoNumber+1 < $j('.photo').length ? photoNumber+1 : photoNumber=0;
	photoSrc = $j('.photo').eq(photoNumber).find('img[src$=jpg]').eq(0).attr('src');
	
	$j('#bgPhoto2').attr('src',photoSrc).fadeIn(950,function(){
		$j('#bgPhoto').attr('src',photoSrc);
		setTimeout(function(){
			$j('#bgPhoto2').hide();
		},800);

	});	



}

