﻿<!-- Maile gönder -->
	function maill(){
		var mal = document.getElementById("mails").value;
		//alert("Mal: "+mal);
	$('#mailekle').slideDown('slow');
	$("#mailekle").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:50px;"></div>');
	$.ajax({
	type:'GET',
	url:'mailgirildi.php',
	data:'mails='+mal,
	success:function(cevap){
		$("#mailekle").html(cevap);
	}
	});
	}
<!-- Maile gönder -->

<!-- Register açiklama tipsy -->
  $(function() {
    $('#focus-aciklama [title]').tipsy({trigger: 'focus', gravity: 'w'});
  });
<!-- Register açiklama tipsy -->

  $(function() {
    $('.north').tipsy({gravity: 'n'});
    $('.south').tipsy({gravity: 's'});
    $('.east').tipsy({gravity: 'e'});
    $('.west').tipsy({gravity: 'w'});
    $('.north-west').tipsy({gravity: 'nw'});
    $('.north-east').tipsy({gravity: 'ne'});
    $('.south-west').tipsy({gravity: 'sw'});
    $('.south-east').tipsy({gravity: 'se'});
  });

<!-- İletiliyor -->
	function iletisim(){
	$('#iletisimsonuc').slideDown('slow');
	$("#iletisimsonuc").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:10px;"></div>');
	$.ajax({
	type:'POST',
	url:'ilet.php',
	data:$('#iletisimformu').serialize(),
	success:function(cevap){
		$("#iletisimsonuc").html(cevap);
	}
	});
	}
<!-- İletiliyor -->

<!-- Tekrar gönder -->
	function tekrargonder(w1,w2){
	$('#tekrargonderr').slideDown('slow');
	$("#tekrargonderr").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:50px;"></div>');
	$.ajax({
	type:'GET',
	url:'tekrargonder.php',
	data:'mails='+w1+'&aktivasyonkodu='+w2,
	success:function(cevap){
		$("#tekrargonderr").html(cevap);
	}
	});
	}
<!-- Tekrar gönder -->

<!-- Aktivasyon -->
	function aktifet(){
	$('#aktvsyn').slideDown('slow');
	$("#aktvsyn").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:50px;"></div>');
	$.ajax({
	type:'GET',
	url:'aktiflestir.php',
	data:$('#aktifet').serialize(),
	success:function(cevap){
		$("#aktvsyn").html(cevap),
		setTimeout('window.location.href="son-asama.html"', 300);
	}
	});
	}
<!-- Aktivasyon -->

<!-- Kaydolunuyor -->
	function kayit(){
	$('#kaydol').slideDown('slow');
	$("#kaydol").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:50px;"></div>');
	$.ajax({
	type:'POST',
	url:'kaydol.php',
	data:$('#kayitformu').serialize(),
	success:function(cevap){
		$("#kaydol").html(cevap),
		setTimeout(yonlendir("kontrol-paneli.html"),3000);
	}
	});
	}
<!-- Kaydolunuyor -->

<!-- Tab -->
	$(document).ready(function() {

		//Default Action
		$(".icerik").hide(); //Hide all content
		$("ul.kpanelimenu li:first").addClass("active").show(); //Activate first tab
		$(".icerik:first").show(); //Show first tab content
		
		//On Click Event
		$("ul.kpanelimenu li").click(function() {
			$("ul.kpanelimenu li").removeClass("active"); //Remove any "active" class
			$(this).addClass("active"); //Add "active" class to selected tab
			$(".icerik").hide(); //Hide all tab content
			var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			$(activeTab).fadeIn(); //Fade in the active content
			return false;
		});

	});
<!-- Tab -->

<!-- Düzenle -->
	function bilgilerikaydet(){
	$('#uyebilgikaydetsonuc').slideDown('slow');
	$("#uyebilgikaydetsonuc").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:20px;"></div>');
	$.ajax({
	type:'POST',
	url:'bilgiduzenle.php',
	data:$('#uyebilgikaydet').serialize(),
	success:function(cevap){
		$("#uyebilgikaydetsonuc").html(cevap);
	}
	});
	}
<!-- Düzenle -->

<!-- siteekle -->
	function siteekler(){
	$('#siteeklesonuc').slideDown('slow');
	$("#siteeklesonuc").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:10px;"></div>');
	$.ajax({
	type:'POST',
	url:'yenisiteekle.php',
	data:$('#yenisiteekleform').serialize(),
	success:function(cevap){
		$("#siteeklesonuc").html(cevap);
	}
	});
	}
<!-- siteekle -->

	jQuery(document).ready(function($) {
		$('a[rel*=facebox]').facebox({
		loading_image : 'facebox/loading.gif',
		close_image   : 'facebox/closelabel.gif'
	});
	$.facebox.settings.opacity = 0.6
});

$(function(){
		$(".dizinler tr").hover(
	function(){
		$(this).addClass("highlight"); },
	function(){
		$(this).removeClass("highlight");
	}
)})

$(document).ready(function(){
						   
	//prepend span tag
	$(".jquery h1").prepend("<span></span>");
								  
});

<!-- teklif ediliyor -->
	function teklifgon(){
	$('#teklifsonuc').slideDown('slow');
	$("#teklifsonuc").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:10px;"></div>');
	$.ajax({
	type:'POST',
	url:'teklif.php',
	data:$('#teklifgonder').serialize(),
	success:function(cevap){
		$("#teklifsonuc").html(cevap),
		setTimeout("pencere_kapatt()", 1000);
	}
	});
	}
<!-- teklif ediliyor -->

<!-- giris -->
	function giris(){
	$('#girissonuc').slideDown('slow');
	$("#girissonuc").html('Giris yapiliyor...');
	$.ajax({
	type:'POST',
	url:'giris.php',
	data:$('#giris').serialize(),
	success:function(cevap){
		$("#girissonuc").html(cevap);
	}
	});
	}
<!-- giris -->

<!-- Yeniden yükle -->
var refreshId = setInterval(function()
{
	 $('#sitelerim').load('sitelerim.php').fadeIn("slow");
}, 1000);
<!-- Yeniden yükle -->

<!-- Yeniden yükle -->
var refreshId = setInterval(function(){
	 $('.teklifvaaaar').load('teklifkontrol.php').fadeIn("slow");
}, 1000);
<!-- Yeniden yükle -->

<!-- Yeniden yükle -->
var refreshId = setInterval(function(){
	 $('.gelentalepler').load('gelentalepler.php').fadeIn("slow");
}, 1000);
<!-- Yeniden yükle -->

<!-- Yeniden yükle -->
var refreshId = setInterval(function(){
	 $('.tekliflerim').load('tekliflerim.php').fadeIn("slow");
}, 1000);
<!-- Yeniden yükle -->

<!-- reddet -->
	function reddet(w1,w2){
	$('#reddett').slideDown('slow');
	$("#reddett").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:50px;"></div>');
	$.ajax({
	type:'GET',
	url:'reddet.php',
	data:'id='+w1+'&durum='+w2,
	success:function(cevap){
		$("#reddett").html(cevap);
	}
	});
	}
<!-- reddet -->

<!-- degistir -->
function aqaqaq(){
	$('#txtHint').slideDown('slow');
	$("#txtHint").html('<div style="background:url(images/gelio.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:0px;"></div>');
	var str = "";
	$("select option:selected").each(function () {
	str += $(this).text() + " ";
	});
	
	$.ajax({
	type:'GET',
	url:'tkntrl.php',
	data:'q='+str,
	
	success:function(cevap){
			
			if(cevap == 11){
				$("#txtHint").html("<b>Değişim yapmak için listeden bir domain seçiniz.</b><input type='hidden' onchange='kontrolEt();' name='durum' value='0'>");
				kontrolEt();
			
			}else if(cevap == 1){
				$("#txtHint").html("<b>Bu site ile aktif bir link değişiminiz vardır.</b><input type='hidden' onchange='kontrolEt();' id='durum' name='durum' value='0'>");
				kontrolEt();
			}else if(cevap == 2){
				
				$("#txtHint").html("<b>Bu site ile yaptığınız link değişim talebi henüz onay bekliyor.</b><input type='hidden' onchange='kontrolEt();' id='durum' name='durum' value='0'>");
				kontrolEt();
			}else if(cevap == 3){
				
				$("#txtHint").html("<b>Yaptığınız link değişimi iptal edilmiş. Tekrar gönderin!</b><input type='hidden' onchange='kontrolEt();' id='durum' name='durum' value='1'>");
				kontrolEt();
			}else if(cevap == 4){
				
				$("#txtHint").html("<b>Bu site ile link değişimi yapabilirsiniz.</b><input type='hidden' onchange='kontrolEt();' id='durum' name='durum' value='2'>");
				kontrolEt();
			}

	}
	});
}
<!-- degistir -->

function kontrolEt() {
	var durumu	=$("#durum").val();
	
	if(durumu > 0) {
		document.getElementById("satir").style.display='block';
		document.getElementById("satir1").style.display='block';
	} else {
		document.getElementById("satir").style.display='none';
		document.getElementById("satir1").style.display='none';
	}
}

<!-- kabullen -->
	function kabullen(){
	$('#kabulsonuc').slideDown('slow');
	$("#kabulsonuc").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:10px;"></div>');
	$.ajax({
	type:'POST',
	url:'onaysonadim.php',
	data:$('#kabuledecek').serialize(),
	success:function(cevap){
		$("#kabulsonuc").html(cevap),
		setTimeout("pencere_kapatt()", 1000);
	}
	});
	}
<!-- kabullen -->

<!-- Pagerank Checker -->
	function rank(){
	$('#sonucu').slideDown('slow');
	$("#sonucu").html('<div style="background:url(images/prpr.gif) no-repeat top center; width:31px; height:31px; margin:0 auto; margin-top:50px;"></div>');
	$.ajax({
	type:'POST',
	url:'data.class.php',
	data:$('#pr').serialize(),
	success:function(cevap){
		$("#sonucu").html(cevap);
	}
	});
	}
<!-- Pagerank Checker -->

    $(document).ready(function(){ 
        $(document).pngFix(); 
    }); 
	
    sfFocus = function() {
    var sfEls = document.getElementsByTagName("INPUT");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onfocus=function() {
                this.className+=" sffocus";
        }
        sfEls[i].onblur=function() {
                this.className=this.className.replace(new RegExp(" sffocus\\b"), "");
        }
    }}
if (window.attachEvent) window.attachEvent("onload", sfFocus);

var RecaptchaOptions = {
   theme : 'clean'
};

			$(function(){

				// Accordion
				$("#accordion").accordion({ header: "h3" });
	
				// Tabs
				$('#tabs').tabs();
	

				// Dialog			
				$('#dialog').dialog({
					autoOpen: false,
					width: 600,
					buttons: {
						"Ok": function() { 
							$(this).dialog("close"); 
						}, 
						"Cancel": function() { 
							$(this).dialog("close"); 
						} 
					}
				});
				
				// Dialog Link
				$('#dialog_link').click(function(){
					$('#dialog').dialog('open');
					return false;
				});

				// Datepicker
				$('#datepicker').datepicker({
					inline: true
				});
				
				// Slider
				$('#slider').slider({
					range: true,
					values: [17, 67]
				});
				
				// Progressbar
				$("#progressbar").progressbar({
					value: 20 
				});
				
				//hover states on the static widgets
				$('#dialog_link, ul#icons li').hover(
					function() { $(this).addClass('ui-state-hover'); }, 
					function() { $(this).removeClass('ui-state-hover'); }
				);
				
			});