// ################## Script For Flash & ActiveX #########################

// Writer : 김천겸
// email : prussian@skcc.com
// Last Update : 2006-02-07


// +++++++++++++  MakeFlashString(source,id,width,height,wmode) ++++++++
//
// source: source url --> 플래쉬 파일의 경로
// id: flash id
// width: source width
// height: source height
// wmode: wmode --> "none, transparent, opaque"
// otherparam : 추가 파라미터 "<param name='myParam' value='myValue' />
//
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


// +++++++++++++  MakeObjectString(classid, codebase, name, id, width,height, param) ++++++++
//
// classid: classid --> 플래쉬 파일의 경로
// codebase: cab파일 위치 및 버전정보
// name :
// id :
// width: source width
// height: source height
//
// wmode: wmode --> "none, transparent, opaque"
// param : 추가 파라미터 "<param name='myParam' value='myValue' />
//
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

// Example
// DocumentWrite(MakeFlashString('image/ml_flash.swf','emb1','330','520','opaque'));
// SetInnerHTML(document.all.mm, MakeFlashString('image/ml_flash.swf','emb1','330','520','opaque'));
// @@주의 사항
//  - 상호작용 없는 컨텐츠는 DocumentWrite, SetInnerHTML 둘다 사용 가능
//  - 상호작용 있는 컨텐츠는 SetInnerHTML만 사용 가능
// #######################################################################


function MakeFlashString(source,id,width,height,wmode, otherParam)
{
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=quality value=high />"+otherParam+"<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeObjectString(classid, codebase, name, id, width,height, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}

// FLV동영상 플레이 테그 만들기 2008-04-08.Forever
function MakeFlashVIewCf(fileSRC){
  var mv = "<embed id='flvFlash' pluginspage='http://www.macromedia.com/go/getflashplayer' src='http://vita500.lhsoft.co.kr/movie/movie.swf?movie_path="+fileSRC+"' width='350' height='300' type='application/x-shockwave-flash' wmode='transparent'></embed>";
  document.getElementById("flvPlayMovie").innerHTML = mv;
}

function MakeFlashVIewUCC(fileSRC){
  var mv = "<embed id='flvFlash' pluginspage='http://www.macromedia.com/go/getflashplayer' src='http://vita500.lhsoft.co.kr/movie/funny_ucc.swf?movie_path="+fileSRC+"' width='273' height='201' type='application/x-shockwave-flash' wmode='transparent'></embed>";
  document.getElementById("flvPlayMovie").innerHTML = mv;
}

function MakeFlashVIewUCC2(fileSRC,id,width,height){
  var mv = "<embed id='"+id+"_swf' pluginspage='http://www.macromedia.com/go/getflashplayer' src='http://vita500.lhsoft.co.kr/movie/funny_ucc.swf?movie_path="+fileSRC+"' width='"+width+"' height='"+height+"' type='application/x-shockwave-flash' wmode='transparent'></embed>";
  document.getElementById(id).innerHTML = mv;
}

// innerHTML Type
function SetInnerHTML(target, code)
{
	target.innerHTML = code;
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}
