
jQuery(document).ready(function($){  

$(".gallery-icon a").attr("rel", "prettyPhoto[gallery]");
$("a[rel^='prettyPhoto']").prettyPhoto({
	overlay_gallery: false, social_tools: '', 'theme': 'light_square' 
});
 
$("a[rel^='prettyPhoto']").prettyPhoto();

$(".image_lightbox img, .flickr_wrap img, .candy-clearfix a").addClass("tip");			

$('.wide').columnize({width:400});

$("#contact input[type='submit'], #content .pagination a, #submit, .comment-reply-link, #submittedContact").hover(function() {
   $(this).animate({ backgroundColor: "#444" }, 200);
},function() {
   $(this).animate({ backgroundColor: "#f14d4d" }, 200);
});


$("#title_box a img, #title_box_full a img, .wide a img, .masonry_post a img, .column_post a img, .blog_post a img, .images_post a img, .alignleft img, .mediaholder img, .alignright img, .home_filter_posts img, #vertical-ticker a img, .single_thumbnail a img, .post img, .car_image a img, .home_posts_container a img, .jcarousel_container a img, #feat_area_flex #carousel .slides img, .widget_recent_posts_two img, .banners img, #banner-header img, #banner_header_728 img, .image_lightbox img, .widget_thumbnail img, .flickr_wrap img, .similar_posts img, #archive li a img").hover(function() {
	$(this).stop().animate({
		opacity: 0.8
	}, 200);
},function() {
	$(this).stop().animate({
		opacity: 1
	}, 200);
});		


$(".tip").tipTip({
	maxWidth: "auto", 
	edgeOffset: 10,
	defaultPosition: "top"
});	


if ($('body').not('.safari')) {
        function ssc_init() {
            if (document.body) {
                var e = document.body, s = document.documentElement, c = window.innerHeight, t = e.scrollHeight;
                if (ssc_root = document.compatMode.indexOf("CSS") >= 0 ? s : e, ssc_activeElement = e, ssc_initdone = !0, top != self)
                    ssc_frame = !0;
                else if (t > c && (e.offsetHeight <= c || s.offsetHeight <= c) && (ssc_root.style.height = "auto", ssc_root.offsetHeight <= c)) {
                    var r = document.createElement("div");
                    r.style.clear = "both", e.appendChild(r)
                }
                ssc_fixedback || (e.style.backgroundAttachment = "scroll", s.style.backgroundAttachment = "scroll"), ssc_keyboardsupport && ssc_addEvent("keydown", ssc_keydown)
            }
        }
        function ssc_scrollArray(e, s, c, t) {
            if (t || (t = 1e3), ssc_directionCheck(s, c), ssc_que.push({x: s, y: c, lastX: 0 > s ? .99 : -.99, lastY: 0 > c ? .99 : -.99, start: +new Date}), !ssc_pending) {
                var r = function() {
                    for (var o = +new Date, n = 0, a = 0, i = 0; i < ssc_que.length; i++) {
                        var l = ssc_que[i], _ = o - l.start, u = _ >= ssc_animtime, d = u ? 1 : _ / ssc_animtime;
                        ssc_pulseAlgorithm && (d = ssc_pulse(d));
                        var f = l.x * d - l.lastX >> 0, m = l.y * d - l.lastY >> 0;
                        n += f, a += m, l.lastX += f, l.lastY += m, u && (ssc_que.splice(i, 1), i--)
                    }
                    if (s) {
                        var h = e.scrollLeft;
                        e.scrollLeft += n, n && e.scrollLeft === h && (s = 0)
                    }
                    if (c) {
                        var p = e.scrollTop;
                        e.scrollTop += a, a && e.scrollTop === p && (c = 0)
                    }
                    s || c || (ssc_que = []), ssc_que.length ? setTimeout(r, t / ssc_framerate + 1) : ssc_pending = !1
                };
                setTimeout(r, 0), ssc_pending = !0
            }
        }
        function ssc_wheel(e) {
            ssc_initdone || ssc_init();
            var s = e.target, c = ssc_overflowingAncestor(s);
            if (!c || e.defaultPrevented || ssc_isNodeName(ssc_activeElement, "embed") || ssc_isNodeName(s, "embed") && /\.pdf/i.test(s.src))
                return!0;
            var t = e.wheelDeltaX || 0, r = e.wheelDeltaY || 0;
            t || r || (r = e.wheelDelta || 0), Math.abs(t) > 1.2 && (t *= ssc_stepsize / 120), Math.abs(r) > 1.2 && (r *= ssc_stepsize / 190), ssc_scrollArray(c, -t, -r), e.preventDefault()
        }
        function ssc_keydown(e) {
            var s = e.target, c = e.ctrlKey || e.altKey || e.metaKey;
            if (/input|textarea|embed/i.test(s.nodeName) || s.isContentEditable || e.defaultPrevented || c)
                return!0;
            if (ssc_isNodeName(s, "button") && e.keyCode === ssc_key.spacebar)
                return!0;
            var t, r = 0, o = 0, n = ssc_overflowingAncestor(ssc_activeElement), a = n.clientHeight;
            switch (n == document.body && (a = window.innerHeight), e.keyCode) {
                case ssc_key.up:
                    o = -ssc_arrowscroll;
                    break;
                case ssc_key.down:
                    o = ssc_arrowscroll;
                    break;
                case ssc_key.spacebar:
                    t = e.shiftKey ? 1 : -1, o = -t * a * .9;
                    break;
                case ssc_key.pageup:
                    o = .9 * -a;
                    break;
                case ssc_key.pagedown:
                    o = .9 * a;
                    break;
                case ssc_key.home:
                    o = -n.scrollTop;
                    break;
                case ssc_key.end:
                    var i = n.scrollHeight - n.scrollTop - a;
                    o = i > 0 ? i + 10 : 0;
                    break;
                case ssc_key.left:
                    r = -ssc_arrowscroll;
                    break;
                case ssc_key.right:
                    r = ssc_arrowscroll;
                    break;
                default:
                    return!0
            }
            ssc_scrollArray(n, r, o), e.preventDefault()
        }
        function ssc_mousedown(e) {
            ssc_activeElement = e.target
        }
        function ssc_setCache(e, s) {
            for (var c = e.length; c--; )
                ssc_cache[ssc_uniqueID(e[c])] = s;
            return s
        }
        function ssc_overflowingAncestor(e) {
            var s = [], c = ssc_root.scrollHeight;
            do {
                var t = ssc_cache[ssc_uniqueID(e)];
                if (t)
                    return ssc_setCache(s, t);
                if (s.push(e), c === e.scrollHeight) {
                    if (!ssc_frame || ssc_root.clientHeight + 10 < c)
                        return ssc_setCache(s, document.body)
                } else if (e.clientHeight + 10 < e.scrollHeight && (overflow = getComputedStyle(e, "").getPropertyValue("overflow"), "scroll" === overflow || "auto" === overflow))
                    return ssc_setCache(s, e)
            } while (e = e.parentNode)
        }
        function ssc_addEvent(e, s, c) {
            window.addEventListener(e, s, c || !1)
        }
        function ssc_removeEvent(e, s, c) {
            window.removeEventListener(e, s, c || !1)
        }
        function ssc_isNodeName(e, s) {
            return e.nodeName.toLowerCase() === s.toLowerCase()
        }
        function ssc_directionCheck(e, s) {
            e = e > 0 ? 1 : -1, s = s > 0 ? 1 : -1, (ssc_direction.x !== e || ssc_direction.y !== s) && (ssc_direction.x = e, ssc_direction.y = s, ssc_que = [])
        }
        function ssc_pulse_(e) {
            var s, c, t;
            return e *= ssc_pulseScale, 1 > e ? s = e - (1 - Math.exp(-e)) : (c = Math.exp(-1), e -= 1, t = 1 - Math.exp(-e), s = c + t * (1 - c)), s * ssc_pulseNormalize
        }
        function ssc_pulse(e) {
            return e >= 1 ? 1 : 0 >= e ? 0 : (1 == ssc_pulseNormalize && (ssc_pulseNormalize /= ssc_pulse_(1)), ssc_pulse_(e))
        }
        var ssc_framerate = 150, ssc_animtime = 500, ssc_stepsize = 150, ssc_pulseAlgorithm = !0, ssc_pulseScale = 6, ssc_pulseNormalize = 1, ssc_keyboardsupport = !0, ssc_arrowscroll = 50, ssc_frame = !1, ssc_direction = {x: 0, y: 0}, ssc_initdone = !1, ssc_fixedback = !0, ssc_root = document.documentElement, ssc_activeElement, ssc_key = {left: 37, up: 38, right: 39, down: 40, spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36}, ssc_que = [], ssc_pending = !1, ssc_cache = {};
        setInterval(function() {
            ssc_cache = {}
        }, 1e4);
        var ssc_uniqueID = function() {
            var e = 0;
            return function(s) {
                return s.ssc_uniqueID || (s.ssc_uniqueID = e++)
            }
        }();
        $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase()), $.browser.chrome && (ssc_addEvent("mousedown", ssc_mousedown), ssc_addEvent("mousewheel", ssc_wheel), ssc_addEvent("load", ssc_init));
}

});	


(function($){ 
$(window).load(function(){ 


$(".fullwidthbanner-container").css({ visibility: "visible" });

})
})(jQuery);

