﻿
//Röportaj başlıklarını sol tarafta gösterir.
function InterviewTitle(T) {
    $("div#InterviewTitle").html(T.alt);
}

//Manşet
function Caption(C,L) {
    var I = C.src.toString().replace('-T', '-C');
    var T = C.alt;
    var link="haber.aspx?ID=" + L;
    document.getElementById("linkana").href=link;
    $("img#ImgCaption").attr('src', I);
    $("div.MansetBaslik").html(T);
}

////Sifr
//var NeoSans = {
//    src: 'Font/NeoSans.swf'
//      , ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
//};
//sIFR.activate(NeoSans);
//sIFR.replace(NeoSans, {
//    selector: 'h1'
//      , css: [
//        '.sIFR-root { font-weight: bold; font-size:20px; }'
//      ]
//});
//sIFR.replace(NeoSans, {
//    selector: '.SifrBlack', wmode: 'transparent'
//      , css: [
//        '.sIFR-root { font-weight: bold; font-size:14px; }'
//      ]
//});
//sIFR.replace(NeoSans, {
//    selector: '.SifrWhite', wmode: 'transparent'
//      , css: [
//        '.sIFR-root { font-weight: bold; font-size:14px; color:#FFFFFF}'
//      ]
//});

$(function() {
    $('a#buyuk, a#kucuk,a#orta').click(function() {
        var ourText = $('div.YaziDetay');
        var currFontSize = ourText.css('fontSize');
        var finalNum = parseFloat(currFontSize, 10);
        var stringEnding = currFontSize.slice(-2);
        if (this.id == 'buyuk') {
            ourText.css({ 'font-size': '19px' });
            return;
        }
        else if (this.id == 'kucuk') {
           ourText.css({ 'font-size': '13px' });
            return;
        }
        else if (this.id == 'orta') {
            ourText.css({ 'font-size': '16px' });
            return;
        }


    });
});

var GAPIKey = "ABQIAAAA6e6qBWfKl9IL23Ytduc85hTssuxH8A7N1_rcp5oDpPLjHEoUJBSAzk9tkn3yVILtDgELJXC3GBWncw";

function popup(url, windowName, height, width, scrollbars) {
    if (scrollbars == '') {
        scrollbars = 'no';
    }
    newwindow = window.open(url, '', "width=" + width + ",height=" + (height + 50) + ",location=no,scrollbars=" + scrollbars + ",resizable=1");
    if (window.focus) {
        newwindow.focus()
    }
    return false;
}
