        window.addEvent('domready', function(){
			var scroll = new Fx.Scroll('video-box-scroller', {
				wait: false,
				duration: 500,
				offset: {'x': -0, 'y': -0},
				transition: Fx.Transitions.Quad.easeInOut
			});
		
		    var pos = 0;	
			var scrolls = $$('.video-box-section');
			
			var nexts = $$('.next');
			nexts.each(function(next,i){
			    next.addEvent('click',
			        function(event){
			            event = new Event(event).stop();
			            if(pos<scrolls.length -1)
			                {
			                pos++;
			                scroll.toElement(scrolls[pos].id);			        
			                }
			            else
			            {			        
			                pos=0;
			                scroll.toElement(scrolls[pos].id);
			            }   	        
    			        var clsRemove = $$('.video-box-section-controls');
							clsRemove.each(function(sec, j){
							sec.removeClass('video-box-on');
						});
			
						var ele = $('a'+pos);
						ele.addClass('video-box-on');
			        });
			});		
			
						
			var secBtn = $$('.video-box-section-controls');
		    
		    secBtn.each(function(section , i){
		    if( i < scrolls.length){		   
		    section.addEvent('click',
		    function(event){
		        event = new Event(event).stop();
		        scroll.toElement(scrolls[i].id);
		        var clsRemove = $$('.video-box-section-controls');
		            clsRemove.each(function(sec, j){
		                sec.removeClass('video-box-on');
		            });
		        section.addClass('video-box-on');
		        pos = i;
		        });		    
		        }
		    });						
			
		});


		window.addEvent('domready', function(){
		        new SmoothScroll();
		        });
		

/* Readmore Show Hide */
function ToggleDiv(targetDiv,more,less)
       {
           var mySlide = new Fx.Slide(targetDiv);            
           mySlide.hide();
           $(targetDiv).style.display = 'block';
           
           $(more).addEvent('click', function(e){
               e = new Event(e);
               mySlide.slideIn();
               e.stop();
               $(more).style.visibility = "hidden";
           });
           
           $(less).addEvent('click', function(e){
               e = new Event(e);
               mySlide.slideOut();
               e.stop();
               $(more).style.visibility = "visible";
           });                                
        } 


