	var shadows = new Array();
	var menu;
	var timerId = 0;
	var timerDelId = 0;

	function deletePopup() {
		if (menu) {
			menu.style.display = 'none';
		//	var selects = document.all.tags("SELECT");
		//	if (selects!=null) {
		//		for (var i=0; i<selects.length; i++) {
		//			selects[i].style.visibility = 'visible';
		//		}
		//	}
		}
	}
	function doMenuz(el, popup) {
		timerId = 0;
		if (menu) {
			deletePopup();
		}
		//var selects = document.all.tags("SELECT");
		//if (selects!=null) {
		//	for (var i=0; i<selects.length; i++)
		//	{
		//		selects[i].style.visibility = 'hidden';
		//	}
		//}
		menu = popup;
		menu.style.posTop = absTop(el);
		
		
		menu.style.posLeft = 80;
		menu.style.display = '';
		menu.style.zIndex = 4;
		menu.onchange = adjustTop(el, popup)
			
	}
	
	function adjustTop() {
		if ((menu.style.posTop+menu.clientHeight) >= document.body.clientHeight) //below bottom
		{
			menu.style.posTop = (menu.style.posTop-(menu.clientHeight)+18);
		} 
		menu.onchange = adjustBottom()
	}
	
	function adjustBottom() {
		if (menu.style.posTop < document.body.scrollTop) //above top
		{
			menu.style.posTop = document.body.scrollTop;
		}
	}
	
	function removePopup() {
		cancelPopup();
		deletePopup();
	}
	
	function absTop(el) { //finds the top
		var n = el.offsetTop;
		
		while (el.parentElement) {
			el = el.parentElement;
			n += el.offsetTop;
		}
		return n;
	}
	
	function popup(el) {
		cancelPopup();
		timerId = window.setTimeout('doMenuz(' + el.id + ', ' + el.submenu + ')', 200);
	}
	
	function cancelPopup() {
		if (timerId != 0) {
			window.clearTimeout(timerId);
			timerId = 0;
		}
	}
	
	function delayRemove() {
		timerDelId = window.setTimeout('deletePopup()', 200);
	}
	
	function cancelDelay() {
		if (timerDelId != 0) {
			window.clearTimeout(timerDelId);
			timerDelId = 0;
		}
	}

	function rollon(a) {
	
		a.style.backgroundColor='white';
		a.style.border = '#999999 solid 1px';
	}

	function rolloff(a) {
		if (a.className == 'menuBarSel') {
			a.style.backgroundColor='#FFFFFF'
		}
		else {
			a.style.backgroundColor='#ebebeb';
			a.style.border = '#ebebeb solid 1px';
		}
	}
	// added by atilab, works with the 'In This Article' component
	
	function change_display(head) {
		var oSrcEle = window.event.srcElement
		sImg666 = oSrcEle.src
		if (document.all.item(head).style.display == "") {
			document.all.item(head).style.display = "none";
			oSrcEle.src = "/image/leftmenu/arrow_expand.gif";
			oSrcEle.alt = "expand menu";
		}
		else {
			document.all.item(head).style.display= "";
			oSrcEle.src = "/image/leftmenu/arrow_default.gif";
			oSrcEle.alt = "collapse menu";
		}
	}

	function chngColour(sID) {
		var oMainBorder = document.all.item("main" + sID);
		var oHeaderBorder = document.all.item("header" + sID);
		var oArticle = document.all.item("article" + sID);
		var oArrowCol = document.all.item("arrowCol" + sID);
			if (oMainBorder.className == 'componentBorder')
				{
					oMainBorder.className = 'componentBorderSel';
					oHeaderBorder.className = 'componentBorderSel';
					oArticle.className = 'componentHeaderSel';
					oArrowCol.className = 'componentHeaderSel';
				}
			else
				{
					oMainBorder.className = 'componentBorder';
					oHeaderBorder.className = 'componentBorder';
					oArticle.className = 'componentHeader';
					oArrowCol.className = 'componentHeader';				
				}
	}

	function noPrint() {
	     var noprint = document.all.item("donotprint");
	     if (noprint != null)
			if (backicon.style.display != "")
					{
					     if (noprint.length != null)
						  {
						       for (i=0; i<noprint.length; i++)
							    {
								 noprint(i).style.display = "none";
							    }
						       printicon.style.display = "none";
						       backicon.style.display = "";
						       document.body.scrollTop = 0; 
						  }
					}
			else
					{
					     if (noprint.length != null)
						  {
						       for (i=0; i<noprint.length; i++)
							    {
								 noprint(i).style.display = "";
							    }
						       printicon.style.display = "";
						       backicon.style.display = "none";
						       document.body.scrollTop = 0; 
						  }
					}
	}
     
     
	function togglefaq() {
	 if (toggle.checked == true){
	     expandfaq();
	     }
	 else{
	     contractfaq();
	     }
	}
	
	function expandfaq() {
		var faqitem = document.all.item("faqitem");
		if (faqitem != null){
		    if (faqitem.length != null){
			      for (i=0; i<faqitem.length; i++){
					faqitem(i).style.display = "inline";                                                                               
				   }                                 
		    }                                            
		}
	}
     
	function contractfaq() {
		var faqitem = document.all.item("faqitem");
		var faq = document.all.item("faq");
		if (faq != null){
		for (i=0; i<faq.length; i++){
					faq(i).style.color = "#666666";                                                                               
				   }
		}
		if (faqitem != null){
		    if (faqitem.length != null){
			      for (i=0; i<faqitem.length; i++){
					faqitem(i).style.display = "none";                                                                               
				   }                                 
		    }                                            
		}
	}
     
	function getPar(o) {
		var ele = new Object();
		ele = findDIV(o)
		if (ele!=null)
		{
			var oA = ele.children.item(1);
			if (oA.style.display == "inline")
			{
				oA.style.display = "none";
				o.style.color = "#666666";
			}
			else
			{
				oA.style.display = "inline";

			} 
		}

	}

	function findDIV(x) {
		var oDiv = document.all.tags("DIV");
		var iDiv;
			if (oDiv != null)
			{
				iDiv = oDiv.length;
				for (var i=0; i<iDiv; i++)
				{
					if(oDiv[i].contains(x))
					{
					return oDiv[i];
					}
				}
			}
	}
	
	function overState(obj) {
		obj.currentColor = obj.style.color;
		obj.style.color = "#0033FF";
		obj.style.cursor = "hand";
	}

	function outState(obj) {
		if ("#0033ff" == obj.style.color)
		{
			obj.style.color = obj.currentColor;
		}
	}