		var theInt = null;
		var $crosslink, $navthumb;
		var curclicked = 0;
		
		theInterval = function(cur){
			clearInterval(theInt);
			
			if( typeof cur != 'undefined' )
				curclicked = cur;
			
			$crosslink.removeClass("active-thumb");
			$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
			
			theInt = setInterval(function(){
				$crosslink.removeClass("active-thumb");
				$navthumb.eq(curclicked).parent().addClass("active-thumb");
				$(".stripNav ul li a").eq(curclicked).trigger('click');
				curclicked++;
				if( 6 == curclicked )
					curclicked = 0;
				
			}, 6000);
		};
		
		$(function(){
			
			$("#main-photo-slider").codaSlider();
			
			$navthumb = $(".nav-thumb");
			$crosslink = $(".cross-link");
			
			$crosslink
			.mouseover(function() {
				var $this = $(this);
				theInterval($this.parent().attr('href').slice(1) - 1);
				return false;
			});
			
			theInterval();
		});
		
		$(document).ready(function(){
			$('.mySelectBoxClass').customStyle();
		});
		
		function loginShow(){
			$("body").append('<div id="popup_overlay"></div>');
			$("#popup_overlay").css({
				position: 'absolute',
				zIndex: 9998,
				top: '0px',
				left: '0px',
				width: '100%',
				height: $(document).height(),
				background: '#000',
				opacity: .8
			});
			$(".popup").css('display','block');
			$(".giris").load('/uyelik/giris.php');
		}
		
		function loginHide(){
			$("#popup_overlay").remove();
			$(".popup").css('display','none');
		}
		
	  function animasyon() {
		$(".menu div ul li a").mouseover(function() {
		
			if(!$(this).parent().hasClass("aktif")) {
			
				var hedefId = $(this).parent().attr("ref");
				
				if(hedefId) {

					var aktifId = $(this).parent().parent().find(".aktif").attr("ref");
					$("#"+aktifId).hide();
					$(this).parent().parent().find(".aktif").removeClass("aktif");
					$("#"+hedefId).show();
					$(this).parent().addClass("aktif");
				
				}
			
			}
		
		});
		
		$(".menu div ul li a").hover(function() {
		
			if(!$(this).parent().hasClass("aktifanamenu")) {
		
				$(this).parent().stop().animate({"background-color" : "#ffffff"}, 400);
				$(this).stop().animate({color: "#6f0303"}, 400);
				
			}
		
		}, function() {
		
			if(!$(this).parent().hasClass("aktifanamenu")) {
			
				$(this).parent().stop().animate({"background" : ""}, 400);
				$(this).stop().animate({color: "#ffffff"}, 400);
				
			}
		
		});
	  }

	  $(document).ready(function(){
	  
		animasyon();
	  
	  });
