/**
 * JavaScript Slider v0.9
 * http://blog.ovidiu.ch/javascript-slider
 *
 * Copyright (c) 2010, Ovidiu Chereches
 * MIT License
 * http://legal.ovidiu.ch/licenses/MIT
 */
var Mouse={x:0,y:0,refresh:function(e)
{var posx=0,posy=0;if(!e)
{e=window.event;}
if(e.pageX||e.pageY)
{posx=e.pageX;posy=e.pageY;}
else if(e.clientX||e.clientY)
{posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop;}
this.x=posx;this.y=posy;}};var mouseMoveHandler=document.onmousemove||function(){};document.onmousemove=function(e)
{mouseMoveHandler(e);Mouse.refresh(e);}
var Position={get:function(obj)
{var curleft=curtop=0;if(obj.offsetParent)
{do
{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}
while((obj=obj.offsetParent));}
return[curleft,curtop];}};var Slider=function(wrapper,options)
{if(typeof(wrapper)=='string')
{wrapper=document.getElementById(wrapper);}
if(!wrapper)
{return;}
var handle=wrapper.getElementsByTagName('div')[0];if(!handle||handle.className.search(/(^|\s)handle(\s|$)/)==-1)
{return;}
this.init(wrapper,handle,options||{});this.setup();};Slider.prototype={init:function(wrapper,handle,options)
{this.wrapper=wrapper;this.handle=handle;this.options=options;this.value={current:options.value||0,target:options.value||0,prev:-1};this.disabled=options.disabled||false;this.steps=options.steps||0;this.snapping=options.snapping||false;this.speed=options.speed||5;this.callback=options.callback||null;this.animation_callback=options.animation_callback||null;this.bounds={pleft:options.pleft||0,left:0,pright:-(options.pright||0),right:0,width:0,diff:0};this.offset={wrapper:0,mouse:0,target:0,current:0,prev:-9999};this.dragging=false;this.tapping=false;},setup:function()
{var self=this;this.wrapper.onselectstart=function()
{return false;}
this.handle.onmousedown=function(e)
{self.preventDefaults(e,true);this.focus();self.handleMouseDownHandler(e);};this.wrapper.onmousedown=function(e)
{self.preventDefaults(e);self.wrapperMouseDownHandler(e);};var mouseUpHandler=document.onmouseup||function(){};document.onmouseup=function(e)
{mouseUpHandler(e);self.preventDefaults(e);self.documentMouseUpHandler(e);};var resizeHandler=document.onresize||function(){};window.onresize=function(e)
{resizeHandler(e);self.setWrapperOffset();self.setBounds();};this.setWrapperOffset();if(!this.bounds.pleft&&!this.bounds.pright)
{this.bounds.pleft=Position.get(this.handle)[0]-this.offset.wrapper;this.bounds.pright=-this.bounds.pleft;}
this.setBounds();this.setSteps();this.interval=setInterval(function(){self.animate()},20);self.animate(false,true);},setWrapperOffset:function()
{this.offset.wrapper=Position.get(this.wrapper)[0];},setBounds:function()
{this.bounds.left=this.bounds.pleft;this.bounds.right=this.bounds.pright+this.wrapper.offsetWidth;this.bounds.width=this.bounds.right-this.bounds.left;this.bounds.diff=this.bounds.width-this.handle.offsetWidth;},setSteps:function()
{if(this.steps>1)
{this.stepsRatio=[];for(var i=0;i<=this.steps-1;i++)
{this.stepsRatio[i]=i/(this.steps-1);}}},disable:function()
{this.disabled=true;this.handle.className+=' disabled';},enable:function()
{this.disabled=false;this.handle.className=this.handle.className.replace(/\s?disabled/g,'');},handleMouseDownHandler:function(e)
{this.startDrag();this.cancelEvent(e);},wrapperMouseDownHandler:function(e)
{this.startTap();},documentMouseUpHandler:function(e)
{this.stopDrag();this.stopTap();},startTap:function(target)
{if(this.disabled)
{return;}
if(target===undefined)
{target=Mouse.x-this.offset.wrapper-(this.handle.offsetWidth/2);}
this.setOffsetTarget(target);this.tapping=true;},stopTap:function()
{if(this.disabled||!this.tapping)
{return;}
this.setOffsetTarget(this.offset.current);this.tapping=false;this.result();},startDrag:function()
{if(this.disabled)
{return;}
this.offset.mouse=Mouse.x-Position.get(this.handle)[0];this.dragging=true;},stopDrag:function()
{if(this.disabled||!this.dragging)
{return;}
this.dragging=false;this.result();},feedback:function()
{var value=this.value.current;if(this.steps>1&&this.snapping)
{value=this.getClosestStep(value);}
if(value!=this.value.prev)
{if(typeof(this.animation_callback)=='function')
{this.animation_callback(value);}
this.value.prev=value;}},result:function()
{var value=this.value.target;if(this.steps>1)
{value=this.getClosestStep(value);}
if(typeof(this.callback)=='function')
{this.callback(value);}},animate:function(onMove,first)
{if(onMove&&!this.dragging)
{return;}
if(this.dragging)
{this.setOffsetTarget(Mouse.x-this.offset.mouse-this.offset.wrapper);}
this.value.target=Math.max(this.value.target,0);this.value.target=Math.min(this.value.target,1);this.offset.target=this.getOffsetByRatio(this.value.target);if((!this.dragging&&!this.tapping)||this.snapping)
{if(this.steps>1)
{this.setValueTarget(this.getClosestStep(this.value.target));}}
if(this.dragging||first)
{this.value.current=this.value.target;}
this.slide();this.show();this.feedback();},slide:function()
{if(this.value.target>this.value.current)
{this.value.current+=Math.min(this.value.target-this.value.current,this.speed/100);}
else if(this.value.target<this.value.current)
{this.value.current-=Math.min(this.value.current-this.value.target,this.speed/100);}
if(!this.snapping)
{this.offset.current=this.getOffsetByRatio(this.value.current);}
else
{this.offset.current=this.getOffsetByRatio(this.getClosestStep(this.value.current));}},show:function()
{if(this.offset.current!=this.offset.prev)
{this.handle.style.left=String(this.offset.current)+'px';this.offset.prev=this.offset.current;}},setValue:function(value,snap)
{this.setValueTarget(value);if(snap)
{this.value.current=this.value.target;}},setValueTarget:function(value)
{this.value.target=value;this.offset.target=this.getOffsetByRatio(value);},setOffsetTarget:function(value)
{this.offset.target=value;this.value.target=this.getRatioByOffset(value);},getRatioByOffset:function(offset)
{return(offset-this.bounds.left)/this.bounds.diff;},getOffsetByRatio:function(ratio)
{return Math.round(ratio*this.bounds.diff)+this.bounds.left;},getClosestStep:function(value)
{var k=0;var min=1;for(var i=0;i<=this.steps-1;i++)
{if(Math.abs(this.stepsRatio[i]-value)<min)
{min=Math.abs(this.stepsRatio[i]-value);k=i;}}
return this.stepsRatio[k];},preventDefaults:function(e,selection)
{if(!e)
{e=window.event;}
if(e.preventDefault)
{e.preventDefault();}
if(selection&&document.selection)
{document.selection.empty();}},cancelEvent:function(e)
{if(!e)
{e=window.event;}
if(e.stopPropagation)
{e.stopPropagation();}
else
{e.cancelBubble=true;}}};
//Player scripts

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('r.C=d(){g=x D(\'E\',{F:e,G:d(a){f(a)}});6(e==0){2.4("5").3.h=\'i:l()\';2.4("5").3.3.7=8+\'9/s.c\'}j{2.4("5").3.h=\'i:m()\';2.4("5").3.3.7=8+\'9/t.c\'}};d k(a){6(r.2[a]){u r.2[a]}6(H.I.J("K L")==-1){6(2.v&&2.v[a])u 2.v[a]}j{u 2.4(a)}}d l(){2.4(\'5\').3.h=\'i:m()\';2.4(\'5\').3.3.7=8+\'9/t.c\';6(k("n").y()==z){k("n").M();6(e!=0){f(e);g.o(e,p)}j{f(1);g.o(1,p)}}j{f(1);g.o(1,p)}}d m(){k("n").N();2.4("5").3.h=\'i:l()\';2.4("5").3.3.7=8+\'9/s.c\'}d O(){m()}d f(a){k("n").P(a*Q);6(a==0){2.4(\'q\').7=8+\'9/A.c\'}6(e==0&&a!=0){2.4(\'q\').7=8+\'9/B.c\'}R b=x S(T,U,V);2.W="X="+a+"; Y="+b.Z();e=a}d 10(){6(e>0){f(0);g.o(0,p);2.4(\'q\').7=8+\'9/A.c\';2.4(\'5\').3.h=\'i:l()\';2.4(\'5\').3.3.7=8+\'9/s.c\'}j{6(k("n").y()==z)l();j{w=1;f(w);g.o(w,p);2.4(\'q\').7=8+\'9/B.c\';2.4(\'5\').3.h=\'i:m()\';2.4(\'5\').3.3.7=8+\'9/t.c\'}}}',62,63,'||document|firstChild|getElementById|playerplay|if|src|_URL|static|||gif|function|volume_global|setVolume|slider|href|javascript|else|thisMovie|play|pause|radio|setValue|true|glosnik|window|alfa_play|alfa_pause|return|embeds|volume|new|getdata|false|player_off|player_on|onload|Slider|volume_slider|value|callback|navigator|appName|indexOf|Microsoft|Internet|jsPlay|jsStop|stop|jsSetVolume|100|var|Date|2020|01|15|cookie|radioazvolume|expires|toGMTString|chvol'.split('|'),0,{}))
