jQuery(document).ready(function ($) {$("#report-news-contatiner").rotator({ms: 6000, n: 1});$("ul.article-tools").find("li.fonts a").click(function () {switch ($(this).attr("class")) {case "aaa":var value = "aaa";break;case "aa":var value = "aa";break;default:var value = "a";break;}$.cookie("fontsizeAAA", value, {expires: 90, path: "/"});$("#article .body>:not(div)").removeClass("font-a").removeClass("font-aa").removeClass("font-aaa").addClass("font-" + value);return false;});if ($("#article").size() == 1 && $.cookie("fontsizeAAA") != "null") {$("#article .body>:not(div)").removeClass("font-a").removeClass("font-aa").removeClass("font-aaa").addClass("font-" + $.cookie("fontsizeAAA"));}$("a.group").fancybox({overlayShow: false});$(".paging>li").each(function (intIndex) {$(this).bind("click", function () {$(".group>img").each(function (imgIndex) {if (imgIndex == intIndex) {$(".group>img").eq(imgIndex).show();$("p.credits").text($(".group>img").eq(imgIndex).attr("credit"));$("p.caption").text($(".group>img").eq(imgIndex).attr("alt"));} else {$(".group>img").eq(imgIndex).hide();}});return false;});});});
jQuery.cookie = function (a, b, c) {if (typeof b != "undefined") {c = c || {};if (b === null) {b = "";c.expires = -1;}var d = "";if (c.expires && (typeof c.expires == "number" || c.expires.toUTCString)) {var e;if (typeof c.expires == "number") {e = new Date;e.setTime(e.getTime() + c.expires * 24 * 60 * 60 * 1000);} else {e = c.expires;}d = "; expires=" + e.toUTCString();}var f = c.path ? "; path=" + c.path : "";var g = c.domain ? "; domain=" + c.domain : "";var h = c.secure ? "; secure" : "";document.cookie = [a, "=", encodeURIComponent(b), d, f, g, h].join("");} else {var j = null;if (document.cookie && document.cookie != "") {var k = document.cookie.split(";");for (var i = 0; i < k.length; i++) {var l = jQuery.trim(k[i]);if (l.substring(0, a.length + 1) == a + "=") {j = decodeURIComponent(l.substring(a.length + 1));break;}}}return j;}};
