/*!
 * classie - class helper functions
 * from bonzo https://github.com/ded/bonzo
 * 
 * classie.has( elem, 'my-class' ) -> true/false
 * classie.add( elem, 'my-new-class' )
 * classie.remove( elem, 'my-unwanted-class' )
 */
(function(c){function a(f){return new RegExp("(^|\\s+)"+f+"(\\s+|$)")}var b,d,e;if("classList" in document.documentElement){b=function(f,g){return f.classList.contains(g)};d=function(f,g){f.classList.add(g)};e=function(f,g){f.classList.remove(g)}}else{b=function(f,g){return a(g).test(f.className)};d=function(f,g){if(!b(f,g)){f.className=f.className+" "+g}};e=function(f,g){f.className=f.className.replace(a(g)," ")}}c.classie={hasClass:b,addClass:d,removeClass:e,has:b,add:d,remove:e}})(window);