	//var flashVersions = Math.floor(Math.random()*999999);
	var chantiVideoflashVersions = "20091011";
	
	var chanticlearVideoSWF = new Object();
	chanticlearVideoSWF.settings = new Object();
	
	//default settings
	chanticlearVideoSWF.settings.videoURL = "http://www.chanticlearpizza.com/flash/ChanticlearPizzaSpotflip.flv";
	chanticlearVideoSWF.settings.loadingGraphic = "/flash/chanti_loader.jpg";
	chanticlearVideoSWF.settings.postGraphic = "/flash/chanti_loader.jpg";
	chanticlearVideoSWF.settings.volumn = "0.5"; //0.0 thru 1.0
	
	chanticlearVideoSWF.embed = function()
	{
	
		var settings_string = new String();

		for(var type in chanticlearVideoSWF.settings)
		{
			if(chanticlearVideoSWF.settings[type] != null)
				settings_string += "&"+type+"=" + escape(chanticlearVideoSWF.settings[type]);
		}

		settings_string = settings_string.slice(1);

		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="300" id="chanticlearVideoSWFObject" align="middle">\n');
		document.write('<param name="allowScriptAccess" value="always" />\n');
		document.write('<param name="movie" value="/flash/ChanticlearVideo.swf?v='+chantiVideoflashVersions+'" />\n');
		document.write('<param name="quality" value="high" />\n');
		document.write('<param name="wmode" value="transparent" />\n');
		document.write('<param name="bgcolor" value="#ffffff" />\n');

		document.write('<param name="flashvars" value="'+settings_string+'" />\n');

		document.write('<embed src="/flash/ChanticlearVideo.swf?v='+chantiVideoflashVersions+'" quality="high" flashvars="'+settings_string+'" wmode="transparent" bgcolor="#ffffff" width="400" height="300" name="chanticlearVideoSWFObject_mz" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
		document.write('</object>\n');
		
	}