///******************************************************************************
// *
// * filename dwf_all.js
// *  
// *
// * requirements
// * .
// *
// * date 2006-04-17 #1
// *
// * author windlesszone
// * MoongTaeng (windlesszone@dreamwiz.com)
// *
// * 
// * todo 
// *
// * bug 
// *
// * comment
// *
///******************************************************************************

// ---index of contents
//    |
//    +-- all contents : dwfAll(s1)  // clone: f_all(s1)
//    | |
//    | +-- s1 : document contents
//    +-- flash tag    : dwxFlash(s1,s2,s3)
//    | |
//    | +-- s1 : url of the flash movie file 
//    | +-- s2 : width
//    | +-- s3 : height
//    +-- embed tag    : dwxfEmbed(s1,s2,s3,s4,s5)
//      |
//      +-- s1 : url of the file
//      +-- s2 : is auto? 0:false 1:true
//      +-- s3 : fix size of the file
//      +-- s4 : width
//      +-- s5 : height

//////////////////////////////////////////////////////////////////
/// All Write
//////////////////////////////////////////////////////////////////
function f_all(s1)
{
	document.write(s1);
}
function dwfAll(s1)
{
	document.write(s1);
}

//////////////////////////////////////////////////////////////////
/// FlashMovie
//////////////////////////////////////////////////////////////////
function dwfFlash(s1, s2, s3)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+s2+'" height="'+s3+'">');
document.write('<param name="movie" value="'+s1+'">');
document.write('<param name="quality" value="high">');
document.write('<embed src="'+s1+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+s2+'" height="'+s3+'"></embed>');
document.write('</object>');
}

//////////////////////////////////////////////////////////////////
/// embed
//////////////////////////////////////////////////////////////////
function dwfEmbed(s1, s2, s3, s4, s5)
{
document.write('<embed src='+s1+' autostart=');
if( s2==0 ) document.write('false');
else document.write('true');
if( s3==1) document.write(' width='+s4+' height='+s5);
document.write(' ></embed>')
}

