/////////////////////////------------------------- Read more ------------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\	

$.expander.defaults.slicePoint = 60;

$(document).ready(function() {
  // simple example, using all default options unless overridden globally
$(".summary-articles-f div , .summary-articles-f span").expander();

});
	$('#right_scrollercontrol').click(function(){   $('#scrollercontrol').ResetScroller({	velocity: 50, startfrom: 'right'   }); });		
	$('#right_scrollercontrol , #left_scrollercontrol').click(function(){ $('input.play').hide(); $('input.pause').show();  });
	
	
/////////////////////////------------------------- Marquee ------------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

$(function() {

	//create scroller for each element with "horizontal_scroller" class...
	$('.horizontal_scroller').SetScroller({	velocity: 	 180,
											direction: 	 'horizontal',
											startfrom: 	 'left',
											loop:		 'infinite',
											movetype: 	 'linear',
											onmouseover: 'pause',
											onmouseout:  'play',
											onstartup: 	 'play',
											cursor: 	 'pointer'
										});
	/*
		All possible values for options...
		
		velocity: 		from 1 to 99 								[default is 50]						
		direction: 		'horizontal' or 'vertical' 					[default is 'horizontal']
		startfrom: 		'left' or 'right' for horizontal direction 	[default is 'right']
						'top' or 'bottom' for vertical direction	[default is 'bottom']
		loop:			from 1 to n+, or set 'infinite'				[default is 'infinite']
		movetype:		'linear' or 'pingpong'						[default is 'linear']
		onmouseover:	'play' or 'pause'							[default is 'pause']
		onmouseout:		'play' or 'pause'							[default is 'play']
		onstartup: 		'play' or 'pause'							[default is 'play']
		cursor: 		'pointer' or any other CSS style			[default is 'pointer']
	*/

	//how to overwrite options after setup and without deleting the other settings...
	$('#no_mouse_events').ResetScroller({	onmouseover: 'play', onmouseout: 'play'   });
	$('#scrollercontrol').ResetScroller({	velocity: 70, startfrom: 'right'   });

	//if you need to remove the scrolling animation, uncomment the following line...
	//$('#scrollercontrol').RemoveScroller();

	//how to play or stop scrolling animation outside the scroller... 
	$('#play_scrollercontrol').click(function(){   $('#scrollercontrol').PlayScroller();  $('input.play').hide(); $('input.pause').show(); });
	$('#stop_scrollercontrol').click(function(){   $('#scrollercontrol').PauseScroller(); $('input.pause').hide(); $('input.play').show();  });		
	$('#left_scrollercontrol').click(function(){   $('#scrollercontrol').ResetScroller({	velocity: 50, startfrom: 'left'   }); });	
	$('#right_scrollercontrol').click(function(){   $('#scrollercontrol').ResetScroller({	velocity: 50, startfrom: 'right'   }); });		
	$('#right_scrollercontrol , #left_scrollercontrol').click(function(){ $('input.play').hide(); $('input.pause').show();  });
});
//-->		
/////////////////////////------------------------- Youtube Plugin ------------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\	

		$(function() {
			$("ul.demo2").ytplaylist({addThumbs:true, autoPlay: false, holderId: 'video_L'});
		});
	
/////////////////////////------------------------- Slider ------------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\    

				$(function () {
					$('#banner').anythingSlider({
						easing: 'easeInOutExpo',
						delay: 8000,
						animationTime: 600
					});
					$('#vid_slider').anythingSlider({
						easing: 'easeInOutExpo',
						autoPlay: false
					});
					/*$('#photo_slider').anythingSlider({
						easing: 'easeInOutExpo',
						autoPlay: false
					});*/				
					
				});
            
			
/////////////////////////------------------------- Menu ------------------------\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\  

	$(function(){
		
		$('ul.sf-menu').superfish();		
		});
		
		
	

