﻿var sonMansetIneksObj = null;
function manset_hover(pObject, pItemId) {
    if (pObject != sonMansetIneksObj) {
        $(".manset_link").css("background-image", "");
        $(pObject).css("background-image", "url(/images/haber_pointer.png)");
        $(".manset_buyuk").hide();
        $("#manset_link_" + pItemId).show();
//        $("#manset_resim").hide();
//        $("#manset_link").attr("href", pLinkUrl);
//        $("#manset_resim").attr("src", pImageUrl);
//        $("#manset_resim").show();
        sonMansetIneksObj = pObject;
    }
}
$(document).ready(function () {
    
    $('.video_rklm').show();
    $('marquee').marquee('pointer').mouseover(function () { $(this).trigger('stop'); }).mouseout(function () { $(this).trigger('start'); });

    Cufon.replace('.haberBaslik', {
        fontSize: '24px',
        fontFamily: 'font3'
    });
    Cufon.replace('.font1Icerik', {
        fontWeight: 'normal',
        fontSize: '12px'
    });
    Cufon.replace('.yazarBaslik', {
        fontFamily: 'font1',
        fontWeight: 'normal',
        fontSize: '14px'
    });
    Cufon.replace('.koseYazariHaberBaslik', {
        fontFamily: 'font1',
        fontWeight: 'normal',
        fontSize: '14px',
        color: '#333'
    });

    $(".increaseFont").click(function () {
        var currentFontSize = $('#haber_metin').css('font-size');
        var currentFontSizeNum = parseFloat(currentFontSize, 10);
        var newFontSize = currentFontSizeNum * 1.2;
        $('#haber_metin,#haber_metin p').css('font-size', newFontSize);
        return false;
    });
    $(".decreaseFont").click(function () {
        var currentFontSize = $('#haber_metin').css('font-size');
        var currentFontSizeNum = parseFloat(currentFontSize, 10);
        var newFontSize = currentFontSizeNum * 0.8;
        $('#haber_metin,#haber_metin p').css('font-size', newFontSize);
        return false;
    });
    $('#splash').css({ 'height': (($(document).height())) + 'px' });
    $('#galeriCarousel').jcarousel({
        auto: 3,
        wrap: 'last'
    });
});

var sURL = unescape(window.location.href);
function refresh()
{
    window.location.href = sURL;
}
window.setTimeout("refresh()", 300000 );
