/**
 * @copyright 2011 Syzygy
 * @author $Author: m.stiller
 * @package hahn
 * @namespace hahn.core
 * $Id: hahn.core.js 2011-03-04 m.stiller
 * 
 * sew JavaScript: core
 */

var hahn = {};

jQuery('html').addClass('hahn');

/**
 * set some browser flags
 */
if ( window.navigator.userAgent.indexOf("Mac") > -1 ) 
{
	hahn.userSystem = "mac";
} 
if ( window.navigator.userAgent.indexOf("Windows") > -1 ) 
{
	hahn.userSystem = "win";
} 
if ( window.navigator.userAgent.indexOf("Firefox/2") > -1 ) 
{
	hahn.userAgent = "FF2";
}  
if ( window.navigator.userAgent.indexOf("Firefox/3.0") > -1 ) 
{
	hahn.userAgent = "FF30";
}
if ( window.navigator.userAgent.indexOf("Firefox/3") > -1 ) 
{
	hahn.userAgent = "FF3";
}  
if ( window.navigator.userAgent.indexOf("MSIE 6") > -1 ) 
{
	hahn.userAgent = "IE6";
} 
if ( window.navigator.userAgent.indexOf("MSIE 7") > -1 ) 
{
	hahn.userAgent = "IE7";
}
if ( window.navigator.userAgent.indexOf("MSIE 8") > -1 ) 
{
	hahn.userAgent = "IE8";
}
if ( window.navigator.userAgent.indexOf("Opera/9") > -1 ) 
{
	hahn.userAgent = "Opera9";
}
if ( window.navigator.userAgent.indexOf("WebKit") > -1 ) 
{
	hahn.userAgent = "webkit";
}
jQuery('html').addClass(hahn.userAgent);
jQuery('html').addClass(hahn.userSystem);
