$(document).ready(function() {
        var d = 1000;
	$('.boximg').each(function(o, me) {
  	  window.setTimeout(function() {
	    $(me).cycle({  
		fx:     'curtainX',
		sync:	false,
		delay:	-2000,
		speed:	1000,
		pause:   1
  	    });
  	  }, d);
  	  d += 1000;
  	});
	$('#abouter').tabs({ fxFade: true, fxSpeed: 'fast' });
	$('.insider').serialScroll({
		items:'div.imger',
		prev:'a.ltar',
		next:'a.rtar',
		duration:800,
		step:3,
		force:true,
		stop:true,
		lock:false,
		cycle:true,
		easing:'easeOutExpo',
		jump: false,
		axis:'x'
	});
	$('a.lightb, #cancan .imger a').lightBox({ fixedNavigation:true});
	$("a#euro").fancybox({
		'hideOnContentClick': false
	});
	$("a#logger").click(function(){
		if($("#reg").is(":hidden")) {
			$("#reg").slideDown("slow");
			$("#log").slideUp("slow");
		}
	});
});

