//----------------------------------------------- Cufon
Cufon.replace('#nav li, .post h2, .button, .rss-feed, .tabs-holder h4, .slider-content h5, #content-inner h2, .grid-content h3, h1, h2, h4, h3, h5, h6, .sidebar-box-inside h3', {hover: true, fontFamily: 'NeoSans' });
//Cufon.replace('.areas h3', {hover: true, fontFamily: 'Univers LT Std', textShadow: '2px 2px 5px #fff' });
//----------------------------------------------- $(document).ready start
$(document).ready(function(){

//	tabs();
	
//----------------------------------------------- slider-home

	$("#slider").sudoSlider({
		continuous:true,
		auto:true,
		pause:'5000',
        numeric:true
    });

	
//----------------------------------------------- open-new-page
	$(function() {
		 $('a[rel*=external]').click( function() {
			 window.open(this.href);
			 return false;
		 });
	});
	
	
//----------------------------------------------- Slider-scroll

   var oldt = 0;
    var sudoSlider = $("#slider-scroll").sudoSlider({ 
      customLink: '.custom',
      prevNext:false,
      beforeAniFunc: function(t){ 
         var scroll = -t+2;
         if (scroll == 1) scroll = 0;
         if (scroll < -4) scroll = -4;
         var scroll = scroll * $('.custom').eq(0).outerHeight(true);
         
         var diff = Math.sqrt(Math.abs(oldt-t));
         var speed = parseInt(diff*800);
         
         $('.customBox').animate(
            {
               queue:false,
               duration:speed
            }
         );
         oldt = t;
      }
   });
   
   
   	$(function()
		{
			// this initialises the demo scollpanes on the page.
			$('.scroll-container').jScrollPane({showArrows:false, scrollbarWidth: 20, arrowSize: 0});
		});



	
});




