(function($){var intIndexBanner=0;$.fn.bannerSlider=function(options){var objBanner=$(this),intIndexBanner=0,objTimeout=null,blnAnimReady=true;$.fn.bannerSlider.getBannerCode=function(strBannerText,strBannerFile,intBannerType,intBannerWidth,intBannerHeight){var strBannerHTML="";switch(intBannerType){case 1:strBannerHTML="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\""+intBannerWidth+"\" height=\""+intBannerHeight+"\">";strBannerHTML+="<param name=\"movie\" value=\""+strBannerFile+"\" />";strBannerHTML+="<param name=\"quality\" value=\"high\" />";strBannerHTML+="<param name=\"wmode\" value=\"transparent\" />";strBannerHTML+="<embed src=\""+strBannerFile+"\" width=\""+intBannerWidth+"\" height=\""+intBannerHeight+"\" wmode=\"transparent\" quality=\"high\" type=\"application/x-shockwave-flash\" pluginspage=\"https://www.adobe.com/go/getflashplayer\" />";strBannerHTML+="</object>";break;case 2:strBannerHTML="<img src=\""+strBannerFile+"\" width=\""+intBannerWidth+"\" height=\""+intBannerHeight+"\" alt=\""+strBannerText+"\" />"
break;}
return strBannerHTML;}
$.fn.bannerSlider.changeBanner=function(strBannerCode,strBannerURL,strBannerText,fltBannerTiming){var strBannerHTML="";if(blnAnimReady){blnAnimReady=false;strBannerHTML+="<div class=\""+options.bannerHolderCSS+"\">"
strBannerHTML+="<a href=\""+strBannerURL+"\" class=\""+options.captionCSS+"\">";strBannerHTML+="<div class=\"spacer\">&nbsp;</div>";strBannerHTML+="<span class=\"text\">"+strBannerText+"</span>";strBannerHTML+="</a><div class=\"pos\">";strBannerHTML+=strBannerCode;strBannerHTML+="</div></div>"
$(objBanner).append(strBannerHTML);$("."+options.bannerHolderCSS+":last .pos",objBanner).fadeIn(500,function(){blnAnimReady=true;});if($("."+options.bannerHolderCSS).length>1){$("."+options.bannerHolderCSS+":first .pos",objBanner).fadeOut(500,function(){$(this).parent().remove();});}
if($("."+options.thumbnailsCSS+" li",objBanner).length<=intIndexBanner){intIndexBanner=0;}
objTimeout=setTimeout("$().bannerSlider.initiateBanner("+intIndexBanner+")",fltBannerTiming*1000);}}
$.fn.bannerSlider.initiateBanner=function(intItemIndex){var strBannerText=$("."+options.thumbnailsCSS+" li input[name=txtBannerText]",objBanner).eq(intItemIndex).val(),strBannerFile=$("."+options.thumbnailsCSS+" li input[name=txtBannerFile]",objBanner).eq(intItemIndex).val(),strBannerURL=$("."+options.thumbnailsCSS+" li input[name=txtBannerURL]",objBanner).eq(intItemIndex).val(),intBannerType=parseInt($("."+options.thumbnailsCSS+" li input[name=txtBannerType]",objBanner).eq(intItemIndex).val(),10),fltBannerTiming=parseFloat($("."+options.thumbnailsCSS+" li input[name=txtBannerTiming]",objBanner).eq(intItemIndex).val()),strBannerCode=$().bannerSlider.getBannerCode(strBannerText,strBannerFile,intBannerType,options.imageWidth,options.imageHeight);intIndexBanner=intItemIndex+1;$().bannerSlider.changeBanner(strBannerCode,strBannerURL,strBannerText,fltBannerTiming);}
$(".thumbnails li",objBanner).each(function(){var strBannerText=$("input[name=txtBannerText]",$(this)).val(),strBannerFile=$("input[name=txtBannerFile]",$(this)).val(),strBannerURL=$("input[name=txtBannerURL]",$(this)).val(),intBannerType=parseInt($("input[name=txtBannerType]",$(this)).val(),10),strThumbCode="";strThumbCode+="<div>&nbsp;</div>";strThumbCode+=$().bannerSlider.getBannerCode(strBannerText,strBannerFile,intBannerType,options.thumbsWidth,options.thumbsHeight);$(this).append(strThumbCode);})
$(".thumbnails li div",objBanner).click(function(){var strBannerText=$("input[name=txtBannerText]",$(this).parent()).val(),strBannerFile=$("input[name=txtBannerFile]",$(this).parent()).val(),strBannerURL=$("input[name=txtBannerURL]",$(this).parent()).val(),intBannerType=parseInt($("input[name=txtBannerType]",$(this).parent()).val(),10),fltBannerTiming=parseFloat($("input[name=txtBannerTiming]",$(this).parent()).val()),strBannerCode=$().bannerSlider.getBannerCode(strBannerText,strBannerFile,intBannerType,options.imageWidth,options.imageHeight);$().bannerSlider.changeBanner(strBannerCode,strBannerURL,strBannerText,fltBannerTiming);intIndexBanner=$(this).parent().index()+1;clearTimeout(objTimeout);})
objBanner.mouseenter(function(){$("."+options.thumbnailsCSS,$(this)).animate({left:0},500)}).mouseleave(function(){$("."+options.thumbnailsCSS,$(this)).animate({left:-152},500)}).bannerSlider.initiateBanner(0);}})(jQuery);$(document).ready(function(){try{$("#banner").bannerSlider(options={thumbsWidth:129,thumbsHeight:53,imageWidth:524,imageHeight:215,bannerHolderCSS:"current-banner",thumbnailsCSS:"thumbnails",captionCSS:"caption"})
$("ul#top_menu_bar li").hover(function(){var litags=$('ul li',this);if(litags.length>0){$('ul',this).slideDown(200);}},function(){$('ul',this).fadeOut(90)});$("#news").tabs();}catch(ex){}})
$(document).ready(function(){$("select.select").each(function(){$(this).removeAttr("multiple");});try{var totalHeight=0;var hideHeight=600;var hideItem=$(".newslist");var hideParent=hideItem.parent();hideItem.remove();hideParent.append('<div class="newslist2"></div>').children('div').append(hideItem);var hideItem2=$(".newslist2");trObject=hideItem.children("tbody").children("tr");for(c=0;c<trObject.length;c++){totalHeight+=trObject.eq(c).height();if(totalHeight>=(hideHeight)){hideItem2.attr("style","height:"+(totalHeight)+"px;overflow:hidden;display:block;");$('<div style="padding:8px 10px 8px 10px; margin-top:10px; background:#E9E9E9; text-align:center"><a style="display:block; cursor:pointer" class="more-news">Show more news</a></div>').insertAfter(hideItem2);$(".more-news").click(function(){hideItem2.attr("style","height: auto; overflow:visible;");$(this).parent().hide();});break;}}}catch(ex){}});$(function(){$("#pagecontent .linklist.accordion").each(function(){var linklistContainer=$(this);linklistContainer.find(".linklist-wrapper a").click(function(){linklistContainer.find(".linklist-content:visible").each(function(){$(this).slideUp();$(this).siblings(".linklist-wrapper").slideDown();});var linkObject=$(this).parent();linkObject.slideUp();linkObject.siblings(".linklist-content").slideDown();return false;});});});(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d,b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:9998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);$(document).ready(function(){try
{$(".statisticsLink").overlay({mask:{color:'#000000',loadSpeed:200,opacity:0.5}});}
catch(err)
{}});$(document).ready(function(){$("#slideToggle").click(function(){$('.slideTogglebox').slideToggle();});});function cancelReply(){$('#commentForm .replyRow').hide();$('#commentForm .replycommenthidden').val('');return false;}
function replyComment(commentID,controlObject){var posterName=jQuery(controlObject).parent().parent().parent().children("div.blogname").text();$('#commentForm .replycommenthidden').val(commentID);$('#commentForm .replyRow').show();$('#commentForm .textfield.replyRow span').text(posterName);$('.slideTogglebox').slideDown();return false;}
