
<!--
	var objBGM = top.fliving_bgm.Player;
	function img_new_window(name,title) {
		if(name=='')
			return;
		var x=screen.width/2-150/2; //Ã¢À» È­¸é Áß¾ÓÀ¸·Î À§Ä¡ 
		var y=(screen.height-30)/2-150/2;
		window.open('/fliving/img_view.php?image='+name+'&title='+title,'','width=150,height=150,scrollbars=1,resizable=1,top='+y+',left='+x)
	}
	
	// À½¾Ç²ô±â
	function BGMShutDown ()
	{
		if ( objBGM != null)
		{
			objBGM.controls.stop();
		}
	}
	// À½¾ÇÄÑ±â
	function BGMStartUp ()
	{
		if ( objBGM != null)
		{
			objBGM.controls.play();
		}
	}


	// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, À©µµ¿ì¸ðµå)
	function flashWrite(url,w,h,id,bg,win){
		
		// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
		if ( id == "menu_main" || id == "menu_sub")
		{
			if ( objBGM != null )
			{
				url += "?state="+objBGM.PlayState;
			}

			var flashStr=
			"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
			"<param name='movie' value='"+url+"' />"+
			"<param name='wmode' value='"+win+"' />"+
			"<param name='menu' value='false' />"+
			"<param name='quality' value='high' />"+
			"<param name='bgcolor' value='"+bg+"' />"+
			"<embed src='"+url+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
			"</object>";
		} else {
			var flashStr=
			"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
			"<param name='movie' value='"+url+"' />"+
			"<param name='wmode' value='"+win+"' />"+
			"<param name='menu' value='false' />"+
			"<param name='quality' value='high' />"+
			"<param name='bgcolor' value='"+bg+"' />"+
			"<embed src='"+url+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
			"</object>";
		}

		// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
		document.write(flashStr);

	}

	function fnLoadPngs() {
		// ÀÌ¹ÌÁö Åõ¸íÇÏ°Ô ¸¸µé±â
		var rslt = navigator.appVersion.match(/MSIE (\d+\.\d+)/, '');
		var itsAllGood = (rslt != null && Number(rslt[1]) >= 5.5);

		for (var i = document.images.length - 1, img = null; (img = document.images[i]); i--) {
		if (itsAllGood && img.src.match(/\.png$/i) != null) {
			var src = img.src;
			img.style.width = img.width + "px";
			img.style.height = img.height + "px";
			img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
			img.src = "/cima/lib/spacer.gif";
		}
		
		img.style.visibility = "visible";
		}
	}


	function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
	{
		toolbar_str = toolbar ? 'yes' : 'no';
		menubar_str = menubar ? 'yes' : 'no';
		statusbar_str = statusbar ? 'yes' : 'no';
		scrollbar_str = scrollbar ? 'yes' : 'no';
		resizable_str = resizable ? 'yes' : 'no';
		window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	}

	function compareTwoString(source_str, str) {
		if(source_str.search(str) == 0 && source_str.length == str.length)
			return true;
		else
			return false;
	}

	//ÇÃ·¡½Ã È°¼ºÈ­ÇÏ±â
	function embededFlash() {
		var args = embededFlash.arguments;
		var argc = args.length;
		
		var myObjectElement;
		var myParamElement = new Array(argc);
		
		myObjectElement = document.createElement('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%"></object>');
		
		for(var paramOrder = 1; paramOrder < argc; paramOrder++) {
			myParamElement[paramOrder] = document.createElement(args[paramOrder]);
			myObjectElement.appendChild(myParamElement[paramOrder]);
		}

		args[0].appendChild(myObjectElement);
	}

	function goURL( url, target ){
		if( typeof(target) == "undefined" )
			location.href = url;
		else
			eval(target).location.href = url;
	}
	function replaceURL( url, target ){
		if( typeof(target) == "undefined" )
			location.replace(url);
		else
			eval(target).location.replace(url);
	}
	function PageMove( part, sub, target ){
		if ( part == 'home' )
		{
			if( typeof(target) == "undefined" )
				location.href = "/troiback/home.php";
			else
				eval(target).location.href= "/troiback/home.php";
		} 
		else 
		{
			if( typeof(target) == "undefined" )
				location.href = "/troiback/sub.php?gid=" + part + "&th=" + sub;
			else{
				eval(target).location.href = "/troiback/sub.php?gid=" + part + "&th=" + sub;
			}
		}

	}
	function on_resize()
	{
		try 
		{ 
			if ( parent.document.board_frame == '[object]' )
				parent.resize_frame( parent.document.board_frame.name ); 
		}
		catch(e) { }
	}
	function resize_frame(name){
		try	{ 
			var oBody = document.frames(name).document.body;
			var oFrame = document.all(name);

			oFrame.style.width 	= oBody.scrollWidth + (oBody.offsetWidth-oBody.clientWidth);
			oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight-oBody.clientHeight);

			if (oFrame.style.height == "0px" || oFrame.style.width == "0px")
			{
				oFrame.style.width = "800";
				oFrame.style.height = "300px"; 
				window.status = 'iframe resizing fail.';
			}
			else
			{
				window.status = '';
			}
		}
		catch(e) {
			window.status = 'Error: ' + e.number + '; ' + e.description;
		}
	}

	function WebLink( src ){
		window.open(src);
	}
	function show_div( ID){
		Obj = document.getElementById(ID);
		Obj.style.setAttribute('display', 'block');
	}
	function hide_div( ID){
		Obj = document.getElementById(ID);
		Obj.style.setAttribute('display', 'none');
	}
	/**** ÇÁ¸°Æ® ÆäÀÌÁö ****/
	/**** frame ID·Î PrintTempArea°¡ ÀÖ¾î¾ß ÇÏ¸ç DIV ID·Î PrintArea¸¦ ÁöÁ¤ÇØ¾ß ÇÔ **/
	function PrintPage(){
		PA = document.getElementById("PrintArea");
		PTA = document.frames("PrintTempArea").document;

		PTA.open();
		PTA.writeln("<html><head><title>Æ®·ÎÀÌ¹é / Troiback</title><meta http-equiv='Content-Type' content='text/html; charset=euc-kr'><link href='/chca/lib/common.css' rel='stylesheet' type='text/css'><link href='/chca/skin/product/sub2/style.css' rel='stylesheet' type='text/css'></head><body>"); //½ºÅ¸ÀÏµîÀ» ÁöÁ¤
		PTA.writeln("<table width=550 align=center><tr><td>"); // º»¹® Ãâ·Â
		PTA.writeln(PA.innerHTML); // º»¹® Ãâ·Â
		PTA.writeln("</td></tr></table></body></html>");
		PTA.close();
		PTA.execCommand('Print');
	}


	function viewPic(img){ 
	  foto1= new Image(); 
	  foto1.src=(img); 
	  contImg(img); 
	} 
	function contImg(img){ 
	  if((foto1.width!=0)&&(foto1.height!=0)){ 
		viewImg(img); 
	  } 
	  else{ 
		funzione="contImg('"+img+"')"; 
		intervallo=setTimeout(funzione,20); 
	  } 
	} 
	function viewImg(img){ 
	  largh=foto1.width; 
	  altez=foto1.height; 

	  var winl = (screen.width-largh)/2;
	  var wint = (screen.height-altez)/2;
	  
	  stringa="width="+largh+",height="+altez+",top="+wint+",left="+winl+",leftmargin=0";
	  if ( altez > (screen.height-100)) {
		altez = screen.height-100; 
		largh += 20;
		var wint = (screen.height-100-altez)/2;
		stringa="width="+largh+",height="+altez+",top="+wint+",left="+winl+",leftmargin=0,scrollbars=yes";
	  }
	  if ( largh > (screen.width-20)) {
		largh = screen.width-20; 
		altez += 20;
		var winl = (screen.width-20-largh)/2;
		stringa="width="+largh+",height="+altez+",top="+wint+",left="+winl+",leftmargin=0,scrollbars=yes";
	  }

	  finestra=window.open("","viewpic",stringa); 
	  finestra.document.write("<html><head><title>Image Viewer</title></head><body leftmargin=0 topmargin=0><a href=# onclick=\"self.close();\"><img border=0 src='"+img+"' alt='ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é Ã¢ÀÌ ÀÚµ¿À¸·Î ´ÝÈü´Ï´Ù'></a></body></html>");
	} 
-->