function include_script (type, defer, src)
{
	var script = document.createElement("script") ;
	script.type = type, script.defer = defer ;
	document.getElementsByTagName('head')[0].appendChild(script) ;
	script.src = src ;
}

include_script("text/javascript", true, "/common/js/comUtil.js") ;
include_script("text/javascript", true, "/common/js/xmlhttp.js") ;



//------------------- SWF Á¦¾îÇÔ¼ö ½ÃÀÛ
/**
 *	version 1.5
 *	ÃÖÁ¾¼öÁ¤ÀÏ : 2008. 11. 10
 *
 *	-- ÇÃ·¡½Ã·Î´õ °´Ã¼»ý¼º ±âº»»ç¿ë¹æ¹ý ---
 *	<script language="javascript" type="Text/JavaScript">
 *		var setFlash = new SWFLoader();
 *		setFlash.init( '³ÐÀÌ', '³ôÀÌ', 'ÆÄÀÏ°æ·Î', ÃÑ ¸Å°³º¯¼ö°ª);
 *		setFlash.parameter('ÆÄ¶÷ÀÌ¸§','°ª'); //ÀÌ¹Ì ±âº»¿É¼Ç »ç¿ëÁß
 *		setFlash.wmode('window'); //ÀÌ¹Ì ±âº»¿É¼Ç('transparent') »ç¿ëÁß
 *		setFlash.id('¾ÆÀÌµðÀÌ¸§'); //¿¹) ID_SWFÆÄÀÏÀÌ¸§
 *		setFlash.alt('°ª');	// ÇÃ·¡½Ã ´ëÃ¼ ÅØ½ºÆ® °ª ÀÔ·Â
 *		setFlash.layer('div ¾ÆÀÌµð ÀÌ¸§')  //¿¹) <div id='SWFÆÄÀÏ¸íLayer'></div> 
 *		setFlash.show( );
 *	</script>
 *
 *	SWFÆÄÀÏ ¾ÆÀÌµð Ç¥ÁØÈ­ »ç¿ë¹æ¹ý : ID_ÆÄÀÏ¸í(´ë¼Ò¹®ÀÚ±¸ºÐ) ¿¹Á¦ : ÆÄÀÏ¸íÀÌ navi.swf ÀÎ°æ¿ì --> 'ID_navi'
 *
 *	-- setFlash.layer() »ç¿ë½Ã ¹æ¹ý - ±âº»»ç¿ë¹æ¹ýÀ» showSWFLayer() ÇÔ¼ö·Î
 *     °´Ã¼¸¦ °¨½ÎÁÖ°í ¸Þ¼­µåÈ£Ãâ ½Ã ÀÎÀÚ·Î Div ¾ÆÀÌµð °ªÀ» ³Ñ°ÜÁØ´Ù.
 *	
 *	<script language="javascript" type="Text/JavaScript">
 *		function showSWFLayer( layername) {
 *			var setFlash = new SWFLoader();
 *			setFlash.init( '³ÐÀÌ', '³ôÀÌ', 'ÆÄÀÏ°æ·Î', ÃÑ ¸Å°³º¯¼ö°ª);
 *			setFlash.parameter('ÆÄ¶÷ÀÌ¸§','°ª'); //ÀÌ¹Ì ±âº»¿É¼Ç »ç¿ëÁß
 *			setFlash.id('¾ÆÀÌµðÀÌ¸§'); //¿¹) ID_SWFÆÄÀÏÀÌ¸§
 *			setFlash.layer(layername)  //¿¹) <div id='SWFÆÄÀÏ¸íLayer'></div>
 *			setFlash.show();
 *		}
 *  </script>
 *
 *	<a href="javascript:showSWFLayer('siteMapLayer')">¿­±â</a>
 *
 *	-- ÃÖÁ¾ Ãß°¡¼öÁ¤ ³»¿ë
 *	url ÀÔ·Â½Ã "&" ¿¥ÆÛ¼¾µå ±âÈ£ --> "&amp;" ÀÚµ¿Ä¡È¯±â´É Ãß°¡ 
 *
 */

function SWFLoader() {
	var obj = new String;
	var parameter = new String;
	var embed = new String;
	
	var classId = new String;
    var codeBase = new String;
	var pluginSpage = new String;
	var embedType = new String;	
	var allParameter = new String;	
	
	var src = new String;
	var width = new String;
	var height = new String;
	var id = new String;
	var layer = new String;
	var arg = new String;
	var altText = new String;
	var wmode = new String;

	this.init = function ( w, h, s, a ) {
		width = w; //³ÐÀÌ
		height = h; //³ôÀÌ
		src = s; //ÆÄÀÏ°æ·Î
		arg = String(a).replace(/\&/gi, '%26'); // ¸Å°³º¯¼ö

		wmode = 'transparent'; //¸ðµå¼³Á¤

		classId = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
		codeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';
		pluginSpage = 'http://www.macromedia.com/go/getflashplayer';
		embedType = 'application/x-shockwave-flash';

		parameter += "<param name='allowScriptAccess' value='always'>\n";
		parameter += "<param name='allowFullScreen' value='false'\n>";
		parameter += "<param name='movie' value='"+ s + "'>\n";
		parameter += "<param name='quality' value='high'>\n";
		parameter += "<param name='base' value='.'>\n";
		parameter += "<param name=FlashVars value='arg="+arg+"'>\n";
	}
	
	//ÇÃ·¡½Ã ¿ÀºêÁ§Æ® ¿É¼Ç¼³Á¤
	this.parameter = function ( param, value ) {
		 parameter += "<param name='"+param +"' value='"+ value + "'>\n";
	}

	// ÇÃ·¡½Ã wmode ¼³Á¤ setFlash.wmode('window')
	this.wmode = function ( value ) {
		wmode = value;
	}

	// ÇÃ·¡½Ã ¾ÆÀÌµð ¼³Á¤
	this.id = function ( value ) {
		id = value;
	}
	
	// ÇÃ·¡½Ã ´ëÃ¼ÅØ½ºÆ® ¼³Á¤
	this.alt = function ( value ) {
		altText = value;
	}

	// ÇÃ·¡½Ã »ðÀÔ ·¹ÀÌ¾î ¼³Á¤
	this.layer = function ( value ) {
		if(value == undefined) {
			layer = "";
		} else {
			layer = value;
		}
	}

	this.show = function () {
		obj = '<object id="'+id+'" width="'+width+'" height="'+height+'" classid="'+classId+'" codebase="'+codeBase+'">\n'+
			parameter +
			'<param name="wmode" value="'+wmode+'">\n'+
			'<!--[if !IE]>-->\n' +
			'<object type="application/x-shockwave-flash" data="' + src + '" width="' + width + '" height="' + height + '" name="' + id + '">\n' +
				parameter +
				'<param name="wmode" value="'+wmode+'">\n'+
			'<!--<![endif]-->\n' +
				'<div class="alt-content alt-' + id + '">' + altText + '</div>\n' +
			'<!--[if !IE]>-->\n' +
			'</object>\n' +
			'<!--<![endif]-->\n' +
		'</object>';

		if(layer == "") {
			document.write(obj);
		}else{
			var div = document.getElementById( layer);
			div.style.display = "";
			div.innerHTML = obj;
		}
	}
}

function hideSWFLayer(div) {
	var div = document.getElementById( div);
	div.style.display = "none";
	div.innerHTML = "";
}

function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	}
	else {
		return document[movieName];
	}
 }

 function callExternalInterface(movieId) {
    thisMovie(movieId).moveMc();	
}
//------------------- SWF Á¦¾îÇÔ¼ö ³¡

function messageBeta() {
	alert("µðÁöÅÐ¿÷½º »çÀÌÆ®´Â º£Å¸¿ÀÇÂ ÁßÀÔ´Ï´Ù. \n ÇÁ·ÎÁ§Æ®¿¡ ´ëÇÑ ¹®ÀÇ³ª ±âÅ¸ ¹®ÀÇ»çÇ×Àº TEL 3397-0441 \n jsh@digitalworks.co.kr·Î ¹®ÀÇÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.");
}

function pngLoader(w, h, url, link, target) {
	var setFlash = new SWFLoader();
	var arg = [url, link, target];
	setFlash.init(w, h, '/images/flash/pngLoader.swf', arg);
	setFlash.id('hanCyberLink');
	setFlash.show( );
}

//* image rollover *//
	function overRoll( obj ) {
		obj.src = obj.src.replace( 'off.gif', 'on.gif' );
	}
	function outRoll( obj ) {
		obj.src = obj.src.replace( 'on.gif', 'off.gif' );
	}
	function famlistAction() {	
		var target = document.getElementById('familyList');
		target.style.display = (target.style.display=='block' ? 'none':'block');
	}
