// JavaScript Document

$(document).ready(function() {
						   $("a#example1").fancybox({
				'titleShow'		: false
			});
	$("a[rel=sepetgrup]").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			});
$(document).ready(function() {
						   $("a#example2").fancybox({
				'titleShow'		: false
			});
	$("a[rel=sepetgrup]").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			});
$(document).ready(function() {
						   $("a#example3").fancybox({
				'titleShow'		: false
			});
	$("a[rel=sepetgrup]").fancybox({
				'width'				: '75%',
				'height'			: '75%',
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe'
			});
			});
							  function menuac(deger,deger1,deger2) {
									  for (i=0;i<deger2;i++) {
									  document.getElementById(i).style.display='none';
									  }
									  document.getElementById(deger).style.display='inline';
									  $("#s"+deger).html('<div align="center"><span class="bej">Kategori Yükleniyor</span></div>');
									  $.ajax({
	type: 'GET',
	url: 'menu.php',
	data: 'deger1='+deger1,
	success: function(ajaxCevap) {
		$('#s'+deger).html(ajaxCevap);
	}
});
									  }
									  
												
///
						  function aracm(alan,deger) {
									
									  $.ajax({
	type: 'GET',
	url: 'menuarac.php',
	data: 'alan='+alan+'&deger='+deger,
	success: function(ajaxCevap) {
		$('#aracmdiv').html(ajaxCevap);
	}
});
									  }
									  

									  
									  
									  function kategoriac() {

 $('#anakategori').slideToggle('normal');

 }
 function sepetc() {

 $('#sepetc').slideToggle('normal');

 }
 
 function temizle() {
 document.getElementById('email').value='';
  
 }
 function temizle1() {
 document.getElementById('pass').value='';
  
 }
 function giris() {
	
$.ajax({
type:'POST',
url:'girisform.php',
data:$('#uyegirisform').serialize(),
success:function(cevap){
    
    $("#giris").html(cevap);
	
}

});

}

function sepetguncelle(gelen) {
	
$.ajax({
type:'POST',
url:'sepetguncelle.php',
data:$('#'+gelen).serialize(),
success:function(cevap){
    
    $("#sepetx").html(cevap);
	
}

});

}
function uyekayit() {
	
$.ajax({
type:'POST',
url:'uyekayitf.php',
data:$('#uyelik').serialize(),
success:function(cevap){
    
    $("#mesaj").html(cevap);
	
}

});

}

function uyeduzenle() {
	
$.ajax({
type:'POST',
url:'uyekayitd.php',
data:$('#uyelik').serialize(),
success:function(cevap){
    
    $("#mesaj").html(cevap);
	
}

});

}

function yorumyap() {
	
$.ajax({
type:'POST',
url:'yorumyap.php',
data:$('#yorum').serialize(),
success:function(cevap){
    
    $("#yorum").html(cevap);
	
}

});

}

function sil(id) {
	
 $.ajax({
	type: 'GET',
	url: 'sepetsil.php',
	data: 'id='+id,
	success: function(ajaxCevap) {
		$('#sepetx').html(ajaxCevap);
	}
});

}
function ilces(id) {
 $.ajax({
	type: 'GET',
	url: 'ilce.php',
	data: 'id='+id,
	success: function(ajaxCevap) {
		$('#ilcediv').html(ajaxCevap);
	}
});
}
function ilce1(id,id1) {
	
 $.ajax({
	type: 'GET',
	url: 'ilce1.php',
	data: 'id='+id+'&ilce='+id1,
	success: function(ajaxCevap) {
		$('#ilcediv').html(ajaxCevap);
	}
});

}
function sil1(id) {
	
 $.ajax({
	type: 'GET',
	url: 'sepetsil1.php',
	data: 'id='+id,
	success: function(ajaxCevap) {
		$('#sepetx').html(ajaxCevap);
	}
});

}
function sepetbosalt() {
	
 $.ajax({
	type: 'GET',
	url: 'sepetbosalt.php',
	//data: 'id='+id,
	success: function(ajaxCevap) {
		$('#sepetx').html(ajaxCevap);
	}
});

}
