// JavaScript Document

// TICKER



//$(document).ready(function(){
//	$("#velo").hide(2000).fade(2000);
//});



$(document).ready(function(){
   var ticker = function()
   {
      setTimeout(function(){
         $('.ticker li:first').animate( {marginTop: '-100px'}, 800, function()
         {
            $(this).detach().appendTo('ul.ticker').removeAttr('style');
         });
         ticker();
      }, 5000);
   };
   ticker();
});



mainNav = function() {
	$("#topnav li").bind("mouseenter",function(){
                this.className += "_over over";
	}).bind("mouseleave",function(){
                this.className = this.className.replace("_over over", "");
	});
}


$(document).ready(function(){
	$('a[rel*=facebox]').facebox({
	loading_image : '/img/facebox/loading.gif',
	close_image   : '/img/facebox/closelabel.gif'
	});
		  
  

	$.fn.supersized.options = {  
		startwidth: 1200,  
		startheight: 990,
		vertical_center: 1,
		slideshow: 0,
		navigation: 0,
		transition: 1, //0-None, 1-Fade, 2-slide top, 3-slide right, 4-slide bottom, 5-slide left
		pause_hover: 0,
		slide_counter: 0,
		slide_captions: 0,
		slide_interval: 3000  
	};
	$('#supersize').supersized(); 

});





//Cufon.replace(['h1','h2','h3'], {
//    fontFamily : 'Akzidenz',
//    hover      : true,
//	  fontSize   : '24px',
//});

Cufon.replace(['.btn'], {
    fontFamily : 'Akzidenz_b',
    hover      : true
});



