/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1, and so on
var menu1=new Array()
menu1[1]='<a href="CompanyProfile.htm">About CIS</a>'
menu1[2]='<a href="WhyCIS.htm">Why CIS</a>'
menu1[3]='<a href="Clients.htm">Clients</a>'
menu1[4]='<a href="OurPartners.htm">Partners and Alliances</a>'
menu1[5]='<a href="become-a-reseller.htm">Become A Reseller</a>'
menu1[6]='<a href="ManagmentTeam.htm">Managment Team</a>'
menu1[7]='<a href="History.htm">History</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="Automotive.htm">Automotive</a>'
menu2[1]='<a href="Banking_and_Capital.htm">Banking and Capital Markets</a>'
menu2[2]='<a href="CommunicationServices.htm">Communication Services</a>'
menu2[3]='<a href="Consumer_Packaged.Htm">Consumer Packaged Goods</a>'
menu2[4]='<a href="Discrete_Manufacturing.Htm">Discrete Manufacturing</a>'
menu2[5]='<a href="Education.Htm">Education</a>'
menu2[6]='<a href="HighTechnology.Htm">High Technology</a>'
menu2[7]='<a href="LifeSciences.Htm">Life Sciences</a>'
menu2[8]='<a href="Media_and_Entertainment.Htm">Media and Entertainment</a>'
menu2[8]='<a href="Resources.Htm">Resources</a>'
menu2[8]='<a href="Retail.Htm">Retail</a>'
menu2[8]='<a href="Utilities.Htm">Utilities</a>'
menu2[8]='<a href="solutions.Htm">Solutions</a>'


//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="WebSolution.htm">Web Based Solution</a>'
menu4[1]='<a href="DesktopSol.htm">Desktop Based Solution</a>'
menu4[2]='<a href="corporate.htm">Corporate Solution</a>'
menu4[3]='<a href="Medical.htm">Medical Solution</a>'
menu4[4]='<a href="security.htm">Security Solution</a>'
menu4[5]='<a href="mobsol.htm">Mobile Solution</a>'
menu4[6]='<a href="IVRsol.htm">IVR Solution</a>'
menu4[7]='<a href="AISol.htm">AI Solution</a>'
menu4[8]='<a href="Embedded.htm">Embedded Solution</a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="demos.htm">Demos</a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="freequote.htm">Free Quote</a>'

//Contents for menu 8, and so on
var menu8=new Array()
menu8[0]='<a href="opening.htm">Current vacancies</a>'
menu8[1]='<a href="cv/cv.asp">Online Apply</a>'
menu8[2]='<a href="Culture.htm">Culture & Facilities</a>'
menu8[3]='<a href="career_FAQ.htm">FAQ</a>'

//Contents for menu 9, and so on
var menu9=new Array()
//menu9[0]='<a href="online.htm">Online</a>'
//menu9[1]='<a href="software.htm">Software</a>'

var menuwidth='165px' //default menu width
//var menubgcolor='lightyellow'  //menu bgcolor
var menubgcolor='#F8F8F8'  //menu bgcolor
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=0
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='200px'
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)
}

function getmenu()
{
	var par="200px";
//document.getElementById("action").innerHTML="<a href='why.htm' >Why CIS</a> |<a href='Services.htm' onClick='return clickreturnvalue()' onMouseover='dropdownmenu(this, event, menu2, "+par+")' >Services</a>";

//var Str = "<a href='why.htm' >Why CIS</a> | <a href='Services.htm' onClick='return clickreturnvalue()' onMouseover='dropdownmenu(this, event, menu2)' >Services</a>"
//document.getElementById("action").innerHTML= Str ;

var Str = "<table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='100%' height='29' id='AutoNumber19'>";
Str =Str + "<tr><td class='header_top' width='12%' height='29' align='center'><a href='aboutus.htm' onMouseover='dropdownmenu(this, event, menu1)' onMouseout='delayhidemenu()'>Company</td>";
Str =Str + "<td class='header_top' width='12%' height='29' align='center' onMouseover='dropdownmenu(this, event, menu2)' onMouseout='delayhidemenu()'>Industries</a></td>";
Str =Str + "<td class='header_top' width='12%' height='29' align='center'><a href='Products.htm'>Products</a></td>";
Str =Str + "<td class='header_top' width='12%' height='29' align='center'><a href='Solutions.htm' onMouseover='dropdownmenu(this, event, menu4)' onMouseout='delayhidemenu()'>Solutions</a></td><td class='header_top' width='12%' height='29' align='center'><a href='testimonials.htm'>Testimonial</a></td>";
Str =Str + "<td width='12%' class='header_top'><a href='careers.htm'  onMouseover='dropdownmenu(this, event, menu8)' onMouseout='delayhidemenu()'>Careers</a></td></tr></table>"
//document.getElementById("action").innerHTML="hello ";
document.getElementById("action").innerHTML= Str ;
}


if (hidemenu_onclick=="yes")
document.onclick=hidemenu
