// Button & Menu Options ---------------------------------//

// Use animation menus
// Requires scriptaculous
var anim_menus = 0;

//Auto link buttons to overview pages
var use_overview_pages = 0;

//Show sub-menus for current section( 0=no, 1=yes)
var section_subs = 1;

//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(){

	document.fs_search.keywords.onfocus= function(){ if(this.value == "search"){this.value=""};}
	document.fs_search.keywords.onblur= function(){ if(this.value == ""){this.value="search"};}

	if(pageid==1){
		createStories();

		$j('#newsBox').html( $j('.newsModule').html() );
		$j('#contentBox').html( $j('.contentModule').html() );
		$j('#calBox').html( $j('.calModule').html() );

		$j("#top_events, #text2").mouseenter(function(){$j("#lifeContent").css('top','300px')})
		$j("#top_events, #text2").mouseleave(function(){$j("#lifeContent").css('top','490px')})
	} // end homepage functions


/*

	//tweak the existing menu code
	$j('#nav_menus div').css('visibility','visible').hide();
	$j('#nav_menus div').each(function(){
		$j(this).removeAttr('onMouseover');
		$j(this).removeAttr('onMouseout');
		$j(this).removeAttr('onmouseover');
		$j(this).removeAttr('onmouseout');
	});

	//turn on the current page btn
	$j('.main_nav a').each(function(){
		ah = $j(this).attr('href').split(/p=/)[1];
		if( ah == pageid || ah == pagearray[1]){
			$j(this).find('img').attr('src', function(){ return this.src.replace(/(\.(gif|jpg|png))/,'_on$1') });
			$j('#dhtmlmenu_'+ ah).css('top', Number($j(this).offset().top) + Number($j(this).height()) + 'px');
			// $j('#dhtmlmenu_'+ ah).css('left', Number($j(this).offset().left) + 'px');
			$j('#nav_menus div').css('left', Number($j('.main_nav').offset().left) + 'px');
			$j('#dhtmlmenu_'+ ah).show();
		}
	});
	
	//turn on sub menu btn
	$j('#nav_menus a').each(function(){
		ah = $j(this).attr('href').split(/p=/)[1];
		if( ah == pageid || ah == pagearray[2]){
			$j(this).addClass('subMenuOn');
		}
	});
	
	$j(window).resize(function() {
		$j('#nav_menus div').css('left', Number($j('.main_nav').offset().left) + 'px');
	});

*/


}// end loadJS


fsRedirects = [
"559,http://www.fpchouston.org,_blank",
"571,http://www.weatherlink.com/user/pshoec/index.php?view=main&headers=1,_blank",
"388,http://cards.pshouston.org,_blank",
"746,http://www.gftpln.org/Home.do?orgId=6152,_blank",
"949,http://www.pshouston.org/page.cfm?p=114,_blank"
];
