﻿
$(document).ready(function () {
    var first = 0;
    var speed = 700;
    var pause = 3500;
    function removeFirst() {
        first = $('ul#listticker li:first').html();
        $('ul#listticker li:first').animate({ opacity: 0 }, speed).fadeOut('slow', function () { $(this).remove(); });
        addLast(first);
    }
    function addLast(first) {
        last = '<li style="display:none">' + first + '</li>';
        $('ul#listticker').append(last)
        $('ul#listticker li:last').animate({ opacity: 1 }, speed).fadeIn('slow')
    }
    interval = setInterval(removeFirst, pause);
});

//***Almostrom - Root CLASS ***
if (typeof AlmostromJS == "undefined") var AlmostromJS = new Object();
AlmostromJS = function () { };
var ControlKeys = (function () {
    return {
        "Config": "___Config", "Frame": "___Frame", "None": null
    };
})();

//***Almostrom - Static Window CLASS ***
AlmostromJS.Window = (function () {
    return {
        New: function (Url, Yuzde) {
            var Percent = Yuzde == null ? 66 : Yuzde;
            var X = window.screen.width;
            var Y = window.screen.height;
            var Width = ((X * Percent) / 100);
            var Height = ((Y * Percent) / 100);
            var KalanEn = X - Width;
            var KalanBoy = Y - Height;
            var Left = KalanEn / 2;
            var Top = KalanBoy / 2;
            window.open(Url, "AlmostromWindow", "resizable=0,location=0,status=0,scrollbars=1,width=" + Width + ",height=" + Height + ",top=" + Top + ",left=" + Left);
            return false;
        },
        DataPost: function (fileUrl) {
            window.top.opener.DataGet(fileUrl, true);
            window.top.close();
            window.top.opener.focus();
        },
        DataGet: function (Url, Tip) {
            alert(Url);
        }
    };
})();
        
