/*******************************************************************************

FILE: mud_Scripts.js
REQUIRES: mud_API.js
AUTHOR: Takashi Okamoto mud(tm) - http://www.mudcorp.com/
VERSION: 1.0 - initial public release
DATE: 09/14/2005

--------------------------------------------------------------------------------

This file is part of MudTextFlow.

	MudTextFlow is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.
	
	MudTextFlow is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with Foobar; if not, write to the Free Software
	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*******************************************************************************/

////////////////////////////////////////////////////////////////////////////////
// GLOBAL VARS

var content = "Michael Gentleman is a Japan-based conceptual artist and designer whose body of work assesses the rough, material edges of new technology. <br><br>Gentleman attended Portsmouth Polytechnic where he switched from environmental science to complete an art foundation course. <br><br>Essentially a self-taught designer, Gentleman was a member of the Innerputs Magazine collective (1985-1988) and then became Design Director of the French audio magazine Melze (1988-1989) before embarking on a career as a freelance designer. <br><br>In 1989 he was awarded a U and lc magazine citation for integrated corporate typeface and typographic design. In 1992 he was the recipient of a Magdoulet's New Perimeter prize for a collaboration with Welsh choreographer Janice Poulish. <br><br>Recent work includes commissions from Denver School of Architecture; a collaboration with statistician Lent Melman; and cover designs for Paris-based art magazine Madrigal. His work has been exhibited internationally, including Homme/Jolie (Gallery Grenet, 2002) and Grove (Soloholm, London, 2001), as well as in smaller gallery shows, including Galerie Jun Mot,in Brussels and Galerie Nils Baerk in Stockholm (both 2001). <br><br>Gentleman has published essays in Mejd, Rotterdam; Yeti, in the United States; and IDEA magazine in Japan. He currently writes a regular column for Image Magazine. <br><br>Gentleman has taught in the Visual Communications Department at Central University, Tokyo; H.I.A., Hokkaido; and been a guest speaker and visiting critic at a number of schools, including the University of California Los Angeles; Ecal in Lausanne; and Boston's Northeastern University. Currently he is also an advisor to Temple University Japan.";

var containers = new Array("column-left", "column-middle", "column-right");
var textflow;

////////////////////////////////////////////////////////////////////////////////
// FUNCTIONS

////////////////////////////////////////////////////////////////////////////////
// MOUSE EVENTS

function onWindowResize() {
	textflow.update();
}

////////////////////////////////////////////////////////////////////////////////
// INIT

function mudInit() {
	initDHTMLAPI();
	textflow = new MudTextFlow(content, containers);
	textflow.update();
	window.onresize = onWindowResize;
}

// events
// gecko, safari, konqueror and generic
if (typeof window.addEventListener != 'undefined') {
	window.addEventListener('load', mudInit, false);
}
// opera 7
else if (typeof document.addEventListener != 'undefined') {
	document.addEventListener('load', mudInit, false);
}
// win/ie
else if (typeof window.attachEvent != 'undefined') {
	window.attachEvent("onload", mudInit);
}
// rest
else {
	window.onload = mudInit;
}