// À©µµ¿ì À§Ä¡ ¼³Á¤
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos,img){

        if(pos=="random"){
                LeftPosition=2;
                TopPosition=2}
                //LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
                //TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
        if(pos=="center"){
                LeftPosition=2;
                TopPosition=2}
                //LeftPosition=(screen.width)?(screen.width-w)/2:100;
                //TopPosition=(screen.height)?(screen.height-h)/2:100;}
        else if((pos!="center" && pos!="random") || pos==null){
                LeftPosition=2;
                TopPosition=2}
        mypage = mypage +"?img="+img;
        //settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
		settings='height=700,width=450,top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable';
       window.open(mypage,myname,settings);
	   //if(win.focus){win.focus();}
}
        

// ÀÌ¹ÌÁö Ã¢ Å©±â fit

var isNav4, isIE4;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
}
function fitWindowSize() {
if (isNav4) {
window.innerWidth = document.layers[0].document.images[0].width;
window.innerHeight = document.layers[0].document.images[0].height;
}
if (isIE4) {
window.resizeTo(500, 500);
width = 500 - (document.body.clientWidth -  document.images[0].width);
height = 500 - (document.body.clientHeight -  document.images[0].height);
window.resizeTo(width, height);
   }
}


// ÀÌ¹ÌÁö Ã¢Å©±â¿¡ °íÁ¤
function o_resize(name)
{
	try {
        if(document.images[name].width>400)
		document.images[name].width = 400;
	}catch(e){}
}

function checkImg()
{
	o_resize('party');
	/*o_resize('DENT2');
	o_resize('DENT3');
	o_resize('DENT4');
	o_resize('DENT5');
	o_resize('DENT6');*/
}
window.onload=checkImg;