//script removed from external-files.php for SEO purposes

/*jScroller for news items - START */
$(function () {
	$('.scroll-pane').jScrollPane(/*{showArrows : true}*/);
});							
/*jScroller for news items - END */

/* Testimonials scroller - START */
$(function () {
	/* 
	 * Add the non-valid attributes to the seach box and call the SuggestFramework when done 
	 * we bind a custom event here to make sure the setup is complete before continuing 
	 */
	$('#query')
		.bind('searchSetup', function () {
			initializeSuggestFramework();
		})
		.attr('action','libraries/sphider/include/js_suggest/suggest.php')
		.attr('columns','2')
		.attr('autocomplete','off')
		.attr('delay','500').trigger('searchSetup');
	
	$('<div class="testimonials-wrapper"></div>').insertBefore('#sub-content div.visual-clear:last');

	$('.testimonials-wrapper').load('appearance/boxes/testimonials_scroller.php', '', function () {
		$('#slider').attr('behavior', 'scroll');
		$('#slider').attr('direction', 'up');
		$('#slider').attr('scrollamount', '1');
		$('#slider').attr('height', '300');
		$('#slider').attr('width', '250');
			
		$('#testimonials div#slider').marquee('pointer').mouseover(function () {
			$(this).trigger('stop');
		}).mouseout(function () {
			$(this).trigger('start'); 
		});
				
		$('.no-pad-mrq').css('padding', '0px');
		
		/* IE PNG FIX START */
		$(document).pngFix();
		/* IE PNG FIX END */
	});		
});								
/* Testimonials scroller - END */