function makecolorchange(url)
{
$('#newimgover').remove();
$('#makecolor').remove();

$('#product').prepend('<img id="newimgover" src="' + url + '" style="position:absolute" />').prepend('<div id="makecolor">Obrázek je pouze ilustrační.</div>');
$('.price').hide();
}

function deletecolorchange()
{

}

$(document).ready(function() {

$('.productbarvy').mouseout(function() {
 $('#newimgover').remove();
$('#makecolor').remove();
$('.price').show();
});


$("a[rel=group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'hideOnContentClick':  'false',
		'padding' : '0',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) 
		{
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});

	$("a[rel=mainbikefoto]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'hideOnContentClick':  'false',
		'padding' : '0',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';}
	});

	$("#tabulkalink a").fancybox({
		'width'				: '50%',
		'height'			: '70%',
        'autoScale'     	: false,
        'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'type'				: 'iframe',
		'padding': '0',
		'hideOnContentClick':  	false
	});
 $('#fader').cycle({ fx:    'fade', speed:  3000 });

	
});