jQuery(document).ready(function() {
			jQuery('#thirdContent ul').jcarousel({
				vertical: true,
				scroll: 1,
				auto: 3,
				wrap: 'circular'
			});
			
			jQuery('#horizontal').jcarousel({
				scroll: 3,
				initCallback: mycarousel_initCallback
			});
			
			jQuery('#horizontal2').jcarousel({
				scroll: 3,
				initCallback: mycarousel_initCallback2
			});
					
			$('ul.menu li ul').hide();
			$('ul.menu li.active ul').show();
			$('ul.menu li').find(":contains('KALZIP')").html("<img src='/img/small-logo.png' align='left' width='54' height='25' style='margin-left: 41%; margin-top: 1px;' border='0' /> KALZIP");
			$('#prv').hide();
			if ($('.go').length == 1) { $('#nxt').hide(); }
			
			$('#me').attr('src', $('.go:first').attr('alt'));
			$('#me').attr('alt', 0);
			


			function mycarousel_initCallback(carousel) {
				jQuery('#prv').bind('click', function() {
					carousel.scroll(parseInt($('#me').attr('alt')) - 1);
					return false;
				});
				
				jQuery('#nxt').bind('click', function() {
					carousel.scroll(parseInt($('#me').attr('alt')) + 1);
					return false;
				});
			};
			
			
			$('#nxt').click(function() {
				
				$('#prv').fadeIn('fast');
				
				if ($('#me').attr('alt') == ($('.go').length - 2)) {
					$(this).fadeOut('normal');
				}
			
				if ($('#me').attr('alt') != ($('.go').length - 1)) {
					$('#me').attr('src', $('.go').eq(parseInt($('#me').attr('alt')) + 1).attr('alt'));
					$('#me').attr('alt', parseInt($('#me').attr('alt')) + 1);	
				}
				return false;
			});
			
			$('#prv').click(function() {
			
				$('#nxt').fadeIn('fast');
				
				if ($('#me').attr('alt') == 1) {
					$(this).fadeOut('normal');
				}
			
				if ($('#me').attr('alt') != 0) {
					$('#me').attr('src', $('.go').eq(parseInt($('#me').attr('alt')) - 1).attr('alt'));
					$('#me').attr('alt', parseInt($('#me').attr('alt')) - 1);
				}
				return false;
			});
			
			$('.go').click(function() {
			
				if ($('.go').index(this) != ($('.go').length - 1)) { $('#nxt').fadeIn('fast'); } else { $('#nxt').fadeOut('normal'); }
				if ($('.go').index(this) != 0) { $('#prv').fadeIn('fast'); } else { $('#prv').fadeOut('normal'); }
				
				$('#me').attr('src', $(this).attr('alt'));
				$('#me').attr('alt', $('.go').index(this));
				
			});

			$('#prv2').hide();
			if ($('.go2').length == 1) { $('#nxt2').hide(); }
			$('#me2').attr('src', $('.go2:first').attr('alt'));
			$('#me2').attr('alt', 0);


			function mycarousel_initCallback2(carousel2) {
				jQuery('#prv2').bind('click', function() {
					carousel2.scroll(parseInt($('#me2').attr('alt')) - 1);
					return false;
				});
				
				jQuery('#nxt2').bind('click', function() {
					carousel2.scroll(parseInt($('#me2').attr('alt')) + 1);
					return false;
				});
			};
			
			
			$('#nxt2').click(function() {
				
				$('#prv2').fadeIn('fast');
				
				if ($('#me2').attr('alt') == ($('.go2').length - 2)) {
					$(this).fadeOut('normal');
				}
			
				if ($('#me2').attr('alt') != ($('.go2').length - 1)) {
					$('#me2').attr('src', $('.go2').eq(parseInt($('#me2').attr('alt')) + 1).attr('alt'));
					$('#me2').attr('alt', parseInt($('#me2').attr('alt')) + 1);	
				}
				return false;
			});
			
			$('#prv2').click(function() {
			
				$('#nxt2').fadeIn('fast');
				
				if ($('#me2').attr('alt') == 1) {
					$(this).fadeOut('normal');
				}
			
				if ($('#me2').attr('alt') != 0) {
					$('#me2').attr('src', $('.go2').eq(parseInt($('#me2').attr('alt')) - 1).attr('alt'));
					$('#me2').attr('alt', parseInt($('#me2').attr('alt')) - 1);
				}
				return false;
			});
			
			$('.go2').click(function() {
			
				if ($('.go2').index(this) != ($('.go2').length - 1)) { $('#nxt2').fadeIn('fast'); } else { $('#nxt2').fadeOut('normal'); }
				if ($('.go2').index(this) != 0) { $('#prv2').fadeIn('fast'); } else { $('#prv2').fadeOut('normal'); }
				
				$('#me2').attr('src', $(this).attr('alt'));
				$('#me2').attr('alt', $('.go2').index(this));
				
			});
			
			
			
		});
