////////////////////////////
//    美化的下拉选择框    //
//        * V 1.0 *       //
////////////////////////////
var selectBoxUrl = location.href.toLowerCase();
var split_selectBox;
var split_selectBoxUrl;

split_selectBox = selectBoxUrl.split("://",1);


if(split_selectBox[0] == 'https' )
{
	split_selectBoxUrl = "/Images/SelectBox";
}
else
{
	split_selectBoxUrl = "/Images/SelectBox";
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
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 F_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", F_unloadObject);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function F_selectWrite ( htmlTag, dropdownSize )
{
	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 = F_selectWrite.arguments;	
	if ( args.length >= 2 )	// 设置美化样式 使用下拉图象
	{
		strStyle_border 			= '#b9b9b9';
		strStyle_divBgColor			= '#ffffff';
		strStyle_contentMouseOver	= '#E5E5E5';
		
		strStyle_contentColor 		= 'black';
		strStyle_borderMouseOver	= '#b9b9b9'; 
		strStyle_optionContentStyle	= "font-size:9pt; font-family:宋体;";

		strStyle_scrollbar_face		= "#ffffff";
		strStyle_scrollbar_highlight= "#F6F5F4";
		strStyle_scrollbar_track	= "#F6F5F4";
		strStyle_dropDownPosition	= 20;
		strBtnImg					= "/Select.gif";		
	}	
	
	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 F_select_Init_Create(htmlTag, dropdownSize , strStyle_dropDownPosition , strBtnImg ,  strStyle_border , strStyle_divBgColor , strStyle_DivStyle , 
							strStyle_contentMouseOver , strStyle_contentColor , strStyle_borderMouseOver , strStyle_optionContentStyle );
	selectView.selectDisplay();

	return selectView;
}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function F_select_Init_Create ( htmlTag, dropdownSize , strStyle_dropDownPosition , strBtnImg , strStyle_border 
								, strStyle_divBgColor , strStyle_DivStyle , strStyle_contentMouseOver , 
								strStyle_contentColor , strStyle_borderMouseOver , strStyle_optionContentStyle )
{
	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;
	
	
	// 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 			= F_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; 
	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 		= F_selectDisplay;
	this.optionAttach 		= F_optionAttach;
	this.optionDetach 		= F_optionDetach;
	this.changeOption 		= F_changeOption;
		
	this.eventCancelCase 		= F_eventCancelCase;
	this.defaultHead_Toggle 	= F_defaultHead_Toggle;
	this.syncSelectedIndex 		= F_syncSelectedIndex;
	this.dropdownOptionToggle 	= F_dropdownOptionToggle;
	this.mouseoverOption 		= F_mouseoverOption;
	this.mouseoutOption 		= F_mouseoutOption;
	this.mouseScrollHandler 	= F_mouseScrollHandler;
	this.defaultHead_HandleOver 	= F_defaultHead_HandleOver;
	this.defaultHead_HandleOut 	= F_defaultHead_HandleOut;
	this.dropdownOption_HandleOver 	= F_dropdownOption_HandleOver;
	this.createTable 		= F_createTable;
	this.createHeadDiv 		= F_createHeadDiv;
	this.optionDivCheck 		= F_optionDivCheck;
	this.optionDivCreate 		= F_optionDivCreate;
	this.optionTrCreate 		= F_optionTrCreate;
	this.optionDivControl 		= F_optionDivControl;
	this.syncOptions 		= F_syncOptions; 
	this.optionClick 		= F_optionClick;
	this.optionAdjust 		= F_optionAdjust; 
	this.optionCancel 		= F_optionCancel;
	this.defaultHead_Click 		= F_defaultHead_Click;
	this.defaultHead_Cancel 	= F_defaultHead_Cancel;
	this.optionIndex 		= F_optionIndex;
	this.SelectChange  		= F_SelectChange;;
	
	
	this.createTable();
	this.select.setAttribute('NxSelect', this);
	
	if (!this.b_lowSelectVer)
	{
//		this.select.onchange = F_propertyChange;
		this.select.onpropertychange = F_propertyChange;
	}
	s_publicVar.selectContent[this.content_Id] = this;
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function F_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 F_optionDivCreate ()
{
	this.dropdownOptionDiv = F_selectCreateElement("<div style='"+this.strStyle_DivStyle+"'onscroll='s_publicVar.selectContent["+this.content_Id+"].optionAdjust(window.event)' onmousedown='F_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+"/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='F_eventCancel(window.event)'" + "  >");
	s_createElements[s_createElements.length] = this.dropdownOptionPack;
	this.dropdownOptionDiv.appendChild(this.dropdownOptionPack);
}
function F_createHeadDiv ()
{
	
	this.defaultHead_Div = F_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.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+"/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='F_eventCancel(window.event)'"
		+ ">");
	s_createElements[s_createElements.length] = this.defaultHead_Pack;
	this.defaultHead_Div.appendChild(this.defaultHead_Pack);
}
function F_createTable ()
{
	this.selectTable = F_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 F_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 F_optionDivCheck ()
{
	if (!this.dropdownOptionDiv) 
	{
		this.optionDivCreate();
		this.selectTable.cells(0).appendChild(this.dropdownOptionDiv);
	}
}
function F_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 F_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 F_optionIndex ( value )				////////////////////// Option Add  ////////////////////////////////////////////  
{
	this.isLoad = false;
	this.select.value = value;
	this.isLoad = true;
}

function F_SelectChange( value )
{
	this.select.onchange = value ;
}

function F_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 F_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 F_changeOption (idx, value, innerText)				////////////////////// Option change  ////////////////////////////////////////////
{
	this.optionDivCheck();
	
	this.optionTag[idx].value 	= value;
	this.optionTag[idx].innerText 	= innerText;
	this.syncOptions();
	this.syncSelectedIndex();
}
function F_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.defaultHead_Pack.style.top = 0;
	this.defaultHead_Pack.style.left = 0;
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function F_mouseoverOption (idx)
{
	this.dropdownOptionTable.cells(idx).style.color = this.strStyle_contentColor;
	this.dropdownOptionTable.cells(idx).style.backgroundColor = this.strStyle_contentMouseOver;
}
function F_mouseoutOption (idx)
{
	this.dropdownOptionTable.cells(idx).style.color = '';
	this.dropdownOptionTable.cells(idx).style.backgroundColor = '';
}
function F_defaultHead_Click (event)
{
	F_eventCancel(event);
	if (this.select.disabled)
	{
		return;
	}
	this.srcElementOfLastMousedown = event.srcElement;
	this.dropdownOptionToggle();
}
function F_defaultHead_Cancel (event)
{
	F_eventCancel(event);
	if (this.eventCancelCase(event)) 
	{
		return;
	}
	this.srcElementOfLastMousedown = null;
}
function F_optionClick (event)
{
	F_eventCancel(event);
	this.srcElementOfLastMousedown = event.srcElement;
	
}
function F_optionAdjust (event)
{
	F_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 F_optionCancel (event)
{
	F_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 F_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 F_dropdownOptionToggle (b_viewDropdown, b_Strict)
{
	this.optionDivCheck();
	
	if (!b_Strict && !this.b_mouseFocus) 
	{
		F_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', F_exception);
			document.attachEvent('ondblclick', F_exception);
			s_publicVar.b_AttachedEvent = true;
		}
	}

}
function F_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 F_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 F_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 F_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 F_dropdownOption_HandleOver (idx)
{
	for (var i=0; i < this.optionTag.length; i++) 
	{
		if (i==idx)
		{
			this.mouseoverOption(i);
		}
		else
		{
			this.mouseoutOption(i);
		}
	}
}
function F_eventCancel (event)
{
	event.cancelBubble 	= true;
	event.returnValue 	= false;
}
function F_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 F_exception (except)
{
	F_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', F_exception);
		document.detachEvent('ondblclick', F_exception);
		s_publicVar.b_AttachedEvent = false;
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function F_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();
}






