
jQuery(document).ready(function () {

Cufon.replace('.cibreo, ul.text-tabs h1, ul.text-tabs a', { fontFamily: 'cibreo' }); 
Cufon.replace('#quotes li', { fontFamily: 'helveticaneue'});
Cufon.replace('.dynamic-col-1 h1', {fontFamily: 'cibreo'});
Cufon.CSS.ready(function() {
  jQuery("#quotes").show();
  jQuery("#quotes ul").cycle({ 
        fx:      'scrollLeft', 
        speed:    600, 
        timeout:  6000,
        //before: function() {
        //    jQuery("body").css("background", "#e6ebec url('/wp-content/themes/Nakama/images/bg" + Math.floor(Math.random() * 5) + ".png') no-repeat left top");        
        //}
    });

}); 
    
    jQuery("#quotes li").each(function () {
        if (jQuery(this).height().parseInt > 450) jQuery(this).remove()
    });
    jQuery("#ticker").liScroll({ travelocity: .02 });
    jQuery("#ticker").height(jQuery("#ticker li").eq(0).height());

    //add faded edges to ticker  
    jQuery(".tickercontainer").append('<div id="fade-inner"></div>');
    //add tooltips
    jQuery("ul.social a").tooltip({
        delay: 0, 
        showURL: false,
        track: true,
        showBody: " - "        
    });
    jQuery("label.cabinet").hover(function () {
        jQuery(this).addClass("hover").css("cursor", "pointer");
    }, function() {
        jQuery(this).removeClass("hover");    
    });

    jQuery("input.submit").hover(function () {
        jQuery(this).addClass("hover").css("cursor", "pointer");
    }, function() {
        jQuery(this).removeClass("hover");    
    })
    
});

