var is = new Is(); 
/* Browser check */ 
function Is() { 
var agent = navigator.userAgent.toLowerCase(); 
this.major = parseInt(navigator.appVersion); 
this.minor = parseFloat(navigator.appVersion); 
this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1))); 
this.ns2 = (this.ns && (this.major == 2)); 
this.ns3 = (this.ns && (this.major == 3)); 
this.ns4 = (this.ns && (this.major == 4)); 
this.ns5 = (this.ns && (this.major > 4)); 
this.ns6 = (this.ns && (agent.indexOf('netscape6')!=-1) ); 
this.ns7 = (this.ns && (agent.indexOf('netscape/7')!=-1) ); 
this.ns7pr = (this.ns && (agent.indexOf('netscape/7.0b1')!=-1) ); 
this.ns71 = (this.ns && (agent.indexOf('netscape/7.1')!=-1) ); 
this.ns72 = (this.ns && (agent.indexOf('netscape/7.2')!=-1) ); 
this.ff15 = (this.ns && (agent.indexOf('firefox/1.5')!=-1) ); 
this.ie = (agent.indexOf("msie") != -1); 
this.ie3 = (this.ie && (this.major == 2)); 
this.ie4 = (this.ie && (this.major >= 4)); 
this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") != -1)); 
this.ie55 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.5") != -1)); 
this.ie6 = (this.ie && (agent.indexOf("msie 6.0")!=-1)); 
this.op3 = (agent.indexOf("opera") != -1); 
this.pc  = (agent.indexOf("win") != -1); 
this.mac = (agent.indexOf("mac")!=-1); // Mac detect 
this.client = ( (navigator.userAgent.indexOf('AOL')!=-1) || (navigator.userAgent.indexOf('CS 2000')!=-1) )? 1 : 0; 
this.moz = ( this.ns && (agent.indexOf("netscape/") == -1) ); 
if (this.moz) this.ns = 0; 
} 



 
 var fcolor = "#ffffff";	// Main background color
 var textcolor = "<#000000>";	// Text color
 var border_size = "1";		// border size, 1-3
 var border_color = "<#FFFFFF>";	// Border color
 var width = "700";		// ÆË¾÷ ¹Ú½ºÀÇ ³ÐÀÌ, 100 - 300

    var isDOM = (document.getElementById ? true : false); 
    //var isIE4 = ((document.all && !isDOM) ? true : false); 
	var isIE4 = ( is.ie ? true : false); 
   var isNS4 = (is.ns ? true : false); 

//if(is.ie){ 
//	var isIE4 = "true";
//}

//else{ 
///alert("±âÅ¸"); 
//} 
	

// Microsoft Stupidity Check.
if (isIE4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) {
		isIE5 = true;
	} else {
		isIE5 = false; }
} else {
	isIE5 = false;
}
if (isDOM) {
//	isIE4 = true;
}
//alert(navigator.userAgent);
//alert('ÀÍ½º4'+isIE4);
//alert('ÀÍ½º5'+isIE5);
//alert('³Ý½º'+isNS4);


var x = 0;
var y = 0;
var offsetx = 10;
var offsety = 10;
var popup_on = 0;
var palign = 0;		// Default ÆË¾÷ ¹Ú½ºÀÇ À§Ä¡, 0:center/1:right/2:left

if ( isNS4 || isIE4 || isDOM) {
	if (isNS4) over = document.viewDIV;
	if (isDOM) over = document.viewDIV;
	if (isIE4) over = viewDIV.style;
	document.onmousemove = mouseMove;
	if (isNS4) document.captureEvents(Event.MOUSEMOVE);
}

//alert('ºê¶ó¿ìÀú'+isDOM);
//alert('¿À¹ö'+over);
// Clears popups if appropriate
function HideTbl() {
	if ( isNS4 || isIE4 || isDOM ) {
		popup_on = 0;
		hideObject(over);
	}
	palign = 0;
}

// Non public functions. These are called by other functions etc.

// Simple popup
function ShowTbl(text, left) {
	
	showObject(over);
		temp = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='700' height='550'>";
			temp += "<param name='movie' value='"+text+"'>";
			temp += "<param name='quality' value='high'>";
			temp += "<embed src='"+text+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='700' height='550'></embed>";
		temp += "</object>";

	//txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+border_size+" CELLSPACING=0 BGCOLOR=\""+border_color+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD><FONT FACE=\"Arial,Helvetica\" COLOR=\""+textcolor+"\" SIZE=\"-2\"><textarea rows=20 cols=50  style='background-color: #FFFFFF; overflow:hidden; border-width:1; border-color:#FFFFFF; border-style:solid;' readonly>"+text+"</textarea></FONT></TD></TR></TABLE></TD></TR></TABLE>"
	//txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+border_size+" CELLSPACING=0 BGCOLOR=\""+border_color+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD><FONT FACE=\"Arial,Helvetica\" COLOR=\""+textcolor+"\" SIZE=\"-2\">"+temp+"</FONT></TD></TR></TABLE></TD></TR></TABLE> <center><input type='button' value='´Ý±â' onclick = 'HideTbl();'></center>"
	txt = temp+"<center><input type='button' value='´Ý±â' onclick = 'HideTbl();'></center>"
	layerWrite(txt);
	//if(left) palign = left;
	//disp(palign);	
}

// Common calls
function disp(palign) {
	if ( isNS4 || isIE4 || isDOM ) {
		if (popup_on == 0) 	{
			if (palign == 0) { // Center
				moveTo(over,x+offsetx-(width/2),y+offsety);
			}
			if (palign == 1) { // Right
				moveTo(over,x+offsetx,y+offsety);
			}
			if (palign == 2) { // Left
				moveTo(over,x-offsetx-width,y+offsety);
			}
			showObject(over);
			popup_on = 1;
		}
	}
// Here you can make the text goto the statusbar.
}

// Moves the layer
function mouseMove(e) {
	if (isNS4) {x=e.pageX; y=e.pageY;}
	if (isIE4) {x=event.x; y=event.y;}
	if (isIE5) {x=event.x+document.body.scrollLeft; y=event.y+document.body.scrollTop;}
	if (popup_on) {
		if (palign == 0) { // Center
			moveTo(over,x+offsetx-(width/2),y+offsety);
		}
		if (palign == 1) { // Right
			moveTo(over,x+offsetx,y+offsety);
		}
		if (palign == 2) { // Left
			moveTo(over,x-offsetx-width,y+offsety);
		}
	}
}

// Writes to a layer
function layerWrite(txt) {
        if (isNS4) {
                var lyr = document.viewDIV.document;
				//var lyr = document.getElementById('viewDIV').document;
                lyr.write(txt);
                lyr.close();
        }
        else if (isIE4) document.all["viewDIV"].innerHTML = txt;
}

// Make an object visible
function showObject(obj) {
        if (isNS4) obj.visibility = "show";
        else if (isIE4) obj.visibility = "visible";
}

// Hides an object
function hideObject(obj) {
        if (isNS4) obj.visibility = "hide";
        else if (isIE4) obj.visibility = "hidden";
}

// Move a layer
function moveTo(obj,xL,yL) {
        obj.left = xL;
        obj.top = yL;
}
