// Written and Directed by A. Kemal Çelebioğlu
$(document).ready(function(){
$("a.zoom").fancybox();
$('#MailKapatAc').click(function() {
  $('#LastNews').slideToggle(function() {
  });
  if ($(this).is('.plusMinus')) {
	$(this).removeClass('plusMinus').addClass('MinusPlus')
  }
  else {
	  $(this).removeClass('MinusPlus').addClass('plusMinus')
  }
});

$('#altLinkAcKapat').click(function() {
  $('#altLinklerim').slideToggle(function() {
  });
  if ($(this).is('.plusMinus')) {
	$(this).removeClass('plusMinus').addClass('MinusPlus')
  }
  else {
	  $(this).removeClass('MinusPlus').addClass('plusMinus')
  }
});

$('#DetayAcKapat').click(function() {
  $('#PrdContent').slideToggle(function() {
  });
  if ($(this).is('.plusMinus')) {
	$(this).removeClass('plusMinus').addClass('MinusPlus')
  }
  else {
	  $(this).removeClass('MinusPlus').addClass('plusMinus')
  }
});
$('#GorselAcKapat').click(function() {
  $('#urun_gorsel').slideToggle(function() {
  });
  if ($(this).is('.plusMinus')) {
	$(this).removeClass('plusMinus').addClass('MinusPlus')
  }
  else {
	  $(this).removeClass('MinusPlus').addClass('plusMinus')
  }
});

});
$(function(){
	$('#TopMenu a')
		.css( {backgroundPosition: "0px 0px"} )
		.mouseover(function(){
			$(this).stop().animate({backgroundPosition:"(0px 60px)"}, {duration:100})
		})
		.mouseout(function(){
			$(this).stop().animate({backgroundPosition:"(0px 0px)"}, {duration:200, complete:function(){
				$(this).css({backgroundPosition: "0px 0"})
			}})
		})
});
