    
    $().ready(function() {
        
        // External URLs
        $('a').click(function() {
            if((this.href.match(/^http/i) && !this.href.match(location.host)) || this.rel=='external') {
                window.open(this.href,'_');
                return false;
            }
        });
        
        // IE PNGs
        /*@cc_on
        if(navigator.appVersion.match(/MSIE [0-6]\./)) {
            $('img[@src*=".png"]').addClass('png');
            $('input[@src*=".png"]').addClass('png');
            $('.bgpng').each(function(){fnFixPng(this)});
        }
        function fnFixPng(obj) {
            var bg  = obj.currentStyle.backgroundImage;
            var src = bg.substring(5,bg.length-2);
            var sizingMethod = (obj.currentStyle.backgroundRepeat == "no-repeat") ? "crop" : "scale";
            obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
            obj.style.backgroundImage = "url(/interface/images/blank.gif)";
        }
        @*/
        
        $('#news').innerfade({
            animationtype: 'slide',
            speed: 750,
            timeout: 2000,
            type: 'random',
            containerheight: '1em'
        });
        
        $('#branding ul#portfolio').innerfade({
            speed: 1000,
            timeout: 5000,
            type: 'sequence',
            containerheight: '220px'
        });
        
        $('.fade').innerfade({
            speed: 1000,
            timeout: 6000,
            type: 'random_start',
            containerheight: '1.5em'
        });
        
        $('.adi').innerfade({
            speed: 'slow',
            timeout: 5000,
            type: 'random',
            containerheight: '150px'
        });

        $('ul#banner_images').innerfade({
            speed: 1000,
            timeout: 5000,
            type: 'sequence',
            containerheight: '220px'
        });
        
        $('a.lightbox').lightbox();
        
    });

