
//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="introduction_to_icm.html">Introduction to ICM</a>'
menu1[1]='<a href="vision_mission.html">Vision and Mission</a>'
menu1[2]='<a href="objectives.html">Objectives</a>'
menu1[3]='<a href="share_holders.html">Shareholders</a>'
menu1[4]='<a href="board_of_directors.html">Board of Directors</a>'
menu1[5]='<a href="#">Management</a>'
menu1[6]='<a href="integrity_and_ethics.html">Integrity and Ethics</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="brokers_certification.html">ICM Stock Brokers Certification Programme</a>'
menu2[1]='<a href="mutual_fund_distributors_certification_programme.html">ICM Mutual Fund Distributors Certification Programme</a>'
menu2[2]='<a href="analyst_certification_programme.html">ICM Analyst Certification Programme</a>'
menu2[3]='<a href="upcoming_programs.html">Upcoming Programmes</a>'


//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="registration_procedure.html">Programme Enrolment/Registration Procedures</a>'
menu3[1]='<a href="registration_forms.html">ICM Forms</a>'
menu3[2]='<a href="fees_schedule.html">ICM Fee Schedule</a>'
menu3[3]='<a href="examination_schedule_2011.html">ICM Examination Schedule 2011</a>'
menu3[4]='<a href="exam_and_registration_policy.html">Enrolment/Examination Policy </a>'
menu3[5]='<a href="exam_regulations.html">Examination Regulations</a>'


//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="introductory_brochure.html">ICM Introductory Brochure</a>'
menu4[1]='<a href="candidates_knowledge_centre.html">Candidate\'s Knowledge Centre</a>'


//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="Query.aspx">Submit a query</a>'
menu5[1]='<a href="FeedBack.aspx">Feedback &amp; Suggestions</a>'
menu5[2]='<a href="contactus.html">Contact Us</a>'

		

		
var menuwidth='165px' //default menu width
var menubgcolor='#81b5e5'  //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){
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") -00
dropmenuobj.y=getposOffset(obj, "top") +3
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





<!-- Copyright 2005, Sandeep Gangadharan -->
<!-- For more free scripts go to http://www.sivamdesign.com/scripts/ -->
<!--
if (document.getElementById) {
 document.writeln('<style type="text/css"><!--')
 document.writeln('.main {text-decoration:none; color:#757575; cursor:hand; cursor:pointer}')
 document.writeln('span:hover.mainLink {text-decoration:underline; color:red}')
 document.writeln('.links {display:none; padding-left:14px}')
 document.writeln('.link {text-decoration:none; color:blue}')
 document.writeln('a:hover.link {text-decoration: underline; color: red}')
 document.writeln('//--></style>') }

function openClose(theID) {
 if (document.getElementById(theID).style.display == "block") {
     document.getElementById(theID).style.display = "none";
     document.getElementById("tick_"+theID).innerHTML = "+"; }
 else {
     document.getElementById(theID).style.display = "block";
     document.getElementById("tick_"+theID).innerHTML = "-"; } }

function redirect(textbox)
{
var i =0;
var result='';
var values = document.URL.split('/');

for (i=0 ;i<values.length-1;i++)
{
result += values[i]+'/';
}
var stext = '';
var searchText = document.getElementById('search').value.split(' ');
for (i=0 ;i<searchText.length - 1;i++)
{
stext += searchText[i]+'+';
}
stext += searchText[searchText.length - 1];
if(stext.length < 3)
{
alert('Search text must be of atleast three characters');
}
else
{
result += "search.html?text="+ stext;
window.location = result;
}
}


