/***********************************************************************

* ½ºÅ©¸³Æ®¸í : ÆäÀÌÁö Å¸ÀÌÆ² Á¤ÀÇ

***********************************************************************/

document.title="ÇÏ³ª±ÝÀ¶±×·ì-Á¾ÇÕ±ÝÀ¶ ¼­ºñ½º ³×Æ®¿öÅ© ";







/***********************************************************************

* ieÆÐÄ¡¿¡ µû¸¥ ÇÃ·¡½Ã ¹× µ¿¿µ»ó View ±¸Çö (2006.04.18 ¼öÁ¤)

***********************************************************************/

function flash(id, width, height){

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=ShockwaveFlash1 name=ShockwaveFlash1>'

+'<param name="movie" value="'+id+'">'

+'<param name="quality" value="high">'

+'<param name="wmode" value="transparent">'

+'<embed src="'+id+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash" name=ShockwaveFlash1></embed>'

+'</object>');

}

function flash_global(src,id){
var inflash='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="'+id+'" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+src+'" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="'+src+'" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="'+id+'" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
document.getElementById("flashDiv").innerHTML=inflash;
}


/***********************************************************************

* ieÆÐÄ¡¿¡ µû¸¥ ÇÃ·¡½Ã ¹× µ¿¿µ»ó View ±¸Çö (2006.04.18 ¼öÁ¤)

***********************************************************************/

function flash_human(id, width, height){

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=6,0,0,0" id="human_main" align="middle">'

+'<param name="allowScriptAccess" value="sameDomain" />'

+'<param name="movie" value="'+id+'" />'

+'<param name="play" value="false" />'

+'<param name="menu" value="false" />'

+'<param name="quality" value="best" />'

+'<param name="bgcolor" value="#ffffff" />'

+'<embed src="'+id+'" play="false" menu="false" quality="best" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="human_main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'

+'</object>');

}



/***********************************************************************

* ieÆÐÄ¡¿¡ µû¸¥ ÇÃ·¡½Ã ¹× µ¿¿µ»ó View ±¸Çö (2006.04.18 ¼öÁ¤)

***********************************************************************/

function flash_biz(id, width, height){

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'">'

+'<param name="flash_component" value="ImageViewer.swc">'

+'<param name="movie" value="'+id+'">'

+'<param name="quality" value="high">'

+"<param name=\"FlashVars\" value=\"flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verdana',showControls:true,frameShow:false,slideDelay:5,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:'Random',titleColor:#333333,slideAutoPlay:false,imageURLs:['img1.jpg','img2.jpg','img3.jpg'],slideLoop:false,frameThickness:2,imageLinks:['http://macromedia.com/','http://macromedia.com/','http://macromedia.com/'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}\">"

+"<embed src=\"'+id+'\"  quality=\"high\" flashvars=\"flashlet={imageLinkTarget:'_blank',captionFont:'Verdana',titleFont:'Verdana',showControls:true,frameShow:false,slideDelay:5,captionSize:10,captionColor:#333333,titleSize:10,transitionsType:'Random',titleColor:#333333,slideAutoPlay:false,imageURLs:['img1.jpg','img2.jpg','img3.jpg'],slideLoop:false,frameThickness:2,imageLinks:['http://macromedia.com/','http://macromedia.com/','http://macromedia.com/'],frameColor:#333333,bgColor:#FFFFFF,imageCaptions:[]}\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+width+'\" height=\"'+height+'\"></embed>"

+'</object>');

}



/***********************************************************************

* ieÆÐÄ¡¿¡ µû¸¥ ÇÃ·¡½Ã ¹× µ¿¿µ»ó View ±¸Çö (2006.04.18 ¼öÁ¤)

***********************************************************************/

function wmp_player(){

document.write('<object id="WMP1" width="300" height="225" classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Microsoft?Windows?Media Player components..." type="application/x-oleobject">'

+'<param name="AutoStart" value="true">'

+'<param name="AutoRewind" value="true">'

+'<param name="DisplaySize" value="0">'

+'<param name="AutoSize" value="false">'

+'<param name="ShowDisplay" value="false">'

+'<param name="ShowStatusBar" value="false">'

+'<param name="ShowControls" value="false">'

+'<param name="EnableContextMenu" value="False">'

+'<param name="FileName" value="#">'

+'<param name="Volume" value="0">'

+'<embed type="application/x-mplayer2" pluginspage = "http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" src="#" name="WMP1" width="335" height="263"></embed>'

+'</object>');

}









/***********************************************************************

* Select Box  Å×µÎ¸® È¸»ö¶óÀÎ 1ÇÈ¼¿

***********************************************************************/

function setSelectBox(selName){

	sel = eval("document.all."+selName);



	borderColor = sel.bordercolor;

	selWidth = parseInt(sel.width);

	bgColor = sel.bgcolor;

	rectLeft = selWidth-2;

	spanWidth = selWidth;

	header  = "<span style='position:relative;margin-right:0px;";

	header += "width:"+spanWidth+";height:18px;border:1px solid "+borderColor+";background-color:"+bgColor+";'>\n";

	header += "<span style='position: absolute;left:0px;top:-1px;";

	header += "width:"+selWidth+";height:17px;clip:rect(2,"+rectLeft+",16,2);'>\n";

	footer = "</span></span>";



	sel.style.backgroundColor = bgColor;

	sel.style.width = selWidth;



	sel.outerHTML = header+sel.outerHTML+footer;

}





/***********************************************************************

* layer show hidden 

***********************************************************************/

function LayerSH(LayerName,Status) {

	ns4 = (document.layers)?true:false

	ie4 = (document.all)?true:false

	

		if (ns4) {

			LayerN = document.layers[LayerName]

			if (Status == 'show') LayerN.visibility = 'show';

			if (Status == 'hide') LayerN.visibility = 'hidden';

		}	

		if (ie4) {

			LayerN = document.all[LayerName].style

			if (Status == 'show') LayerN.visibility = 'visible';

			if (Status == 'hide') LayerN.visibility = 'hidden';

		}

	}	

	



/***********************************************************************

* print ¿øÇÏ´Â ¸¸ Ãâ·ÂµÇ°Ô ÇÏ±âÀ§ÇÑ ½ºÅ©¸³Æ® 

  º» ÇÁ·ÎÁ§Æ®¿¡¼­´Â ¹Ùµð ¿µ¿ª¿¡¼­¸¸ Ãâ·ÂÀÌ µÇ°Ô ¼ÂÆÃ µÇ¾îÀÖÀ½

***********************************************************************/

function printDiv () {

  if (document.all && window.print) {

    window.onbeforeprint = beforeDivs;

    window.onafterprint = afterDivs;

    window.print();

  }

}

function beforeDivs () {

  if (document.all) {

    objContents.style.display = 'none';

    objSelection.innerHTML = document.all['d1'].innerHTML;

  }

}

function afterDivs () {

  if (document.all) {

    objContents.style.display = 'block';

    objSelection.innerHTML = "";

  }

}



/***********************************************************************

* ÆùÆ®»çÀÌÁî Á¶Àý  3´Ü°è Á¶ÀýÀÌ¸ç °¢ Å×ÀÌºí¿¡ ch ¶ó´Â class¸¦ 

  Àû¿ëÇÏ¿©¼­ ÆùÆ®»çÀÌÁî Á¶ÀýÀÌ °¡´ÉÇÏ°Ô ¼ÂÆÃµÊ 

***********************************************************************/

function fontSz(state){

	var styleObject = document.styleSheets[0];

	var ruleObject = styleObject.rules;

	

	var defa;

	var num = 100;

	var count = 2; // ÇÑ¹ø Å¬¸¯ ½Ã Áõ°¨ÇÏ´Â ÇÈ¼¿ ´ÜÀ§

	defa = document.frm1.FA.value*1;

	

	if(state=="+"){

		if(defa<=16){  // 18ÇÈ¼¿±îÁö Áõ°¡

			for (var i = 0; i < 5; i++) {

				ruleObject[i].style.fontSize = defa + count;

			}

			document.frm1.FA.value = defa + count;

			document.frm1.FA.value = document.frm1.FA.value.substring(0,2)*1;

		/*	for(i=1; i<=num; i++){

				if (document.all["Ch"+i]){

				document.all["Ch"+i].style.fontSize=defa+count;

				document.frm1.FA.value = document.all["Ch"+i].style.fontSize;

				document.frm1.FA.value = document.frm1.FA.value.substring(0,2)*1;

				}				

			}*/

		

		}

		

	}

	if(state=="-"){

	

		if(defa>12){  // 12ÇÈ¼¿±îÁö °¨¼Ò

			for (var i = 0; i < 5; i++) {

				ruleObject[i].style.fontSize = defa - count;

			}

			document.frm1.FA.value = defa - count;

			document.frm1.FA.value = document.frm1.FA.value.substring(0,2)*1;

		

		/*	for(i=1; i<=num; i++){

				if (document.all["Ch"+i]){

				document.all["Ch"+i].style.fontSize=defa-count;

				document.frm1.FA.value = document.all["Ch"+i].style.fontSize;

				document.frm1.FA.value = document.frm1.FA.value.substring(0,2)*1;

				}				

			}*/

		

		}



	}



}





/***********************************************************************

* ÆË¾÷Ã¢ÀÌ ½ºÅ©·ÑÀÌ ¾øÀ»°æ¿ì

***********************************************************************/

function popwindow(pop,width,height)

{

	var url = pop;  

	var wd = width;

	var he = height;

	

	window.open(url,"","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")

}

/***********************************************************************

* ÆË¾÷Ã¢ÀÌ ½ºÅ©·ÑÀÌ ÀÖÀ»°æ¿ì

***********************************************************************/

function popwindow2(pop,width,height)

{

	var url = pop;  

	var wd = width;

	var he = height;

	

	window.open(url,"","toolbar=0,menubar=0,scrollbars=yes,resizable=no,width=" + wd +",height=" + he + ";")

}



function getSelectValue(obj)

{

   for(i=0; i<obj.length; i++)

   {

      if(obj[i].selected) return obj[i].value;

   }

}



/***********************************************************************

* ¾ÆÀÌÇÁ·¹ÀÓ »çÀÌÁî Á¶Àý 

***********************************************************************/

 function iframe_autoresize(arg) {

     arg.height = 

 eval(arg.name+".document.body.scrollHeight");

 }

 

 

/***********************************************************************

* ½ºÅ©·Ñ¸µ 

***********************************************************************/

 

function D_SkyScraper(dss_oid , dss_width , dss_height , dss_sx , dss_sy , dss_fx , dss_fy , dss_sp , dss_per) {

	// º¯¼öÀâ±â	

	this.sx = 0 ;

	this.sy = 0 ;

	this.fx = 0 ;

	this.fy = 0 ;

	this.sp = 1 ;

	this.per = 1000 ;	

	this.ssObj = top.document.getElementById(dss_oid) ;

	

	

	if (dss_sx) this.sx = parseInt(dss_sx) ;	

	if (dss_fx) this.fx = parseInt(dss_fx) ;

	if (dss_fy) this.fy = parseInt(dss_fy) ;

	if (dss_sp) this.sp = parseFloat(dss_sp) ;

	if (dss_per) this.per = parseInt(dss_per) ;



	// ½ºÅ©·¡ÆÛ »ý¼º

	if (this.ssObj) {

		this.ssObj.style.display = "none" ;

		this.ssHTML = this.ssObj.innerHTML ;

		this.ssObj.innerHTML = "" ;

	}

	if (this.ssHTML.length > 0) {

		top.document.write('<div id="DssBody_'+this.oid+'" style="position:absolute ; left:'+this.sx+'px ; top:'+this.sy+'px ; z-index:1000">') ;

		top.document.write(this.ssHTML) ;

		top.document.write('</div>') ;

		this.ssObj = top.document.getElementById("DssBody_"+this.oid) ;

		this.ssIntervalID = setInterval("parent.active()" , this.per) ;

	}



	// ½ºÅ©·¡ÆÛ ¿£Áø (½ÇÁ¦ ÀÛµ¿ºÎºÐÀÌ¹Ç·Î Á¶½ÉÁ¶½ÉÇØ¼­ ¼öÁ¤^^)

	function parent.active() {

		this.now_x = parseInt(parent.ssObj.style.left) ;

		this.now_y = parseInt(parent.ssObj.style.top) ;

		this.new_x = top.document.body.scrollLeft + parent.fx ;

		this.new_y = top.document.body.scrollTop + parent.fy ;

		if (top.document.body.clientHeight < (parent.fy + parent.sheight)) {

			this.new_y = top.document.body.scrollTop ;

		}

		if (this.new_y > (top.document.body.scrollHeight - parent.sheight)) {

			this.new_y = top.document.body.scrollHeight - parent.sheight ;

		}

		if (this.new_x > (top.document.body.scrollWidth - parent.swidth)) {

			this.new_x = top.document.body.scrollWidth - parent.swidth ;

		}

		this.next_x = parseInt(this.now_x + ((this.new_x - this.now_x) * parent.sp)) ;

		this.next_y = parseInt(this.now_y + ((this.new_y - this.now_y) * parent.sp)) ;

		if ((this.now_x == this.next_x) && (this.next_x != this.new_x)) {

			this.next_x -= (this.new_x - this.next_x) / (this.next_x - this.new_x) ;

		}

		if ((this.now_y == this.next_y) && (this.next_y != this.new_y)) {

			this.next_y -= (this.new_y - this.next_y) / (this.next_y - this.new_y) ;

		}

		parent.ssObj.style.left = this.next_x ;

		parent.ssObj.style.top = this.next_y ;

	}



}



/***********************************************************************

* ¼¿·ºÆ®¹Ú½º ÀÌµ¿

***********************************************************************/



function goURLbySelect(url,target) {

	if (url) {

		target.document.location.href = url ;

	}

}

/***********************************************************************

* ¾ÆÀÌÇÁ·¹ÀÓ »çÀÌÁîÀÚµ¿Á¶Àý ¼Ò½º 2

***********************************************************************/

function reSize() {

        try{

        var objBody = ifrm.document.body;

        var objFrame = document.all["ifrm"];

        ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);

        

        if (ifrmHeight > 300) {

                objFrame.style.height = ifrmHeight

        }else{

                objFrame.style.height = 300;

        }

        objFrame.style.width = '600'

        }catch(e){}

}

function init_iframe() {

        reSize();

        setTimeout('init_iframe()',200)

}

init_iframe();

function goURL_pop_sub(url,name,wid,hei){
	window.open(url, name, "width="+wid+",height="+hei);
}
function goURL_pop(url,name,wid,hei){
	window.open(url, name, "width="+wid+",height="+hei);
}

/***********************************************************************

* ±â¾÷¿Â¶óÀÎ ºê·Î½´¾î ÆË¾÷

***********************************************************************/
function popwindow(pop,width,height)
{
	var url = pop;  
	var wd = width;
	var he = height;
	
	window.open(url,"ÀÌº¥Æ®¸í","toolbar=0,menubar=0,scrollbars=no,resizable=no,width=" + wd +",height=" + he + ";")
}
