Manager = new WardenClient();

var gp = '/img';
var gpUi = '/img/ui';

var WO_VOID = null;

wardenLoading = setInterval(function() {
  if(typeof window.V == 'undefined' || !V('loadme'))
    return;
  clearInterval(wardenLoading);
  if(window.WO_SERVER_VERSION != window.WO_CLIENT_VERSION || typeof window.WO_CLIENT_VERSION == 'undefined') {
    alert('Old client version detected, try to reload the page via (ctrl + F5) or manually clear your browser\'s cache.');
    return;
  }
  vsk_drag_load();
  WO_VOID = v(vsk_h('div')).set('id', 'wo_void').move(-1000,-1000).dock(document.body).hide(1);
  Manager.xml_load('/lib-js/ui.v-'+window.WO_CLIENT_VERSION+'.xml');
  Manager.WOSEC.init();
}, 250);


VSK_DRAG_SHADOW_TRANSPARENCY = 75;

VSK_COOLTIP_INTERACTIVE = false;
VSK_COOLTIP_SPACE_Y = 15;
VSK_COOLTIP_WIDTH = 400;
VSK_COOLTIP_CLOSETIME = 0;
VSK_COOLTIP_GFX_PATH = '/img/ui/';
VSK_COOLTIP_GFX_SIZE = [5,5,20,12,-2];
VSK_COOLTIP_LAYOUT_CSS = {
  font: 'bold 10px Verdana, Arial, Helvetica',
  color: '#8f7f6f',
  padding: '5px'
};
VSK_COOLTIP_SKIN_CSS = {
  backgroundColor : '#22160f'
};
VSK_COOLTIP_FX_TYPE = '';
VSK_COOLTIP_FX_TIME = 300;
VSK_COOLTIP_FADE = 80;
VSK_COOLTIP_PD = 'ac';

VSK_FX_INTERVAL = VUI_IS_IE ? 30 : 25;

/* theme related functions (move to own file at some point) */

function btnDeletePressed(Skin) {
  Skin.set_style({backgroundImage:'url(/img/ui/btn_delete_1.gif)'});
}

