(function($){

    Portlet_Content_SlideShow = function(id, classname)
    {
        this.options = {};
        this.systems = {};
        IApp_Portlet.apply(this, arguments);
    };

    Portlet_Content_SlideShow.prototype = $.extend(new IApp_Portlet, 
    {
        init: function() 
        {
            IApp_Portlet.prototype.init.apply(this, arguments);
        },    
        
        setLightbox : function()
        {        	
        	var loadingImage = 'loading.gif';		
            var closeButton = 'close.gif';	
            
            var cfg = {
        			imageLoading:			'http://www.bns.ee/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
        			imageBtnPrev:			'http://www.bns.ee/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
        			imageBtnNext:			'http://www.bns.ee/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
        			imageBtnClose:			'http://www.bns.ee/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
        			imageBlank:				'http://www.bns.ee/images/lightbox-blank.gif'			
        	};

        	// lightboxin'
            for (i in this.systems)
            	$("a."+this.systems[i]).lightBox(cfg);
            
        	$(".lightbox").click(function(){
        		// pause animation, if lightbox opened
        		pause()
        	});	
        },
    });

})(jQuery);
