<!--
var dialogTool = {
	obj : document.createElement("DIV"),
	obj_id : "objPopupLayerBackGroundID",
	obj2 : document.createElement("SPAN"),
	obj2_id : "objPopupLayerBodyID",
	owid : 0,
	ohei : 0,
	stop : 0,
	img_X : 0,
	img_prevX : 0,
	img_nextX : 0,
	arr1 : '', arr2 : '', arr3 : '', arr4 : '', arr5 : '', arr6 : '',

	init : function (arguments)
	{

							this.arr1 = (arguments.length>0)?arguments[0]:'';
							this.arr2 = (arguments.length>1)?arguments[1]:'';
							this.arr3 = (arguments.length>2)?arguments[2]:'';
							this.arr4 = (arguments.length>3)?arguments[3]:'';
							this.arr5 = (arguments.length>4)?arguments[4]:"javascript:void(dialogTool.close());";
							this.arr6 = (arguments.length>5)?arguments[5]:"scroll";
							this.img_X = this.arr1;
							

							this.owid = document.body.offsetWidth;
							this.ohei = document.body.offsetHeight;
							this.stop = document.body.scrollTop;

							with (this.obj.style){
								position = "absolute";
								left = 0;
								top = 0;
								width = "100%";
								height = document.body.scrollHeight;
								backgroundColor = "#000";
								filter = "Alpha(Opacity=50)";
								//opacity = "0.5";
							}
							this.obj.id = this.obj_id;
							this.obj.onclick = "void(dialogTool.close())";
							document.body.appendChild(this.obj);

							with (this.obj2.style){
								position = "absolute";
								left = 0;
								top = this.stop;
								height = "100%";
							}
							this.obj2.id = this.obj2_id;
	},
	init_end : function (html,overS)
	{
							var overS = (overS)?overS:'auto';
							var inner_table =	
							''
							+	'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;top:0px;left:0px;padding:0px;margin:0px;text-align:center;overflow:visible;"><tr><td align="center" valign="middle" style="text-align:-moz-center;">'
							+ '<DIV style="width:100%;top:0px;left:0px;padding:0px;margin:0px;text-align:center;overflow:visible;">'
							+	'<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
							+	'	<tr>'
							+	'		<td width="10" height="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/top_left.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/top_left.png\', sizingMethod=\'crop\');width:10px;height:10px;" nowrap></td>'
							+	'		<td height="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/bg.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/bg.png\', sizingMethod=\'scale\');height:10px;" nowrap></td>'
							+	'		<td width="10" height="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/top_right.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/top_right.png\', sizingMethod=\'crop\');width:10px;height:10px;" nowrap></td>'
							+	'	</tr>'
							+	'	<tr>'
							+	'		<td width="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/bg.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/bg.png\', sizingMethod=\'scale\');width:10px;" nowrap></td>'
							+	'		<td>'
							+			html
							+	'		</td>'
							+	'		<td width="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/bg.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/bg.png\', sizingMethod=\'scale\');width:10px;" nowrap></td>'
							+	'	</tr>'
							+	'	<tr>'
							+	'		<td width="10" height="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/bottom_left.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/bottom_left.png\', sizingMethod=\'crop\');width:10px;height:10px;" nowrap></td>'
							+	'		<td height="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/bg.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/bg.png\', sizingMethod=\'scale\');height:10px;" nowrap></td>'
							+	'		<td width="10" height="10" bgcolor="" style="overflow:hidden;background-image:url(\'http://img.pomnago.com/dialog/bottom_right.png\')!important;background-image:none;filter:none!important;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://img.pomnago.com/dialog/bottom_right.png\', sizingMethod=\'crop\');width:10px;height:10px;" nowrap></td>'
							+	'	</tr>'
							+	'</table>'
							+	'</DIV></td></tr></table>';
							this.obj2.innerHTML = inner_table;
							document.body.appendChild(this.obj2);
							document.body.style.overflowY = overS;
							try{ document.getElementById('objPopupLayerBodyID_btn_confirm').focus(); } catch(e){}
							/**/
							try{
								iframeTool.resize(document.getElementById('OBJ_IFRAME_LAYER_POPUP'));
							} catch(e){}
							/**/
	},
	end_view : function (t,html,overS)
	{

									document.onkeydown = this.keypressed;
									window.onkeydown = this.keypressed;

									var overS = (overS)?overS:'auto';
									var _title = this.arr4.split("||");
									var _point = this.arr5.split("||");
									var title = _title[0];
									var title_sub = _title[1];
									var point = _point[0];
									var point2 = _point[1];
									var title_sub_html = '';
									if( title_sub!='' ) {
										var title_sub_html = '<nobr style="width:443px;overflow:hidden;" title="'+title+'\n'+title_sub+'"><span class="font_40">'+title_sub+'</span></nobr>';
									}
									
									var star_img_20 = "star_03";
									var star_img_40 = "star_03";
									var star_img_60 = "star_03";
									var star_img_80 = "star_03";
									var star_img_100 = "star_03";
									if( point > 18 ) var star_img_20 = "star_01";
									else if ( point > 2 )  var star_img_20 = "star_02";
									if( point > 38 ) var star_img_40 = "star_01";
									else if ( point > 22 )  var star_img_40 = "star_02";
									if( point > 58 ) var star_img_60 = "star_01";
									else if ( point > 42 )  var star_img_60 = "star_02";
									if( point > 78 ) var star_img_80 = "star_01";
									else if ( point > 62 )  var star_img_80 = "star_02";
									if( point > 98 ) var star_img_100 = "star_01";
									else if ( point > 82 )  var star_img_100 = "star_02";

									switch(t){
									case("women_goods"):
										var top_bg_id = "look_title2";
									break;
									case("women_shop"):
										var top_bg_id = "look_title2";
									break;
									case("men_goods"):
										var top_bg_id = "look_title3";
									break;
									case("men_shop"):
										var top_bg_id = "look_title3";
									break;
									case("kids_goods"):
										var top_bg_id = "look_title4";
									break;
									case("kids_shop"):
										var top_bg_id = "look_title4";
									break;
									case("goods_search"):
										var top_bg_id = "look_title2";
									break;
									default:
										var top_bg_id = "look_title";
									break;
									}
									var inner_table =	''
									+	'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;top:0px;left:0px;padding:0px;margin:0px;text-align:center;overflow:visible;"><tr><td align="center" valign="middle" style="text-align:-moz-center;">'
									+	'<div id="site_total">'
									+	'<div id="site_total_sub2" >'
									+	'<!--top-->'
									+	'<div id="top_look">'
									+	''
									+	'	<div id="look_text">'
									+	'		<span class="font_37">»óÇ°º¸±â´Â <b>·¹ÀÌ¾î(layer)</b>·Î Á¦ÀÛµÇ¾ú½À´Ï´Ù. Ã¢À»´ÝÀ¸½Ã·Á¸é ¿À¸¥ÂÊÀÇ <b>´Ý±â ¹öÆ°</b>À» Å¬¸¯ÇØÁÖ¼¼¿ä.</div>'
									+	'		<div id="look_close"><a href="javascript:void(dialogTool.close());"><img src="http://img.pomnago.com/look/btn_close.gif"></a></div>'
									+	'		<div id="'+top_bg_id+'">'
									+	'		<div id="title_tex">'
									+	'			<ul>'
									+	'				<li><span class="font_28" title="'+title+'\n'+title_sub+'">'+title+' </span></li>'
									+	'			</ul>'
									+	'			<ul>'
									+	'				<li>'+title_sub_html+'</li>'
									+	'			</ul>'
									+	'		</div>'
									+	'		<div id="look_score">';
									if( this.arr5 ) {
									inner_table  +=	'			<ul>'
									+	'				<li><img src="http://img.pomnago.com/look/'+star_img_20+'.gif"></li>'
									+	'				<li><img src="http://img.pomnago.com/look/'+star_img_40+'.gif"></li>'
									+	'				<li><img src="http://img.pomnago.com/look/'+star_img_60+'.gif"></li>'
									+	'				<li><img src="http://img.pomnago.com/look/'+star_img_80+'.gif"></li>'
									+	'				<li><img src="http://img.pomnago.com/look/'+star_img_100+'.gif"></li>'
									+	'				<li style="padding:5px 0px 0px 5px;"><span class="font_41">'+point+'</span><span class="font_42"> ('+point2+'¸í)</span></li>'
									+	'			</ul>';
									}
									inner_table  +=	'		</div>'
									+	'	</div>'
									+	'</div>'
									+	'<!--//top-->'
									+	''
									+	'<!--middle-->'
									+	'<div id="middle_look">'
									//+	'	<div id="look_page" class="box">'
									+	html
									//+	'	</div>'
									+	'</div>'
									+	'<!--//mlddle-->'
									+	''
									+	'<!--btm-->'
									+	'<div id="btm_look"></div>'
									+	'<!--//btm-->'
									+	'</div>'
									+	'</div>'
									+	'</td></tr></table>';

									this.obj2.innerHTML = inner_table;
									document.body.appendChild(this.obj2);
									document.body.style.overflowY = overS;
									try{ document.getElementById('objPopupLayerBodyID_btn_confirm').focus(); } catch(e){}
									
									try{
										iframeTool.resize(document.getElementById('OBJ_IFRAME_LAYER_POPUP'));
									} catch(e){}
									this.selectboxAct('hidden');

	},
	end_popup : function (t,html,overS)
	{

									document.onkeydown = this.keypressed;
									window.onkeydown = this.keypressed;

									var overS = "hidden";
									var inner_table =	''
									+	'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;top:0px;left:0px;padding:0px;margin:0px;text-align:center;overflow:visible;"><tr><td align="center" valign="middle" style="text-align:-moz-center;">'
									+	'<table cellpadding="0" cellspacing="0" border="0">'
									+	'	<tr>'
									+	'		<td align="right"><a href="javascript:void(dialogTool.close());"><img src="http://img.pomnago.com/look/btn_close.gif"></a></td>'
									+	'	</tr>'
									+	'	<tr>'
									+	'		<td align="center" height="25" bgcolor="#505050"><span class="font_37"><b>·¹ÀÌ¾î(layer)</b>·Î Á¦ÀÛµÇ¾ú½À´Ï´Ù. Ã¢À»´ÝÀ¸½Ã·Á¸é ¿À¸¥ÂÊÀÇ <b>´Ý±â ¹öÆ°</b>À» Å¬¸¯ÇØÁÖ¼¼¿ä.</td>'
									+	'	</tr>'
									+	'	<tr>'
									+	'		<td align="center" style="border:3px solid #505050;">'
									+	html
									+	'		</td>'
									+	'	</tr>'
									+	'</table>'
									+	'</td></tr></table>';

									this.obj2.innerHTML = inner_table;
									document.body.appendChild(this.obj2);
									document.body.style.overflowY = overS;
									try{ document.getElementById('objPopupLayerBodyID_btn_confirm').focus(); } catch(e){}
									
									try{
										iframeTool.resize(document.getElementById('OBJ_IFRAME_LAYER_POPUP'));
									} catch(e){}
									this.selectboxAct('hidden');

	},
	end_ipopup : function (t,html)
	{

									document.onkeydown = this.keypressed;
									window.onkeydown = this.keypressed;

									var overS = "hidden";
									var inner_table =	''
									+	'<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0" style="width:100%;top:0px;left:0px;padding:0px;margin:0px;text-align:center;overflow:visible;"><tr><td align="center" valign="middle" style="text-align:-moz-center;">'
									+	'<table cellpadding="0" cellspacing="0" border="0">'
									+	'	<tr>'
									+	'		<td align="center">'
									+	html
									+	'		</td>'
									+	'	</tr>'
									+	'</table>'
									+	'</td></tr></table>';

									this.obj2.innerHTML = inner_table;
									document.body.appendChild(this.obj2);
									document.body.style.overflowY = overS;
									try{ document.getElementById('objPopupLayerBodyID_btn_confirm').focus(); } catch(e){}
									
									try{
										iframeTool.resize(document.getElementById('OBJ_IFRAME_LAYER_POPUP'));
									} catch(e){}
									this.selectboxAct('hidden');

	},
	selectboxAct : function(chk) {
		for (i=0; i<document.forms.length; i++) {
			for (k=0; k<document.forms[i].length; k++) {
				el = document.forms[i].elements[k];    
				if (el.type == "select-one") el.style.visibility = chk;
			}
		}	
	},
	keypressed : function(e) {
		//this.arr1 = (arguments.length>0)?arguments[0]:'';
		if (e == null) {
			var resultkey = event.keyCode;
			//alert(resultkey);
		} else {
			var resultkey = e.keyCode;
		}
		try{
//				alert(resultkey);
				if( resultkey==36 || resultkey==101 ) {
					//dialogTool.img(0,1); return false;
				}else if( resultkey==104 || resultkey==100 || resultkey==33 || resultkey==38 || resultkey==37 ) {
					//dialogTool.img(dialogTool.img_prevX,2); return false;
				} else if ( resultkey==13 || resultkey==98 || resultkey==102 || resultkey==34 || resultkey==39 ||  resultkey==40 ) {
					//dialogTool.img(dialogTool.img_nextX,2); return false;
				} else if ( resultkey==27 ) {
					dialogTool.close(); return false;
				} else  {
					//return false;
				}
		}catch(e){}
	}, 
	gsearch : function()
	{
									this.init(arguments);
									var keywords = this.arr2;
									var url = this.arr1+keywords;
									var width = this.arr3;
									var height = this.arr4;
									this.arr4 = "°Ë»ö °á°ú||\""+keywords+"\"(À¸)·Î °Ë»öÇÑ ¸ñ·ÏÀÔ´Ï´Ù.";
									this.arr5 = "";
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('goods_search',html_source,this.arr6);
	},
	women : function()
	{
									this.init(arguments);
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('women_goods',html_source,this.arr6);
	},
	women2 : function()
	{
									this.init(arguments);
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('women_shop',html_source,this.arr6);
	},

	men : function()
	{
									this.init(arguments);
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('men_goods',html_source,this.arr6);
	},
	men2 : function()
	{
									this.init(arguments);
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('men_shop',html_source,this.arr6);
	},

	kids : function()
	{
									this.init(arguments);
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('kids_goods',html_source,this.arr6);
	},
	kids2 : function()
	{
									this.init(arguments);
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_view('kids_shop',html_source,this.arr6);
	},

	close : function (id)
	{
		var id=(id)?id:'';
		if( id != '' ) {
			var oText = document.getElementById(id);
			oText.parentNode.removeChild(oText);
		} else {
			var oText = document.getElementById(this.obj_id);
			oText.parentNode.removeChild(oText);
			var oText = document.getElementById(this.obj2_id);
			oText.parentNode.removeChild(oText);
			document.body.style.overflowY = "scroll";
		}
		this.selectboxAct('visible');
	},

	keypressed : function(e) {
		if (e == null) {
			var resultkey = event.keyCode;
			//alert(resultkey);
		} else {
			var resultkey = e.keyCode;
		}
		try{
				if( resultkey==38 ) {
					dialogTool.img(this.img_X,1); return false;
				} else if( resultkey==37 ) {
					dialogTool.img(this.img_prevX,2); return false;
				} else if ( resultkey==39 ) {
					dialogTool.img(this.img_nextX,2); return false;
				} else if ( resultkey==27 || resultkey==40 ) {
					dialogTool.close(); return false;
				} else  {
					//return false;
				}
		}catch(e){}
	}, 

	img : function()
	{
									if( arguments.length<=1 ) this.init(arguments);
									else this.arr1 = (arguments.length>0)?arguments[0]:'';

									this.img_X = this.arr1;
									try{
										var ititle = document.all.image_title;
										var isrc = document.all.image_src;
										var itext = document.all.image_text;
									}catch (e)	{
										var ititle = document.getElementById("image_title");
										var isrc = document.getElementById("image_src");
										var itext = document.getElementById("image_text");
									}

									var img_len = isrc.length-1;
									var url = isrc[this.img_X].value;
									var title = ititle[this.img_X].value;
									var text = itext[this.img_X].value;

									this.img_prevX = ( (this.img_X)>0 ) ? this.img_X-1 : '-1' ;
									this.img_nextX= ( (this.img_X)<img_len ) ? this.img_X+1 : '-1' ;

									document.onkeydown = this.keypressed;
									window.onkeydown = this.keypressed;

									var prev_html = "";
									var next_html = "";
									if( this.img_prevX!='-1' ) {
										var prev_html = '<a onclick="javascript:void(dialogTool.img('+(this.img_prevX)+',1));" style="cursor:pointer;">ÀÌÀü</a>';
									} else {
										var prev_html = 'ÀÌÀü';
									}
									if( this.img_nextX!='-1' ) {
										var next_html = '<a onclick="javascript:void(dialogTool.img('+(this.img_nextX)+',1));" style="cursor:pointer;">´ÙÀ½</a>';
									} else {
										var next_html = '´ÙÀ½';
									}
									var page_move_html = prev_html;
									if( prev_html!='' && next_html!='' ) page_move_html += " | ";
									page_move_html += next_html;

									iframeTool.maxWidth = this.owid-38;
									iframeTool.maxHeight = this.ohei-118;

										var html_source_top = '<tr>'
										+	'				<td style="overflow:hidden;background-color:#336699;height:10px;">'
										+	'				<table cellpadding="0" cellspacing="0" border="0" width="100%" height="" bgcolor=""><tr>'
										+	'				<td width="100%" align="left" style="padding:8px;text-align:left;">'
										+	'				<b style="font-size:13px;font-family:Verdana;color:ffffff;">'+title+'</b>'
										+	'				</td>'
										+	'				<td width="" align="right" valign="middle" style="padding:5px;" nowrap>'
										+	'				<button type="button" onclick="javascript:void(dialogTool.close());" '
										+	'				style="width:12px;height:15px;border:0px;cursor:pointer; '
										+	'				background-color:#336699;color:ffffff;font-size:14px;font-family:Verdana;'
										+	'				margin:0px;padding:0px;line-height:1.2;" '
										+	'				onfocus="blur(this);">¡¿</button></td>'
										+	'				</tr>'
										+	'				</table></td>'
										+	'			</tr>';
										var html_source_btn =	'<tr>'
										+	'				<td style="text-align:right;padding:8px;background-color:#ddd;border-top:1px solid #999;">'
										+	'				<table cellpadding="0" cellspacing="0" border="0" width="100%" height="" bgcolor=""><tr>'
										+	'				<td width="100%" align="left" style="padding:0px;text-align:left;">'
										+	'				<span style="font-size:11px;font-family:Dotum;color:333;">'+text+'</span>'
										+	'				</td>'
										+	'				<td width="" align="right" valign="middle" style="padding:0px;" nowrap>'
										+ page_move_html
										+	'				</td>'
										+	'				</tr>'
										+	'				</table></td>'
										+	'			</tr>';

									var html_image = '<img src="'+url+'" alt="'+text+'">';
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+ html_source_top
									+	'			<tr>'
									+	'			<td>'
									+ html_image + '</td>'
									+	'			</tr>'
									+ html_source_btn
									+	'		</table>';
									this.init_end(html_source,this.arr6);

	},
	iframe : function()
	{
									this.init(arguments);
								
									
									var url = this.arr1;
									var title = this.arr2;
									var text = this.arr3;
									var btn = this.arr4;

									iframeTool.maxWidth = this.owid-38;
									iframeTool.maxHeight = this.ohei-118;

									var html_source_top= '';
									if( title!='' ) {
										var html_source_top = '<tr>'
										+	'				<td style="background-color:#444;filter:Alpha(Opacity=60);">'
										+	'				<table cellpadding="0" cellspacing="0" border="0" width="100%" height="" bgcolor=""><tr>'
										+	'				<td width="100%" align="left" style="padding:2px 0px 2px 0px;">'
										+	'				<B style="font-size:13px;font-family:Verdana;color:ffffff;">'+title+'</B>'
										+	'				</td>'
										+	'				<td width="" align="right" valign="middle" style="padding:2px;" nowrap>'
										+	'				<button type="button" onclick="javascript:void(dialogTool.close());" '
										+	'				style="width:12px;height:12px;border:0px;cursor:pointer; '
										+	'				background-color:#444;color:ffffff;font-size:14px;font-family:Verdana; '
										+	'				margin:0px;padding:0px;line-height:1;" '
										+	'				onfocus="blur(this);">¡¿</button></td>'
										+	'				</tr>'
										+	'				</table></td>'
										+	'			</tr>';
									}
									var html_source_btn = "";
									if( btn!='' || text!='' ) {
										var html_source_btn =	'<tr>'
										+	'				<td style="text-align:right;padding:10px;background-color:#ddd;border-top:1px solid #999;">'
										+	'				<table cellpadding="0" cellspacing="0" border="0" width="100%" height="" bgcolor=""><tr>'
										+	'				<td width="100%" align="left" style="padding:2px 0px 2px 0px;">'
										+	'				<span style="font-size:11px;font-family:Verdana;color:333;">'+text+'</span>'
										+	'				</td>'
										+	'				<td width="" align="right" valign="middle" style="padding:2px;" nowrap>'
										+	'				<button onclick="'+this.arr5+'" id="objPopupLayerBodyID_btn_confirm" '
										+	'				style="width:70px;height:22px;font-family:Dotum;font-size:12px;background-color:#336699;color:#fff;'
										+	'				border:1px solid #333;border-top:1px solid #fff;border-left:1px solid #fff;">'
										+	'				'+btn+'</button></td>'
										+	'				</tr>'
										+	'				</table></td>'
										+	'			</tr>';
									}

									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+ html_source_top
									+	'			<tr>'
									+	'				<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				height					=		"0" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:400px;height:100px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this)"></iframe>'
									+	'				</td>'
									+	'			</tr>'
									+ html_source_btn
									+	'		</table>';
									this.init_end(html_source,this.arr6);
	},
	iframe2 : function()
	{
									this.init(arguments);
								
									
									var url = this.arr1;
									var width = this.arr2;
									var height = this.arr3;

									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;

									var html_source_top= '';
									var html_source_btn = "";
									


									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+ html_source_top
									+	'			<tr>'
									+	'				<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'				</td>'
									+	'			</tr>'
									+ html_source_btn
									+	'		</table>';
									this.init_end(html_source,this.arr6);
	},

	popup : function()
	{
		this.init(arguments);
	
	
									this.init(arguments);
									var keywords = this.arr2;
									var url = this.arr1+keywords;
									var width = this.arr3;
									var height = this.arr4;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"auto" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" '
									+	'				onLoad					=		"iframeTool.resize(this,2)"></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_popup('popup',html_source,this.arr6);

	},
	ipopup : function()
	{
		this.init(arguments);
	
	
									this.init(arguments);
									var keywords = this.arr2;
									var url = this.arr1+keywords;
									var width = this.arr3;
									var height = this.arr4;
									var scroll = (this.arr5)?this.arr5:"auto";
									var autosize = (this.arr6)?this.arr6:true;
									iframeTool.maxWidth = this.owid-30;
									iframeTool.maxHeight = this.ohei-120;
									var html_source_top= '';
									var html_source_btn = "";
									var html_source =	
									'		<table width="" cellpadding="0" cellspacing="0" border="0" style="">'
									+			html_source_top
									+	'		<tr>'
									+	'			<td>'
									+ '				<iframe '
									+	'				name					=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				id							=		"OBJ_IFRAME_LAYER_POPUP" '
									+	'				frameborder			=		"0" '
									+	'				width					=		"'+width+'" '
									+	'				height					=		"'+height+'" '
									+	'				marginwidth			=		"0" '
									+	'				marginheight		=		"0" '
									+	'				topmargin			=		"0" '
									+	'				leftmargin				=		"0" '
									+	'				scrolling				=		"'+scroll+'" '
									+	'				style						=		"width:'+width+'px;height:'+height+'px;" '
									+	'				src						=		"'+url+'" '
									+	'				allowTransparency	=	"true" ';
									if( autosize ) html_source +=	'				onLoad					=		"iframeTool.resize(this,2)" ';
									html_source += 	'				></iframe>'
									+	'			</td>'
									+	'		</tr>'
									+			html_source_btn
									+	'	</table>';
									this.end_ipopup('popup',html_source);

	}
}
//-->
