/**
 * !! minify javascript
 * !! http://closure-compiler.appspot.com/home
 * !! Optimization: simple
 * !! Compressed file: jquery.product.min.js
 * !! Version: 1.0 - 13.07.2011
 * 
 * fancybox (fancybox.net) configuration
 * and tabs
 */

jQuery().ready(function(){
	jQuery('a[rel="fancybox"]').fancybox(brk24.fbsettings);
	
	// bind fancybox to zoom link
	jQuery( '#magnify, #galery .img a' ).click( function () {
		jQuery( 'a[rel="fancybox"]' ).eq(0).trigger( 'click' );
	} );
	
	// init tabs
	jQuery( '#tabs li:first-child' ).addClass( 'active' );
	jQuery ( '.tab-content:gt(0)' ).css( 'display', 'none' );
	
	// click event and action for tabs
	jQuery( '#tabs li' ).click( function () {
		jQuery( '#tabs li' ).removeClass( 'active' );
		jQuery( this ).addClass( 'active' );
		
		jQuery ( '.tab-content' ).css( 'display', 'none' );
		jQuery ( ' #' + jQuery( this ).attr( 'id' ) + '-content' ).css( 'display', 'block' );
	} );
} );
