// -*- mode: javascript; coding: utf-8 -*-

var fotografia = {

        getSectArt: function () {
		var args = {};
                args.section = 'fotografia';
		args.gallery = FSECTION;
		return args;
        },
	onLoad: function () {
		if (!window.CIMPRESADAY)
			doclocation = document.location;
		else
			doclocation = 'http://www.jornada.unam.mx' + window.CIMPRESADAY;
		var args = dodo.argsParse (doclocation);

		if (!args)
			args = fotografia.getSectArt();
		if (!args.gallery)
			args.gallery = "politica";
		var req = "/scripts/slideshow.swf?license=GUB-NS2GA3YFU09LRTO9DN6IKN49JK&xml_source=slide_config.php%3Fsection=" + args.gallery;
		if (args.photo)
			req += args.photo;
		swfobject.embedSWF (req, "foto-flash", "600", "650", "6.0.0", false, false, {wmode: "transparent"});
	}
}

dodo.onLoadPush (fotografia.onLoad);

