﻿

//원본이미지를 팝업창에서 보여준다. 
function prev_img(img_src) {
	img_view = window.open('','img_popup','width=0,height=0,left=0,top=0,scrollbars=no,resizable=yes');
	img_view.document.focus(); // 팝업창 문서에 포커스
	img_view.document.write(
	'<html>\n'+ 
	'<head>\n'+
	'<script src=\"./imazing/inc/window.js\"><\/script>\n'+
	'<script language=\"javascript\">\n'+
	'function resizing(){\n'+
	'		var winWidth=document.images.imazingimg.width+100\n'+
	'		var winHeight=document.images.imazingimg.height+100\n'+		
	'		window.resizeTo(winWidth,winHeight)\n'+
	'		window.moveTo(screen.width/2-winWidth/2,screen.height/2-winHeight/2)\n'+					
	'}\n'+
	'\n'+		
	'\n'+
	'\n'+
	'<\/script>\n	'+
	'<title> :: View :: </title>\n'+
	'</head>\n'+
	'<body topmargin="0" leftmargin="0">\n'+
	
	'<TABLE border=\"0\" width="100%" height="100%">\n'+
	'	<TR>\n'+
	'		<TD align="center" valign="middle">\n'+
	'			<a href="#" onclick="window.close();" onfocus="this.blur();">\n'+
	'				<img src="'+img_src+'" galleryimg="no" border="0" name="imazingimg" onLoad="resizing()">\n'+
	'			</a>\n'+
	'		</TD>\n'+
	'	</TR>\n'+
	'</TABLE>\n'+
	'</body>\n'+
	'</html>\n');
	img_view.document.close(); // 팝업창의 문서를 닫는다.
}

//윈도우를 최소화시킴
function mini() {
	minobj.Click();
}
//최소화 최대화 버튼을 초기위치로 이동 
function button_pos(){
  	var _x = document.body.clientWidth - 142;	  
  	var _y = 10;
  	Layer1.style.posLeft=_x;
  	Layer1.style.posTop=_y;
}
//윈도우를 닫는다. 
function w_close(){
  	parent.close();	
}


