/**
 *
 * 4more.pl
 * skrypty ogólne
 * 
 * @lastmodified 08:03 2010-02-03
 * @requires jQuery 1.4
 *
 */

 
/**
 * tabz
 * jQuery plugin
 *
 * @revision 2 
 */
(function($){
$.fn.tabz = function(options) {
	var settings = $.extend({
			clActive: 'active'
		}, options);	
	
	return this.each( function() {
		var $root = $(this);
		var activeID = $root.find('.'+settings.clActive+' a').attr('href');
		
		$root.find('a').click(function () {
			( $(activeID).length ) ? $(activeID).hide() : ''; 
			
			$(this).parents('li').addClass(settings.clActive).siblings().removeClass(settings.clActive);
			activeID = $(this).attr('href');
			
			( $(activeID).length ) ? $(activeID).show() : '';
			
			return false
		}) // click
		
	});	// each
}
})(jQuery); 
 

/* ************************************************

   Document ready 

*/
$(function(){


	/* Home: slajdy teasera */
	// bezpośrednio w widoku str. głównej, ze względu na parametry definiujące zestaw obrazków do załadowania


	/* Portfolio: przeglądanie screenów */
	$('#project .thumbs a').colorbox();
	
	
	/* Portflio: rozwijanie 'Użyte technologie' */
	$('#project .tech').each( function () {		
		var $self = $(this);
		var $togglers = $self.find('.h a');
		$togglers.click( function () {
			$togglers.toggle();
			$('.c',$self).slideToggle('slow');
			return false
		} )		
	} )
	
	
}) // Document ready
/* ************************************************ */

$(document).ready(function(){
//	$('#project .thumbs a').lightbox({});
});
				

