/* Author: 

*/
$(function () {
    $("a.lightbox_1, a.lightbox_2").click(function (e) {
        e.preventDefault();
        $("a[rel='" + $(this).attr('class') + "']:first").click();
    });

    $("a[rel='lightbox_1'], a[rel='lightbox_2']").colorbox({
        slideshow: true,
        slideshowSpeed: 10000,
        slideshowStart: "start slideshow",
        current: function () {
            var output = $("<div></div>");
            var div = null;
            var self = $(this);
            var current = self.colorbox.element();
            $("a[rel='" + $(this).attr('rel') + "']").each(function (i) {
                div = $("<a href='#' class='colorbox-item'></a>").click(function (e) {
                    e.preventDefault();
                    self.colorbox.moveTo(i);
                });
                if ($(this).attr('href') === current.attr('href')) {
                    div.addClass('selected');
                }
                output.append(div);
            });
            return output.children();
        }
    });
    if ($.fn.accordion) {
        $("#accordion").accordion({ header: "h3", autoHeight: false, collapsible: true, active: false });
    }
});























