// zoom image
var popbackground="white" //ÆË¾÷ ¹è°æ»ö»ó
var windowtitle="ÀÌ¹ÌÁö È®´ëº¸±â"  //ÆË¾÷À©µµ¿ì Á¦¸ñ
var css='* {margin:0; padding:0;}'

function detectexist(obj){ return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight){

function getpos(){
	leftpos=(screen.width) ? (screen.width-popwidth)/2 : 0;
	toppos=(screen.height) ? (screen.height-popheight)/2 : 0;
	settings = 'height='+popheight+',width='+popwidth+',top='+toppos+',left='+leftpos+',scrollbars='
	}
getpos()

var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'

	if (typeof jkpopwin=="undefined" || jkpopwin.closed)
		jkpopwin=window.open("","",winattributes)
	else {
		jkpopwin.resizeTo(popwidth, popheight)
	}

	jkpopwin.document.open()
	jkpopwin.document.write('<html><head><title>'+windowtitle+'</title><style type="text/css">'+css+'</style></head><body '+bodyattribute+'><img src="'+imgpath+'"></body></html>')
	jkpopwin.document.close()
	jkpopwin.focus()
}


//popup
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
    win = window.open(mypage,myname,settings)
	win.focus();
}

// png
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter =
	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}

// contact_us
function pop_contact_us() {
NewWindow("/eng/popup/contact_us.html","contact_us",500,320,"no")
}