var b6 = (navigator.userAgent.indexOf('MSIE 6.0') != -1) ? true : false;
var b7 = (navigator.userAgent.indexOf('MSIE 7.0') != -1) ? true : false;
var b8 = (navigator.userAgent.indexOf('MSIE 8.0') != -1) ? true : false;
var bF = (navigator.userAgent.indexOf('Firefox') != -1) ? true : false;
var bC = (navigator.userAgent.indexOf('Chrome') != -1) ? true : false;
var bS = (navigator.userAgent.indexOf('Safari') != -1) ? true : false;
var bO = (navigator.userAgent.indexOf('Opera') != -1) ? true : false;
var secs = 2;
var appAcik = false;
var timerID = 'deneTim';
var timerRunning = false;
var delay = 500;
var kararik = false;
var moSure = 0;
var gecenSure = 0;
var SeciliSolItem = "";
var ToplamBbm = 0;
var SeciliBbm = 1;
var SeciliGorus = 1;
var ToplamGorus = 0;
var SeciliBasin = 1;
var ToplamBasin = 0;
var ToplamTet = 0;
var SeciliTet = 1;
var ToplamBasinBulteni = 3;
var SeciliBasinBulteni = 1;
var SeciliNelerYapiyoruz = 1;
var ToplamNelerYapiyoruz = 0;
var ToplamTasarruf = 0;
var SeciliTasarruf = 1;
var bilgiAcikMi = false;
var deneme = 0;
$(document).ready(function () {
    $("#txtePosta").keypress(function (e) {
        if (e.which == 305 || e.which == 287 || e.which == 286 || e.which == 304 || e.which == 231 || e.which == 199 || e.which == 246 || e.which == 214 || e.which == 220 || e.which == 252 || e.which == 350 || e.which == 351 || e.which == 59 || e.which == 32) {
            $('.uyari').css('display', 'none');
            $('#uyariTR').css('display', 'block');
            return false;
        }
    });
    $('input').hover(function () {
        $(this).focus().select();
        StopTheClock();
    }, function () {
    });
    $('textarea').hover(function () {
        StopTheClock();
        $(this).focus().select();
    }, function () {
    });
    solBasliklarOku('all');
    bunlariBiliyorMusunuz();
    tetGetir();
    if ($.browser.mozilla) {
        $('#ortaAlan').css('margin-top', '-17px');
    }
    $('.sadeceHarf').keydown(function (event) { return isAlphaNumeric(event) });
    $('.solBaslik').hover(function () {
        var secilenID = $(this).attr('id');
        if (secilenID != "sol4") {
            if (secilenID == "sol2") {
                $('#sol2Icerik').animate({ height: '111px' }, 'slow');
				$('#sol3Icerik').animate({ height: '0' }, 'slow');
				$('#sol1Icerik').animate({ height: '0' }, 'slow');
            }
            if (secilenID == "sol3") {
                $('#sol3Icerik').animate({ height: '111px' }, 'slow');
				$('#sol2Icerik').animate({ height: '0' }, 'slow');
				$('#sol1Icerik').animate({ height: '0' }, 'slow');
            }
			if (secilenID == "sol1") {
				$('#sol1Icerik').animate({ height: '111px' }, 'slow');
                $('#sol3Icerik').animate({ height: '0' }, 'slow');
				$('#sol2Icerik').animate({ height: '0' }, 'slow');
            }
        }
    }, function () { });
    // Basin Bülteni
    $('#basBulNavGeri').hover(function () {
        StopTheClock();
        if (SeciliBasinBulteni != 1) {
            SeciliBasinBulteni--;
            if ($('#BasinItem').css('margin-left').replace('px', '') % 460 != 0)
            { $('#BasinItem').stop(); }
            //alert(" SeciliBasinBulteni : "+SeciliBasinBulteni );
            $('#BasinItem').animate({ marginLeft: "-" + (SeciliBasinBulteni - 1) * 460 }, 'slow', function () { });
            $('#basBulNavPages').empty().append(SeciliBasinBulteni + "/" + ToplamBasinBulteni);
        } else {
            $('.basinIc').animate({ marginLeft: 0 }, 'slow', function () { $('.basBulNav').css('display', 'none'); });
        }
    }, function () { });
    $('#basBulNavIleri').hover(function () {
        StopTheClock();
        if (SeciliBasinBulteni != ToplamBasinBulteni) {
            SeciliBasinBulteni++;
            if ($('#BasinItem').css('margin-left').replace('px', '') % 460 != 0)
            { $('#BasinItem').stop(); }
            $('#BasinItem').animate({ marginLeft: "-" + (SeciliBasinBulteni - 1) * 460 }, 'slow', function () { });
            $('#basBulNavPages').empty().append(SeciliBasinBulteni + "/" + ToplamBasinBulteni);
        }
    }, function () { });
    // TET Navigasyon
    $('#tetKapNavGeriIc').hover(function () {
        StopTheClock();
        if (SeciliTet != 1) {
            SeciliTet--;
            if ($('#tetSayfaCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#tetSayfaCon').stop(); }
            $('#tetSayfaCon').animate({ marginLeft: "-" + (SeciliTet - 1) * 460 }, 'slow', function () { });
            $('#tetKapNavPagesIc').empty().append((SeciliTet + 1) + "/" + (ToplamTet + 1));
            $('#tetKapNavPages').empty().append((SeciliTet + 1) + "/" + (ToplamTet + 1));

        } else {
            if ($('#turkiyeEnerjisiniTopluyor').css('margin-left') == '-460px') {

                $('#turkiyeEnerjisiniTopluyor').animate({ marginLeft: '0px' }, 'slow', function () { });
                $('#tetKapNavPages').empty().append("1/" + (ToplamTet + 1));
            }
        }
    }, function () { /*üzerine gelince*/ });
    $('#tetKapNavIleriIc').hover(function () {
        StopTheClock();
        if ($('#turkiyeEnerjisiniTopluyor').css('margin-left') != '-460px' && SeciliTet == 1) {
            return;
        } else {
            if (SeciliTet != ToplamTet) {
                SeciliTet++;
                if ($('#tetSayfaCon').css('margin-left').replace('px', '') % 460 != 0)
                { $('#tetSayfaCon').stop(); }

                $('#tetSayfaCon').animate({ marginLeft: "-" + (SeciliTet - 1) * 460 }, 'slow', function () { });
                $('#tetKapNavPagesIc').empty().append((SeciliTet + 1) + "/" + (ToplamTet + 1));
                $('#tetKapNavPages').empty().append((SeciliTet + 1) + "/" + (ToplamTet + 1));
            }
        }
    }, function () { /*üzerine gelince*/ });
    // bunlari Biliyor musunuz Navigasyon
    $('#bbmNavGeri').hover(function () {
        StopTheClock();
        if (SeciliBbm != 1) {
            SeciliBbm--;
            if ($('#bbmCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#bbmCon').stop(); }
            $('#bbmCon').animate({ marginLeft: "-" + (SeciliBbm - 1) * 460 }, 'slow', function () { });
            $('#bbmNavPages').empty().append(SeciliBbm + "/" + ToplamBbm);
        }

    }, function () { /*üzerine gelince*/ });
    $('#bbmNavIleri').hover(function () {
        StopTheClock();
        if (SeciliBbm != ToplamBbm) {
            SeciliBbm++;
            if ($('#bbmCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#bbmCon').stop(); }
            $('#bbmCon').animate({ marginLeft: "-" + (SeciliBbm - 1) * 460 }, 'slow', function () { });
            $('#bbmNavPages').empty().append(SeciliBbm + "/" + ToplamBbm);
        }
    }, function () { /*üzerine gelince*/ });

    // Tasarruf Navigasyon
    $('#tasarrufNavGeri').hover(function () {
        StopTheClock();
        if (SeciliTasarruf != 1) {
            SeciliTasarruf--;
            if ($('#tasarrufCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#tasarrufCon').stop(); }
            $('#tasarrufCon').animate({ marginLeft: "-" + (SeciliTasarruf - 1) * 460 }, 'slow', function () { });
            $('#tasarrufNavPages').empty().append(SeciliTasarruf + "/" + ToplamTasarruf);
        }

    }, function () { });
    $('#tasarrufNavIleri').hover(function () {
        StopTheClock();
        if (SeciliTasarruf != ToplamTasarruf) {
            SeciliTasarruf++;
            if ($('#tasarrufCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#tasarrufCon').stop(); }
            $('#tasarrufCon').animate({ marginLeft: "-" + (SeciliTasarruf - 1) * 460 }, 'slow', function () { });
            $('#tasarrufNavPages').empty().append(SeciliTasarruf + "/" + ToplamTasarruf);
        }
    }, function () { });
    //Neler Yapiyoruz  Navigasyon
    $('#NelerNavGeri').hover(function () {
        StopTheClock();
        if (SeciliNelerYapiyoruz != 1) {
            SeciliNelerYapiyoruz--;
            if ($('#katNelerCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#katNelerCon').stop(); }
            $('#katNelerCon').animate({ marginLeft: "-" + (SeciliNelerYapiyoruz - 1) * 460 }, 'slow', function () { });
            $('#NelerNavPages').empty().append(SeciliNelerYapiyoruz + "/" + ToplamNelerYapiyoruz);
        }
    }, function () { /*üzerine gelince*/ });
    $('#NelerNavIleri').hover(function () {
        StopTheClock();
        if (SeciliNelerYapiyoruz != ToplamNelerYapiyoruz) {
            SeciliNelerYapiyoruz++;
            if ($('#katNelerCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#katNelerCon').stop(); }
            $('#katNelerCon').animate({ marginLeft: "-" + (SeciliNelerYapiyoruz - 1) * 460 }, 'slow', function () { });
            $('#NelerNavPages').empty().append(SeciliNelerYapiyoruz + "/" + ToplamNelerYapiyoruz);
        }
    }, function () { /*üzerine gelince*/ });
    //Basin Kösesi
    $('#basKosNavGeri').hover(function () {
        StopTheClock();
        if (SeciliBasin != 1) {
            SeciliBasin--;
            if ($('#basKosCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#basKosCon').stop(); }
            $('#basKosCon').animate({ marginLeft: "-" + (SeciliBasin - 1) * 460 }, 'slow', function () { });
            $('#basKosNavPages').empty().append(SeciliBasin + "/" + ToplamBasin);
        }
    }, function () { /*üzerine gelince*/ });
    $('#basKosNavIleri').hover(function () {
        StopTheClock();
        if (SeciliBasin != ToplamBasin) {
            SeciliBasin++;
            if ($('#basKosCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#basKosCon').stop(); }
            $('#basKosCon').animate({ marginLeft: "-" + (SeciliBasin - 1) * 460 }, 'slow', function () { });
            $('#basKosNavPages').empty().append(SeciliBasin + "/" + ToplamBasin);
        }
    }, function () { /*üzerine gelince*/ });
    //Sizin Görüsleriniz  Navigasyon
    $('#sizGorNavGeri').hover(function () {
        StopTheClock();
        if (SeciliGorus != 1) {
            //alert(SeciliGorus);
            SeciliGorus--;
            if ($('#sizGorCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#sizGorCon').stop(); }
            $('#sizGorCon').animate({ marginLeft: "-" + (SeciliGorus - 1) * 460 }, 'slow', function () { });
            $('#sizGorNavPages').empty().append(SeciliGorus + "/" + ToplamGorus);
        }
    }, function () { /*üzerine gelince*/ });
    $('#sizGorNavIleri').hover(function () {
        StopTheClock();
        if (SeciliGorus != ToplamGorus) {
            SeciliGorus++;
            if ($('#sizGorCon').css('margin-left').replace('px', '') % 460 != 0)
            { $('#sizGorCon').stop(); }
            $('#sizGorCon').animate({ marginLeft: "-" + (SeciliGorus - 1) * 460 }, 'slow', function () { });
            $('#sizGorNavPages').empty().append(SeciliGorus + "/" + ToplamGorus);
        }
    }, function () { /*üzerine gelince*/ });
    //scroll Mevzulari
    $('#projeYukari').hover(function () { StopTheClock(); yukariCik('projeHakkindaArea') }, function () { timeDurdur(); });
    $('#kullanimYukari').hover(function () { StopTheClock(); yukariCik('kullanimSartlariArea') }, function () { timeDurdur(); });
    $('#projeHakkindaArea').mouseover(function () { StopTheClock(); timeDurdur() });
    $('#basin1Yukari').hover(function () { StopTheClock(); yukariCik('basin1Area') }, function () { timeDurdur(); });
    $('#basin2Yukari').hover(function () { StopTheClock(); yukariCik('basin2Area') }, function () { timeDurdur(); });
    $('#basin1Asagi').hover(function () { StopTheClock(); asagiIn('basin1Area') }, function () { timeDurdur(); });
    $('#basin2Asagi').hover(function () { StopTheClock(); asagiIn('basin2Area') }, function () { timeDurdur(); });
    $('#basin3Yukari').hover(function () { StopTheClock(); yukariCik('basin3Area') }, function () { timeDurdur(); });
    $('#basin3Asagi').hover(function () { StopTheClock(); asagiIn('basin3Area') }, function () { timeDurdur(); });
    $('#basin2YukariKupur').hover(function () { StopTheClock(); yukariCik('medyaIcerik') }, function () { timeDurdur(); });
    $('#basin2AsagiKupur').hover(function () { StopTheClock(); asagiIn('medyaIcerik') }, function () { timeDurdur(); });
    $('#basin1Area').mouseover(function () { StopTheClock(); timeDurdur() });
    $('#basin2Area').mouseover(function () { StopTheClock(); timeDurdur() });
    $('#projeAsagi').hover(function () { StopTheClock(); asagiIn('projeHakkindaArea') }, function () { timeDurdur(); });
    $('#kullanimAsagi').hover(function () { StopTheClock(); asagiIn('kullanimSartlariArea') }, function () { timeDurdur(); });
    $('#kullanimSartlariArea').mouseover(function () { StopTheClock(); timeDurdur() });
    $().mousemove(function (e) {
        if (gecenSure != 0)
        { gecenSure = 0; }
    });
    //Türkiye enerjisini Topluyor
    $('#tetKapNavIleri').hover(function () {
        if ($('#turkiyeEnerjisiniTopluyor').css('margin-left') == '0px') {
            $('#turkiyeEnerjisiniTopluyor').animate({ marginLeft: '-460px' }, 'slow', function () { });
        }
    }, function () { });
    $('.kutu').hover(function () {
        var seciliKutu = $(this).attr('id');
        StopTheClock();
        secs = 1;
        StartTheTimer(seciliKutu);
		tutumsuzKapat();
		yasalUyariHide();
    }, function () {
        StopTheClock();
    });
    var loc = window.location.href;
    if (loc.indexOf('#basarili') > -1) {
        $('#formLoading').css('display', 'none');
        $('.uyari').css('display', 'none');
        $('#uyariBasarili').css('display', 'block');
        lightAc('basarili');
    }
    if (loc.indexOf('#hata') > -1) {
        // $('#solIcerikContainer').css('margin-top','-969px')
        // $('#ortaConNav').css('margin-left','0px');
        $('#formLoading').css('display', 'none');
        $('.uyari').css('display', 'none');
        $('#uyariHatali').css('display', 'block');
        lightAc('hatali');
    }
});
$(window).resize(function () {
    $('#kapatmaTusu').css('margin-top', (($(window).height() / 2) - 125));
    if ($(window).height() >= 630) {
        $('#blackBack').css('height', $(window).height());
        $('#tasarrufApp').css('height', $(window).height());
        $('#bilgiDiv').css('height', $(window).height());
        $('#kapatmaTusu').css('margin-top', (($(window).height() / 2) - 125));
    } else {
        $('#blackBack').css('height', '630px');
        $('#tasarrufApp').css('height', '630px');
        $('#bilgiDiv').css('height', '630px');
        $('#kapatmaTusu').css('margin-top', '190px');
    }
    $('#bilgiDiv').css('width', $(window).width());
    $('#lightUyari').css('margin-left', ($(window).width() / 2) - 150);
    if (b6 || b7 || b8) {
        $('#lightUyari').css('margin-left', ($(window).width() / 2) - 300);
    }
    $('#tasarrufAppIn').css('margin-left', ($(window).width() / 2) - 410);
});
function solBasliklarOku(okunacakId) {
    var elamanID = "";
    var isim = "";
    var gorsel = "";
    var tarih = "";
    var il = "";
    var spot = "";
    var icerik = "";
    $.ajax({
        type: "GET",
        url: "xml/solAlanData.xml",
        dataType: "xml",
        success: function (xml) {
            if (okunacakId == 'all') {
                var sonKategori = 0;
                $(xml).find('solAlan').find('kategori').each(function () {
                    sonKategori++;
                    var sayac = 0;
                    var eklenecekText = '<table cellpadding="0" cellspacing="0">';
                    $('#sol' + sonKategori + 'Icerik').empty();
                    $(this).find('eleman').each(function () {
                        sayac++;
                        elamanID = "kat" + sonKategori + sayac; //$(this).attr('id');
                        isim = $(this).find('isim').text();
                        gorsel = $(this).find('gorsel').text();
                        tarih = $(this).find('tarih').text();
                        spot = $(this).find('spot').text();
                        icerik = $(this).find('icerik').text();
                        if (gorsel != "") { gorsel = '<img src="images/content/sol_alan/' + gorsel + '" alt="' + tarih + ' ' + il + '"  />'; }
                        if (sonKategori == 1) {
                            il = $(this).find('il').text();
                        } else {
                            il = $(this).find('isim').text();
                        }
                        if (sayac == 1) {
                            eklenecekText += '<tr>';
                            eklenecekText += '<td rowspan="3" class="tdImage" onmouseover="devamAc(\'' + sonKategori + '\',\'' + elamanID + '\',\'' + sayac + '\')">';
                            eklenecekText += gorsel;
                            eklenecekText += '</td>';
                            eklenecekText += '<td class="tdBosluk">&nbsp;</td>';
                            eklenecekText += '<td class="tdTarih">';
                            eklenecekText += tarih;
                            eklenecekText += '</td>';
                            eklenecekText += '</tr>';
                            eklenecekText += '<tr>';
                            eklenecekText += '<td class="tdBosluk">&nbsp;</td>';
                            eklenecekText += '<td class="tdIl">';
                            eklenecekText += il;
                            eklenecekText += '</td>';
                            eklenecekText += '</tr>';
                            eklenecekText += '<tr>';
                            eklenecekText += '<td class="tdBosluk">&nbsp;</td>';
                            eklenecekText += '<td class="tdText" onmouseover="devamAc(\'' + sonKategori + '\',\'' + elamanID + '\',\'' + sayac + '\')">';
                            eklenecekText += spot;
                            eklenecekText += ' <span>&raquo;</span>';
                            eklenecekText += '</td>';
                            eklenecekText += '</tr>';
                        } else if (sayac < 3) {
                            eklenecekText += '<tr>';
                            eklenecekText += '<td colspan="3" class="tdTarih" onmouseover="devamAc(\'' + sonKategori + '\',\'' + elamanID + '\',\'' + sayac + '\')">';
                            eklenecekText += tarih + ' - ' + il;
                            eklenecekText += '</td>';
                            eklenecekText += '</tr>';
                            eklenecekText += '<tr>';
                            eklenecekText += '<td colspan="3" class="tdText" onmouseover="devamAc(\'' + sonKategori + '\',\'' + elamanID + '\',\'' + sayac + '\')">';
                            eklenecekText += spot;
                            eklenecekText += ' <span>&raquo;</span>';
                            eklenecekText += '</td>';
                            eklenecekText += '</tr>';
                        }
                        if (gorsel != "") { gorsel = gorsel.replace('sol_alan/', 'sol_alan/big/'); }
                        var eklenecekContentText = '<div id="' + elamanID + '" class="soMeIcItem" >';
                        eklenecekContentText += ' <div class="soMeIcImaj">';
                        eklenecekContentText += gorsel;
                        eklenecekContentText += '</div>';
                        eklenecekContentText += '<div class="soMeIcText">';
                        eklenecekContentText += '<table><tbody><tr><td>';
                        eklenecekContentText += icerik;
                        eklenecekContentText += '</td></tr></tbody></table>';
                        eklenecekContentText += '</div>';
                        eklenecekContentText += '</div>';
                        if (sonKategori == 1) { $('#katNelerCon').append(eklenecekContentText); } else if (sonKategori == 2) { $('#sizGorCon').append(eklenecekContentText); } else { $('#basKosCon').append(eklenecekContentText); }
                    });
                    eklenecekText += '</table>';
                    $('#sol' + sonKategori + 'Icerik').append(eklenecekText);
                    if (sonKategori == 1) {
                        $('#katNelerCon').css('width', sayac * 460);
                        if (b6) { $('#katNelerCon').css('width', sayac * 470); }
                        ToplamNelerYapiyoruz = sayac;
                        $('#NelerNavPages').empty().append("1/" + sayac);
                    } else if (sonKategori == 2) {
                        $('#sizGorCon').css('width', sayac * 460);
                        if (b6) { $('#sizGorCon').css('width', sayac * 470); }
                        ToplamGorus = sayac;
                        $('#sizGorNavPages').empty().append("1/" + sayac);
                    } else {
                        $('#basKosCon').css('width', sayac * 460);
                        if (b6) { $('#basKosCon').css('width', sayac * 470); }
                        ToplamBasin = sayac;
                        $('#basKosNavPages').empty().append("1/" + sayac);
                    }
                });
            }
        }
    });
}
//bunlari Biliyor Musunuz 
function bunlariBiliyorMusunuz() {
    var gorsel = "";
    var icerik = "";
    var sayac = 0;
    $.ajax({
        type: "GET",
        url: "xml/bunlariBiliyorMusunuz.xml",
        dataType: "xml",
        success: function (xml) {
            $(xml).find('bbm').find('madde').each(function () {
                sayac++;
                gorsel = $(this).find('gorsel').text();
                icerik = $(this).find('metin').text();
                if (gorsel != "") { gorsel = '<div class="bbmImaj"><img src="images/content/bbm/' + gorsel + '" alt="Bunlari Biliyor Musunuz : Madde ' + sayac + '" /></div>'; }
                var eklenecekText = '<div class="bbmItem" id="bbm' + sayac + '">';
                eklenecekText += gorsel;
                eklenecekText += '<div class="bbmText">';
                eklenecekText += '<table><tr><td>';
                eklenecekText += icerik;
                eklenecekText += '</td></tr></table>';
                eklenecekText += '</div></div>';
                $('#bbmCon').append(eklenecekText);
            });
            $('#bbmCon').css('width', (sayac * 460));
            if (b6) { $('#bbmCon').css('width', sayac * 470); }
            $('#bbmNavPages').empty().append("1/" + sayac);
            ToplamBbm = sayac;
        }
    });
}
//tasarrfun Püf noktalari
function tasarrufunPufNoktalari() {
    var gorsel = "";
    var icerik = "";
    var sayac = 0;
    $.ajax({
        type: "GET",
        url: "xml/tasarrufunPufNoktalari.xml",
        dataType: "xml",
        success: function (xml) {
            $(xml).find('bbm').find('madde').each(function () {
                sayac++;
                gorsel = $(this).find('gorsel').text();
                icerik = $(this).find('metin').text();
                if (gorsel != "") { gorsel = '<div class="tasarrufImaj"><img src="images/content/tasarruf/' + gorsel + '" alt="Bunlari Biliyor Musunuz : Madde ' + sayac + '" /></div>'; }
                var eklenecekText = '<div class="tasarrufItem" id="tasarruf' + sayac + '">';
                eklenecekText += gorsel;
                eklenecekText += '<div class="tasarrufText">';
                eklenecekText += '<table><tr><td>';
                eklenecekText += icerik;
                eklenecekText += '</td></tr></table>';
                eklenecekText += '</div></div>';
                $('#tasarrufCon').append(eklenecekText);
            });
            $('#tasarrufCon').css('width', sayac * 460);
            $('#tasarrufNavPages').empty().append("1/" + sayac);
            ToplamTasarruf = sayac;
        }
    });
}
//mavi kutular
function maviKutuOver(seciliKutuId) {
    if (secs != 0)
    { return; }
    if ($('#' + seciliKutuId).attr('class').indexOf('yesil') == -1) {
        var ortaAlanMargin = $('#ortaConNav').css('margin-left').replace('px', '');
        if (ortaAlanMargin > (-460)) {
            $('#ortaConNav').stop();

            $('#ortaConNav').animate({ marginLeft: '-460px' }, 'fast', function () {
                SeciliSolItem = "";
                $('.kutu').removeClass('yesil');
                $('#' + seciliKutuId).addClass('yesil');
                var sira = seciliKutuId.replace('kutu', '');
                var icerikYukseklik = (sira - 1) * (-323);
                if ($('#sagIcerikContainer').css('margin-top').replace('px', '') % 323 == 0) {
                    $('#sagIcerikContainer').animate({ marginTop: icerikYukseklik + "px" }, 300, 'swing');
                } else {
                    $('#sagIcerikContainer').stop();
                    $('#sagIcerikContainer').animate({ marginTop: icerikYukseklik + "px" }, 300, 'swing');
                }
            });
        } else {
            //seciliKutuId=$(this).attr('id');
            SeciliSolItem = "";
            $('.kutu').removeClass('yesil');
            $('#' + seciliKutuId).addClass('yesil');
            var sira = seciliKutuId.replace('kutu', '');
            var icerikYukseklik = (sira - 1) * (-323);
            if ($('#sagIcerikContainer').css('margin-top').replace('px', '') % 323 == 0) {
                $('#sagIcerikContainer').animate({ marginTop: icerikYukseklik + "px" }, 300, 'swing');
            } else {
                $('#sagIcerikContainer').stop();
                $('#sagIcerikContainer').animate({ marginTop: icerikYukseklik + "px" }, 300, 'swing');
            }

        }
    }
}
function devamAcArtik(kategori, id, sira) {
    if (secs != 0)
    { return; }
    //alert(kategori+id+sira)
    if (id == SeciliSolItem)
    { } else {
        if ($('#ortaConNav').css('margin-left') != "0px") {
            $('.kutu').removeClass('yesil');
            $('#ortaConNav').stop();
            $('#ortaConNav').animate({ marginLeft: '0px' }, 'fast', function () {
                var solIcerikMargin = $('#solIcerikContainer').css('margin-top').replace('px', '');
                if (kategori == 2 && solIcerikMargin != (-323)) {
                    $('#solIcerikContainer').stop();
                    $('#solIcerikContainer').animate({ marginTop: '-323px' }, 'slow');
                }
                if (kategori == 1 && solIcerikMargin != 0) {
                    $('#solIcerikContainer').stop();
                    $('#solIcerikContainer').animate({ marginTop: '0px' }, 'slow');
                }
                if (kategori == 3 && solIcerikMargin != (-646)) {
                    $('#solIcerikContainer').stop();
                    $('#solIcerikContainer').animate({ marginTop: '-646px' }, 'slow');
                }
            });
        } else {
            var solIcerikMargin = $('#solIcerikContainer').css('margin-top').replace('px', '');
            if (kategori == 2 && solIcerikMargin != (-323)) {
                $('#solIcerikContainer').stop();
                $('#solIcerikContainer').animate({ marginTop: '-323px' }, 'slow');
            }
            if (kategori == 1 && solIcerikMargin != 0) {

                $('#solIcerikContainer').stop();
                $('#solIcerikContainer').animate({ marginTop: '0px' }, 'slow');
            }
            if (kategori == 3 && solIcerikMargin != (-646)) {
                $('#solIcerikContainer').stop();
                $('#solIcerikContainer').animate({ marginTop: '-646px' }, 'slow');
            }
        }
        if (kategori == 1) {
            var haberId = sira;
            if (SeciliNelerYapiyoruz != haberId) {
                if ($('#katNelerCon').css('margin-left').replace('px', '') % 460 != 0)
                { $('#katNelerCon').stop(); }
                SeciliNelerYapiyoruz = haberId;
                $('#katNelerCon').animate({ marginLeft: "-" + (SeciliNelerYapiyoruz - 1) * 460 }, 'slow', function () { $('#NelerNavPages').empty().append(SeciliNelerYapiyoruz + "/" + ToplamNelerYapiyoruz); });
            }
        }
        if (kategori == 2) {
            var haberId = sira;
            if (SeciliGorus != haberId) {
                if ($('#sizGorCon').css('margin-left').replace('px', '') % 460 != 0)
                { $('#sizGorCon').stop(); }
                SeciliGorus = haberId;
                $('#sizGorCon').animate({ marginLeft: "-" + (SeciliGorus - 1) * 460 }, 'slow', function () { $('#sizGorNavPages').empty().append(SeciliGorus + "/" + ToplamGorus); });
            }
        }
        if (kategori == 3) {
            var haberId = sira;
            if (SeciliBasin != haberId) {
                if ($('#basKosCon').css('margin-left').replace('px', '') % 460 != 0)
                { $('#basKosCon').stop(); }
                SeciliBasin = haberId;
                $('#basKosCon').animate({ marginLeft: "-" + (SeciliBasin - 1) * 460 }, 'slow', function () { $('#basKosNavPages').empty().append(SeciliBasin + "/" + ToplamBasin); });
            }
        }
    }
}
function devamAc(kategori2, id2, sira2) {
    StopTheClock();
    secs = 2;
    StartTheTimer(kategori2 + id2 + sira2);
	tutumsuzKapat();
	yasalUyariHide();
}
var SeciliFooterItem = "";
function footerOver(footerItem) {
	yasalUyariHide();
    if (secs != 0)
    { return; }
    if ($('#ortaConNav').css('margin-left') != "0px") {
        $('.kutu').removeClass('yesil');
        $('#ortaConNav').stop();
        $('#solIcerikContainer').stop();
        $('#ortaConNav').animate({ marginLeft: '0px' }, 'fast', function () {
            var gelecekTop = 0;
            if (footerItem == "kullanimSartlari") { gelecekTop = '-969px'; }
            if (footerItem == "iletisim") { gelecekTop = '-1292px'; }
            $('#solIcerikContainer').animate({ marginTop: gelecekTop }, "slow", function () {
            });
        });
    } else {
        var gelecekTop = 0;
        $('#ortaConNav').stop();
        $('#solIcerikContainer').stop();
        if (footerItem == "kullanimSartlari") { gelecekTop = '-969px'; }
        if (footerItem == "iletisim") { gelecekTop = '-1292px'; }
        $('#solIcerikContainer').animate({ marginTop: gelecekTop }, "slow", function () {
        });
    }
}

function footerMenu(secOyna) {
    StopTheClock();
    secs = 2;
    StartTheTimer(secOyna);
}


function yeniSayfa(adres) {

    //window.open(adres,'YeniSayfa'+adres,'toolbar=no,location=no,directories=no,status=no,titlebar=no,resizable=no,scrollbars=no,menubar=no,width=100%,height=100%');
    window.open(adres);

}
function formGonder() {
    formKontrol();
    if (formDurum) {
        $('#formLoading').css('display', 'block');
        $('.formFields').css('display', 'none');
        document.forms["form1"].submit();
    }


}

function tasarrufNextPage() {
    $('#tasarrufPaging').animate({ marginLeft: '-460px' }, "slow", function () { });
}
function tasarrufKapak() { $('#tasarrufPaging').animate({ marginLeft: '0px' }, "slow", function () { }); }

var formDurum = false;
function formKontrol() {
    if ($('#txtMesajiniz').val().length > 0 && $('#txtePosta').val().length > 0 && $('#txtAd').val().length > 0 && $('#txtSoyad').val().length > 0) {
        if ($('#txtePosta').val().search(/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/) != -1) {
            formDurum = true;
        } else {
            formDurum = false;
            $('.uyari').css('display', 'none');
            $('#uyariEmail').css('display', 'block');

        }
    } else {
        formDurum = false;
        $('.uyari').css('display', 'none');
        $('#uyariMin').css('display', 'block');
    }
}

function isAlphaNumeric(e) {
    var c = e.keyCode;
    return (c < 47 || c > 58) && (c < 95 || c > 106);
}

function lightAc(formSonuc) {
    if ($(window).height() <= 630) {
        //$('body').height()
        $('#blackBack').css('height', '630px');
    } else {
        $('#blackBack').css('height', $(window).height());
    }
    $('#lightUyari').css('margin-left', ($(window).width() / 2) - 150);
    //alert("deneme");
    if (b6 || b7 || b8) {
        //$('#lightUyari').css('margin-left',($(window).width()/2)-150);
        $('#lightUyari').css('margin-left', '325px');

        $('#blackBack').css('margin-left', '0px');
    }

    $('#blackBack').css('display', 'block');
    $('#blackBack').animate({ opacity: 0.85 }, "slow", function () {
        if (formSonuc == 'hatali') {
            $('#lightUyari').css('display', 'block')
            $('.lightText').css('display', 'none');
            $('#lightHatali').css('display', 'block');
        } else {
            $('#lightUyari').css('display', 'block')
            $('.lightText').css('display', 'none');
            $('#lightBasarili').css('display', 'block');
        }

    });
}

function kapat() {

    $('#lightUyari').animate({ opacity: 0 }, "slow", function () {
        $('#lightUyari').css('display', 'none');
        $('#blackBack').animate({ opacity: 0 }, "slow", function () { $('#blackBack').css('display', 'none') });
    });


}

function yukariCik(divId) {
    var divYukseklik = $('#' + divId).css('height').replace('px', '');
    //alert($('#'+divId).css('margin-top').replace('px',''));
    //alert(divYukseklik);
    $(this).everyTime(80, function () {
        var divMargin = $('#' + divId).css('margin-top').replace('px', '');

        if (divMargin < -12) {
            //alert(divMargin);
            divMargin = divMargin * (-1);

            var farkY = (divYukseklik - divMargin);
            //alert(divMargin*(-1) +"---fark " + farkY);
            if (farkY >= 180) {
                $('#' + divId).stop();
                divMargin = divMargin - 10;
                //$('#deneme').append(divId+"----");
                $('#' + divId).animate({ marginTop: '-' + divMargin + 'px' }, 80, function () {
                    //burasi mi					divMargin=$('#'+divId).css('margin-top').replace('px','');
                });
            }
        } else {
            // alert("ELSE");
            // $('#'+divId).stop();
            // $('#'+divId).animate({marginTop: '0px'} ,80,function(){	
            if ($('#' + divId).css('margin-top') != '0px') {
                $('#' + divId).css('margin-top', '0px');
                divMargin = 0;
            }
            //	});
        }
    });
}

function asagiIn(adivID) {
    var aDivYukseklik = $('#' + adivID).css('height').replace('px', '');
    //alert(aDivYukseklik);

    $(this).everyTime(80, function () {
        var aDivMargin = $('#' + adivID).css('margin-top').replace('px', '');
        if (aDivMargin <= 0) {
            aDivMargin = aDivMargin * (-1);
            var fark = (aDivYukseklik - aDivMargin);
            if (fark >= 190) {
                $('#' + adivID).stop();
                aDivMargin = aDivMargin + 10;
                //	$('#deneme').append(adivID+"-Asagi---");
                $('#' + adivID).animate({ marginTop: '-' + aDivMargin + 'px' }, 80, function () {

                    aDivMargin = $('#' + adivID).css('margin-top').replace('px', '');
                });
            }
        } else {
            //$('#'+aDivId).stop();
            //$('#'+adivID).animate({marginTop: '-'+(aDivYukseklik-185)+'px'} ,80,function(){
            var dene = aDivYukseklik - 185;

            $('#' + adivID).css('margin-top', '-' + dene + 'px');
            aDivMargin = $('#' + adivID).css('margin-top').replace('px', '');
            //}
            //);

        }
    });


}

function timeDurdur() {
    $(this).stopTime();
}



function kararma() {
    if (kararik == false) {

        $('#kapatmaTusu').css('margin-left', (($(window).width() / 2) - 125));

        if ($(window).height() >= 630) {
            $('#kapatmaTusu').css('margin-top', (($(window).height() / 2) - 125));
            $('#blackBack').css('height', $(window).height());
        }
        else {
            $('#kapatmaTusu').css('margin-top', '190px');
            $('#blackBack').css('height', '630px');
        }


        $('#blackBack').css('background-color', '#000');
        $('#blackBack').css('opacity', '0');
        $('#kapatmaTusu').css('opacity', '0');
        $('#blackBack').css('display', 'block');
        $('#kapatmaTusu').css('display', 'block');
        $('#blackBack').animate({ opacity: 1 }, 1500, function () { });
        $('#kapatmaTusu').animate({ opacity: 1 }, 1500, function () { });

        kararik = true;
    }
    gecenSure = 0;
}
function acilSusamAcil() {
    if (kararik == true) {
        $('#blackBack').animate({ opacity: 0 }, 600, function () {
            $('#blackBack').css('display', 'none');
            $('#blackBack').css('background-color', '#FFF');
        });
        $('#kapatmaTusu').animate({ opacity: 0 }, 600, function () {
            $('#kapatmaTusu').css('display', 'none');
        });
        kararik = false;
        gecenSure = 0;
    } else {

    }
}





function InitializeTimer() {
    // Set the length of the timer, in seconds
    StopTheClock();
    StartTheTimer();
}

function StopTheClock() {
    if (timerRunning)
        timerRunning = false;
    clearTimeout(timerID);
}
var islem = false;
function StartTheTimer(fonksiyon) {




    //$('#deneme').append("kullanimSartlari calis - ");	
    if (secs == 0) {
        if (fonksiyon == 'kullanimSartlari') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            footerOver('kullanimSartlari');
            return;
        } else if (fonksiyon == 'iletisim') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            footerOver('iletisim');
            return;
        }
        else if (fonksiyon == '1kat111') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            devamAcArtik('1', 'kat11', '1');
            return;
        }
        else if (fonksiyon == '1kat122') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            devamAcArtik('1', 'kat12', '2');
            return;
        }
        else if (fonksiyon == '2kat211') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            devamAcArtik('2', 'kat21', '1');
            return;
        }
        else if (fonksiyon == '2kat222') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            devamAcArtik('2', 'kat22', '2');
            return;
        }
        else if (fonksiyon == '3kat311') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            devamAcArtik('3', 'kat31', '1');
            return;
        }
        else if (fonksiyon == '3kat322') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            devamAcArtik('3', 'kat32', '2');
            return;
        }
        else if (fonksiyon == 'kutu1') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            maviKutuOver('kutu1');
            return;
        }
        else if (fonksiyon == 'kutu2') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            maviKutuOver('kutu2');
            return;
        }
        else if (fonksiyon == 'kutu3') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            maviKutuOver('kutu3');
            return;
        }
        else if (fonksiyon == 'kutu4') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            maviKutuOver('kutu4');
            return;
        }
        else if (fonksiyon == 'kutu5') {
            $('#projeHakkindaArea').css('margin-top', '0px');
            $('#kullanimSartlariArea').css('margin-top', '0px');
            maviKutuOver('kutu5');
			
            return;
        }
        else if (fonksiyon == "bilgiAc") {

            BilgiAc();
            return;
        } else if (fonksiyon == "basinBulteni") {
            basinBulteniDevam();
			
        }
        else if (fonksiyon == "medyaYansimasi") {
            medyaYansimasiDevam();
			
        }
        else if (fonksiyon.indexOf('--resim--') > -1) {
            gercektenResimBuyut(fonksiyon);
        }
        else if (fonksiyon.indexOf('--haber--') > -1) {
            gercektenHaberAc(fonksiyon);
        }
        else if (fonksiyon == "appAcil") {
            gercektenAppOpen();
        } else if (fonksiyon == 'videoAc') {
            GercektenVideoAc();
        }
    }
    else {
        self.status = secs;
        secs = secs - 1;
        timerRunning = true;
        timerID = self.setTimeout("StartTheTimer('" + fonksiyon + "')", delay);
    }
}
function BilgiAc() {
    var loc = window.location.href;
    if (loc.indexOf('#basarili') == -1 && loc.indexOf('#hata') == -1) {
        bilgiAcikMi = true;
        $('#bilgiDiv').css('display', 'block');
        $('#bilgiDivIn').css('display', 'block');
        //$('#bilgiDivIn').css('margin-left', ($(window).width() / 2) - 300);

        //$('#bilgiDiv').animate({ opacity: '0.85' }, 800, function () {
//            $('#bilgiDivIn').animate({ opacity: '1' }, 500, function () { });
//        });
    }
}
function SertifikaAc() {
    bilgiAcikMi = true;
    $('#bilgiDiv').css('display', 'block');
    $('#dvSertifika').css('display', 'block');
    $('#dvSertifika').css('margin-left', ($(window).width() / 2) - 300);

    $('#bilgiDiv').animate({ opacity: '0.85' }, 800, function () {
        $('#dvSertifika').animate({ opacity: '1' }, 500, function () { });
    });
}
function bilgiKapa() {
    bilgiAcikMi = false;
    $('#bilgiDivIn').animate({ opacity: '0' }, 600, function () {
        $('#bilgiDiv').animate({ opacity: '0' }, 600, function () {
            $('#bilgiDiv').css('display', 'none');
            $('#bilgiDivIn').css('display', 'none');
            $.cookie("bilgiCookie", 'true', { expires: 7 });
        });
        $(this).everyTime(3000, function () {
            gecenSure++;
            if (gecenSure >= 10 && appAcik == false) {
                kararma();
            }
        });
    });
}
function bilgiDirektKapa() {
    bilgiAcikMi = false;
    $('#bilgiDivIn').animate({ opacity: '0' }, 600, function () {
        $('#bilgiDiv').animate({ opacity: '0' }, 600, function () {
            $('#bilgiDiv').css('display', 'none');
            $('#bilgiDivIn').css('display', 'none');
        });
        $(this).everyTime(3000, function () {
            gecenSure++;
            if (gecenSure >= 10 && appAcik == false) {
                kararma();
            }
        });
    });
}
function AppOpen() {
    StopTheClock();
    secs = 2;
    StartTheTimer('appAcil');
}
function AppClose() {
    $('#tasarrufAppIn').animate({ opacity: '0' }, "slow", function () { $('#tasarrufAppIn').css('display', 'none'); $("#tasarrufAppIn").empty().append("<div id='tasarrufAppIn2'></div>"); });
    $('#tasarrufApp').animate({ opacity: '0' }, "slow", function () { $('#tasarrufApp').css('display', 'none'); appAcik = false; });
}
function gercektenAppOpen() {
    if (swfobject.hasFlashPlayerVersion("9.0.0")) {
        var fn = function () {
            var att = { data: "swf/tasarruf_App.swf", wmode: "transparent", width: "825", height: "483", id: "FlashID4" };
            var par = { wmode: "transparent" };
            var id = "tasarrufAppIn2";
            var myObject = swfobject.createSWF(att, par, id);
        };
        swfobject.addDomLoadEvent(fn);
    }
    $('#tasarrufApp').css('display', 'block');
    $('#tasarrufAppIn').css('margin-left', ($(window).width() / 2) - 410);
    $('#tasarrufApp').animate({ opacity: '0.85' }, "slow", function () {
        $('#tasarrufAppIn').css('display', 'block');
    });
    $('#tasarrufAppIn').animate({ opacity: '1' }, "slow", function () { appAcik = true; });
}
//TET
function tetGetir() {
    var icerik = "";
    var sayac = 0;
    $.ajax({
        type: "GET",
        url: "xml/tet.xml",
        dataType: "xml",
        success: function (xml) {
            $(xml).find('tet').find('madde').each(function () {
                sayac++;
                icerik = $(this).find('metin').text();
                var eklenecekText = '<div class="tetIcText">';
                eklenecekText += icerik;
                eklenecekText += '</div>';
                $('#tetSayfaCon').append(eklenecekText);
            });
            $('#tetSayfaCon').css('width', (sayac * 460));
            if (b6) { $('#tetSayfaCon').css('width', sayac * 470); }

            $('#tetKapNavPages').empty().append("1/" + (sayac + 1));
            $('#tetKapNavPagesIc').empty().append("2/" + (sayac + 1));
            ToplamTet = sayac;
        }
    });
}
function sertifikaKapa() {
    bilgiAcikMi = false;
    $('#dvSertifika').animate({ opacity: '0' }, 600, function () {
        $('#bilgiDiv').animate({ opacity: '0' }, 600, function () {
            $('#bilgiDiv').css('display', 'none');
            $('#dvSertifika').css('display', 'none');
        });
    });
}
function basinBulteni() {
    StopTheClock();
    secs = 2;
    StartTheTimer('basinBulteni');
	tutumsuzKapat();
	yasalUyariHide();
}
function medyaYansimasi() {
    StopTheClock();
    secs = 2;
    StartTheTimer('medyaYansimasi');
	tutumsuzKapat();
	yasalUyariHide();
}
function basinBulteniDevam() {
    //alert("basin Bülteni");
    $('.basBulNav').css('display', 'none');
    //$('.basinIc').css('margin-left','0px');
    if ($('#ortaConNav').css('margin-left') != "0px") {
        $('#ortaConNav').animate({ marginLeft: '0px' }, 'fast', function () {
            if ($('#solIcerikContainer').css('margin-top') != "-646px") {
                $('#solIcerikContainer').animate({ marginTop: '-646px' }, 'slow', function () { });
            }
        });
    } else if ($('#solIcerikContainer').css('margin-top') != "-646px") {
        $('#solIcerikContainer').animate({ marginTop: '-646px' }, 'slow', function () { });
    }
    if ($('#basinKapsayici').css('margin-left') != '0px') {
        $('#basinKapsayici').animate({ marginLeft: '0px' }, 'slow', function () { });
    }
    if ($('#basIcCon').css('margin-left') != '0px') {
    }
    $('#BasinItem').animate({ marginLeft: "0px" }, 'slow', function () { $('#basIcCon').animate({ marginLeft: "0px" }, 'slow', function () { SeciliBasinBulteni = 1; }); });
}
function medyaYansimasiDevam() {
    if ($('#ortaConNav').css('margin-left') != "0px") {
        $('#ortaConNav').animate({ marginLeft: '0px' }, 'fast', function () {
            if ($('#solIcerikContainer').css('margin-top') != "-646px") {
                $('#solIcerikContainer').animate({ marginTop: '-646px' }, 'slow', function () { });
            }
        });
    } else if ($('#solIcerikContainer').css('margin-top') != "-646px") {
        $('#solIcerikContainer').animate({ marginTop: '-646px' }, 'slow', function () { });
    }
    if ($('#basinKapsayici').css('margin-left') != '-460px') {
        $('#basinKapsayici').animate({ marginLeft: '-460px' }, 'slow', function () { });
    }
}
function haberAc(id) {
    StopTheClock();
    secs = 2;
    StartTheTimer('--haber--' + id);
}
function gercektenHaberAc(id) {
    id = id.replace('--haber--', '');
    var marginn = (id - 1) * 460;
    $('.basinIcerigi').css('margin-top', '0px');
    $('.basBulNav').css('display', 'block');
    SeciliBasinBulteni = id;
    $('#basIcCon').animate({ marginLeft: "-460px" }, 'slow', function () {
        $('#BasinItem').animate({ marginLeft: "-" + marginn + "px" }, 'slow', function () { $('#basBulNavPages').empty().append(SeciliBasinBulteni + "/" + ToplamBasinBulteni); });
    });
}
function resimBuyut(yol) {
    StopTheClock();
    secs = 2;
    StartTheTimer('--resim--' + yol);
}
function gercektenResimBuyut(yol) {
    yol = yol.replace('--resim--', '');
    appAcik = true;
    bilgiAcikMi = true;
    $('#buyukResimImg').empty().append('<img src="' + yol + '"/>');
    $('#bilgiDiv').css('display', 'block');
    $('#dvResimBuyuk').css('display', 'block');
    var genizlik = ($('#buyukResimImg>img').css('width').replace('px', '')) / 2;
    //alert($('#buyukResimImg>img').css('width'));
    $('#dvResimBuyuk').css('margin-left', ($(window).width() / 2) - 233);
    $('#dvResimBuyuk').css('width', '510px');
    $('#bilgiDiv').animate({ opacity: '0.85' }, 500, function () {
        $('#dvResimBuyuk').animate({ opacity: '1' }, 300, function () { });
    });
}
function resimKapat() {
    bilgiAcikMi = false;
    $('#dvResimBuyuk').animate({ opacity: '0' }, 500, function () {
        $('#dvResimBuyuk').css('display', 'none');
    });
    $('#bilgiDiv').animate({ opacity: '0' }, 500, function () {
        $('#bilgiDiv').css('display', 'none');
    });
}
function alBaalim(gidilecekAdres) {
    var winpop = window.open(gidilecekAdres);
    if (!winpop || winpop.closed)
    { alert("Pop-up pencerelerinin açilmasina izin veriniz."); }
    else {this.location.href = "#";}
}
function videoAc() {
    StopTheClock();
    secs = 2;
    StartTheTimer('videoAc');
}
function GercektenVideoAc() {
    var lefti = ($(window).width() - 328) / 2;
    $('#videoPlay').css('margin-left', lefti);
    $('#bilgiDiv').css('opacity', '0').css('display', 'block');
    $('#bilgiDiv').animate({ opacity: '0.85' }, 500, function () {
        $('#bilgiDiv').css('display', 'block');
        $('#videoPlay').css('display', 'block');
        appAcik = true;
    });
}
function kapatAdamGibi() {
    $('#videoPlay').css('display', 'none');
    $('#bilgiDiv').css('opacity', '0').css('display', 'block');
    $('#bilgiDiv').animate({ opacity: '0' }, 500, function () {
        $('#bilgiDiv').css('display', 'none');
        appAcik = false;
    });
}
$(document).ready(function() {
	$('.ttmszDiv').css('top', '-322px');
	$('#tutmsuzailesi').hover(function(){
		$('.ttmszDiv').animate({top: '0'},350);
		$('.kutu').removeClass('yesil');
		yasalUyariHide();
	});
});
function tutumsuzKapat(){
    $('.ttmszDiv').delay(400).animate({top: '-322px'},350);
};
$(window).load(function(e) {
    $('#bilgiDivIn').fadeIn(450);
	$('#bilgiDiv').fadeTo(350, .6);
});
function yasalUyariShow (){
	$('.yasalUyariCont').animate({
		marginTop: 0
	}, 600);
}
function yasalUyariHide (){
	$('.yasalUyariCont').animate({
		marginTop: '-323'
	}, 600);
}
$(document).ready(function() {
	$('.yasalUyari').hover(function() {
          yasalUyariShow();
    });
});
