function addStyle(root)
{
	/* Add necessary Dojo stylesheets */
	document.writeln('<style type="text/css">'); 	
	document.writeln('@import "' + root + 'dijit/themes/dijit.css";');
	document.writeln('@import "' + root + 'dijit/themes/tundra/tundra.css";');
	document.writeln('@import "' + root + 'dojox/image/resources/Lightbox.css";');
	document.writeln('@import "' + root + 'dojox/image/resources/image.css";');
	document.writeln('</style>');
	
	/* Add bouncey effect CSS */
	document.writeln('<style type="text/css"> ' +
	'.imgBounce {' +
		 'margin-right: 20px;' + 
		 'width:75px;' +
		 'height:90px;' + 
		 'vertical-align: middle;' +
		 'position: relative;' + 
		 'top: 0;' +
	'} ' +
	':focus, a {' +
		'outline: none;' +
		'-moz-outline-style: none;' +
	'}' +
	'</style>');
}

function setup(root)
{
	/* requires the Lightbox and FisheyeLite modules */
	dojo.require("dojox.image.Lightbox");
	dojo.require("dojox.widget.FisheyeLite");
	
	/* you set the magnification properties here */
	dojo.addOnLoad(function(){
		dojo.query("img.imgBounce").forEach(function(n){
			new dojox.widget.FisheyeLite({
				properties: {
					height: 1.40,
					width: 1.40}
			},n);
		});
	});
	
	addStyle(root);
}