// JavaScript Document





function formatQuickLinks(whichTopic,linkGroup)
{
var qLinks = document.getElementById(linkGroup)

	with (qLinks)
	{
	
		switch (whichTopic)
		{
		
		case "selDir" :
		innerHTML='<div id="mainQuickLinkHeader" style="font-family: '+"'Microsoft Sans Serif'"+', sans-serif ; font-size : 14px; text-decoration : none ; font-weight : bold ; background-color: #999999 ; color: #FFFFFF ; padding: 2px;">Quick Links</div><div style=" font-size : x-small" title="Services we provide" >Services</div><div style=" font-size : x-small" >White Papers</div><div style=" font-size : x-small" >Notes</div><div style=" font-size : x-small" >Our eBay Listings</div><div style=" font-size : x-small" >Inquire</div>'
set_qLinkStyles()
document.location.hash='#'
		break
		
		
		case "selAbout" :
		innerHTML ='<div id="mainQuickLinkHeader" style="font-family: '+"'Microsoft Sans Serif'"+', sans-serif ; font-size : 14px; text-decoration : none ; font-weight : bold ; background-color: #999999 ; color: #FFFFFF ; padding: 2px;">About</div><div style=" font-size : x-small" title="Company" >Company</div><div style=" font-size : x-small" >Contact</div><div style=" font-size : x-small" >Purpose</div><div style=" font-size : x-small" >Privacy Policy</div><div style=" font-size : x-small" >Inquire</div><div style=" font-size : x-small" >Acknowledgements</div><div style=" font-size : x-small" >Copyright Info</div>'
set_qLinkStyles()
document.location.hash='aboutus'		
		break
		
		
		
		case "selServices" :
innerHTML ='<div id="mainQuickLinkHeader" style="font-family: '+"'Microsoft Sans Serif'"+', sans-serif ; font-size : 14px; text-decoration : none ; font-weight : bold ; background-color: #999999 ; color: #FFFFFF ; padding: 2px">Services</div><div style=" font-size : x-small" title="Company" >Recommendations</div><div style=" font-size : x-small" >Expert Witness</div><div style=" font-size : x-small" >Investigations</div><div style=" font-size : x-small" >Reporting</div><div style=" font-size : x-small" >Troubleshooting</div>'
set_qLinkStyles()		
document.location.hash='services'		
		break
		
		
		case "selResources" :
		
		break
		
		case "selInquiries" :
		
		break
		
		
		default :
		
		break
		
		
		}
	
	
	
	}


}


function set_qLinkStyles()
{
var qLink = document.getElementById('mainQuickLinks').getElementsByTagName('div')
	for (i=0 ; i < qLink.length ; i++)
	{
		if (qLink.item(i).id!='mainQuickLinkHeader')
		{

		qLink.item(i).style.color='blue'
		qLink.item(i).style.lineHeight='17px'//
/*		qLink.item(i).style.textIndent='5px'//*/
		qLink.item(i).style.position='relative'
		qLink.item(i).style.left='5px'		
		qLink.item(i).style.width='auto'
		qLink.item(i).style.styleFloat='none'
		qLink.item(i).style.cursor='pointer'
		qLink.item(i).style.fontSize='11px'
		qLink.item(i).style.textDecoration='none'
		qLink.item(i).style.fontWeight='normal'
		
		
		qLink.item(i).onmouseover=function(){this.style.textDecoration='underline'; this.style.fontWeight='bold';}
		qLink.item(i).onmouseout=function(){this.style.textDecoration='none'; this.style.fontWeight='normal'; }
		qLink.item(i).onclick=function(){getMore(this)}
		}
	}

/*var fLink = document.getElementById('fdbackBlock').getElementsByTagName('div')
	for (i=0 ; i < fLink.length ; i++)
	{
		if (fLink.item(i).id!='fdbackBlockHeader')
		{
		fLink.item(i).style.color='blue'
		fLink.item(i).style.lineHeight='normal'//
		fLink.item(i).style.textIndent='5px'//
		fLink.item(i).style.styleFloat='none'
		fLink.item(i).onmouseover=function(){this.style.textDecoration='underline'}
		fLink.item(i).onmouseout=function(){this.style.textDecoration='none'}
		fLink.item(i).style.cursor='pointer'
		switch (fLink.item(i).id)
		{
		 case "repProbLink" :
		 fLink.item(i).onclick=function(){getProblem()}
		 break
		 
		 case "" :
		 
		 break
		
		
		}
		}
	} */

}

function getKids(objParent)
{
var obj = document.getElementById(objParent), rawKids = obj.childNodes , cNodes = new Array()
for (elm=0 ; elm < rawKids.length ; elm++)
{
	if (rawKids.item(elm).nodeType==1)
	{
	cNodes[rawKids.item(elm).id] = rawKids.item(elm)
	}

}

return cNodes
}


