﻿google.load("jquery", "1.3.2");
//google.load("jqueryui", "1.7.2");
google.setOnLoadCallback(function() {

    (function($) {
        jQuery.fn.smoothScroll = function(options) {
            var opts = $.extend({}, $.fn.smoothScroll.defaults, options);

            return this.each(function() {
                var $this = $(this);
                var destination = $this.attr('href');

                $this.click(function(event) {
                    event.preventDefault();
                    $.scrollTo(destination, { duration: opts.speed });
                });
            });
        };

        // Public
        jQuery.fn.smoothScroll.defaults = {
            speed: 300
        };

        jQuery.fn.iFixPng = function() {
            if (!$.support.opacity) {
                return this.each(function() {
                    var $this = $(this);
                    var cssImage = $this.css('background-image').split('"')[1];

                    $this.css('filter', 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' + cssImage + '", sizingMethod="scale")');
                    $this.css('background-image', 'none');
                });
            }
        };
    })(jQuery);

    
    // init
    $('.colorbox').colorbox();

});

