var isMac = (navigator.userAgent.toLowerCase().search(/macintosh/) >= 0) ? 1 : 0 ;

