﻿MegaZine = {
	moviename : "megazine",
	onSlideStart : function() {
	},
	onSlideStop : function() {
	},
	onPageChange : function(page) {
	},
	onMute : function() {
	},
	onUnmute : function() {
	},
	onStatusChange : function(state, prevstate) {
	},
	onFlipStatusChange : function(state, prevstate) {
	},
	onZoomChanged : function(page) {
	},
	onZoomStatusChange : function(state, prevstate, page) {
	},
	
	
	getMovie : function() { return (navigator.appName.indexOf("Microsoft") != -1) ? window[MegaZine.moviename] : document[MegaZine.moviename]; },
	getCurrentAnchor   : function() { return MegaZine.getMovie().getCurrentAnchor(); },
	getCurrentPage     : function() { return MegaZine.getMovie().getCurrentPage(); },
	isDraggingEnabled  : function() { return MegaZine.getMovie().isDraggingEnabled(); },
	setDraggingEnabled : function(enable) { MegaZine.getMovie().setDraggingEnabled(enable); },
	isMuted            : function() { return MegaZine.getMovie().isMuted(); },
	setMuted           : function(mute) { MegaZine.getMovie().setMuted(mute); },
	getPageCount       : function() { return MegaZine.getMovie().getPageCount(); },
	getPageHeight      : function() { return MegaZine.getMovie().getPageHeight(); },
	getPageWidth       : function() { return MegaZine.getMovie().getPageWidth(); },
	getStatus          : function() { return MegaZine.getMovie().getStatus(); },
	getFlipStatus      : function() { return MegaZine.getMovie().getFlipStatus(); },
	getZoomStatus      : function() { return MegaZine.getMovie().getZoomStatus(); },
	hasReflection      : function() { return MegaZine.getMovie().hasReflection(); },
	setReflection      : function(enabled) { MegaZine.getMovie().setReflection(enabled); },
	hasShadows         : function() { return MegaZine.getMovie().hasShadows(); },
	setShadows         : function(enabled) { MegaZine.getMovie().setShadows(enabled); },
	gotoAnchor         : function(id, instant) { if (instant == null) instant = false; MegaZine.getMovie().gotoAnchor(id, instant); },
	gotoPage           : function(page, instant) { if (instant == null) instant = false; MegaZine.getMovie().gotoPage(page, instant); },
	firstPage          : function(instant) { if (instant == null) instant = false; MegaZine.getMovie().firstPage(instant); },
	lastPage           : function(instant) { if (instant == null) instant = false; MegaZine.getMovie().lastPage(instant); },
	nextPage           : function(instant) { if (instant == null) instant = false; MegaZine.getMovie().nextPage(instant); },
	prevPage           : function(instant) { if (instant == null) instant = false; MegaZine.getMovie().prevPage(instant); },
	slideStart         : function() { MegaZine.getMovie().slideStart(); },
	slideStop          : function() { MegaZine.getMovie().slideStop(); },
	zoomIn             : function() { return MegaZine.getMovie().zoomIn(); },
	zoomOut            : function() { return MegaZine.getMovie().zoomOut(); },
	openZoom           : function(galleryOrPath, page, number) { if (page == null) page = -1; if (number == null) number = 0; MegaZine.getMovie().openZoom(galleryOrPath, page, number); }
};

