// Keçi JavaScript v1.2 - Carbon Teknoloji ~ Hazar Karabay

$(document).ready(function() {
	if ($("#header h1").length > 0) { 
		$("#header h1").click(function(event) { window.location = "default.asp?lang="+dil; }).addClass('hand');
	}

	if(jQuery().fancybox) {
		$(".fancy a, a.fancy").fancybox({
			'overlayShow'			: true,
			'zoomSpeedIn'			: 600,
			'zoomSpeedOut'			: 500,
			'centerOnScroll'		: true
		});
	}
	
	$("a[href^='http:']:not([href*='" + window.location.host + "'][target='_blank'])").live('click', function(){
		$(this).attr('target','_blank');
	});
	
});

/**
 * Equal Heights Plugin
 * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com) 
 */

(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {
			if($(this).height() > tallest) {
				tallest = $(this).height();
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {
			$(this).height(tallest).css("overflow","visible"); // hack.
		});
	}
})(jQuery);
