var basePath = path ? path : null;
var beyondFlash = { 
	pageID : 1,
	onStart : function () {
	},
	onStop : function () {
		$(".above_flash").css({ "z-index": 6 });
		$("#page"+this.pageID).slideDown("slow");
		this.lastID = this.pageID;
	},
	onClose : function () {
		$(".above_flash").css({ "z-index": 0 });
		$("#page"+this.lastID).slideUp("fast");
	},
	getFlashMovie : function (movieName) {
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		return (isIE) ? window[movieName] : document[movieName];
	}
}
// Beyond Flash by Marc Grabanski
$(document).ready(function() {
	// Create Flash content with Unobtrusive Flash Object
	var FO = { movie:basePath+"paper.swf", id:"flash_content", name:"flash_content", width:"700", height:"630", majorversion:"8", build:"0", wmode:"transparent", quality:"high", setcontainercss:"true" };
	UFO.create(FO, "flash_holder");
	// Set the links to communicate with Flash
	$("#beyond_flash #control_menu a").click(function() {
		beyondFlash.getFlashMovie("flash_content").goPlay();
		beyondFlash.pageID = this.id.substr(9);
		return false;
	});
	// Set the content divs to not display
	$("#pages div").css({ display: 'none' });
	$("#beyond_flash").css({ height: '430px' });
	$("#pages").css({ 'z-index': 7,	position: 'absolute', top: '20px', left:'30px', width: '470px' });
});

