var selectBoxUrl = location.href.toLowerCase();
var split_selectBox;
var split_selectBoxUrl;

split_selectBox = selectBoxUrl.split("://",1);


if(split_selectBox[0] == 'https' )
{
	split_selectBoxUrl = "https://www.nexon.com";
}
else
{
	split_selectBoxUrl = "http://file.nx.com";
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var c_Public = new Object();
	c_Public.ie_Version 			= new Number(((window.navigator.appVersion.split('; '))[1].split(' '))[1]);
	c_Public.buttonWidth 			= 15;
	c_Public.defaultHeight 			= 20;
	c_Public.selectColor			= new Object();
	
var s_publicVar = new Object();
	s_publicVar.DivTagCreate 	= document.createElement("DIV");
	s_publicVar.selectContent 	= new Array();
	s_publicVar.b_AttachedEvent 	= false; // bool °ª ÀÌº¥Æ®¿¡ ÇÔ¼ö¸¦..

var s_createElements = new Object();

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FN_unloadObject()
{
	try 
	{
		if (s_publicVar && s_publicVar.selectContent)
		{
			for (key in s_publicVar.selectContent)
			{
				if (s_publicVar.selectContent[key])
				{
					try 
					{
					s_publicVar.selectContent[key].select.setAttribute('NxSelect', 0);
					} catch (e) {};
					delete s_publicVar.selectContent[key];
				}
			}
		}
	} catch (e) {};
}

attachEvent("onunload", FN_unloadObject);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FN_selectWrite ( /*string*/htmlTag, /*int*/dropdownSize, /*string*/strDivBorderColor, /*string*/strDivBackgroundColor
						,/*string*/strContentColor, /*string*/strContentStyle, /*string*/strContentColor_mouseOver, /*string*/strBorderColor_mouseOver
						,/*string*/strScrollbarFaceColor, /*string*/strScrollbarHighlightColor, /*string*/strScrollbarTrackColor, /*int*/n4DropDownPos
						,/*string*/strButtonBackgroundImage, /*string*/strStyle_contentColor_normal )
{
	var strStyle_border;
	var strStyle_divBgColor;
	var strStyle_contentMouseOver;
	
	var strStyle_contentColor;
	var strStyle_borderMouseOver;
	var strStyle_optionContentStyle;
	
	var strStyle_dropDownPosition;
	var strBtnImg;
	
	var args = FN_selectWrite.arguments;
	
	strStyle_border 			= strDivBorderColor;
	strStyle_divBgColor			= strDivBackgroundColor;
	strStyle_contentMouseOver	= strContentColor_mouseOver;
	
	strStyle_contentColor 		= strContentColor;
	strStyle_borderMouseOver	= strBorderColor_mouseOver; 
	strStyle_optionContentStyle	= strContentStyle;

	strStyle_scrollbar_face		= strScrollbarFaceColor;
	strStyle_scrollbar_highlight= strScrollbarHighlightColor;
	strStyle_scrollbar_track	= strScrollbarTrackColor;
	strStyle_dropDownPosition	= n4DropDownPos;
	strBtnImg					= strButtonBackgroundImage;
	strStyle_contentColor_normal = strStyle_contentColor_normal;
	
	strStyle_DivStyle 		= "display:none; z-index:3000; position:absolute; border:1 solid "+ strStyle_border +"; background-color:" + strStyle_divBgColor + "; cursor:hand; scrollbar-face-color:" + strStyle_scrollbar_face + "; scrollbar-highlight-color:"+ strStyle_scrollbar_highlight +"; Scrollbar-track-color:" + strStyle_scrollbar_track + "; ";

	var selectView 	= new FN_select_Init_Create(htmlTag, dropdownSize , strStyle_dropDownPosition , strBtnImg ,  strStyle_border , strStyle_divBgColor , strStyle_DivStyle , 
							strStyle_contentMouseOver , strStyle_contentColor , strStyle_borderMouseOver , strStyle_optionContentStyle, strStyle_contentColor_normal );
	selectView.selectDisplay();

	return selectView;
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FN_select_Init_Create ( htmlTag, dropdownSize , strStyle_dropDownPosition , strBtnImg , strStyle_border 
								, strStyle_divBgColor , strStyle_DivStyle , strStyle_contentMouseOver , 
								strStyle_contentColor , strStyle_borderMouseOver , strStyle_optionContentStyle, strStyle_contentColor_normal )
{
	var b_autoDetect = true;
	// style
	this.strStyle_border = strStyle_border;
	this.strStyle_divBgColor = strStyle_divBgColor;
	this.strStyle_DivStyle = strStyle_DivStyle;
	this.strStyle_contentMouseOver = strStyle_contentMouseOver;
	this.strStyle_contentColor = strStyle_contentColor;
	this.strStyle_borderMouseOver = strStyle_borderMouseOver;
	this.strStyle_optionContentStyle = strStyle_optionContentStyle;
	this.strStyle_contentColor_normal = strStyle_contentColor_normal;
	
	// property
	this.isLoad			= true;
	this.content_Id 		= s_publicVar.selectContent.length;
	this.b_lowSelectVer 		= (b_autoDetect && c_Public.ie_Version < 5.5); // true -> "ver < 5.5 "  false -> "ver > 5.5 "
	this.select 			= FN_selectCreateElement(htmlTag);
	this.selectedIndex 		= this.select.selectedIndex;
	this.optionTag 			= this.select.options;
	this.selectBoxWidth 	= parseInt(this.select.style.width);
	this.defaultHeight 		= c_Public.defaultHeight ;
	this.b_dropdown 		= (dropdownSize && '-'==dropdownSize.toString().substr(0, 1)) ? false : true;
	this.dropdownSize 		= (!isNaN(parseInt(dropdownSize))) ? Math.abs(dropdownSize) : 100; // Math.abs -> Àý´ë°ª
	this.bgColor_Head 		= this.strStyle_divBgColor;
	this.strStyle_dropDownPosition = strStyle_dropDownPosition;
	this.strBtnImg			= strBtnImg;
	
	this.selectTable;
	this.defaultHead_Div;
	this.defaultHead_Table;
	this.defaultHead_Pack;
	this.dropdownOptionDiv;
	this.dropdownOptionTable;
	this.dropdownOptionPack;
	this.b_mouseFocus 		= false;
	this.b_viewDropdown 		= false;
	this.b_mouseOver 		= false;
		
	this.selectDisplay 		= FN_selectDisplay;
	this.optionAttach 		= FN_optionAttach;
	this.optionDetach 		= FN_optionDetach;
	this.changeOption 		= FN_changeOption;
		
	this.eventCancelCase 		= FN_eventCancelCase;
	this.defaultHead_Toggle 	= FN_defaultHead_Toggle;
	this.syncSelectedIndex 		= FN_syncSelectedIndex;
	this.dropdownOptionToggle 	= FN_dropdownOptionToggle;
	this.mouseoverOption 		= FN_mouseoverOption;
	this.mouseoutOption 		= FN_mouseoutOption;
	this.mouseScrollHandler 	= FN_mouseScrollHandler;
	this.defaultHead_HandleOver 	= FN_defaultHead_HandleOver;
	this.defaultHead_HandleOut 	= FN_defaultHead_HandleOut;
	this.dropdownOption_HandleOver 	= FN_dropdownOption_HandleOver;
	this.createTable 		= FN_createTable;
	this.createHeadDiv 		= FN_createHeadDiv;
	this.optionDivCheck 		= FN_optionDivCheck;
	this.optionDivCreate 		= FN_optionDivCreate;
	this.optionTrCreate 		= FN_optionTrCreate;
	this.optionDivControl 		= FN_optionDivControl;
	this.syncOptions 		= FN_syncOptions; 
	this.optionClick 		= FN_optionClick;
	this.optionAdjust 		= FN_optionAdjust; 
	this.optionCancel 		= FN_optionCancel;
	this.defaultHead_Click 		= FN_defaultHead_Click;
	this.defaultHead_Cancel 	= FN_defaultHead_Cancel;
	this.optionIndex 		= FN_optionIndex;
	this.SelectChange  		= FN_SelectChange;;
	
	
	this.createTable();
	this.select.setAttribute('NxSelect', this);
	
	if (!this.b_lowSelectVer)
	{
//		this.select.onchange = FN_propertyChange;
		this.select.onpropertychange = FN_propertyChange;
	}
	s_publicVar.selectContent[this.content_Id] = this;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FN_optionTrCreate (idx)
{
	idx = ('undefined'!=typeof(idx)) ? idx : this.optionTag.length - 1;
	var OptionTr = this.dropdownOptionTable.insertRow(-1);
	var OptionTdTag = document.createElement("<td height="+this.defaultHeight+" style='PADDING-LEFT:3PX;' ></td>");
	s_createElements[s_createElements.length] = this.OptionsTd;
	OptionTdTag.appendChild(document.createElement("<nobr style='"+ this.strStyle_optionContentStyle +"'></nobr>")); 
	
	OptionTr.appendChild(OptionTdTag);
}
function FN_optionDivCreate ()
{
	this.dropdownOptionDiv = FN_selectCreateElement("<div style='"+this.strStyle_DivStyle+"'onscroll='s_publicVar.selectContent["+this.content_Id+"].optionAdjust(window.event)' onmousedown='FN_eventCancel(window.event)'><table border=0 cellpadding=0 cellspacing=0 width=100% style='table-layout:fixed'></table></div>");
	this.dropdownOptionTable = this.dropdownOptionDiv.childNodes(0);
	for (var i=0; i < this.optionTag.length; i++) 
	{
		this.optionTrCreate(i);
	}
	this.syncOptions();
	this.dropdownOptionPack = document.createElement("" + "<img src='"+split_selectBoxUrl+"/image/global/blankImage.gif'  "
		+ "style='position:absolute; top:0; left:0; width:100%;' onmousedown='s_publicVar.selectContent["+this.content_Id+"].optionClick(window.event)'  "
		+ "onmousemove='s_publicVar.selectContent["+this.content_Id+"].optionAdjust(window.event)'  "
		+ "onmouseup='s_publicVar.selectContent["+this.content_Id+"].optionCancel(window.event)'  "
		+ "onmouseout='s_publicVar.selectContent["+this.content_Id+"].optionCancel(window.event)'  "
		+ "ondragstart='FN_eventCancel(window.event)'" + "  >");
	s_createElements[s_createElements.length] = this.dropdownOptionPack;
	this.dropdownOptionDiv.appendChild(this.dropdownOptionPack);
}
function FN_createHeadDiv ()
{
	
	this.defaultHead_Div = FN_selectCreateElement("<div style='position:relative; top:0; left:0;'><table border=0 cellpadding=0 cellspacing=0 \
		height="+this.defaultHeight+" bgcolor=" + this.bgColor_Head + " style='table-layout:fixed; border:1 solid "+this.strStyle_border+";'\
		onmouseover='s_publicVar.selectContent["+this.content_Id+"].optionDivControl()'>\
		<tr><td style='PADDING-LEFT:3PX;'><nobr style='text-oveflow:hidden;"+ this.strStyle_optionContentStyle +"'></nobr></td>\
		<td  width="+c_Public.buttonWidth+" align=center style='word-wrap:normal'></td>\
		<td  style='display:none' width="+c_Public.buttonWidth+" align=center style='word-wrap:normal'></td><td  style='display:none'></td>\
		</tr> </table></div>");
	
	
	this.defaultHead_Table = this.defaultHead_Div.childNodes(0);
	this.defaultHead_Table.cells(0).childNodes(0).innerText = this.optionTag[this.selectedIndex].innerText;
	this.defaultHead_Table.cells(0).childNodes(0).style.color = this.select.disabled ? 'gray' : this.strStyle_contentColor_normal;
	this.defaultHead_Table.cells(1).innerHTML = "<img src='" + split_selectBoxUrl + this.strBtnImg + "' border=0 align=absmiddle >";
	this.defaultHead_Table.cells(2).innerHTML = "<img src='" + split_selectBoxUrl + this.strBtnImg + "' border=0 align=absmiddle >";
	this.defaultHead_Table.cells(1).width = 20;
	this.defaultHead_Table.cells(2).width = 20;
	this.defaultHead_Table.cells(3).appendChild(this.select);
	this.defaultHead_Pack = document.createElement(""+ "<img src='"+split_selectBoxUrl+"/image/global/blankImage.gif' "
		+ "style='position:absolute; top:0; left:0; z-index:2; width:100%; height:"+this.defaultHeight+";' "
		+ "onmouseover='s_publicVar.selectContent["+this.content_Id+"].defaultHead_HandleOver()' "
		+ "onmouseout='s_publicVar.selectContent["+this.content_Id+"].defaultHead_HandleOut(); s_publicVar.selectContent["+this.content_Id+"].defaultHead_Cancel(window.event);' "
		+ "onmousedown='s_publicVar.selectContent["+this.content_Id+"].defaultHead_Click(window.event)' "
		+ "ondblclick='s_publicVar.selectContent["+this.content_Id+"].defaultHead_Click(window.event); s_publicVar.selectContent["+this.content_Id+"].defaultHead_Cancel(window.event);' "
		+ "onmouseup='s_publicVar.selectContent["+this.content_Id+"].defaultHead_Cancel(window.event)' "
		+ "onmousewheel='s_publicVar.selectContent["+this.content_Id+"].mouseScrollHandler(window.event)' "
		+ "ondragstart='FN_eventCancel(window.event)'"
		+ ">");
	s_createElements[s_createElements.length] = this.defaultHead_Pack;
	this.defaultHead_Div.appendChild(this.defaultHead_Pack);
}
function FN_createTable ()
{
	this.selectTable = FN_selectCreateElement("<table border=0 cellpadding=0 cellspacing=0 style='table-layout:fixed; cursor:default'><tr><td style='height:"+this.defaultHeight+";'></td></tr></table>");
	if (!isNaN(this.selectBoxWidth))
	{
		this.selectTable.style.width = this.selectBoxWidth;
	}
	this.selectTable.style.height = this.defaultHeight;
	if (!this.b_lowSelectVer) 
	{
		this.createHeadDiv();
		this.selectTable.cells(0).appendChild(this.defaultHead_Div);
	}
	else 
	{
		this.selectTable.cells(0).appendChild(this.select);
	}
}
function FN_selectCreateElement (html)
{
	s_publicVar.DivTagCreate.insertAdjacentHTML('afterBegin', html);
	var o_Element = s_publicVar.DivTagCreate.children(0);
	while (s_publicVar.DivTagCreate.children.length > 0) 
	{
		s_publicVar.DivTagCreate.removeChild(s_publicVar.DivTagCreate.children(0));
	}
	return o_Element;
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function FN_optionDivCheck ()
{
	if (!this.dropdownOptionDiv) 
	{
		this.optionDivCreate();
		this.selectTable.cells(0).appendChild(this.dropdownOptionDiv);
	}
}
function FN_syncSelectedIndex ()
{
	this.selectedIndex = this.select.selectedIndex;
	if (this.b_lowSelectVer)
	{
		return;
	}
	if (this.defaultHead_Table.cells(0).childNodes(0).innerText != this.optionTag[this.selectedIndex].innerText)
	{
		this.defaultHead_Table.cells(0).childNodes(0).innerText = this.optionTag[this.selectedIndex].innerText;
	}
	if (this.b_viewDropdown)
	{
		this.dropdownOptionToggle(false);
	}
}
function FN_syncOptions ()                                           
{
	if (this.b_lowSelectVer) 
	{
		return;
	}
	
	for (var i=0; i < this.optionTag.length; i++) 
	{
		this.dropdownOptionTable.cells(i).setAttribute('index', i);
		if (this.dropdownOptionTable.cells(i).childNodes(0).innerText != this.optionTag[i].innerText)
		{
			this.dropdownOptionTable.cells(i).childNodes(0).innerText = this.optionTag[i].innerText;
		}
		//Option font color
		if(this.optionTag[i].style.color != '')
		{
			this.dropdownOptionTable.cells(i).childNodes(0).style.color = this.optionTag[i].style.color;
		}
		//Option selected 
		if(this.optionTag[i].selected != '')
		{
			this.optionTag[0].selected.innerText = this.optionTag[i].selected.innerText;
		}
	}
}
function FN_optionIndex ( value )				////////////////////// Option Add  ////////////////////////////////////////////  
{
	this.isLoad = false;
	this.select.value = value;
	this.isLoad = true;
}

function FN_SelectChange( value )
{
	this.select.onchange = value ;
}

function FN_optionAttach (value, innerText, idx)				////////////////////// Option Add  ////////////////////////////////////////////  
{
	this.optionDivCheck();
	
	var CreateOption 	= document.createElement("OPTION");
	s_createElements[s_createElements.length] = CreateOption;
	this.optionTag.add(CreateOption, idx);
	CreateOption.innerText 	= innerText;
	CreateOption.value 	= value;
	
	if (!this.b_lowSelectVer)
	{
		this.optionTrCreate(idx);
	}
	this.syncOptions();
	this.optionDivControl();
	this.syncSelectedIndex();
}
function FN_optionDetach (idx)						////////////////////// Option remove  ////////////////////////////////////////////  
{
	this.optionDivCheck();
	
	this.optionTag.remove(idx);
	if (!this.b_lowSelectVer)
	{
		this.dropdownOptionTable.deleteRow(idx);
	}
	this.syncOptions();
	this.optionDivControl();
	this.syncSelectedIndex();
}
function FN_changeOption (idx, value, innerText)				////////////////////// Option change  ////////////////////////////////////////////
{
	this.optionDivCheck();
	
	this.optionTag[idx].value 	= value;
	this.optionTag[idx].innerText 	= innerText;
	this.syncOptions();
	this.syncSelectedIndex();
}
function FN_optionDivControl ()
{
	var top = this.selectTable.offsetTop;
	var left = this.selectTable.offsetLeft;
	
	if (this.b_lowSelectVer) 
	{
		return;
	}

	if (this.b_viewDropdown)  //--------------------------------------------------------------------------//
	{	
		this.dropdownOptionDiv.style.width = this.selectBoxWidth;
		this.dropdownOptionDiv.style.height = Math.min(this.optionTag.length, this.dropdownSize) * this.defaultHeight + 2;
		this.dropdownOptionPack.style.height = this.optionTag.length * this.defaultHeight;
		this.dropdownOptionDiv.style.overflowY = (this.optionTag.length > this.dropdownSize) ? 'scroll' : '';
	}
		
	for (var Elem = this.selectTable.offsetParent; 'BODY'!=Elem.tagName && 'absolute'!=Elem.style.position && 'relative'!=Elem.style.position; Elem = Elem.offsetParent) 
	{
		if ('TABLE' != Elem.tagName) 
		{
			top += Elem.clientTop;
			left += Elem.clientLeft;
		}
		top += Elem.offsetTop;
		left += Elem.offsetLeft;
	}
	
	if (this.b_viewDropdown)  //--------------------------------------------------------------------------//
	{
		// µå¶ø´Ù¿î À§Ä¡ Á¶Á¤	
//		this.dropdownOptionDiv.style.top = (this.b_dropdown) ? (top + this.strStyle_dropDownPosition ) : (top - parseInt(this.dropdownOptionDiv.style.height));
//		this.dropdownOptionDiv.style.left = left;
		this.dropdownOptionDiv.scrolltop = (this.b_dropdown) ? (top + this.strStyle_dropDownPosition ) : (top - parseInt(this.dropdownOptionDiv.style.height));
		this.dropdownOptionDiv.scrollleft = left;
	}

	
	this.defaultHead_Pack.style.top = 0;
	this.defaultHead_Pack.style.left = 0;
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FN_mouseoverOption (idx)
{
	this.dropdownOptionTable.cells(idx).style.color = this.strStyle_contentColor;
	this.dropdownOptionTable.cells(idx).style.backgroundColor = this.strStyle_contentMouseOver;
}
function FN_mouseoutOption (idx)
{
	this.dropdownOptionTable.cells(idx).style.color = this.strStyle_contentColor_normal;
	this.dropdownOptionTable.cells(idx).style.backgroundColor = '';
}
function FN_defaultHead_Click (event)
{
	FN_eventCancel(event);
	if (this.select.disabled)
	{
		return;
	}
	this.srcElementOfLastMousedown = event.srcElement;
	this.dropdownOptionToggle();
//	var win = window.open("");
//	win.document.write(document.all.id_outerDiv.outerHTML);
}
function FN_defaultHead_Cancel (event)
{
	FN_eventCancel(event);
	if (this.eventCancelCase(event)) 
	{
		return;
	}
	this.srcElementOfLastMousedown = null;
}
function FN_optionClick (event)
{
	FN_eventCancel(event);
	this.srcElementOfLastMousedown = event.srcElement;
	
}
function FN_optionAdjust (event)
{
	FN_eventCancel(event);
	if (this.eventCancelCase(event)) 
	{
		return;
	}
	if (!(event.offsetX >= 0 && event.offsetX <= this.dropdownOptionTable.offsetWidth)) 
	{
		return;
	}
	this.dropdownOption_HandleOver(Math.floor(event.offsetY / this.defaultHeight));
}
function FN_optionCancel (event)
{
	FN_eventCancel(event);
	if (this.eventCancelCase(event)) 
	{
		return;
	}
	this.srcElementOfLastMousedown = null;
	if (event.offsetX >= 0 && event.offsetX <= this.dropdownOptionTable.offsetWidth) 
	{
		this.dropdownOptionToggle(false);
		this.select.selectedIndex = Math.floor(event.offsetY / this.defaultHeight);
	}
}
function FN_defaultHead_Toggle (b_mouseOver)
{
	this.b_mouseOver = ('undefined'!=typeof(b_mouseOver)) ? b_mouseOver: (!this.b_mouseOver);
	this.defaultHead_Table.cells(0).style.backgroundColor = this.b_mouseOver ? this.strStyle_contentMouseOver : '';
	this.defaultHead_Table.cells(0).style.color = this.b_mouseOver ? this.strStyle_contentColor : '';
}

function FN_dropdownOptionToggle (b_viewDropdown, b_Strict)
{
	this.optionDivCheck();
	
	if (!b_Strict && !this.b_mouseFocus) 
	{
		FN_exception(this.content_Id);
	}
	
	this.b_viewDropdown = ('undefined'!=typeof(b_viewDropdown)) ? b_viewDropdown: (!this.b_viewDropdown);
	
	if (this.b_viewDropdown)  //false
	{
		this.optionDivControl();
		this.dropdownOptionDiv.style.display = 'block';
		if (!b_Strict) 
		{
			this.defaultHead_Toggle(false);
			this.dropdownOption_HandleOver(this.selectedIndex);
		}
		this.defaultHead_HandleOut();
	}
	else 
	{
		this.dropdownOptionDiv.style.display = 'none';
		if (!b_Strict) 
		{
			this.defaultHead_Toggle(true);
		}
	}
	if (!b_Strict) 
	{
		this.b_mouseFocus = true;
		if (!s_publicVar.b_AttachedEvent) 
		{
			document.attachEvent('onmousedown', FN_exception);
			document.attachEvent('ondblclick', FN_exception);
			s_publicVar.b_AttachedEvent = true;
		}
	}

}
function FN_propertyChange ()
{
	if ('propertychange'==window.event.type && 'selectedIndex'==window.event.propertyName) 
	{
		var SelectElement = window.event.srcElement.NxSelect;
		SelectElement.syncSelectedIndex();
		if (null != SelectElement.select.onchange &&  SelectElement.isLoad )
		{
			SelectElement.select.onchange();
		}
	}
}
function FN_mouseScrollHandler (event)
{
	var idx = this.selectedIndex;
	if ('mousewheel'==event.type && this.b_mouseFocus && this.b_mouseOver) 
	{
		for (var i=0; i < event.wheelDelta; i += 120)
		{
			idx--;
		}
		for (var i=0; i > event.wheelDelta; i -= 120)
		{
			idx++;
		}
	}
	idx = Math.max(idx, 0);
	idx = Math.min(idx, this.optionTag.length - 1);
	this.select.selectedIndex = idx;
}
function FN_defaultHead_HandleOver ()
{
	if (this.b_viewDropdown || this.select.disabled)
	{
		return;
	}
	this.defaultHead_Table.style.borderColor = this.strStyle_borderMouseOver;
	this.defaultHead_Table.cells(1).style.display = 'none';
	this.defaultHead_Table.cells(2).style.display = 'block';
}
function FN_defaultHead_HandleOut ()
{
	this.defaultHead_Table.style.borderColor = this.strStyle_border;
	this.defaultHead_Table.cells(1).style.display = 'block';
	this.defaultHead_Table.cells(2).style.display = 'none';
}
function FN_dropdownOption_HandleOver (idx)
{
	for (var i=0; i < this.optionTag.length; i++) 
	{
		if (i==idx)
		{
			this.mouseoverOption(i);
		}
		else
		{
			this.mouseoutOption(i);
		}
	}
}
function FN_eventCancel (event)
{
	event.cancelBubble 	= true;
	event.returnValue 	= false;
}
function FN_eventCancelCase (event)
{
	if ('object' == typeof(event)) 
	{
		switch (event.type) 
		{
			case 'mousedown':
				if (!(event.button & 1)) return true;
			break;
			case 'mouseup':
			 	if (!(event.button & 1)) return true;
			        	if (c_Public.ie_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null) 
			        	{
				          	this.srcElementOfLastMousedown = null;
				          	return true;
			        	}
			break;
			case 'mouseout':
				if (!(c_Public.ie_Version < 5.5 && event.srcElement == this.srcElementOfLastMousedown))
				{
			          	return true;
					}
			break;
			case 'mousemove':
			        	if (c_Public.ie_Version >= 5.5 && event.srcElement != this.srcElementOfLastMousedown && this.srcElementOfLastMousedown != null)
			        	{
			          		return true;
			          	}
			break;
		}
	}
	return false;
}
function FN_exception (except)
{
	FN_eventCancel(window.event);
	except = ('number'==typeof(except)) ? except : -1;
	var b_DetachedEvent = true;
	for (var i=0; i < s_publicVar.selectContent.length; i++) 
	{
		if (-1==except && s_publicVar.selectContent[i].b_mouseFocus && s_publicVar.selectContent[i].b_viewDropdown) 
		{
			s_publicVar.selectContent[i].dropdownOptionToggle(false, true);
			s_publicVar.selectContent[i].defaultHead_Toggle(true);
			b_DetachedEvent = false;
		}
		else if (i!=except) 
		{
			if (s_publicVar.selectContent[i].b_viewDropdown)
			s_publicVar.selectContent[i].dropdownOptionToggle(false, true);
			if (s_publicVar.selectContent[i].b_mouseOver)
			s_publicVar.selectContent[i].defaultHead_Toggle(false);
			s_publicVar.selectContent[i].b_mouseFocus = false;
		}
	}
	if (s_publicVar.b_AttachedEvent && b_DetachedEvent) 
	{
		document.detachEvent('onmousedown', FN_exception);
		document.detachEvent('ondblclick', FN_exception);
		s_publicVar.b_AttachedEvent = false;
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function FN_selectDisplay ()
{
	document.write("<div id=id_outerDiv></div>\n");  //id_outerDiv
//	document.write("<div ID='id_outerDiv'><iframe id='ifr_select' frameborder=0 src='about:blank'></iframe></div>");
//	var frmdoc = document.frames["menuIframe6"];
	document.all.id_outerDiv.appendChild(this.selectTable);
	document.all.id_outerDiv.removeNode();
}
