/* -------------------------------------------------------------- 
init.js
kol a17 js
by Nobleskine from AREA 17 2009

init.js is meant to run at top of the page to address the following:
— browser detection to target browser specific css as soon as possible. Thus it should be loaded before css files.
- avoid css hacks (as much as possible)
— font replacement techniques such as Cufon.

init.js is not meant to hold the whole javascript related to the behavior/user interaction of the site. 
Behavior/user interaction should be loaded at the bottom of the page.
-------------------------------------------------------------- */

/*
CSS Browser Selector v0.3.5 (Feb 05, 2010)
Rafael Lima (http://rafael.adm.br)
http://rafael.adm.br/css_browser_selector
License: http://creativecommons.org/licenses/by/2.5/
Contributors: http://rafael.adm.br/css_browser_selector#contributors
*/
function css_browser_selector(l){var a=l.toLowerCase(),e=function(b){return a.indexOf(b)>-1},i="gecko",k="webkit",m="safari",d="opera",f=document.getElementsByTagName("html")[0],j=[(!(/opera|webtv/i.test(a))&&/msie\s(\d)/.test(a))?("ie ie"+RegExp.$1):e("firefox/2")?i+" ff2":e("firefox/3.5")?i+" ff3 ff3_5":e("firefox/3")?i+" ff3":e("gecko/")?i:e("opera")?d+(/version\/(\d+)/.test(a)?" "+d+RegExp.$1:(/opera(\s|\/)(\d+)/.test(a)?" "+d+RegExp.$2:"")):e("konqueror")?"konqueror":e("chrome")?k+" chrome":e("iron")?k+" iron":e("applewebkit/")?k+" "+m+(/version\/(\d+)/.test(a)?" "+m+RegExp.$1:""):e("mozilla/")?i:"",e("j2me")?"mobile":e("iphone")?"iphone":e("ipod")?"ipod":e("mac")?"mac":e("darwin")?"mac":e("webtv")?"webtv":e("win")?"win":e("freebsd")?"freebsd":(e("x11")||e("linux"))?"linux":"","js"];c=j.join(" ");f.className+=" "+c;return c}css_browser_selector(navigator.userAgent);
