//÷ñ  ũƮ
function flash(id, width, height, name){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="'+name+'">'
+'<param name="movie" value="'+id+'">'
+'<param name="quality" value="high">'
+'<param name="wmode" value="transparent">'
+'<param name="base" value=".">'
+'<param name="allowScriptAccess" value="always" />'
+'<embed base="." src="'+id+'" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" showLiveConnect="true" name="'+name+'" allowScriptAccess="always"></embed>'
+'</object>');
}
function document_write(value){
document.write(value);
}

//png
function setPng24(obj) { 
    obj.width=obj.height=1; 
    obj.className=obj.className.replace(/\bpng24\b/i,''); 
    obj.style.filter = 
    "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
    obj.src='';  
    return ''; 
} 

//淹̾ ̱,߱
function bglayer() {
//alert(document.body.scrollHeight);
if(document.all.bglayer.style.visibility=="hidden") {
document.all.bglayer.style.height=parseInt(document.body.scrollHeight);
document.all.bglayer.style.visibility="visible";

return false;
}
if(document.all.bglayer.style.visibility=="visible") {
document.all.bglayer.style.height=0;
document.all.bglayer.style.visibility="hidden";

return false;
}
};

//ã߰
function addbookmark()
{
bookmarkurl="http://www.spmedm.co.kr/" // ã⿡ ߰   URL
bookmarktitle="()" // Ʈ
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// մϴ.

function play()
 {
  spmpr.GotoFrame(1);
  spmpr.Play();
 }

// մϴ.

function stopPlay()
 {
  spmpr.GotoFrame(2);
  spmpr.StopPlay();
 }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//popup
function setCookie( name, value, expiredays ) { 
	var todayDate = new Date(); 
		todayDate.setDate( todayDate.getDate() + expiredays ); 
		document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
	} 

function closeWin() { 
	if ( document.notice_form.chkbox.checked ){ 
		setCookie( "maindiv", "done" , 1 ); 
	} 
	document.all['divpop'].style.visibility = "hidden";
}
