<!--
/////////////////////////////////////////////////////////////////////////
// SCRIPT ORIGINALLY CREATED BY Nick Radford
// MODIFIED SLIGHTLY BY Shane Rushik 02/26/2003
/////////////////////////////////////////////////////////////////////////
//	Set up submenu links.
//	You can call the arrays anything you want... 
//	Just reference their name from the hyperlinks at the end of this code

	LinkArray1=new Array();i=-1
		i++;LinkArray1[i]=new Array('&nbsp;&nbsp;&nbsp;  Our Mission&nbsp;&nbsp;&nbsp;   ', '../AboutUs/abtus.cfm')
		i++;LinkArray1[i]=new Array('&nbsp;&nbsp;&nbsp;  Testimonials&nbsp;&nbsp;&nbsp;   ', '../AboutUs/abtus_testimonials.cfm')
		i++;LinkArray1[i]=new Array('&nbsp;&nbsp;&nbsp;  Success Stories&nbsp;&nbsp;&nbsp;   ', '../AboutUs/abtus_success.cfm')

	LinkArray2=new Array();i=-1
		i++;LinkArray2[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Consumers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     ', '../Products/prod_consumer_ww.cfm')
		i++;LinkArray2[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Education&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    ', '../Products/prod_educ_nucleus.cfm')
		i++;LinkArray2[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; HotBiz CRM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    ', '../Products/prod_hotbiz_contactmanager.cfm')
		i++;LinkArray2[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Hosted Solutions&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    ', '../Products/prod_hostedsoln_webfolders.cfm')
//		i++;LinkArray2[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Network Solutions&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    ', '../Products/prod_network.cfm')


	LinkArray3=new Array();i=-1
		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp;	Website Create&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     ', '../Services/webCreate.cfm')
		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp;	IT Solution Create&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    ', '../Services/ITSolutionCreate.cfm')
//		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; System Integration&nbsp;&nbsp;&nbsp;', '../Services/services.cfm')
//		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Database Design & Development&nbsp;&nbsp;&nbsp;', '../Services/services_db.cfm')
//		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; SMS hosting&nbsp;&nbsp;&nbsp;', '../Services/services_smshost.cfm')
//		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Consultation&nbsp;&nbsp;&nbsp;', '../Services/services_consult.cfm')
//		i++;LinkArray3[i]=new Array('&nbsp;&nbsp;&nbsp;&nbsp; Web Design&nbsp;&nbsp;&nbsp;', '../Services/services_webdesign.cfm')


	LinkArray4=new Array();i=-1
		

	LinkArray5=new Array();i=-1
	
	LinkArray6=new Array();i=-1
	
	LinkArray7=new Array();i=-1
		
	
		
//////////////////////////////////////////////////////////////////////////////////////////////////
// Misc Variables
	var timer;       			// holds the current timer value
	Menu_Over = null 			// Menu currently highlighted 
	MouseOver_bgColor ="#ffffff"// Color of the cell when mouse is over it
	OffsetMenuTop = 10 			// Offset Menu Top the height of the cell so it's top is at the cell bottom
//////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////
// This is the bit that does it all.
function ShowMenu(elem,HTML){
	if(Menu_Over!=null){if(!document.layers){Menu_Over.className='DropDownHeader'}}
	Menu_Over = elem
	if(!document.layers){elem.className='DropDownHeaderOver'}

	var HTMLCode = ''
	HTMLelem = eval(HTML)
	if(HTMLelem.length>0){
		HTMLCode += '<table cellpadding="1" cellspacing="0" border="0" class="DropDownOutBox"><tr><td>'
		HTMLCode += '<table cellpadding="3" cellspacing="0" border="0" class="DropDownSubBox">'
				for(i=0;i<HTMLelem.length;i++){
						//if(i!=0){HTMLCode += '</td>'}
						clearTimeout(timer)
						HTMLCode += '<tr><td class="DropDownSubText" onmouseover="javascript:style.background=\'' +
						    MouseOver_bgColor + '\'\;  clearTimeout(timer); " onclick="self.location.href=\'' +
						    HTMLelem[i][1] + '\'" onmouseout=\"javascript:style.background=\'transparent\'; timer=setTimeout(\'HideDiv()\',500); ">'
						HTMLCode += '<nobr>'+ HTMLelem[i][0] +'</nobr><br></td></tr>'
				}
		HTMLCode += '</table></td></tr></table>'

	}
		if(document.layers){
			document.OptionListDiv.left = findPosX(elem) 
			document.OptionListDiv.top = findPosY(elem)  + OffsetMenuTop 
			document.OptionListDiv.document.write(HTMLCode); document.layers['OptionListDiv'].document.close();
		}
		if(document.all){
			OptionListDiv.style.left = findPosX(elem)
			OptionListDiv.style.top = findPosY(elem) + OffsetMenuTop 
			OptionListDiv.innerHTML = HTMLCode
		}
		if(!document.all && document.getElementById){
			document.getElementById('OptionListDiv').style.left = findPosX(elem)
			document.getElementById('OptionListDiv').style.top = findPosY(elem) + OffsetMenuTop 
			document.getElementById('OptionListDiv').innerHTML = HTMLCode
		}

}

//////////////////////////////////////////////////////////////////////////////////////////////////
// find the Left position
function findPosX(obj){
	var curleft=1;
		if(document.getElementById||document.all){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
		else if(document.layers){curleft+=obj.x;}
	return curleft;
}

//////////////////////////////////////////////////////////////////////////////////////////////////
// find the top position
function findPosY(obj){
	var curtop=8;
		if(document.getElementById||document.all){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}
		else if(document.layers){curtop+=obj.y;}
	return curtop;
}

//////////////////////////////////////////////////////////////////////////////////////////////////
// set the mouse click mouseup event
if(document.layers)document.captureEvents(Event.MOUSEMOVE);document.onmouseup=HideDiv;

//////////////////////////////////////////////////////////////////////////////////////////////////
// hide the menu
function HideDiv(){
	if(Menu_Over!=null){
		if(!document.layers){Menu_Over.className='DropDownHeader'}
	}
	if(document.layers){document.OptionListDiv.top = -999}
	if(document.all){OptionListDiv.style.top = -999}
	if(!document.all && document.getElementById){document.getElementById('OptionListDiv').style.top = -999}
}
////////////////////////////////////////////////////////////////////////////////////////////////////-->

function contactAction(type)
{
	var msg = "";
	
	if (document.addForm.name.value == "")
	{
		msg += "- your name\n";
	}

	if (document.addForm.email.value == "" && document.addForm.mobile.value == "")
	{
		msg += "- your email and/or mobile\n";
	}
	
	if (msg != "")
	{
		alert("Please provide us with the following information:\n\n" + msg);
	}
	else
	{
		document.addForm.submitType.value = type;
		document.addForm.action = "contactAction.cfm";
		document.addForm.submit();
	}
}

