/* ÀÏ¹Ý¿ë*/
function viewFlash(width,height,file) {
	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='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='"+file+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>");
	document.write("</object>");
}
/*¹è°æÅõ¸í ÀÏ¹Ý¿ë*/
function viewFlashTrans(width,height,file) {
	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='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='"+file+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'  wmode='transparent'></embed>");
	document.write("</object>");
}
/* º¯¼öÀü´Þ¿ë*/
function viewFlashNum(width,height,file,thisPage) {
	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='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='"+file+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='flashVars' value='pageNum="+thisPage+"'>");
	document.write("<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' flashVars='pageNum="+thisPage+"'></embed>");
	document.write("</object>");
}
/* ¹è°æÅõ¸í º¯¼öÀü´Þ¿ë*/
function viewFlashTransNum(width,height,file,thisPage) {
	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='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='"+file+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<param name='flashVars' value='pageNum="+thisPage+"'>");
	document.write("<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' flashVars='pageNum="+thisPage+"' wmode='transparent'></embed>");
	document.write("</object>");
}

/* Äü¸Þ´º ½ºÅ©·Ñ¸µ //
* ·¹ÀÌ¾î ÀÌµ¿ ½ºÅ©¸³Æ®
* Á¦ÀÛÀÚ : iezn(iezn@iezn.com, MSN: iezn@iezn.com)
* È¨ÆäÀÌÁö : http://iezn.com
* »ç¿ë¹æ¹ý : È¨ÆäÀÌÁö ÇÏ´Ü¿¡ new quickMove(object ÀÌµ¿ÇÒ·¹ÀÌ¾î,integer ÀÌµ¿½Ã ºê¶ó¿ìÁ®»ó´Ü°üÀÇ offset °ª);
* ÁÖÀÇ»çÇ× 
* - ¹Ýµå½Ã ·¹ÀÌ¾îÀÇ position °ªÀº absolute °ªÀÌ¾î¾ß ÇÕ´Ï´Ù
* - ·¹ÀÌ¾îÀÇ ÃÊ±âÀ§Ä¡´Â left,top ½ºÅ¸ÀÏ·Î Á¤ÀÇµÇ¾î ÀÖ¾î¾ß ÇÕ´Ï´Ù. (º¸ÀÌ´Â À§Ä¡¿¡¼­ ½½¶óÀÌµù µË´Ï´Ù)
* - DOM BASE ·Î Á¦ÀÛµÇ¾ú±â ¶§¹®¿¡ ¿Ã¹Ù¸£Áö ¾ÊÀº html ÆäÀÌÁö¿¡¼­ ¿¡·¯°¡ ³¯ ¼ö ÀÖ½À´Ï´Ù (¿¹: ÀÌ·±°æ¿ì´Â µå¹°Áö¸¸ body ÅÂ±×°¡ Á¸ÀçÇÏÁö ¾Ê°Å³ª ÇÑ°³ÀÌ»ó Á¸ÀçÇÒ°æ¿ì µî..)
* - ½½¶óÀÌµù ·¹ÀÌ¾î¿¡ background:url ·Î ¹è°æÀ» ÀÌ¹ÌÁö·Î »ç¿ëÇÏÁö ¸¶½Ã±â ¹Ù¶ø´Ï´Ù. ½½¶óÀÌµù½Ã IE ºê¶ó¿ìÁ®¿¡¼­ Áö¼ÓÀûÀ¸·Î ÆÄÀÏÀ» ¿¢¼¼½º ÇÕ´Ï´Ù 
*/

function initMoving(target, topPosition, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = target;
	obj.initTop = topPosition;
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.left = obj.initLeft;
	obj.style.top = obj.top + "px";

	obj.getTop = function() {
		if (document.documentElement.scrollTop) {
			return document.documentElement.scrollTop;
		} else if (window.pageYOffset) {
			return window.pageYOffset;
		} else {
			return 0;
		}
	}
	obj.getHeight = function() {
		if (self.innerHeight) {
			return self.innerHeight;
		} else if(document.documentElement.clientHeight) {
			return document.documentElement.clientHeight;
		} else {
			return 620;
		}
	}
	obj.move = setInterval(function() {
		//pos = obj.getTop() + obj.getHeight() / 2 - 15;
		pos = obj.getTop() + topPosition;

		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit
		if (pos < obj.topLimit)
			pos = obj.topLimit

		interval = obj.top - pos;
		obj.top = obj.top - interval / 5;
		obj.style.top = obj.top + "px";
	}, 30)
	}
/* //Äü¸Þ´º ½ºÅ©·Ñ¸µ */