function vote( did, sum, bid, id ) { $('#'+did).load('/ajax/vote.php?bid='+bid+'&id='+id+'&sum='+sum); };
function authorization() { $('#authorization').css('display','block'); };
function animateBnr() { var i = $(".onAir.animate #photo").attr("class"); i = i.replace("frame",""); i = i - 0; if (i != 3) { $(".onAir.animate #photo").removeClass("frame" + i).addClass("frame" + (i + 1)); } else { $(".onAir.animate #photo").removeClass("frame" + i).addClass("frame1"); }; setTimeout(animateBnr, 2000); };
function animation() { $("#smsChat .smsBgr p:first").each(function() { var scLnght = $(this).outerHeight(); var scIndex = $("#smsChat .smsBgr p").index(this); $(this).animate({ marginTop: -1 * (scLnght + 17) + "px" }, 5000, "linear", function() { manipulate(scIndex); }); }); }
function manipulate(ind) { $("#smsChat .smsBgr p:eq(" + ind + ")").each(function() { $(this).attr("style","").appendTo("#smsChat .smsBgr div"); animation(); }) }
$(document).ready(function() { $("#content table:not(#songs, .forum-table) tbody tr:odd, #content .gBookEntry:odd, #content .newsList>li:odd, #content .programmsList>li:odd, #content .djsList>li:odd").addClass("odd"); $("#content .box img").load(function() { var width = $(this).width() + 4; $(this).parent().width(width); }); $("a[rel=lightbox]").lightbox(); animateBnr(); $("#authToggle").click(function() { $("#authorization").css("display","block"); }); $("#authorization").mouseleave(function() { $(this).css("display","none"); }); animation(); });
