


var twitterUsername = 'tarantinoon';
var tweetCount = 2;
if (typeof(Cufon) != 'undefined') {
    Cufon['replace']('h1')('h2')('h3');
    Cufon['replace']('.footer-header h1', {
        color: '-linear-gradient(#fcfcfc, #e7e7e7, rgb(0, 0, 0))',
        textShadow: '#000000 2px 2px 0px'
    });
    Cufon['replace']('.stick-out-text h1', {
        color: '-linear-gradient(#f9f9f9, #eeeeee, rgb(0, 0, 0))',
        textShadow: '#000000 -1px -1px 0px'
    });
    Cufon['replace']('.sub-page-header h1, .page-header h1', {
        color: '-linear-gradient(#f9f9f9, #ffffff, #e1e1e1,  rgb(0, 0, 0))',
        textShadow: '#000000 1px 1px 0px'
    });
    Cufon['replace']('.nav-outer ul li a', {
        hover: true
    });
};
$(window)['load'](function () {
    if ($['fn']['nivoSlider']) {
        $('#slider')['nivoSlider']({
            controlNav: false
        });
    };
    if (twitterUsername) {
        (function () {
            var _0x42c7x3 = document['createElement']('script');
            _0x42c7x3['type'] = 'text/javascript';
            _0x42c7x3['src'] = 'js/twitter.js';
            _0x42c7x3['defer'] = 'defer';
            var _0x42c7x4 = document['createElement']('script');
            _0x42c7x4['type'] = 'text/javascript';
            _0x42c7x4['src'] = 'http://twitter.com/statuses/user_timeline/' + twitterUsername + '.json?callback=twitterCallback2&count=' + tweetCount;
            _0x42c7x4['defer'] = 'defer';
            var _0x42c7x5 = document['getElementsByTagName']('head')[0];
            _0x42c7x5['appendChild'](_0x42c7x3);
            _0x42c7x5['appendChild'](_0x42c7x4);
        })();
    };
});
$(document)['ready'](function () {
    $('#homepage-content-wrap')['hide']()['addClass']('hc-hidden');
    $('#homepage-content-toggle')['click'](function () {
        var _0x42c7x6 = $('#homepage-content-wrap');
        if (_0x42c7x6['hasClass']('hc-hidden')) {
            _0x42c7x6['slideDown']('slow')['removeClass']('hc-hidden');
        } else {
            _0x42c7x6['slideUp']()['addClass']('hc-hidden');
        };
    });
    $('#testimonial-wrapper')['loopedFader']({
        fadeInSpeed: 1500,
        fadeOutSpeed: 1500,
        waitTime: 4000,
        slide: '.testimonial'
    });
    if ($['fn']['tabs']) {
        $tabs = $('#galleryTabs')['tabs']();
    };
    if ($['fn']['colorbox']) {
        $('a[rel^="gallery"]')['colorbox']({
            transition: 'fade'
        });
    };
    $('.form-element')['focus'](function () {
        if ($(this)['val']() == $(this)['attr']('title')) {
            $(this)['val']('');
        };
    });
    $('#contact-form')['live']('submit', function (_0x42c7x7) {
        _0x42c7x7['preventDefault']();
        $(this)['ajaxSubmit']({
            url: 'contact-form.php',
            dataType: 'json',
            success: function (_0x42c7x8) {
                if (_0x42c7x8['type'] == 'success') {
                    $('#contact-form-container')['fadeOut']('slow', function () {
                        $('#contact-form-message')['hide']()['html']('<p>' + _0x42c7x8['data'] + '</p>')['fadeIn']('slow');
                    });
                } else {
                    if (_0x42c7x8['type'] == 'error') {
                        $('.form-errors')['remove']();
                        $['each'](_0x42c7x8['data'], function (_0x42c7x9, _0x42c7xa) {
                            $element = $('#' + _0x42c7x9, '#contact-form-container');
                            if ($element['size']()) {
                                $element['val'](_0x42c7xa['value']);
                                if (_0x42c7xa['errors'] != undefined && _0x42c7xa['errors']['length'] > 0) {
                                    var _0x42c7xb = $('<ul class="form-errors"></ul>');
                                    $['each'](_0x42c7xa['errors'], function (i, _0x42c7xd) {
                                        _0x42c7xb['append']('<li>' + _0x42c7xd + '</li>');
                                    });
                                    $element['after'](_0x42c7xb);
                                };
                            };
                        });
                        $('.form-errors')['fadeIn'](1600);
                    };
                };
            }
        });
    });
});
var images = new Array('images/more-info1.png', 'images/black/more-info1.png', 'images/blue/more-info1.png', 'images/green/more-info1.png', 'images/orange/more-info1.png', 'images/pink/more-info1.png', 'images/purple/more-info1.png', 'images/red/more-info1.png', 'images/yellow/more-info1.png');
var imageObjs = new Array();
for (var i in images) {
    imageObjs[i] = new Image();
    imageObjs[i]['src'] = images[i];
};
