// ÇÃ·¡½Ã ÀÚµ¿½ÇÇà
var flashnum = 0;
var flashA = [];
function dp_flash(url,width,height,id,bgcolor,align,allowscriptaccess,wmode)
//ÇÃ·¡½¬url , °¡·Î , ¼¼·Î, id, ¹è°æ»ö(#FFFFFF), Á¤·Ä¹æ¹ý(middle) , ¿¢¼¼½ºÇã¿ë(samedomain or always) ,¹è°æÅõ¸í(true or false)
//(swf url , width, height ÇÊ¼ö)
{
	if(url && width && height)
	{
		var obj = "";
		if(!id) id = "flash"+flashnum;
		if(!bgcolor) bgcolor = "#ffffff";
		if(!align) align = "";
		if(!allowscriptaccess) allowscriptaccess = "samedomain";
		obj += '<!-- saved from url=(0013)about:internet -->'
		obj += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'" id="'+id+'" align="'+align+'">';
		obj += '<param name="allowscriptaccess" value="'+allowscriptaccess+'" />';
		obj += '<param name="movie" value="'+ url  +'" />'; 
		obj += '<param name="menu" value="true" />';
		obj += '<param name="scale" value="noscale" />';
		obj += '<param name="quality" value="high" />'; 
		if(wmode) obj += '<param name="wmode" value="transparent" />';
		obj += '<param name="bgcolor" value="'+bgcolor+'" />'; 
		obj += '<embed src="'+ url  +'" quality=high bgcolor="'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+id+'" align="'+align+'"  allowscriptaccess="'+allowscriptaccess+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		obj += '</object>';
		document.write(obj);
		flashnum++;
	}
	else
	{
		document.write("can not display flash");
	}
	
	//flashA[id] = thisMovie(id);
}


// ¸Þ´ºÀÌ¹ÌÁö ·Ñ¿À¹ö
function img_change(mode)
{
 var reg = /(topmenu.+)_(on|off)/;
 var find = event.srcElement.src.match(reg)[0];
 var name = event.srcElement.src.match(reg)[1];
  
 event.srcElement.src = event.srcElement.src.replace(find,name+'_'+mode);
} 


// ¿ÍÀÎ Sorting ¸Þ´º
function jumpMenu(targ,selObj,restore){ 
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function newsletter() {		
	// NewWindow=window.open('/mail/newsletter_form.php', '','width=492,height=315');
	window.document.location.href = "/mail/newsletter_form.php";
}