var sPath = window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
var dirPath = "./";

if (sPage == "speakersList.html"){
	dirPath = "../";
}

function writeJCmenu() {
document.write('<table width="100%" border="0" cellspacing="0" cellpadding="0">\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image18\',\'\',\''+dirPath+'images/home_2.jpg\',1)">\n\
			   <img src="'+(sPage=="index.php"?dirPath+"images/home_2.jpg":dirPath+"images/home_1.jpg")+'" name="Image18" width="210" height="28" border="0" id="Image18" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image19\',\'\',\''+dirPath+'images/news_2.jpg\',1)">\n\
			   <img src="'+(sPage=="news.php"?dirPath+"images/news_2.jpg":dirPath+"images/news_1.jpg")+'" name="Image19" width="210" height="28" border="0" id="Image19" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'organizer.html" onMouseOut="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image20\',\'\',\''+dirPath+'images/org_2.jpg\',1)">\n\
			   <img src="'+(sPage=="organizer.html"?dirPath+"images/org_2.jpg":dirPath+"images/org_1.jpg")+'" name="Image20" width="210" height="28" border="0" id="Image20" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'speakers.php" onMouseOut="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image21\',\'\',\''+dirPath+'images/speakers_2.jpg\',1)">\n\
			   <img src="'+(sPage=="speakers.php"?dirPath+"images/speakers_2.jpg":dirPath+"images/speakers_1.jpg")+'" name="Image21" width="210" height="28" border="0" id="Image21" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'programme.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image22\',\'\',\''+dirPath+'images/conference_2.jpg\',1)">\n\
			   <img src="'+(sPage=="programme.php"?dirPath+"images/conference_2.jpg":dirPath+"images/conference_1.jpg")+'" name="Image22" width="210" height="28" border="0" id="Image22" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'papers_login.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image30\',\'\',\''+dirPath+'images/paper_2.jpg\',1)">\n\
			   <img src="'+(sPage=="papers_login.php"?dirPath+"images/paper_2.jpg":dirPath+"images/paper_1.jpg")+'" name="Image30" width="210" height="28" border="0" id="Image30" /></a></td>\n\
			   </tr>\n\
				 <tr>\n\
			   <td height="14" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'reg.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image23\',\'\',\''+dirPath+'images/reg_2.jpg\',1)">\n\
			   <img src="'+(sPage=="reg.php"?dirPath+"images/reg_2.jpg":dirPath+"images/reg_1.jpg")+'" name="Image23" width="210" height="28" border="0" id="Image23" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="7" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'open.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image28\',\'\',\''+dirPath+'images/Open_Forums2.jpg\',1)">\n\
			   <img src="'+(sPage=="open.htm"?dirPath+"images/Open_Forums2.jpg":dirPath+"images/Open_Forums_1.jpg")+'" name="Image28" width="210" height="28" border="0" id="Image28" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="7" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'young.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image29\',\'\',\''+dirPath+'images/young_2.jpg\',1)">\n\
			   <img src="'+(sPage=="young.htm"?dirPath+"images/young_2.jpg":dirPath+"images/young_1.jpg")+'" name="Image29" width="210" height="28" border="0" id="Image29" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'venue.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image24\',\'\',\''+dirPath+'images/ven_2.jpg\',1)">\n\
			   <img src="'+(sPage=="venue.html"?dirPath+"images/ven_2.jpg":dirPath+"images/ven_1.jpg")+'" name="Image24" width="210" height="28" border="0" id="Image24" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'socialProgramme.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image27\',\'\',\''+dirPath+'images/social_2.jpg\',1)" >\n\
			   <img src="'+(sPage=="socialProgramme.html"?dirPath+"images/social_2.jpg":dirPath+"images/social_1.jpg")+'" name="Image27" width="210" height="28" border="0" id="Image27" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'welcome.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image25\',\'\',\''+dirPath+'images/wel_2.jpg\',1)">\n\
			   <img src="'+(sPage=="welcome.html"?dirPath+"images/wel_2.jpg":dirPath+"images/wel_1.jpg")+'" name="Image25" width="210" height="28" border="0" id="Image25" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'contact_us.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image26\',\'\',\''+dirPath+'images/con_2.jpg\',1)">\n\
			   <img src="'+(sPage=="contact_us.php"?dirPath+"images/con_2.jpg":dirPath+"images/con_1.jpg")+'" name="Image26" width="210" height="28" border="0" id="Image26" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">\n\
			   <a href="'+dirPath+'poster.html" target="_blank" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image1\',\'\',\''+dirPath+'images/dlp_2.jpg\',1)" >\n\
			   <img src="'+(sPage=="poster.html"?dirPath+"images/dlp_2.jpg":dirPath+"images/dlp_1.jpg")+'" name="Image1" width="210" height="28" border="0" id="Image1" /></a></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">&nbsp;</td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;"><div align="center"><span style="background-repeat:no-repeat;"><img src="images/CPDicon_3.jpg" width="200" height="174"  border="0" /></span></div></td>\n\
			   </tr>\n\
			   <tr>\n\
			   <td height="28" class="menu" style="background-repeat:no-repeat;">&nbsp;</td>\n\
			   </tr>\n\
			   </table>');
}