
AllImages=new 
Array("images/research_forum_home_a.jpg","images/research_forum_home_n.jpg","images/research_forum_forum_a.jpg","images/research_forum_forum_n.jpg","images/research_forum_faq_a.jpg","images/research_forum_faq_n.jpg","images/research_forum_contents_a.jpg","images/research_forum_contents_n.jpg","images/research_forum_help_a.jpg","images/research_forum_help_n.jpg","images/conference_a.jpg","images/conference_n.jpg","images/contents_n.jpg","images/contents_n.jpg","images/researchpapaeres_n.jpg","images/researchpapaeres_a.jpg","images/sharedlinks_n.jpg","images/sharedlinks_a.jpg","images/contributed_a.jpg","images/contributed_n.jpg");




function preloadImages()
{

for(loadall=0; loadall<AllImages.length; loadall++)
{

var LoadedImage=new Image();
LoadedImage.src=AllImages[loadall];
}
}

preloadImages();

var l1="",l2="",l3="",l4="";
function swapImage(swapimage,id){
document.getElementById(id).src="images/"+swapimage;
}


if (highlight=="home"){l1="<img src='images/research_forum_home_a.jpg' name='home' width='74' height='30' border='0' id='home' alt=''>";}
else{l1="<a href='index.aspx'  onMouseOver='swapImage(\"research_forum_home_a.jpg\",\"home\")' onMouseOut='swapImage(\"research_forum_home_n.jpg\",\"home\")'><img src='images/research_forum_home_n.jpg' name='home' width='74' height='30' border='0' id='home' alt=''></a>";}


if (highlight=="forum"){l2="<img src='images/research_forum_forum_a.jpg' name='forum' width='82' height='30' border='0' id='forum' alt=''>";}
else{l2="<a href='Research_forum.aspx'  onMouseOver='swapImage(\"research_forum_forum_a.jpg\",\"forum\")' onMouseOut='swapImage(\"research_forum_forum_n.jpg\",\"forum\")'><img src='images/research_forum_forum_n.jpg' name='forum' width='82' height='30' border='0' id='forum' alt=''></a>";}

if (highlight=="faq"){l3="<img src='images/research_forum_faq_a.jpg' name='faq' width='62' height='30' border='0' id='faq' alt=''>";}
else{l3="<a href='faqs.aspx' onMouseOver='swapImage(\"research_forum_faq_a.jpg\",\"faq\")' onMouseOut='swapImage(\"research_forum_faq_n.jpg\",\"faq\")'><img src='images/research_forum_faq_n.jpg' name='faq' width='62' height='30' border='0' id='faq' alt=''></a>";}

if (highlight=="resource"){l4="<a href='#' onMouseOver='showLayer(\"namo\",\"resource\",0,30)' onMouseOut='hideLayer(\"namo\")'><img src='images/resources_a.jpg' name='resource' width='108' height='30' border='0' id='resource' alt=''></a>";}
else{l4="<a href='#' onMouseOver='swapImage(\"resources_a.jpg\",\"resource\");showLayer(\"namo\",\"resource\",0,30)' onMouseOut='swapImage(\"resources_n.jpg\",\"resource\");hideLayer(\"namo\")'><img src='images/resources_n.jpg' name='resource' width='108' height='30' border='0' id='resource' alt=''></a>";}


document.write("<table border='0' cellspacing='0' cellpadding='0' width='987' align='center' bgcolor='#000000'>");

document.write("<tr><td width='300'>"+l1+"</td><td width='300'>"+l2+"</td><td width='300'>"+l4+"</td><td width='87' align='right'>"+l3+"</td></tr>");


document.write("</table>");

var interval=null;
var timer=null;
var scheduler1=null;
var layerHeight=0;
var layerHeight2=0;
var layerHeight3=0;


function getPageOffsetLeft()
{  return arguments[0].offsetLeft + (arguments[0].offsetParent ? getPageOffsetLeft(arguments[0].offsetParent) : 0);
}

function getPageOffsetTop()
{  return arguments[0].offsetTop + (arguments[0].offsetParent ? getPageOffsetTop(arguments[0].offsetParent) : 0);
}



function slideDown(layerid)
{
document.getElementById(layerid).style.display="block";
 if(layerHeight<=140)
 {
   layerHeight+=5;
   document.getElementById(layerid).style.height=layerHeight+"px";
 }
 else
 {  clearInterval(interval);
	     return;
 }
}

function slideUp(layerid)
{
 if(layerHeight>=1)
 {
   layerHeight-=5;
   document.getElementById(layerid).style.height=layerHeight+"px";
 }
 else
 {  clearInterval(interval);
	     return;
		 
 }
 
}

function showLayer(id,targetid,leftoff,topoff)
{
clearInterval(interval);
interval=setInterval('slideDown("'+id+'")',10);
document.getElementById(id).style.left=getPageOffsetLeft(document.getElementById(targetid))+leftoff+'px';
document.getElementById(id).style.top=getPageOffsetTop(document.getElementById(targetid))+topoff+'px';
}

function hideLayer(id)
{

if(document.getElementById(id).style.display)
{
clearInterval(interval);
interval=setInterval('slideUp("'+id+'")',10);
}


}

document.write('<div style="overflow:hidden;position:absolute;display:none;z-index:1000;" id="namo" onMouseOver="showLayer(\'namo\',\'resource\',0,30)" onMouseOut="hideLayer(\'namo\')"><a href="Research_SharedLink.aspx" onmouseover="swapImage(\'sharedlinks_a.jpg\',\'shared\')" onmouseout="swapImage(\'sharedlinks_n.jpg\',\'shared\')"><img src="images/sharedlinks_n.jpg" name="shared" width="155" height="18" border="0" id="shared" alt=""></a><br><a href="Conferences.aspx" onmouseover="swapImage(\'conference_a.jpg\',\'research\')" onmouseout="swapImage(\'conference_n.jpg\',\'research\')"><img src="images/conference_n.jpg" name="research" width="155" height="18" border="0" id="research" alt=""></a><br><a href="content.aspx" onmouseover="swapImage(\'contributed_a.jpg\',\'conferences\')" onmouseout="swapImage(\'contributed_n.jpg\',\'conferences\')"><img src="images/contributed_n.jpg" name="conferences" width="155" height="18" border="0" id="conferences" alt=""></a></div>');
