/** add_page_load_event.js allows us to run one or multiple functions on page load
The advantage of this funtion is it won't override any previously set onload functions,
and also that it will trigger at the point of HTML being ready, rather than waiting for every image to load */

/** Code to run on page load, including image rollovers and anything else fancy */
function page_setup()
{
	var so = new SWFObject("pmag.swf", "pmagswf", "100%", "100%", "8", "#cccccc");
	so.addParam('wmode', 'transparent');
	so.addVariable('xmlfile', 'emag.xml');
	so.addVariable('debugMode', 'false');
	so.useExpressInstall('media/js/swfobject/expressinstall.swf');
	so.write("pmag");

}

$(document).ready( page_setup );

