function tabActivate(g,a){var d=g.parentNode.parentNode.parentNode;var c=d.parentNode;var f=c.parentNode;for(i=0;i<c.childNodes.length;i++){c.childNodes[i].className=""}d.className="active";for(j=0;j<f.childNodes.length;j++){var b=f.childNodes[j];try{if(b.tagName.toLowerCase()=="div"){b.style.display="none"}}catch(h){}}document.getElementById(a).style.display=""}function closefloating_k(a){document.getElementById(a).style.display="none"}function popup_window(a,d,c,b){wh="height="+c+", width="+d+"";newwindow=window.open(a,"mywindow","location=0,status=0,scrollbars="+b+",width="+d+",height="+c);if(window.focus){newwindow.focus()}return false}function popup_sl(a){newwindow=window.open("http://www.ohtuleht.ee/html/spordilivepopup.html?id="+a+"","Spordilive","toolbar=no,menubar=no,scrollbars=no");return false}function popup_sl_ski(a){newwindow=window.open("http://www.ohtuleht.ee/html/skipopup.html?id="+a+"","Spordilive","toolbar=no,menubar=no,scrollbars=no");return false}function popup_sl2(a){newwindow=window.open("http://www.ohtuleht.ee/html/spordilivepopup2.html?id="+a+"","Spordilive","toolbar=no,menubar=no,scrollbars=no");return false}function popup_sl_jalka(a){newwindow=window.open("http://www.ohtuleht.ee/html/jalkapopup.html?id="+a+"","Spordilive","toolbar=no,menubar=no,scrollbars=no");return false}function sobimatuKommentaar(a,b,c){question=confirm("Sobimatu kommentaar\n\nKas oled kindel, et see kommentaar on sobimatu ja tuleks eemaldada?");if(question!="0"){document.location="index.aspx?v=forum&flame="+b+"&subtopicID="+a+"&start="+c}}function blogiSobimatuKommentaar(a,b,c){question=confirm("Sobimatu kommentaar\n\nKas oled kindel, et see kommentaar on sobimatu ja tuleks eemaldada?");if(question!="0"){document.location="/index.aspx?v=blog&blogID="+a+"&postID="+b+"&flame="+c+"#bottom"}}function galeriiSobimatuKommentaar(d,c,e,a,b){question=confirm("Sobimatu kommentaar\n\nKas oled kindel, et see kommentaar on sobimatu ja tuleks eemaldada?");if(question!="0"){document.location="/index.aspx?v=gallery&forum=1&gID="+d+"&oID="+c+"&start="+e+"&cID="+a+"&flame="+b+"#up"}}function spordifoorumiSobimatuKommentaar(a,b){question=confirm("Sobimatu kommentaar\n\nKas oled kindel, et see kommentaar on sobimatu ja tuleks eemaldada?");if(question!="0"){document.location="/index.aspx?v=sf&s=forum&flame="+b+"&topicid="+a}}function seadusedSobimatuKommentaar(a,b){question=confirm("Sobimatu kommentaar\n\nKas oled kindel, et see kommentaar on sobimatu ja tuleks eemaldada?");if(question!="0"){document.location="/index.aspx?v=seadused&s=lisakommentaar&tid="+a+"&flame="+b}}function toggleElementVisibility(a){if(document.getElementById(a).style.display==""){document.getElementById(a).style.display="none"}else{document.getElementById(a).style.display=""}}function content_show(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="";document.getElementById(a+"_plus").style.display="none";document.getElementById(a+"_minus").style.display=""}else{document.getElementById(a).style.display="none";document.getElementById(a+"_plus").style.display="";document.getElementById(a+"_minus").style.display="none"}}function tabbox_change2(a){document.getElementById("tabbox_first").style.display="none";document.getElementById("tabbox_second").style.display="none";document.getElementById("tabbox_third").style.display="none";document.getElementById("tabbox_forth").style.display="none";document.getElementById("tabbox_firstli").className="";document.getElementById("tabbox_secondli").className="";document.getElementById("tabbox_thirdli").className="";document.getElementById("tabbox_forthli").className="";document.getElementById("tabbox_firstlink").className="";document.getElementById("tabbox_secondlink").className="";document.getElementById("tabbox_thirdlink").className="";document.getElementById("tabbox_forthlink").className="";document.getElementById("tabbox_"+a).style.display="";document.getElementById("tabbox_"+a+"li").className="active";document.getElementById("tabbox_"+a+"link").className="active"}var getElementsByIds=function(c){if(c==undefined||(typeof c!="object")||(c.length==0)){alert("Expecting an array based parameter or there are no ids, exiting");return null}var b=[];for(var a=0;a<c.length;a++){b[a]=document.getElementById(c[a])}return b};function mtoggleSelect(b,a){if(b.checked){for(i=0;i<b.form.elements.length;i++){obj=b.form.elements[i];if(!a||obj.name.indexOf(a)>-1){obj.checked=true;self.location="/index.aspx?v=ostukorv&s=3"}}}else{for(i=0;i<b.form.elements.length;i++){obj=b.form.elements[i];if(!a||obj.name.indexOf(a)>-1){obj.checked=false;self.location="/index.aspx?v=ostukorv&s=3&items=-1"}}}}function change_form(b,c,d){var a;var g;var f;a=document.getElementsByTagName("input");for(var e=0;e!=a.length;e++){g=a[e];if(g.name!=g.name.replace("cb_")){if(a[e].checked){f+=g.name.replace("cb_",",")}}}if(f.length>1){f=f.substring(10)}document.forms.list.action="/index.aspx?v=ostukorv&s=3&items="+f+"&col1="+b+"&col2="+c+"&col3="+d;document.forms.list.submit()}function change_sum(){for(var a=1;a<4;a++){var b=document.getElementById("asumma"+a);var c=document.getElementById("ysumma"+a);c.innerHTML=b.innerHTML}}function OKsobimatuKommentaar(b,a){question=confirm("Sobimatu kommentaar\n\nKas oled kindel, et see kommentaar on sobimatu ja tuleks eemaldada?");if(question!="0"){document.location="index.aspx?v=ostukorv&s=4&flame="+b+"&poeID="+a}}var qTipTag="a,span";var qTipX=0;var qTipY=15;tooltip={name:"qTip",offsetX:qTipX,offsetY:qTipY,tip:null};tooltip.init=function(){var e="http://www.w3.org/1999/xhtml";if(!f){var f="qTip"}var k=document.getElementById(f);if(!k){k=document.createElementNS?document.createElementNS(e,"div"):document.createElement("div");k.setAttribute("id",f);document.getElementsByTagName("body").item(0).appendChild(k)}if(!document.getElementById){return}this.tip=document.getElementById(this.name);if(this.tip){document.onmousemove=function(a){tooltip.move(a)}}var h,g,l;var b=qTipTag.split(",");for(var d=0;d<b.length;d++){l=document.getElementsByTagName(b[d]);if(l){for(var c=0;c<l.length;c++){h=l[c];g=h.getAttribute("title");if(g){h.setAttribute("tiptitle",g);h.removeAttribute("title");h.removeAttribute("alt");h.onmouseover=function(){tooltip.show(this.getAttribute("tiptitle"))};h.onmouseout=function(){tooltip.hide()}}}}}};tooltip.move=function(c){var b=0,a=0;if(document.all){b=(document.documentElement&&document.documentElement.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft;a=(document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;b+=window.event.clientX;a+=window.event.clientY}else{b=c.pageX;a=c.pageY}this.tip.style.left=(b+this.offsetX)+"px";this.tip.style.top=(a+this.offsetY)+"px"};tooltip.show=function(a){if(!this.tip){return}this.tip.innerHTML=a;this.tip.style.display="block"};tooltip.hide=function(){if(!this.tip){return}this.tip.innerHTML="";this.tip.style.display="none"};window.onload=function(){tooltip.init()};function slolad_createAd(b,a,c,e){var d=document.getElementById("zone_"+b);if(d){if(!document.getElementById(b)){d.appendChild(slolad_createIframe(b,a,c,e))}}}function slolad_createIframe(b,a,d,e){var c=document.createElement("iframe");c.id=b;c.name=b;c.width=d;c.height=e;c.style.visibility="hidden";c.marginWidth=0;c.marginHeight=0;c.frameBorder=0;c.scrolling="no";c.allowTransparency="true";c.src=a;return c}function slolad_showAd(a){if(document.getElementById(a)){document.getElementById(a).style.visibility="visible"}}function slolad_setAdSize(a,b,d){var c=document.getElementById(a);if(c){c.width=b;c.height=d}}function getCenter(){var a=screen.width,b=self.screen.availHeight;if(document.body.clientWidth){_cw=document.body.clientWidth;_ch=document.body.clientHeight}else{_cw=window.innerWidth;_ch=window.innerHeight}return{x:_cw/2,y:getPageHeight()/2}}function getPageHeight(){if(self.innerHeight){h=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){h=document.documentElement.clientHeight}else{if(document.body){h=document.body.clientHeight}}}return h}function getPageWidth(){if(self.innerWidth){w=self.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){w=document.documentElement.clientWidth}else{if(document.body){w=document.body.clientWidth}}}return w}function getScrollTop(){if(window.opera){offset=document.body.scrollTop}else{offset=document.documentElement.scrollTop}return offset}function readCookie(f){var b=f+"=";var e=document.cookie.split(";");for(var a=0;a<e.length;a++){var d=e[a];while(d.charAt(0)==" "){d=d.substring(1,d.length)}if(d.indexOf(b)==0){return d.substring(b.length,d.length)}}return null}function createCookie(e,a,c){if(c){var b=new Date();b.setTime(b.getTime()+(c*60*1000));var d="; expires="+b.toGMTString()}else{var d=""}document.cookie=e+"="+a+d+"; path=/"}function loadFlyBanner(){if(!document.getElementById(objId)){return false}var b=document.getElementById(objId);var a=readCookie("flyBanner");if(a==null){createCookie("flyBanner",0,30)}a=readCookie("flyBanner");if(a==null){a=dTime}if(a<dTime){a++;createCookie("flyBanner",a,30);b.style.visibility="visible";b.style.zIndex=100;loc()}}function loc(){if(!document.getElementById(objId)){return false}var a=document.getElementById(objId);w=getPageWidth();h=getPageHeight();if(h>=a.offsetHeight){a.style.top=(h/2)-(a.offsetHeight/2)+getScrollTop()+"px"}if(first==0){first++;if(w>=a.offsetWidth){flyTimer=setTimeout("move()",timeout)}}}function move(){var a=document.getElementById(objId);if(distance+a.offsetWidth<=getPageWidth()){a.style.left=distance+"px";distance=distance+step;flyTimer=setTimeout("move()",timeout)}else{a.style.visibility="hidden"}}function flyMouseOver(){clearTimeout(flyTimer)}function flyMouseOut(){flyTimer=setTimeout('move("'+objId+'")',timeout)}function getObj(b){var a=new Object;if(document.getElementById){a.obj=document.getElementById(b);a.style=document.getElementById(b).style}else{if(document.all){a.obj=document.all[b];a.style=document.all[b].style}else{if(document.layers){a.obj=document.layers[b];a.style=document.layers[b]}}}return a}function getScrollXY(){var a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;scrOfX=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;scrOfX=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft}}}return a}function pvStat(a){var b=new Image();var c=new Date();b.src="/"+a+"/d/"+c.getTime()+"/adt.gif"}function strip_add_load_event(a){if(window.addEventListener){window.addEventListener("load",a,false)}else{if(document.addEventListener){document.addEventListener("load",a,false)}else{if(window.attachEvent){window.attachEvent("onload",a)}}}}function strip_escapeHTML(a){a=a.replace("<","&lt;");a=a.replace(">","&gt;");a=a.replace("&","&amp;");a=a.replace('"',"&quot;");return a}function strip_get_style(){if(navigator.userAgent.search("MSIE")!=-1){var b="z-index: 32701; height: 35px; width: 100%;\noverflow: hidden;\nposition: absolute;\nright: auto;\nbottom: auto;\nleft: 0 !important;\ntop: expression( ( -0 - strip_overlay.offsetHeight + ( document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.clientHeight ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' ) !important;\n";var a=document.createStyleSheet();styleObj=a.owningElement||a.ownerNode;styleObj.setAttribute("type","text/css");a.addRule("#strip_overlay",b);return""}else{return"z-index: 32701; position: fixed; bottom: 0px; width: 100%; height: 35px; overflow: hidden"}}function strip_init(){var a=strip_get_style();var c=document.createElement("div");c.id="strip_overlay";c.setAttribute("class","strip_overlay");html='<div id="strip_inner" style="position: relative; height: 35px; white-space: nowrap" onmouseover="strip_scroll_enabled = 0" onmouseout="strip_scroll_enabled = 1">';html+='<a href="'+strip_escapeHTML(strip_clickurl)+'" style="white-space: nowrap" target="_blank">';for(var b=0;b<4;b++){html+='<img border="0" width="'+strip_width+'" height="'+strip_height+'" src="'+strip_escapeHTML(strip_image)+'" />'}html+="</a>";html+="</div>";c.innerHTML=html;c.setAttribute("style",a);document.body.appendChild(c);setInterval("strip_scroll()",50)}function strip_scroll(){if(strip_scroll_enabled){if(strip_scroll_offset>=strip_width){strip_scroll_offset=0}else{strip_scroll_offset+=2}div=document.getElementById("strip_inner");div.style.left=-strip_scroll_offset+"px"}}function strip_clear(){var a=document.getElementById("strip_overlay");if(a!=null){document.body.removeChild(a)}}function set_pos(){var i=getObj("bannerside");var a=getObj("dynb");var d=getScrollXY();var g=50;var f;if(ie7){f=document.getElementById("bannerside_s").offsetHeight+document.getElementById("side-advert-links").offsetHeight+document.getElementById("side-advert-links2").offsetHeight+document.getElementById("topbar").offsetHeight-document.getElementById("dynb").offsetHeight}else{f=document.getElementById("bannerside_s").offsetHeight+document.getElementById("side-advert-links").offsetHeight+document.getElementById("side-advert-links2").offsetHeight+document.getElementById("topbar").offsetHeight}var c=document.getElementsByTagName("body")[0].clientHeight;if(document.getElementById("jalusebanner")!=null){g=document.getElementById("jalusebanner").offsetHeight}var e=c-document.getElementById("bannerside").offsetHeight-document.getElementById("jalus").offsetHeight-g;if(d<=f){ch=0}else{ch=d-f}var b=parseInt(a.style.top);a.style.position="relative";if(ch!=b){if(ch>b){b=b+Math.round((ch-b)/3)}else{if(ch<b){b=b-Math.round((b-ch)/3)}}if(Math.abs(ch-b)<=1){b=ch}if((e-b)<=1){b=e}a.style.top=b+"px";setTimeout("set_pos()",40)}else{setTimeout("set_pos()",300)}}function set_pospokker(){var i=getObj("bannerside");var a=getObj("dynbpokker");var d=getScrollXY();var g=50;var f;f=document.getElementById("bannerside_s").offsetHeight+document.getElementById("side-advert-links").offsetHeight+document.getElementById("side-advert-links2").offsetHeight+document.getElementById("topbar").offsetHeight;var c=document.getElementsByTagName("body")[0].clientHeight;if(document.getElementById("jalusebanner")!=null){g=document.getElementById("jalusebanner").offsetHeight}var e=c-document.getElementById("bannerside").offsetHeight-document.getElementById("jalus").offsetHeight-g;if(d<=f){ch=0}else{ch=d-f}var b=parseInt(a.style.top);a.style.position="relative";if(ch!=b){if(ch>b){b=b+Math.round((ch-b)/3)}else{if(ch<b){b=b-Math.round((b-ch)/3)}}if(Math.abs(ch-b)<=1){b=ch}if((e-b)<=1){b=e}a.style.top=b+"px";setTimeout("set_pospokker()",40)}else{setTimeout("set_pospokker()",300)}}function set_posm(){var i=getObj("content-left");var a=getObj("dynmax");var d=getScrollXY();var f=document.getElementById("topblock").offsetHeight+document.getElementById("header").offsetHeight+document.getElementById("topbanner").offsetHeight+document.getElementById("topbar").offsetHeight+10;var g=document.getElementById("content").offsetHeight;var c=document.getElementsByTagName("body")[0].clientHeight;var e=c-document.getElementById("content-left").offsetHeight-document.getElementById("jalus").offsetHeight-270;i.style.position="relative";if(d<=f){ch=0}else{ch=d-f}var b=parseInt(a.style.top);a.style.position="relative";if(ch!=b){if(ch>b){b=b+Math.round((ch-b)/3)}else{if(ch<b){b=b-Math.round((b-ch)/3)}}if(Math.abs(ch-b)<=1){b=ch}if((e-b)<=1){b=e}a.style.top=b+"px";setTimeout("set_posm()",40)}else{setTimeout("set_posm()",300)}}function gup(d){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+d+"=([^&#]*)";var a=new RegExp(c);var b=a.exec(window.location.href);if(b==null){return"/index.aspx"}else{return b[1]}};(function(a){a.fn.extend({gallery:function(b){this.each(function(){var p=a.extend({slideShowSpeed:2000,sliderSpeed:300,heightSpeed:200,fadingSpeed:40,slideupSpeed:100,slidedownSpeed:100,noBig:false,backToSmall:true,startsFrom:1},b);$gallery=a(this);var c={};c.slider_arrow_left=a(this).find(".gallery-slider-arrow-left");c.slider_arrow_right=a(this).find(".gallery-slider-arrow-right");c.arrow_left=a(this).find(".gallery-big-arrow-left");c.arrow_right=a(this).find(".gallery-big-arrow-right");c.slider_content=a(this).find(".gallery-slider-content");c.slider_content_inner=a(this).find(".gallery-slider-content-inner");c.objects=a(this).find(".gallery-slider-obj");$gallery_small=a(this).find("#gallery-small");var r={};r.arrow_left=$gallery_small.find("#gallery-small-left");r.arrow_right=$gallery_small.find("#gallery-small-right");r.objects=$gallery_small.find(".gallery-small-obj");r.descs=$gallery_small.find(".gallery-small-descobj");var n=false;var j=false;var t=null;var s=0;var q=function(u,x){if(u=="left"&&parseInt(c.slider_content_inner.css("left"))<0&&!n){n=true;var w=0;var v=parseInt(c.slider_content_inner.css("left"))+c.slider_content.width();if(v>0){w=c.slider_content.width()-v}else{w=c.slider_content.width()}c.slider_content_inner.animate({left:"+="+w},p.sliderSpeed,function(){n=false})}else{if(u=="left"&&parseInt(c.slider_content_inner.css("left"))==0&&!n){n=true;w=c.objects.length*58-c.slider_content.width();c.slider_content_inner.animate({left:"-="+w},p.sliderSpeed,function(){n=false})}else{if(u=="right"&&!n){n=true;w=0;v=c.slider_content_inner.width()-c.slider_content.width()+parseInt(c.slider_content_inner.css("left"));if(v<c.slider_content.width()){w=v;if(w==0){c.slider_content_inner.animate({left:"0px"},p.sliderSpeed,function(){n=false})}else{c.slider_content_inner.animate({left:"-="+w},p.sliderSpeed,function(){n=false})}}else{w=c.slider_content.width();c.slider_content_inner.animate({left:"-="+w},p.sliderSpeed,function(){n=false})}}}}};var o=function(w,v){if(!w.complete){setTimeout(function(){o(w,v)},v)}else{if(w.width==0||w.width=="undefined"){setTimeout(function(){o(w,v)},v)}else{var u=$gallery.find(".gallery-big-inner");$image=a(w);u.append($image);$gallery.find(".gallery-big-inner").animate({height:$image.height()+"px"},p.heightSpeed,function(){if(j){t=setTimeout(function(){e()},p.slideShowSpeed)}})}}};var l=function(v){s=c.objects.index(v);var A=s+p.startsFrom;c.objects.removeClass("gallery-slider-obj-active");v.addClass("gallery-slider-obj-active");var y=$gallery.find(".gallery-big-inner");y.empty();var B=v.find(".gallery-slider-big-img");if(B.length>0){var u=B.html().replace(/^\s+|\s+$/g,"");var x=new Image();x.src=u;o(x,100)}var w=v.find(".gallery-slider-big-data");if(w.length>0){w.clone().removeClass("gallery-slider-big-data").appendTo(y);y.css("height","auto");if(j){t=setTimeout(function(){e()},p.slideShowSpeed)}}var z=v.find(".gallery-slider-big-desc");if(z.length>0){$gallery.find(".gallery-desc").html(z.html()).show()}else{$gallery.find(".gallery-desc").empty().hide()}};var e=function(){if(j){if(s<c.objects.length-1){clearTimeout(t);l(a(c.objects[s+1]))}else{l(a(c.objects[0]))}}};var k=function(){setTimeout(arguments.callee,100);var v;var u=a(r.objects.get(s));u.removeAttr("height");a(window).load(function(){v=a(u).children("img").attr("height");a(".gallery-small-content").css("height",v)});r.objects.hide();a(u).show();v=a(u).children("img").attr("height");if(v!=0){a(".gallery-small-content").css("height",v)}r.descs.hide();a(r.descs.get(s)).show()};var g=function(){var u=s+p.startsFrom;window.location.hash=u;a(".gallery-small-content").css("height",a(r.objects.get(s)).height());r.objects.css("z-index","0").fadeOut();a(r.objects.get(s)).css("z-index","1").fadeIn(p.fadingSpeed,function(){r.descs.hide();a(r.descs.get(s)).show()})};var m=function(){c.slider_arrow_left.click(function(){q("left",0,c,p)});c.slider_arrow_right.click(function(){q("right",0,c,p)});c.objects.click(function(){l(a(this))});$gallery.find(".gallery-slideshow").click(function(u){if(j){j=false;a(this).removeClass("gallery-slideshow-playing")}else{j=true;a(this).addClass("gallery-slideshow-playing");e()}return false});c.arrow_left.click(function(){if(parseInt(c.slider_content_inner.css("left"))+(s*58)<=0){if(s!=0){c.slider_content_inner.animate({left:"+="+(58)},p.sliderSpeed,function(){n=false})}}if(s==0){l(a(c.objects[c.objects.length-1]));q("left",0)}else{l(a(c.objects[s-1]))}});c.arrow_right.click(function(){if(parseInt(c.slider_content_inner.css("left"))+(s*58)>=464){if(s!=c.objects.length-1){c.slider_content_inner.animate({left:"-="+(58)},p.sliderSpeed,function(){n=false})}}if(s<c.objects.length-1){l(a(c.objects[s+1]))}else{l(a(c.objects[0]));q("right",0)}});if($gallery_small.length>0&&p.backToSmall){$gallery.find(".gallery-big-inner").click(function(){h()});$gallery.find("#gallery-zoomout").click(function(){h()})}};var h=function(){$gallery.slideUp(p.slideupSpeed,function(){$gallery.find("#gallery-slideshow-container").hide();$gallery_small.show();k();$gallery.addClass("gallery-small").slideDown(p.slideupSpeed)})};var f=function(){$gallery.slideUp(p.slideupSpeed,function(){$gallery_small.hide();$gallery.find("#gallery-slideshow-container").show();$gallery.removeClass("gallery-small").slideDown(p.slidedownSpeed,function(){l(a(c.objects[s]))})})};var d=function(){if(!p.noBig){r.objects.click(function(){f()});$gallery_small.find("#gallery-small-zoomin").click(function(){f()})}r.arrow_left.click(function(){if(s==0){s=r.objects.length-1}else{s--}g()});r.arrow_right.click(function(){if(s==r.objects.length-1){s=0}else{s++}g()})};var i=function(){s=(window.location.hash)?parseInt(window.location.hash.replace("#","")):0;if(s!=0){s=s-p.startsFrom;if(s<0){s=0}else{if(s>c.objects.length-1){s=c.objects.length-1}}}l(a(c.objects[s]));c.slider_content_inner.width(c.objects.length*58);m();if($gallery_small.length>0){if(p.noBig){$gallery_small.find(".gallery-small-obj").css("cursor","default")}k();d()}};i()});return this}})})(jQuery);(function(a){a.slider=function(){function b(f,d,c,h){var e=d.marks;e=e.filter(".slider-nav-active");var g=d.marks.index(e);if(h=="prev"){if(g!=0){d.marks.removeClass("slider-nav-active");d.marks.eq(g-1).addClass("slider-nav-active");d.obj_div.animate({left:"+="+d.width},c.speed)}}else{if(h=="next"){if(g!=d.objs.length-1){d.marks.removeClass("slider-nav-active");d.marks.eq(g+1).addClass("slider-nav-active");d.obj_div.animate({left:"-="+d.width},c.speed)}}else{if(g!=h){var j=Math.abs(g-h);var i=(g>h)?"+":"-";d.marks.removeClass("slider-nav-active");d.marks.eq(h).addClass("slider-nav-active");d.obj_div.animate({left:i+"="+d.width*j},c.speed)}}}}return{init:function(g,f){var d={};d.obj_div=g.find(".slider-objs");d.objs=g.find(".slider-object");d.marks=g.find(".slider-nav-mark");d.btn_prev=g.find(".slider-nav-prev");d.btn_next=g.find(".slider-nav-next");d.width=d.objs.outerWidth(true);var e=d.objs.eq(d.objs.length-1);if(a.browser.msie&&a.browser.version<7){e.css("margin-right","-3px")}else{e.css("margin-right","0px")}var c=d.width*d.objs.length;d.obj_div.width(c);d.marks.click(function(){var h=d.marks.index(a(this));b(g,d,f,h)});d.btn_prev.click(function(){b(g,d,f,"prev")});d.btn_next.click(function(){b(g,d,f,"next")})}}}();a.fn.extend({slider:function(b){this.each(function(){var c=a.extend({speed:500},b);a.slider.init(a(this),c)});return this}})})(jQuery);