var extension={'math':{'round':function(digit,pos){if(pos<0){pos=Math.pow(10,Math.abs(pos));return Math.round(digit/pos) * pos;}else if(pos>0){pos=Math.pow(10,pos);return Math.round(digit * pos)/pos;}else{return Math.round(digit);}}},'browser':{'type':function(){var type=navigator.userAgent.toLowerCase();switch(true){case/safari/.test(type):return 'safari';case/firefox|camino/.test(type):return 'mozilla';case/opera/.test(type):return 'opera';case/msie/.test(type):return 'msie';default:return 'default';}},'width':function(){if(window.innerWidth){return window.innerWidth;}else if(document.body && document.body.offsetWidth){return document.body.offsetWidth;}else{return null;}},'height':function(){if(window.innerHeight){return window.innerHeight;}else if(document.body && document.body.offsetHeight){return document.body.offsetHeight;}else{return null;}}}};