/*
//
// Default site wide Flex-PHP js file
//
// The base path for ajax pages is:  ajaxweb
// The base path for images is:      imagesweb
//
*/

jQuery.noConflict();

//
// Main banner rotator
//
jQuery(function()
{
	jQuery('#large-banner-image').cycle({ 
    fx:    'fade', 
    speed:  3000,
    timeout: 6500
	});
});

//
// Search box functions for clearing/filling
//
function search_clear()
{
  if(document.getElementById("q").value == 'Search'){
    document.getElementById("q").value = '';
  }
}
function search_fill()
{
  if(document.getElementById("q").value == ''){
    document.getElementById("q").value = 'Search';
  }
}

//
// Bookmark function
//
function makeBMark(title,url)
{
	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function"))
	{
		window.sidebar.addPanel(title, url, "");
		return true;
	} 
	else if( window.opera && window.print )
	{
		var mbm = document.createElement('a');
		mbm.setAttribute('rel','sidebar');
		mbm.setAttribute('href',url);
		mbm.setAttribute('title',title);
		mbm.click();
		
		return true;
	} 
	else if( document.all )
	{
		window.external.AddFavorite( url, title);
		return true;
	}
	else
		return false;
}