document.write ("<script type='text/javascript' src='/shared/script/swfobject.js'></script>");

document.write ("<script type='text/javascript' src='/shared/script/parseuri.js'></script>");

document.write ("<script type='text/javascript' src='/shared/script/ecl_reduced.js'></script>");

document.write ("<script type='text/javascript' src='/shared/script/kw_to_cpt.js'></script>");

document.write ("<script type='text/javascript' src='/shared/script/optlanding.js'></script>");

document.write ("<script type='text/javascript' src='/shared/script/swfresize.js'></script>");



function printHomeMovie () {

	if (deconcept.SWFObjectUtil.getPlayerVersion ()["major"] >= 9) {

		var set_theme = "";

		var get = [];

		if (typeof window.location.search != "undefined") {

			var query = window.location.search.substring(1);

			var parms = query.split("&");

			for (var i = 0; i < parms.length; i ++) {

				var p = parms[i].split("=");

				if(p.length > 1){

					get[p[0]] = p[1].substring(0,255);

				}else if(p.length > 0){

					get[p[0]] = "";

				}

			}

		}

		if (typeof get["set_theme"] != "undefined") {

			set_theme = get["set_theme"];

		}

		

		document.write (

			"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'" +

				"id='objecttagid' width='100%' height='100%'>" +

				"<param name='movie' value='http://img.mcdonalds.co.jp/shared/movie/top.swf?set_concept_id=" + optldgkeyword () + (set_theme ? "&set_theme=" + set_theme : "") + "'>" +

				"<param name='allowScriptAccess' value='always'>" +

				"<embed type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/JP-H-GET-FLASH/'" +

					"name='top' id='embedtagid' width='100%' height='100%'" +

					"src='http://img.mcdonalds.co.jp/shared/movie/top.swf?set_concept_id=" + optldgkeyword () + (set_theme ? "&set_theme=" + set_theme : "") + "'" +

					"allowScriptAccess='always'" +

				"></embed" +

			"></object>"

		);

	} else {

		location.replace ("/nonplugin.html");

	}

}