// ·Ñ¿À¹ö

function na_restore_img_src(name, nsdoc) {
	var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
	if (name == '')
		return;
	if (img && img.altsrc) {
		img.src    = img.altsrc;
		img.altsrc = null;
	}
}
function na_preload_img() {
	var img_list = na_preload_img.arguments;
	if (document.preloadlist == null)
		document.preloadlist = new Array();
	var top = document.preloadlist.length;
	for (var i=0; i < img_list.length; i++) {
		document.preloadlist[top+i]     = new Image;
		document.preloadlist[top+i].src = img_list[i+1];
	}
}
function na_change_img_src(name, nsdoc, rpath, preload) {
	var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
	if (name == '')
		return;
	if (img) {
		img.altsrc = img.src;
		img.src    = rpath;
	}
}

// ¸µÅ© Á¡¼± ¾ø¾Ö±â
function bluring()	{
		if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG")
			document.body.focus();
}
document.onfocusin=bluring;

// »õÃ¢ ¿­±â 1
var mywin;
mywin = "";
var w="";
var h="";

function makeWin(temp,w,h){
	if(mywin != "")
		mywin.close();
		mywin=window.open(temp,"","scrollbars=yes,status=no,left=0,top=0,width="+w+",height="+h);
}

// »õÃ¢ ¿­±â 2
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// »çÁø ¿­±â
var myphoto;
myphoto = "";
var w="";
var h="";

function makePhoto(temp,w,h){
	if(myphoto != "")
		myphoto.close();
		myphoto=window.open(temp,"","scrollbars=no,status=no,left=0,top=0,width="+w+",height="+h);
	}

// Áöµµ ¿­±â
var roadwin;
roadwin = "";
var w="";
var h="";

function roadWin(temp,w,h){
	if(roadwin != "")
		roadwin.close();
		roadwin=window.open(temp,"","scrollbars=no,status=no,left=0,top=0,width="+w+",height="+h);
	}


// ÀÌ¹ÌÁö »õÃ¢¿­±â

var win1Open = null


function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}

function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,left=200,top=200,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>:: ¾ÆÀÌÇÇ±Ô¾î ::</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=´Ý±â></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}

// ÇöÀçÁ¢¼ÓÀÚÃ¢

var isDOM = (document.getElementById ? true : false);  
var isIE4 = ((document.all && !isDOM) ? true : false); 
var isNS4 = (document.layers ? true : false);  

function getRef(id) { 
	if (isDOM) return document.getElementById(id); 
	if (isIE4) return document.all[id]; 
	if (isNS4) return document.layers[id]; 
}  

var isNS = navigator.appName == "Netscape";  

function moveRightEdge() { 
	var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;  

	if (isNS4) {
		yMenuFrom   = divMenu.top;
		yMenuTo     = windows.pageYOffset + 140;
	} else if (isDOM) {
		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = (isNS ? windows.pageYOffset : document.body.scrollTop) + 140;
	}
	timeoutNextCheck = 30;

	if (yMenuFrom != yMenuTo) { 
		yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
		if (yMenuTo < yMenuFrom) 
			yOffset = -yOffset; 
		if (isNS4) 
			divMenu.top += yOffset; 
		else if (isDOM) 
			divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset; 
			timeoutNextCheck = 5; 
	} 
	setTimeout ("moveRightEdge()", timeoutNextCheck); 
}

document.write("\
<div id='divMenu' style='font-family:verdana,arial,helvetica; font-size:10px; text-decoration:none; width:122px; height:250px; position:absolute; left:860px; top:350px; z-index:1; visibility:visible;' allowtransparency='true'>\
<table width='125' cellpadding='0' cellspacing='0' style='line-height:150%; margin-top:0; margin-bottom:0; border-collapse:collapse;'>\
	<tr>\
		<td><iframe frameborder='0' width='125' height='250' src='/tt/site/ttmember.cgi?act=connect_list' marginheight='0' marginwidth='0' scrolling='no' allowtransparency='true'></iframe></td>\
	</tr>\
	<tr>\
		<td height='3'></td>\
	</tr>\
<tr>\
		<td height='29' align='center'><a href='http://www.hottoys.com.hk/' target='_blank'><img src='/inc/banner/hottoys.gif' width='130' height='60' border='0'></a></td>\
	</tr>\
	<tr>\
		<td height='3'></td>\
	</tr>\
<tr>\
		<td height='29' align='center'><a href='http://www.toystyle.co.kr/' target='_blank'><img src='/inc/banner/toystyle.gif' width='130' height='60' border='0'></a></td>\
	</tr>\
	<tr>\
		<td height='3'></td>\
	</tr>\
	<tr>\
		<td height='29' align='center'><a href='http://www.toylike.co.kr/' target='_blank'><img src='/inc/banner/toylike.gif' width='130' height='60' border='0'></a></td>\
	</tr>\
	<tr>\
		<td height='3'></td>\
	</tr>\
<tr>\
		<td height='29' align='center'><a href='mailto:nescot@paran.com' target='_blank'><img src='/inc/banner/bb.jpg' width='130' height='60' border='0'></a></td>\
	</tr>\
	<tr>\
		<td height='3'></td>\
	</tr>\
	<tr>\
		<td height='45' align='center'><a href='http://ifigure.co.kr/info/guide.php' target='_self'><img src='/inc/banner/b_guide.gif' width='120' height='45' border='0'></a></td>\
	</tr>\
	<tr>\
		<td height='3'></td>\
	</tr>\
	<tr>\
		<td height='45' align='center'><a href='http://ifigure.co.kr/tt/site/ttboard.cgi?db=test' target='_self'><img src='/inc/banner/b_review.gif' width='120' height='45' border='0'></a></td>\
	</tr>\
</table>\
</div>\
");

 if (isNS4) { 
 	var divMenu = document["divMenu"]; 
 	divMenu.top = top.pageYOffset + 200; 
 	divMenu.visibility = "visible"; 
 	moveRightEdge(); 
 } else if (isDOM) { 
 	var divMenu = getRef('divMenu'); 
 	divMenu.style.top = (isNS ? window.pageYOffset : document.body.scrollTop) + 90; 
 	divMenu.style.visibility = "visible"; 
 	moveRightEdge(); 
 }
