  var wcs_scroller = new Class({
   moveleft: function(e) {
    var marginleft = this.container.getStyle('margin-left').toInt();
    if (marginleft > (0 - this.container.getStyle('width').toInt())) {
     var len = (0 - this.container.getStyle('width').toInt() + this.mainwidth + this.step);
     if ((len - marginleft) * - 1 < this.step) this.eff.start(marginleft, parseInt(len - this.step)); else this.eff.start(marginleft, parseInt(marginleft - this.step));
    };
    return wu.stop(e);
   },
   moveright: function(e) {
    var marginleft = this.container.getStyle('margin-left').toInt();
    if (marginleft < 0) this.eff.start(marginleft, Math.min(0, parseInt(marginleft + this.step)));
    return wu.stop(e);
   },
   initialize: function(mainobj) {
    this.ul = mainobj.getElements('.videolist')[0];
    this.container = mainobj.getElements('.scroll')[0];
    this.mainwidth = mainobj.getStyle('width').toInt();
    this.step = this.mainwidth / 2;
    var width = parseInt(parseInt(this.ul.getElementsByTagName('li').length) * 114);
    this.container.setStyle('width', width + 'px');
    if (width > this.mainwidth) {
     this.eff = new Fx.Style(this.container, 'margin-left', {duration: 100});
     mainobj
      .adopt(new Element('a').addClass('fleft').setProperties({'href': '#', 'tabindex': '0'}).appendText('jobbra').addEvent('click', this.moveright.bind(this)))
      .adopt(new Element('a').addClass('fright').setProperties({'href': '#', 'tabindex': '0'}).appendText('balra').addEvent('click', this.moveleft.bind(this)))
     ;
    };
   }
  });


var wu = new function() {
var ad_tmr = null;
var ad_std = false;
var ad_fnc = new Array();
this.csrf = function() {
return 'e74454c1b09c141a7ac336a90aa3ccfc';
}
this.adfncs = function() {
var len = ad_fnc.length;
for (var n = 0; n < len; n++) if (typeof(ad_fnc[n]) == 'function') ad_fnc[n].call(this);
}
this.afterdom = function() {
if (arguments.callee.done) return; else arguments.callee.done = true;
if (ad_tmr) clearInterval(ad_tmr);
wu.adfncs();
var as = document.getElementsByTagName('a');
var aslen = as.length;
for (var n = 0; n < aslen; n++) if (as.item(n).className.indexOf('wu_newwindow') > -1) wu.ev(as.item(n), 'click', function(e) {
window.open(this.getAttribute('href'));
return wu.stop(e);
});
}
this.ev = function(obj, e, func) {
if (e == 'afterdom') ad_fnc.push(func);
else if (obj.addEventListener) obj.addEventListener(e, func, false);
else if (obj.attachEvent) obj.attachEvent('on' + e, func);
}
this.target = function(e) {
if (!e) e = window.event;
if (!e) return null;
if (e.target) return e.target;
else if (e.srcElement) return e.srcElement;
else return null;
}
this.stop = function(e) {
var e = e || window.event;
if (e) {
e.cancelBubble = true;
if (typeof e.stopPropagation == 'function') e.stopPropagation();
e.returnValue = false;
if (typeof e.preventDefault == 'function') e.preventDefault();
};
return false;
}
}
if (/WebKit/i.test(navigator.userAgent)) {
wu.ad_tmr = setInterval(function() { if (/loaded|complete/.test(document.readyState)) wu.afterdom(); }, 10);
wu.ad_std = true;
};
if (!wu.ad_std && document.addEventListener) {
document.addEventListener('DOMContentLoaded', wu.afterdom, false);
wu.ad_std = true;
};
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
document.getElementById("__ie_onload").onreadystatechange = function() { if (this.readyState == "complete") wu.afterdom(); };
wu.ad_std = true;
/*@end @*/
if (!wu.ad_std) wu.ev(window, 'load', wu.adfncs);