function new_captcha()
{
	var c_currentTime = new Date();
	var c_miliseconds = c_currentTime.getTime();

	document.getElementById('captcha').src = '/secure.php?x='+ c_miliseconds;
}

jQuery.noConflict(); 
jQuery(document).ready(function() {
	jQuery("a[rel=exgroup]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'titlePosition' 	: 'over',
		'showCloseButton'	: false,
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Zdjęcie ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
	
	jQuery("#various1").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'showCloseButton'	: false
	});
	
	jQuery("#various2").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayColor'		: '#000',
		'showCloseButton'	: false
	});
	
	jQuery("#tip5").fancybox({
	'scrolling'		: 'no',
	'titleShow'		: false,
'width'  : '40%',  
         'height' : '60%' ,  
         'type'   : 'iframe'
	});
	
	jQuery("#login_form").bind("submit", function() {
 
    jQuery.ajax({
        type        : "POST",
        cache       : false,
        url         : "/formularz,wyslij.html",
        data        : jQuery(this).serializeArray(),
        success: function(data) {
             jQuery.fancybox(data);
        }
    });

    return false;
});


});
var $j = jQuery.noConflict();
$j("html").addClass("js");
$j(function() {
	$j("#side").accordion({initShow : "ul.current"});
});
