var vanilla={Version:"2.0",namespace:function(a){if(!a){return window}var d=vanilla.window;var c=a.split(".");for(var b=0;b<c.length;b++){var e=c[b];d[e]=d[e]||{};d=d[e]}return d},extend:function(c,a,b){if(!c||!a){return}for(property in a){if(!b||!c[property]){c[property]=a[property]}}},debug:function(a){if(!document.body){document.write(a+"<br />")}else{var b=$("#vanilla-debug");if(!b.length){b=$(document.createElement("DIV")).css({font:"menu",clear:"both"}).attr("id","vanilla-debug");$(document.body).append(b)}b.append("<br>")}},exists:function(a){if(!a){return false}var d=window;var c=a.split(".");for(var b=0;b<c.length;b++){d=d[c[b]];if(!d){return false}}return true},require:function(a){if(!vanilla.exists(a)){vanilla.console.warn("The package is required : "+a);throw ("The package is required : "+a)}},emptyFunction:function(){}};vanilla.window=this;vanilla.isBoggyIE=(document.all&&!window.opera&&(navigator.vendor!="KDE")?true:false);if(typeof console=="undefined"){vanilla.console={log:function(){},warn:function(){}}}else{vanilla.console=console}$("html").addClass("javascript");vanilla.namespace("vanilla.event");vanilla.event={KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,KEY_HOME:36,KEY_END:35,KEY_PAGEUP:33,KEY_PAGEDOWN:34,isMouseLeft:function(a){return(((a.which)&&(a.which==1))||((a.button)&&(a.button==1)))}};$.fn.extend({log:function(){vanilla.console.log(this);return this},synchronize:function(a,c){if(typeof a!=="string"){c=a;a="fx"}var b=function(){if($(this).queue(a)[0]==b){if(c){c.call(this)}$(this).dequeue(a)}}.bind(this);return this.queue(a,b)}});$.ajaxSetup({cache:false});