
/***********************************************
* AnyLink Drop Down Menu- � Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
***********************************************/

//Contents for menu 0 -- Home if needed
var menu0=new Array()

//Contents for menu 1 -- About us
var menu1=new Array()
menu1[0]='<a href="aboutus.html">About Us</a>'
menu1[1]='<a href="http://esoftpoint.blogspot.com" target="_blank">Blog</a>'
menu1[2]='<a href="http://twitter.com/eSoftPoint" target="_blank">Follow On Twitter</a>'
menu1[3]='<a href="privacy.html">Privacy Policy</a>'
menu1[4]='<a href="termsofuse.html">Terms Of Use</a>'

//Contents for menu 2 -- Services
var menu2=new Array()
menu2[0]='<a href="Services.html">Services</a>'
menu2[1]='<a href="Software.html">Software</a>'
menu2[2]='<a href="Hardware.html">Hardware</a>'
menu2[3]='<a href="eCommerce.html">eCommerce</a>'
menu2[4]='<a href="Consulting.html">Consulting</a>'
menu2[5]='<a href="Technology.html">Technology</a>'
menu2[6]='<a href="webdesign.html">Web Design</a>'


//Contents for menu 3 -- Contact
var menu3=new Array()
menu3[0]='<a href="contactus.html">Help</a>'
menu3[1]='<a href="contactus.html">Contact Us</a>'
menu3[2]='<a href="reviews.html">Reviews</a>'
menu3[3]='<a href="sitemap.html">Site Map</a>'
menu3[4]='<a href="repaircenter.html">Repair Center</a>'

//Contents for menu 4 -- Web Design
//var menu4=new Array()
//menu4[0]='<a href="webDesign.html#WebSites">Web Sites</a>'
//menu4[1]='<a href="webDesign.html#Hosting">Web Hosting</a>'
//menu4[2]='<a href="webDesign.html#Emails">Emails</a>'
//menu4[3]='<a href="webDesign.html#Domains">Domains</a>'
//menu4[4]='<a href="webDesign.html#eCommerce">eCommerce</a>'
//menu4[5]='<a href="webDesign.html#ShoppingCart">Shopping Cart</a>'

//Contents for menu 5 -- Hosting
//var menu5=new Array()
//menu5[0]='<a href="hosting.html#WebSite">Web Site Hosting</a>'
//menu5[1]='<a href="hosting.html#Blog">Blog Hosting</a>'
//menu5[2]='<a href="hosting.html#Photo">Photo Hosting</a>'
//menu5[3]='<a href="hosting.html#Podcast">Podcast Hosting</a>'

//Contents for menu 7 -- Technology
//var menu6=new Array()
//menu6[0]='<a href="technology.html#AppDev">Application Development</a>'
//menu6[1]='<a href="technology.html#Consulting">Consulting</a>'
//menu6[2]='<a href="technology.html#HSol">Hardware Solutions</a>'
//menu6[3]='<a href="technology.html#SSol">Software Solutions</a>'

//Contents for menu 7 -- Shop Now
//var menu8=new Array()
//menu7[0]='<a href="shopNow.html#Computers">Computers</a>'
//menu7[1]='<a href="shopNow.html#Laptops">Laptops</a>'
//menu7[2]='<a href="shopNow.html#GiftItems">Gift Items</a>'
//menu7[3]='<a href="shopNow.html#Sale">Sale</a>'

//Contents for menu 8 -- CCTV Security Systems
//var menu8=new Array()
//menu8[0]='<a href="SecuritySys.html#SecSysDemo">Security System Demo</a>'
//menu8[1]='<a href="SecuritySys.html#SecSys">CCTV Security Systems</a>'
//menu8[2]='<a href="SecuritySys.html#IRCam">CCTV IR Cameras</a>'
//menu8[3]='<a href="SecuritySys.html#PTZCam">CCTV PTZ Cameras</a>'
//menu8[4]='<a href="SecuritySys.html#RemVCam">Remote View Cameras</a>'
//menu8[5]='<a href="SecuritySys.html#PCICard">PCI DVR Card</a>'
//menu8[6]='<a href="SecuritySys.html#Cab">All in one Cables</a>'
//menu8[7]='<a href="SecuritySys.html#Conn">BNC RCA Connectors</a>'
	
var menuwidth='140px' //default menu width
var menubgcolor='#F0F8FF'  //menu bgcolor #F0F8FF
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=-8
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu


/***********************************************
  tab and other funcs
***********************************************/
function showtab(tabID) {
    var styleObject = getStyleObject(tabID);
    if (styleObject) {
                styleObject.visibility = 'visible';
                styleObject.display = 'block';
    } else
    return false;
}
function hidetab(tabID) {
    var styleObject = getStyleObject(tabID);
    if (styleObject) {
                styleObject.visibility = 'hidden';
                styleObject.display = 'none';
    } else
    return false;
}

function getStyleObject(objectId) {
    if(document.getElementById && document.getElementById(objectId))
    	return document.getElementById(objectId).style;
    else if (document.all && document.all(objectId))
         return document.all(objectId).style;
    else if (document.layers && document.layers[objectId])
         return document.layers[objectId];
    else
         return false;
}
function selTab(tabID) {
	var sTabs = String("BC|EC|DX|PR|ECC").split("|");
	for (var i=0; i<sTabs.length; i++) {
	    if (sTabs[i]==tabID) {
            showtab(tabID+"Tab");
			showtab(tabID+"Data"); 
	    } else {
            hidetab(sTabs[i]+"Tab");
			hidetab(sTabs[i]+"Data"); 
	    }
	}
}

function openPopup(strURL, lWidth, lHeight, lXPos, lYPos, strParams, sWinName) {
	var x=(lWidth?lWidth:420);
	var y=(lHeight?lHeight:370);
	var xp = (lXPos?lXPos:0);
	var yp = (lYPos?lYPos:0);
	var wName = (sWinName?sWinName:"InfoWin");
	var p = (strParams?strParams:"status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no,resizable=0");
	w=window.open(strURL,wName,"height="+y+",width="+x+",left="+xp+",top="+yp+","+p);
	if (w.opener == null) w.opener = self;
}       