
var KeynoteDocument = new Class({
	
	ua        : "",
	isWindows : false,
	isIOS     : false,
	
	

	//----------------------------------------------------------------------------------------------------
	//initialize
	
	initialize: function() {
		
		this.ua = navigator.userAgent;
		if(this.ua.toLowerCase().match("windows")) {
			this.isWindows = true;
			$(document.body).addClass("windows");
		}
		
		if(navigator.platform.match(/iPad|iPod|iPhone/)) {
			this.isIOS = true
			$(document.body).addClass("ios");
		}
		
		new Fx.SmoothScroll({
			links: "a",
			duration: 500,
			wheelStops: true
		});
	},
	
	
	popup: function(elem, opt) {
		var width  = (opt && opt.width)  ? opt.width  : 700;
		var height = (opt && opt.height) ? opt.height : 500;
		
		var w = window.open(elem.href, '', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes');
		w.focus();
	}
	
	
});





window.addEvent("domready", function(){
	$keynote = new KeynoteDocument();
});




