ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		ie5 = true;
	} else {
		ie5 = false; }
} else { ie5 = false; }

var width = 110;
var border = "0";
var offsetx = -14;
var offsety = -4;
var fcolor = "#E4FEEB";       // º»¹® ¹ÙÅÁ »ö
var backcolor = "#155B1F";  // Ä¸¼Ç ¹ÙÅÁ »ö
var textcolor = "#000000";  // º»¹® ÆùÆ® »ö
var capcolor = "#FFFFFF";  // Ä¸¼Ç ÆùÆ® »ö
var fontstyle = "font-size:9pt;";
var nColor5 = "#9DF7B4"

var x = -10;
var y = -10;
var snow = 0;
var tmpX, tmpY;
var newWin = null;
var doc_width=800, doc_height=600

if ( (ns4) || (ie4) )
{
	if (ns4) over = document.overDiv
	if (ie4) over = overDiv.style
	
//	document.onmousemove = get_mouse; 

//	document.onmousemove = mouseMove;
	
	if (ns4) document.captureEvents(Event.MOUSEMOVE)
}

if(document.layers) {
        document.captureEvents(Event.MOUSEDOWN); 
        document.onmousedown = myMenu;
}
else if(document.all) document.onmouseup = myMenu; 

function nd() {
	if ( (ns4) || (ie4) )
	{
		snow = 0;
		hideObject(over);
	}
}
// 
function ShowContent(yTitle, ymemoID, ymemoName, yemail, yhome, yclub)
{
	txt = "<TABLE id=popup border=0 WIDTH="+width+" STYLE=\"filter:alpha(opacity=40); border:1 #101010 solid\" CELLPADDING="+border+" CELLSPACING=0><TR>"
	txt = txt + "<TD BGCOLOR=\""+backcolor+"\"><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\">&nbsp;"
	txt = txt + "<FONT style="+fontstyle+" COLOR=\""+capcolor+"\"><B>"+ yTitle +"</B> &nbsp;</FONT></SPAN></TD></TR></TABLE>"
	txt = txt + "<TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\">"

	txt = txt + "<TR onMouseOver=this.style.backgroundColor=\""+ nColor5 +"\" onMouseOut=this.style.backgroundColor=\"\"><TD align=left><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\" style="+fontstyle+">"
	txt = txt + "<a href=\"#0\" onClick=\"javascript:MemoSend('"+ ymemoID + "', '"+ ymemoName +"')\" onFocus=\"this.blur();\">ÂÊÁöº¸³»±â</a>"
	txt = txt + "</FONT><SPAN></TD></TR>"

	txt = txt + "<TR onMouseOver=this.style.backgroundColor=\""+ nColor5 +"\" onMouseOut=this.style.backgroundColor=\"\"><TD align=left><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\" style="+fontstyle+">"
	txt = txt + "<a href=\"javascript:EmailSend('"+ ymemoName +"', '"+ yemail +"')\" onFocus=\"this.blur();\">¸ÞÀÏº¸³»±â</a>"
	txt = txt + "</FONT><SPAN></TD></TR>"
	
	txt = txt + "<TR onMouseOver=this.style.backgroundColor=\""+ nColor5 +"\" onMouseOut=this.style.backgroundColor=\"\"><TD align=left><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\" style="+fontstyle+">"
	txt = txt + "<a href=\""+ yhome +"\" target=_blank onFocus=\"this.blur();\">È¨ÆäÀÌÁö ¹æ¹®</a>"
	txt = txt + "</FONT><SPAN></TD></TR>"

	txt = txt + "<TR onMouseOver=this.style.backgroundColor=\""+ nColor5 +"\" onMouseOut=this.style.backgroundColor=\"\"><TD align=left><SPAN ID=\"PST\"><FONT COLOR=\""+textcolor+"\" style="+fontstyle+">"
	txt = txt + "<a href=\""+ yclub +"\" onFocus=\"this.blur();\">Å¬·´°¡±â</a>"
	txt = txt + "</FONT><SPAN></TD></TR>"

	
	txt = txt + "</TABLE></TD></TR></TABLE>"
	layerWrite(txt);

	if(ns4)
	{
		doc_width=self.innerWidth;
		doc_height=self.innerHeight;
	}
	else
	{
		if(ie4)
		{
			doc_width=document.body.clientWidth;
			doc_height=document.body.clientHeight;
		}
	}
	
	disp();
}

//123123
function disp()
{
	over.left = event.x;
	over.top = event.y;

	if ( (ns4) || (ie4) )
	{
		if (snow == 0)
		{
//			moveTo(over,tmpX,y+offsety);
			
			showObject(over);
			snow = 1;
		}
	}
}


//========================
function get_mouse(e) 
{ 
        var x = (ns4) ? e.pageX : event.x+document.body.scrollLeft; 
        var y = (ns4) ? e.pageY : event.y+document.body.scrollTop; 
		
		tmpX = x + 20; 

		if (snow)
		{
			moveTo(over, tmpX, y+20)
		}
        
//  skn.top  = y+20; 
} 
//===========================

//123123
function layerWrite(txt) {
	
	if (ns4)
	{
		var lyr = document.overDiv.document
		lyr.write(txt)
		lyr.close()
	}
	else if (ie4) document.all["overDiv"].innerHTML = txt
	
}
//123132
function showObject(obj) {
	if (ns4) obj.visibility = "show"
	else if (ie4) obj.visibility = "visible"
}

function hideObject(obj) {
	if (ns4) obj.visibility = "hide"
	else if (ie4) obj.visibility = "hidden"
}

function moveTo(obj,xL,yL) {
	obj.left = xL;
	obj.top = yL;
}

//12313
function high(which2)
{ 
	if (window.lowlighting) clearInterval(lowlighting);
	if (window.highlighting) clearInterval(highlighting);

	theobject=which2;
	highlighting=setInterval("highlightit(theobject )",50);
} 
//=======
function highlightit(cur2)
{ 
	if (cur2.filters.alpha.opacity<75) cur2.filters.alpha.opacity+=25;
} 
//12313
function low(which2)
{ 
	if (window.lowlighting) clearInterval(lowlighting);
	if (window.highlighting) clearInterval(highlighting);

	theobject=which2;
	lowlighting=setInterval("lowlightit(theobject )",50)
} 
//=======
function lowlightit(cur2)
{ 
	try
	{
		if (cur2.filters.alpha.opacity>=40) cur2.filters.alpha.opacity-=40;

		if (cur2.filters.alpha.opacity<45)
		{
			if (lowlighting) clearInterval(highlighting);
			if (highlighting) clearInterval(highlighting);
			nd();
		}
	} catch (e) {
		nd();
	}
}
//===========
function myMenu(e) {
//	var obj = document.getElementById("sType_list");
	
	if (event.button == 1){
		low("popup")
//		if(ns4){if(over.visibility == "show"){over.visibility = "hide";}}
///		else if(ie4){if(over.visibility == "visible"){over.visibility = "hidden";}}
	}
}
