$(function() {
$('#topmeu a').button();
$("#akordiyon").accordion({
			autoHeight: false,
			navigation: true
		});
$('#topmenu').hover(function() { 
    $('#topmenu a', this).stop().animate({"opacity": 0.3}); 
},function() { 
    $('#topmenu a', this).stop().animate({"opacity": 1}); 
});


		$("input:submit, .butonyap").button();
		$(".formonayla").validationEngine();
		
		$(".urunleft_foto a").click(function (){
	$.post("bigflash.asp", { res: $(this).attr('rel')},
   function(data){
     $('#bigflash').html(data);
   });
}).filter(':first').click();

var tabContainers = $('div.tabs > div');
                        tabContainers.hide().filter(':first').show(); 
                        $('.tablist li a').click(function () {
                                tabContainers.hide();
                                tabContainers.filter(this.hash).fadeIn();
                                $('.tablist li a').removeClass('active');
                                $(this).addClass('active');
                                return false;
                        }).filter(':first').click();
});


$(document).ready(function() {
	$("a.zoom").fancybox();

	$("a.zoom1").fancybox({
		'overlayOpacity'	:	0.7,
		'overlayColor'		:	'#FFF'
	});
	
	
	

	$("a.zoom2").fancybox({
		'zoomSpeedIn'		:	500,
		'zoomSpeedOut'		:	500
	});
	
	$("a.videom").fancybox({
		'frameWidth'		:	650,
		'frameHeight'		:	400,
		'hideOnOverlayClick':false
	});
	
	$("a.pzoom").fancybox({
		'frameWidth'		:	730,
		'frameHeight'		:	550,
		'hideOnOverlayClick':false
	});
});
 function onPrint()
{
    window.open("print.asp","wPrint","left=0,top=0,width=700px,height=600px,scrollbars=yes,location=no,resizable=yes,statusbar=no,menubar=yes");
}

jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

jQuery(function( $ ){

$('#slideshow').serialScroll({
		items:'li',
		prev:'#slider_left',
		next:'#slider_right',
		offset:-7, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0,
		duration:1000,
		force:true,
		stop:true,
		lock:false,
		lazy:false,
		axis:'x',
		cycle:true,
		step:1,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump:false,
		exclude:1,
		interval:3000
	});
	
});
