// this is your css for mac
var cssStyleForMac = './styles/mac.css';


// core code start here
(function() {
	// check the user operation system
	var userAgent = window.navigator.userAgent.toLowerCase();
	var isWin = userAgent.indexOf('windows') !== -1;
	var isUnix = userAgent.indexOf('linux') !== -1 || userAgent.indexOf('unix') !== -1;
	var isMac = !isWin && !isUnix && userAgent.indexOf('mac') != -1;
	
	// append the css for mac
	if ( isMac ) {
	//if ( isWin ) {
		var macStyle = document.createElement('link');
		macStyle.setAttribute('href', cssStyleForMac);
		macStyle.setAttribute('rel', 'stylesheet');
		macStyle.setAttribute('type', 'text/css');
		document.getElementsByTagName('head')[0].appendChild(macStyle);
	}
})();
