var theme_dir = '/wp-content/themes/orc/';

/* Hide the curvy corner alert boxes. */
var curvyCornersVerbose = false;

jQuery(document).ready(function(){

    jQuery("#slider").easySlider({
        continuous: true,
        allControls: true,
        easing: 'easeInOutQuart',
        startIndex: Math.floor(Math.random()*5)
    });

    //Adding google analytics tracking code to clicks on carousel items.
    jQuery("#prevBtn").click(function(){
        _gaq.push(['_trackEvent', 'Carousel', 'Browse', 'Left']);
    });

    jQuery("#nextBtn").click(function(){
        _gaq.push(['_trackEvent', 'Carousel', 'Browse', 'Right']);
    });

    jQuery("#controls .numeric a").click(function(){
        _gaq.push(['_trackEvent', 'Carousel', 'Browse', jQuery(this).html()]);
    });
});

Cufon.replace('h1');
Cufon.replace('h2');

// disable cufon in slider for IE
if (!jQuery.browser.msie) {
    Cufon.replace('#slider h3', {
        textShadow: '#333 2px 2px'
    });
    Cufon.replace('#slider .item p', {
        textShadow: '#000 2px 2px'
    });
}
