//Contents for About Us menu
var menu1=new Array()
menu1[0]='<a href="aboutus.htm">Intro</a>'
//menu1[1]='<a href="services_new.htm">Services</a>'
menu1[2]='<a href="partnerships.htm">Partnerships</a>'
menu1[3]='<a href="team.htm">Team</a>'
menu1[4]='<a href="contactus.htm">Contact Us</a>'
//menu1[5]='<a href="support.htm">Support</a>'

//Contents for Services
//var menu2=new Array()
//menu2[0]='<a href="research.htm">Research</a>'
//menu2[1]='<a href="initiatives.htm">Initiatives</a>'
//menu2[2]='<a href="seminars.htm">Seminars</a>'

//Content for Publications and Research
var menu3=new Array()
menu3[0]='<a href="publications_research.htm#himalaycover">The Himalayan Challenge: Water Security in Emerging Asia, 2010 </a>'
menu3[1]='<a href="publications_research.htm#costofconflict">The Cost of Conflict in the Middle East <B><font color="#CC0000">PDF</font></B></a>'
menu3[2]='<a href="publications_research.htm#inclusive">Inclusive Semi-Permanent Conference for the MiddleEast <B><font color="#CC0000">PDF</font></B></a>'
menu3[3]='<a href="publications_research.htm#globalsecurity">Global Security and Economy: Emerging Issues<B><font color="#CC0000">PDF</font></B></a>'
menu3[4]='<a href="publications_research.htm#inclusiveworld">An Inclusive World:<BR> In which the West, Islam and the Rest have a stake <B><font color="#CC0000">PDF</font></B></a>'
//menu3[3]='<a href="publications_research.htm#thirdrt">Third International Roundtable Outcome Report</a>'
//menu3[4]='<a href="publications_research.htm#alexandria">Alexandria Workshop Report on Global Extremism, Terror and Response Strategies <B><font color="#CC0000">PDF</font></B></a>'
//menu3[5]='<a href="ManagingGlobalChallenges.pdf">Managing Global Challenges <B><font color="#CC0000">PDF</font></B></a>'
menu3[5]='<a href="publications_research.htm#ccsl">Cost of Conflict in Sri Lanka <B><font color="#CC0000">PDF</font></B></a>'
menu3[6]='<a href="publications_research.htm#secondfreedom">Second Freedom: South Asia Challenge 2005 - 2025</a>'
menu3[7]='<a href="publications_research.htm#finalsettlement">Final Settlement: Restructuring India Pakistan Relations <B><font color="#CC0000">PDF</font></B></a>'
menu3[8]='<a href="publications_research.htm#brusselsconsensus">Brussels Consensus</a>'
menu3[9]='<a href="publications_research.htm#pakprovinces">Pakistans Provinces <B><font color="#CC0000">PDF</font></B></a>'
menu3[10]='<a href="publications_research.htm#ccip">Cost of Conflict between India and Pakistan <B><font color="#CC0000">HTML</font></B></a>'
menu3[11]='<a href="publications_research.htm#shiftingsands">Shifting Sands: Instability in Undefined Asia</a>'
menu3[12]='<a href="publications_research.htm#rethinkingindiasfuture">Rethinking India\'s Future</a>'
menu3[13]='<a href="publications_research.htm#futofpak">Future of Pakistan</a>'
menu3[14]='<a href="publications_research.htm"><font color="#CC0000">ALL</font></a>'


//Content for Conference Reports
var menu4=new Array()
menu4[0]='<a href="conference_reports.htm#WaterReport">SFG Workshop on Challenges of Water Stress and Climate Change in Asia<B><font color="#CC0000">PDF</font></B></a>'
menu4[1]='<a href="conference_reports.htm#middleeast">Workshop on the Cost of Conflict in the Middle East 2, Zurich, Switzerland, August 2008</a>'
menu4[2]='<a href="conference_reports.htm#ConferenceonResponsibility">Conference on Responsibility to the Future: Business, Peace and Sustainability, June 2008<B><font color="#CC0000">PDF</font></B></a>'
menu4[3]='<a href="conference_reports.htm#CostofConflictMiddEastAntalya">Workshop on the Cost of Conflict Middle East, Antalya, Turkey, March 2008</a>'
menu4[4]='<a href="conference_reports.htm#AlexandriaWorkshopReport">Alexandria Workshop Report: International Workshop on Global Extremism,Terror and Response Strategies, August 2006</a>'
menu4[5]='<a href="conference_reports.htm#ManagingGlobalChallenges">Managing Global Challenges, 2006</a>'
menu4[6]='<a href="conference_reports.htm#ThirdInternationalRoundtable">Third International Roundtable on Constructing Peace Deconstructing Terror, November 2006<B><font color="#CC0000">PDF</font></B></a>'
menu4[7]='<a href="conference_reports.htm#SecondInternationalRoundtable">Second International Roundtable on Constructing Peace Deconstructing Terror, June 2005</a>'
menu4[8]='<a href="conference_reports.htm#FirstInternationalRoundtable">First International Roundtable on Constructing Peace Deconstructing Terror, June 2004</a>'
//menu4[8]='<a href="thirdroundtable_europarliament.htm">Outcome Report</a>'

//Content for Other Projects
//var menu5=new Array()
//menu5[0]='<a href="ManagingGlobalChallenges.pdf">Managing Global Challenges</a>'
//menu5[1]='<a href="terrorism_workshop_report.pdf">Alexandria Workshop</a>'

//Content for Links
var menu6=new Array()
menu6[0]='<a href="links_europe.htm">Europe</a>'
menu6[1]='<a href="links_americas.htm">Americas</a>'
menu6[2]='<a href="links_asiapacific.htm">Asia and Pacific</a>'
menu6[3]='<a href="links_middleeast_nafrica.htm">Middle East and North Africa</a>'

/*//Content for Medical
var menu7=new Array()
menu7[0]='<a href="electronicrecords_medical.htm">Electronic Records</a>'
menu7[1]='<a href="claimsprocessing.htm">Claims Processing</a>'
menu7[2]='<a href="solutionsforproviders.htm">Solutions for Providers</a>'
//menu7[3]='<a href="#">Medical Transcription</a>'
*/


var menuwidth='165px' //default menu width
var menubgcolor='#CCCCCC'  //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=-500
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")
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