function cancel_anims()
{
	 $('#banner-pics').cycle('pause');
}
$(document).ready(function(){ 

		cancel_anims();
		$('#banner-pics').cycle('resume');
		
		$('#banner-pics').cycle({ 
		    fx:     'fade', 
		    speed:   1200, 
		    timeout: 3000, 
		    pause:   20,
		 	delay: -8000,
			cleartype:  1
		 	
		});
});

/*
 * $ Catfish Plugin - Version 1.3
 *
 * Copyright (c) 2007 Matt Oakes (http://www.gizone.co.uk)
 * Licensed under the MIT (LICENSE.txt)
 */

$.fn.catfish = function(options) {
	this.settings = {
		closeLink: 'none',
		animation: 'slide',
		height: '50'
	}
	if(options)
		$.extend(this.settings, options);
	
	if ( this.settings.animation != 'slide' && this.settings.animation != 'none' && this.settings.animation != 'fade' ) {
		alert('animation can only be set to \'slide\', \'none\' or \'fade\'');
	}
	
	var id = this.attr('id');
	settings = this.settings;
	$(this).css('padding', '0').css('height', this.settings.height + 'px').css('margin', '0').css('width', '100%');
	$('html').css('padding', '0 0 ' + ( this.settings.height * 1 + 50 ) + 'px 0');
	if ( typeof document.body.style.maxHeight != "undefined" ) {
		$(this).css('position', 'fixed').css('bottom', '0').css('left', '0');
	}
	
	if ( this.settings.animation == 'slide' ) {
		$(this).slideDown('slow');
	}
	else if ( this.settings.animation == 'fade' ) {
		$(this).fadeIn('slow');
	}
	else {
		$(this).show();
	}
	if ( this.settings.closeLink != 'none' ) {
		$(this.settings.closeLink).click(function(){
			$.closeCatfish(id);
			return false;
		});
	}
	
	// Return $ to complete the chain
	return this;
};
$.closeCatfish = function(id) {
	this.catfish = $('#' + id);
	$(this.catfish).hide();
	$('html').css('padding', '0');
	$('body').css('overflow', 'visible'); // Change IE6 hack back
};