var blockContentEsitle = false;
var counter = 0;
function sagYukseklik(){	
	var sagH = $("#puanListe").height();
if(sagH>250){
	$("#reklam").addClass("reklamUfak");
	$("#tabFikstur").addClass("tabUzun");
	}
	else{
	$("#reklam").removeClass("reklamUfak");
	$("#tabFikstur").removeClass("tabUzun");

		}	
}
$(document).ready(function() {

jQuery.event.add(window, "load", resizeFrame); 
jQuery.event.add(window, "resize", resizeFrame); 
function resizeFrame(){
	var w = $(window).width();
if(w<1000){
	$("#kollektif").removeClass("kollektif");
	}
	else{
	$("#kollektif").addClass("kollektif");

		}	
	
	}



	$("#tm1").click(function()
			{			
				$('ul.tabMenu li a').removeClass('secili');
				$(this).addClass('secili');
				$("#puanCetveli,#haftaninMaclari").hide();
				$("#macSonuclari").show();
				return false;
			});
		$("#tm2").click(function()
			{	
				$('ul.tabMenu li a').removeClass('secili');
				$(this).addClass('secili');
				$("#macSonuclari,#haftaninMaclari").hide();		
				$("#puanCetveli").show();
				return false;
			});
		$("#tm3").click(function()
			{	
				$('ul.tabMenu li a').removeClass('secili');
				$(this).addClass('secili');
				$("#macSonuclari,#puanCetveli").hide();		
				$("#haftaninMaclari").show();
				return false;
			});
		$("#tTakim").click(function()
			{			
				$('ul.kadro li').removeClass('secili');
				$(this).parent().addClass('secili');
				$("#teknikKadro").hide();
				$("#takimKadro").show();
				return false;
			});
		$("#tTeknik").click(function()
			{	
				$('ul.kadro li').removeClass('secili');
				$(this).parent().addClass('secili');
				$("#takimKadro").hide();		
				$("#teknikKadro").show();
				return false;
			});
		
		
		$("#m2").mouseover(function()
									{
										$("#sm2").show()
									});
		$("#sm2").mouseover(function()
									{
										$("#sm2").show()
									});
		$("#sm2").mouseout(function()
									{
										$("#sm2").hide()
									});
		$("#m2").mouseout(function()
									{
										$("#sm2").hide()
									});
		hookSonuc();
		contentEsitle();
});

function clearText(thefield){

if (thefield.defaultValue==thefield.value)
{ //def id basla
thefield.defaultValue = "";
thefield.value = "";
thefield.style.fontWeight = "normal";
thefield.style.color = "#4674b1";
}
else if (window.cltxt != null)
{
thefield.value = window.cltxt;
}








} 



function guvenlikAc(){
$("div#guvenlikKod").show()
} 

function replaceText(thefield){

if (thefield.value=="")
{
//thefield.defaultValue= "E-posta adresinizi giriniz.";
//thefield.value = thefield.defaultValue;
thefield.value="E-posta adresinizi giriniz.";
}
//else if(thefield.value != "" ){thefieldvalue = window.cltxt;}


} 
function replaceBoxText(){

//if (document.getElementById("ctl00_txtBulten").value=="Geçerli mail giriniz.")
document.getElementById("ctl00_txtBulten").style.fontWeight = "normal";
document.getElementById("ctl00_txtBulten").style.color = "#4674b1";
document.getElementById("ctl00_txtBulten").value="E-posta adresinizi giriniz.";
} 
function hookSonuc() {
$(".sonucAc").click(function()
		{
		$(".sonucTasi.acik .sonucDetay").slideUp();
		$(".sonucTasi.acik .sonucDetay .jScrollPaneContainer").fadeOut('fast');
		$(this).parent().siblings('div.sonucDetay').slideDown();
		$(this).parent().siblings('div.sonucDetay').children('div.jScrollPaneContainer').fadeIn('slow');
		$(".sonucTasi").removeClass('acik');
		$(this).parent().parent().addClass('acik');
		$(".sonucAc").show();
		$(this).hide();
		$('.sonucTasi.acik .scroll-pane').jScrollPane({
		scrollbarWidth: 10
		});
		return false;
});
}

function contentEsitle() {
return;
    if (blockContentEsitle) {
        //setTimeout("contentEsitle", 1000);
        return;
    }
    //blockContentEsitle = true;
    //window.alert(++counter);
    $(".contentIc").height("auto");
    $(".sideBarIc").height("auto");

	if($(".contentIc").height() < $(".sideBarIc").height()) {
       $(".contentIc").height($(".sideBarIc").height());
	}
	else
	{
		$(".sideBarIc").height($(".contentIc").height());
    }
    //blockContentEsitle = false;
}