// 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();

var currentPhoto;

//other JS functions to run onLoad
function loadJS(){
document.fs_search.keywords.onfocus= function(){ if(this.value == "search"){this.value=""};}
document.fs_search.keywords.onblur= function(){ if(this.value == ""){this.value="search"};}

$j('.photoHolder .bannermodcontent').html('<div id="bg"><div class="bgPhoto"></div><div class="bgCaption"></div></div><div id="fg"><div class="fgPhoto"></div><div class="fgCaption"></div></div>');

$j('.bgPhoto').html( $j('.photo').eq(0).find('.bannermodcontent').html() );
$j('.bgCaption').html( $j('.caption').eq(0).find('.bannermodcontent').html() );

currentPhoto = 0;

setInterval("swapPhotos();",8500);

}


function swapPhotos () {

nextPhoto = currentPhoto + 1 < $j('.photo').length ? currentPhoto + 1 : 0;

$j('.bgPhoto').html( $j('.photo').eq(currentPhoto).find('.bannermodcontent').html() );
$j('.bgCaption').html( $j('.caption').eq(currentPhoto).find('.bannermodcontent').html() );

$j('#fg').fadeOut('fast',function(){
	$j('.fgPhoto').html( $j('.photo').eq(nextPhoto).find('.bannermodcontent').html() );
	$j('.fgCaption').html( $j('.caption').eq(nextPhoto).find('.bannermodcontent').html() );

	$j('#fg').fadeIn(500);

});

currentPhoto = nextPhoto;
	                                                           
	
}

