function FlashObject(path, width, height) {
	var m_movie = path;
	var m_width = width;
	var m_height = height;

	this.wmode = "";
	this.id = "";
	this.quality = "high"
	this.menu = "false"
	this.allowScriptAccess = "always";
	this.bgcolor = "";
	this.FlashVars = "";
	
	this.Render = function() {
		var html;
		
		html = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"';
		html += ' width="' + m_width + '" height="' + m_height + '"';
		if (this.id != '')
			html += ' id="' + this.id + '"';
		html += '>';
		html += '<param name="movie" value="' + m_movie + '" />';
		html += '<param name="menu" value="' + this.menu + '" />';
		html += '<param name="quality" value="' + this.quality + '" />';
		if (this.wmode != '')
			html += '<param name="wmode" value="' + this.wmode + '" />';
		if (this.allowScriptAccess != '')
			html += '<param name="allowScriptAccess" value="' + this.allowScriptAccess + '" />';
		if (this.bgcolor != '')
			html += '<param name="bgcolor" value="' + this.bgcolor + '" />';
		if (this.FlashVars != '')
			html += '<param name="FlashVars" value="' + this.FlashVars + '" />';
		html += '<embed src="' + m_movie + '" quality="' + this.quality + '"';
		html += ' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"';
		html += ' width="' + m_width + '" height="' + m_height + '" wmode="' + this.wmode + '"></embed>';
		html += '</object>';
		
		document.write(html);
	};
}

function dmcProject(idx, width, height,URL) {
	var JX_Img = URL;
	var link = 'http://ad1.dmcmedia.co.kr/event.dmc/adtype=1&site=Puppyred&pp=P7&adid=20639&cmpid=1766&imgid=20552&redirect=http://www.yeuwoobi.co.kr?Media=puppyred&Location=01';

//	alert(URL+"?clickthru="+lk3+"&dmc_imgurl="+jx_img1);

	var str;
	switch(idx)
	{
		case 0:
			str = '<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ID=moneta_button WIDTH='+width+' HEIGHT='+height+'>';
			str += '<PARAM NAME="allowScriptAccess" value="always">';
			str += '<PARAM NAME=movie VALUE="'+URL+'">';
			str += '<PARAM NAME=quality VALUE=high>';
			str += '<PARAM NAME=bgcolor VALUE=#FFFFFF>';
			str += '<EMBED src="'+URL+'" quality=high WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
			str += '</EMBED>';
			str += '</OBJECT>';
			break;
		case 1:
			var lk3 = '';
			var jx_img1_p = JX_Img.lastIndexOf('/');
			var jx_img1 = JX_Img.substr(0,jx_img1_p+1);

			str = '<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ID=fx_ad WIDTH='+width+' HEIGHT='+height+'>';
			str += '<PARAM NAME="allowScriptAccess" value="always">';
			str += '<PARAM NAME=movie VALUE="'+URL+'?clickthru='+lk3+'&dmc_imgurl='+jx_img1+'">';
			str += '<PARAM NAME=quality VALUE=high>';
			str += '<EMBED src="'+URL+'?clickthru='+lk3+'&dmc_imgurl='+jx_img1+'" quality=high WIDTH='+width+' HEIGHT='+height+' TYPE="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
			str += '</EMBED>';
			str += '</OBJECT>';
	}

	document.write(str);
}
