jQuery.noConflict(); 
(function($) {	
	$(document).ready(function(){		
		var mydate=new Date();
		var currentStep=0;
		var currentYear=mydate.getFullYear();
		$('#copy_curent_date').html(currentYear);
		//$('.BlocksStepsDetails').addClass('BlocksStepsDetails_Hidden');
		//$('#stepBlock0Detail').removeClass('BlocksStepsDetails_Hidden');
		
		$('.stepBocks').click(function(){
			currentStep=parseInt($(this).attr('id').substring(9,10));
			var stepName='stepBlock'+currentStep+'Detail';
			$('.BlocksStepsDetails').addClass('BlocksStepsDetails_Hidden');
			$('#'+stepName).removeClass('BlocksStepsDetails_Hidden');			
		});
		
		$('.stepBlocks').click(function(){			
			currentStep=parseInt($(this).attr('id').substring(9,10));
			var stepName='stepBlock'+currentStep+'Detail';
			$('.allBlocks').scrollTo($('#'+stepName), 800 );
					
		});
		
		
		$('#leftSteps').click(function(){
			if(currentStep>0){
				currentStep=currentStep-1;
			}else{
				currentStep=0;
			}
			
			var stepName='stepBlock'+currentStep+'Detail';
			$('.allBlocks').scrollTo($('#'+stepName), 800 );
		});
		
		$('#rightSteps').click(function(){
			if(currentStep<4){
				currentStep=currentStep+1;
			}else{
				currentStep=4;
			}
			
			var stepName='stepBlock'+currentStep+'Detail';
			$('.allBlocks').scrollTo($('#'+stepName), 800 );
		});
		
		$("a.eventhasTip").simpletooltip();

		$('a.calendar_tools').live('click',function(){
			$.get($(this).attr('href'), function(data){
				$('#rsevents_calendar_module').html(data);				
				$("a.eventhasTip").simpletooltip();
			});
			
			
			
			
		});
		
		$('#video_nav_right').click(function(){
			$('div.paginationfytslide').scrollTo({top:'-=100px', left:'+=282'}, 800 );
		});
		$('#video_nav_left').click(function(){
			$('div.paginationfytslide').scrollTo({top:'-=100px', left:'-=282'}, 800 );
		});
		//$('div#list_all_video_thumbs')
		
		
		
	});			
}) (jQuery);
