﻿	function scrapService(type, data)
	{
		
		switch(eval(type))
		{
			case 0:
				source = '<img src="'+data+'" border=0>';
			break;
			case 1:
			
				f_name    = 'MILLER';
				f_value   =  data;
				f_width   =  '100%';
				f_height  =  '100%';
				f_align   =   'CM';
				f_param   =   '';

				
				source = '';	
				source=source+'<object id="'+f_name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+f_width+'" height="'+f_height+'">';
				source=source+'<param name="movie" value="http://www.miller.co.kr/flash/scrap/flvPlayer.swf" />';
				source=source+'<param name="quality" value="high" />';
				source=source+'<param name="menu" value="false" />';
				source=source+'<param name="wmode" value="transparent" />';
				source=source+'<param name="allowScriptAccess" value="always" />';
				source=source+'<param name="showLiveConnect" " value="true" />';
				source=source+'<param name="allowFullScreen" value="true" />';
				source=source+'<PARAM NAME=scale VALUE=noscale>';
				source=source+'<PARAM NAME="SAlign" VALUE="'+f_align+'">';
				source=source+'<param name="FlashVars" value=\'file='+f_value+'\'>';
				source=source+'<embed src="http://www.miller.co.kr/flash/scrap/flvPlayer.swf" quality="high" name="'+f_name+'" SAlign="'+f_align+'" scale=noscale width="'+f_width+'" height="'+f_height+'" allowScriptAccess="always"  allowFullScreen="true" showLiveConnect="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" />';
				source=source+'</object>';   				
			break;
			case 2:
					var str = data.split(':#:');
					str1 = str[0];
					str2 = str[1];
					str3 = str[2];
					str4 = str[3];
					source='';
source=source+'	<table cellpadding="0" cellspacing="0" border="0" width="380px" height="500px">';
source=source+'		<tr>';
source=source+'			<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_1.jpg" /></td>';
source=source+'		</tr>';
source=source+'		<tr>';
source=source+'			<td valign="top">';
source=source+'				<table cellpadding="0" cellspacing="0" border="0">';
source=source+'					<tr>';
source=source+'						<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_2.jpg" /></td>';
source=source+'						<td valign="bottom" align="left" width="340px" height="40px" background="http://www.miller.co.kr/images/release_the_fresh/scrap_3.jpg" style="color:#ea0e16; font-size:24px; font-weight:bold; font-family:\'Arial\';">'+str1+'</td>';
source=source+'					</tr>';
source=source+'				</table>';
source=source+'			</td>';
source=source+'		</tr>';
source=source+'		<tr>';
source=source+'			<td valign="top">';
source=source+'				<table cellpadding="0" cellspacing="0" border="0">';
source=source+'					<tr>';
source=source+'						<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_4.jpg" /></td>';
source=source+'						<td align="left" width="299px" height="71px" background="http://www.miller.co.kr/images/release_the_fresh/scrap_5.jpg" style="color:#8b7249; font-size:12px; font-family:\'Dotum\';">'+str2+'</td>';
source=source+'						<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_6.jpg" /></td>';
source=source+'					</tr>';
source=source+'				</table>';
source=source+'			</td>';
source=source+'		</tr>';
source=source+'		<tr>';
source=source+'			<td valign="top">';
source=source+'				<table cellpadding="0" cellspacing="0" border="0">';
source=source+'					<tr>';
source=source+'						<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_7.jpg" /></td>';
source=source+'						<td valign="top" align="left" width="325px" height="260px" background="http://www.miller.co.kr/images/release_the_fresh/scrap_8.jpg">';
source=source+'							<div style="width:300px; height:260px; overflow-x:hidden; overflow-y:auto; color:#2c2514; font-size:11px; font-family:\'Dotum\'; line-height:17px;">';
source=source+							str3 + '<br><br>' + str4;
source=source+'							</div>';
/*source=source+'							<div style="width:300px; height:260px; overflow-x:hidden; overflow-y:auto; color:#2c2514; font-size:11px; font-family:\'Dotum\'; line-height:17px;">';
source=source+							str4                                                                                                                                                                                                                                      ;
source=source+'							</div>';*/
source=source+'						</td>';
source=source+'						<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_9.jpg" /></td>';
source=source+'					</tr>';
source=source+'				</table>';
source=source+'			</td>';
source=source+'		</tr>';
source=source+'		<tr>';
source=source+'			<td valign="top"><img src="http://www.miller.co.kr/images/release_the_fresh/scrap_10.jpg" /></td>';
source=source+'		</tr>';
source=source+'	</table>';
	
			break;
		}
		return source.toString();
		
		//copy_clip(source);

		//alert('해당 소스가 복사되었습니다. Ctrl + V 로 붙여 넣기 하세요');

	}

  
