jQuery.fn.equalHeight = function () {
	var height		= 0;
	var maxHeight	= 0;

	// Store the tallest element's height
	this.each(function () {
		height		= jQuery(this).outerHeight();
		maxHeight	= (height > maxHeight) ? height : maxHeight;
	});

	// Set element's min-height to tallest element's height
	return this.each(function () {
		var t			= jQuery(this);
		var minHeight	= maxHeight - (t.outerHeight() - t.height());
		var property	= jQuery.browser.msie && jQuery.browser.version < 7 ? 'height' : 'min-height';

		t.css(property, minHeight + 'px');
	});
};

Cufon.replace('.cufon, .myriad',{
	fontFamily: 'Myriad Pro',
	//textShadow: '#000 1px 1px',
	hover: true
});

jQuery(document).ready(function($) {
		jQuery('#navkat').superfish({
            autoArrows:  true,
            dropShadows: false
		});
		$("#yonetimkurulu .kolonyk").equalHeight();
		$("#navkat li ul li ul").css("left",$(this).parent("ul").width());
		
		$("#videolar .video:odd").css("marginRight",0);
		$(".icerik .galeri li:nth-child(4n)").css("marginRight",0);
		
		$('.fancybox').fancybox({ arrows    : true, 
			helpers : { 
				thumbs : {
					width  : 50,
					height : 50
				}
			}
		});
		
		$(document).pngFix();
		var starstyle = { marginTop : '10px', position: "relative", left: "15px" };
		$("#epigralink").epigrastar("beyaz",starstyle);
		
		$("#pagetop .container_12").append('<div class="clear"></div><div class="grid_12 cizgi"></div><div class="clear"></div>');
		
		$(".thumbhaber li:odd").addClass("o");
		$("#kategoriler li:last a").css("marginRight",0);
		
		$("#sidebar .tablar a").click(function(){
			var n = $("#sidebar .tablar a").index( $(this) );
			
			$("#sidebar .tablar a").removeClass("aktif");
			$(this).addClass("aktif");
			$(".tabicerikler .tab.aktif").addClass("yok");
			$(".tabicerikler .tab.aktif").removeClass("aktif");
			$(".tabicerikler .tab:eq("+n+")").addClass("aktif").removeClass("yok");
			return false;
		});
		
		
});
