//Cufon YUI
Cufon.replace('#navigation, .infoline, .whyus h2, .whyus p.title, #offernav, .footer h5, .footer .address p.name, .partners h5, .content h1, .content .grid_4 h4, .content h2, .content h3', { fontFamily: 'Franklin Gothic Book', hover: true });
Cufon.replace('.header .slide p', { fontFamily: 'eurofurence  regular', hover: true });
Cufon.replace('.header .slide p span', { fontFamily: 'eurofurence light', hover: true });



//jQuery
$(document).ready(function(){
   
    
    //.Social click to enter
    $(".top div.social img").hover(
        function (){
            $(".top div.social .click").fadeTo("fast", 1.0);
        },
        function (){
            $(".top div.social .click").fadeTo("fast", 0);
        }
    );
        
    $("span.timeago").timeago();
        
        
    //.Offernav hover to show menu
    $("#navigation #offer").hover(
        function (){
            $("#offernav").show();
        },
        function (){
            
            $("#offernav").hide();
        }
    );
    $("#offernav").hover(
        function (){
            $("#offernav").show();
        },
        function (){
            
            $("#offernav").hide();
        }
    );    
    
    //PrettyPhoto
    $("a[rel^='photo']").prettyPhoto({
        show_title: false,
        social_tools: ''
    });
    
    //Offermenu resize list
    $("#offernav ul li:first").css('width', '210px');
    $("#offernav ul li:first").css('margin-left', '20px');
    $("#offernav ul li:last").css('width', '210px');
    $("#offernav ul li:last").css('margin-right', '20px');
    
    
    //Partners vertical align:

    $('#partners-slider').bxSlider({
        //auto: true,
        ticker: true,
        tickerSpeed: 8000,
        //controls: false,
        displaySlideQty: 4,
        tickerHover: true
        //moveSlideQty: 1
    });
    
    
    //Z-index problem for IE
    $(function() {
	var zIndexNumber = 9000;
	$('div').each(function() {
		$(this).css('zIndex', zIndexNumber);
		zIndexNumber -= 10;
	});
    });
    


});

