	$(function(){ 
		$('#mainmenu-list').main_menus({
		'speed': 80,
		'animation': 'fade'
		});
	});
		
 	$(function(){ 
		$('#portfolios ul').carouFredSel({
			prev: '#prev',
			next: '#next',
			pagination: "#pager",
			auto: true,
			scroll: 2000,
			pauseOnHover: true
		});
	});

	
	$(function(){
	  $(".tab_content").css({display:'none'});
	  $("#tab-control li a:first").addClass("clicks");
	  $("#tab-control li a").click(function()
	  { 
		 $(this).parent().parent().find("a").removeClass("clicks");    
		 $(this).addClass("clicks");  
		 var comment=$(this).attr("href");
		 $(".tab_content").hide();  
		 $(comment).fadeIn('slow'); 
		return false  
	 }); 
	 $(".tab_content:first").fadeIn('slow'); 
	}); 

	
	$(function(){
		$("#portfolios li").hover(function(){
			$(this).stop().find("img").animate({opacity: '0.7'},"normal");
			$(this).stop().find("em").animate({opacity: 'show', height:'50px'},"fast");
				$(this).stop().find("span").animate({left: '30px'},"fast");
		}).mouseleave(function(){
			$(this).find("em").animate({opacity: 'hide', height:'0px'},"normal");
			$(this).find("img").animate({opacity: '1'},"fast");	
				$(this).stop().find("span").animate({left: '10px'},300);
		});
	});
	
	
	$(function(){ 
		$(".social_network li a").hover(function(){
			$(this).find("img").stop().animate({opacity: '0.4'} ,"normal");
		}).mouseleave(function(){
			$(this).find("img").stop().animate({opacity: '1'} ,"fast");
		});
	});
	$(function(){ 
		$(".kariyer").hover(function(){
			$(this).find("img").animate({opacity:'0.3'});
		}).
		mouseleave(function(){
			$(this).find("img").animate({opacity:'1'},"fast");
		});
		$(".kariyer").click(function(){
			$("#kariyer").slideDown(1500);
			$('html, body').animate({scrollTop: $("#kariyer").offset().top}, 400);
			$(this).find("img").animate({opacity:'0.3'});
				
		});	
		$(".exit").click(function(){
			$("#kariyer").slideUp(1500);
			$('html, body').animate(
				{
					scrollTop: $("#kariyer").offset().top
				}, 
			600);
			$(".kariyer").find("img").animate({opacity:'1'});
				
		});
	});
	
	$(document).ready(function(){
	$('#send_message').click(function(e){
	e.preventDefault();
	var error = false;
	var name = $('#name').val();
	var email = $('#email').val();
	var subject = $('#subject').val();
	var message = $('#message').val();
	if(name.length == 0){
		var error = true;
		$('#name_error').fadeIn(500);}else{
		$('#name_error').fadeOut(500);}
	if(email.length == 0 || email.indexOf('@') == '-1'){
		var error = true;
		$('#email_error').fadeIn(500);}else{$('#email_error').fadeOut(500);}
	if(subject.length == 0){
		var error = true;
		$('#subject_error').fadeIn(500);}else{
		$('#subject_error').fadeOut(500);}
	if(message.length == 0){
		var error = true;
		$('#message_error').fadeIn(500);}else{
		$('#message_error').fadeOut(500);}
	if(error == false){
		$('#send_message').attr({'disabled' : 'true', 'value' : 'Sending...' });
		$.post("send_form.php", $("#contact_form").serialize(),function(result){
			if(result == 'sent'){
				$('#cf_submit_p').remove();
				$('#mail_success').fadeIn(500);}else{
				$('#mail_fail').fadeIn(500);
				$('#send_message').removeAttr('disabled').attr('value', 'Send The Message');}});}});    
	});	
 
 function initMenu() {
  $('#menu ul').hide();
  $('#menu ul.secili').show();
  $('#menu li a').click( 
   function() {
	 var checkElement = $(this).next();
	 if((checkElement.is('ul')) && (checkElement.is(':visible'))) {
        return false;
     }
	  if((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
        $('#menu ul:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;}});
	}

$(document).ready(function() {initMenu();});


$(function(){

	$(".rereferans_blog_top").css({'z-index':'22'});
	$(".rereferans_blog_bg").hover(function(){
		$(this).find("img").stop().css({cursor: 'pointer'}).animate({opacity: '0.9',marginTop:'-5px'});
		$(this).find(".referans_blog_bottom").stop().animate({bottom:'-5px'},"slow");
		$(this).find(".referans_blog_top").stop().animate({height:'165px'},"fast");
		$(this).find("span").stop().animate({opacity:'show'});
	}).
	mouseleave(function(){
		$(this).find("img").stop().animate({opacity: '1',marginTop:'0px'});
		$(this).find(".referans_blog_bottom").stop().animate({bottom:'20px'},"fast");
		$(this).find(".referans_blog_top").stop().animate({height:'0px'},"fast");

	});
}); 

$(document).ready(function(){
	if ($.browser.msie && $.browser.version < 7) {
		window.location.href="http://www.ikarustasarim.com";
	}					   
});

$(function(){
	$(".footer_gundem li").hover(function(){
		$(this).stop().addClass("active");
	}).
	mouseleave(function(){
		$(this).stop().removeClass("active");
	});
});



