"use strict"; /* Prototypes */ if(!String.prototype.trim) { String.prototype.trim = function () { return this.replace(/^\s+|\s+$/g,''); }; } var listener = { set: function (el,type,callback) { if (document.addEventListener) { el.addEventListener(type, callback, false); } else { // IE hack courtesy of http://blog.stchur.com/2006/10/12/fixing-ies-attachevent-failures var f = function() { callback.call(el); }; el.attachEvent('on'+type, f); } } }; /* Site wide functions */ // http://www.thefutureoftheweb.com/blog/adddomloadevent // retrieved 2010-08-12 var addDOMLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("