// The following lines have been edited by Dibyendu on 15.06.2005
// The following 2 lines gets the current page name
var sPath = window.location.pathname;
//var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
//alert(sPage);
// Modification finished

if(typeof(loc)=="undefined"||loc==""){var loc="";if(document.body&&document.body.innerHTML){var tt=document.body.innerHTML.toLowerCase();var last=tt.indexOf("eklipse.js\"");if(last>0){var first=tt.lastIndexOf("\"",last);if(first>0&&first<last)loc=document.body.innerHTML.substr(first+1,last-first-1);}}}

var bd=0
document.write("<style type=\"text/css\">");
document.write("\n<!--\n");
document.write(".eklipse_menu {border-color:#ffffff;border-style:solid;border-width:"+bd+"px 0px "+bd+"px 0px;background-color:#ff6600;position:absolute;left:0px;top:0px;visibility:hidden;}");
document.write("a.eklipse_plain:link, a.eklipse_plain:visited{text-align:left;background-color:#717A82;color:#ffffff;text-decoration:none;border-color:#ffffff;border-style:solid;border-width:1px "+bd+"px 0px "+bd+"px;padding:3px 0px 3px 0px;cursor:hand;display:block;font-size:9pt;font-family: Arial, Helvetica, sans-serif;}");
document.write("a.eklipse_plain:hover, a.eklipse_plain:active{background-color:#CC6B3D;color:#ffffff;text-decoration:none;border-color:#ffffff;border-style:solid;border-width:1px "+bd+"px 0px "+bd+"px;padding:3px 0px 3px 0px;cursor:hand;display:block;font-size:9pt;font-family: Arial, Helvetica, sans-serif;}");
document.write("\n-->\n");
document.write("</style>");

var fc=0xffffff;
var bc=0xCC6B3D;
if(typeof(frames)=="undefined"){var frames=0;}

startMainMenu("eklipse_left.gif",25,7,2,0,0)

// The If condition has been provided by Dibyendu on 15.06.2005
// The following code checks the current page and creates the top menu
if(sPage == "index.html")
	mainMenuItem("eklipse_b1_over",".gif",20,125,loc+"../"+"index.html","","Home",2,2,"eklipse_plain");
else
	mainMenuItem("eklipse_b1",".gif",20,125,loc+"../"+"index.html","","Home",2,2,"eklipse_plain");

if(sPage == "employers_info.html" || sPage == "candidates.php3" || sPage == "candidates2.php3")
	mainMenuItem("eklipse_b2_over",".gif",20,125,"javascript:;","","Employers   ",2,2,"eklipse_plain");
else
	mainMenuItem("eklipse_b2",".gif",20,125,"javascript:;","","Employers   ",2,2,"eklipse_plain");

if(sPage == "contractors_info.html" || sPage == "faq.html" || sPage == "profileadd.php3" || sPage == "profileadd1.php3" 
	|| sPage == "profileadd2.php3" ||  sPage == "timesheets.html" || sPage == "forms.html" || sPage == "ohs.html" || sPage  == "privacy.html")
	mainMenuItem("eklipse_b3_over",".gif",20,125,"javascript:;","","Contractors ",2,2,"eklipse_plain");
else
	mainMenuItem("eklipse_b3",".gif",20,125,"javascript:;","","Contractors ",2,2,"eklipse_plain");

if(sPage == "positionsvacant.php3" || sPage == "show_job.php3" || sPage == "councils.html")
	mainMenuItem("eklipse_b4_over",".gif",20,125,loc+"../"+"positionsvacant.php3","","Jobs",2,2,"eklipse_plain");
else
	mainMenuItem("eklipse_b4",".gif",20,125,loc+"../"+"positionsvacant.php3","","Jobs",2,2,"eklipse_plain");

if(sPage == "contact.php3")
	mainMenuItem("eklipse_b6_over",".gif",20,125,loc+"../"+"contact.php3","","Contact Us",2,2,"eklipse_plain");
else
	mainMenuItem("eklipse_b6",".gif",20,125,loc+"../"+"contact.php3","","Contact Us",2,2,"eklipse_plain");

endMainMenu("eklipse_right.gif",25,7)

startSubmenu("eklipse_b3","eklipse_menu",120);
submenuItem("&nbsp;Information",loc+"../"+"contractors_info.html","","eklipse_plain");
submenuItem("&nbsp;FAQ",loc+"../"+"faq.html","","eklipse_plain");
submenuItem("&nbsp;Add My Profile",loc+"../"+"jobseekers/profileadd.php3","","eklipse_plain");
submenuItem("&nbsp;Timesheets",loc+"../"+"timesheets.html","","eklipse_plain");
submenuItem("&nbsp;Forms",loc+"../"+"forms.html","","eklipse_plain");
submenuItem("&nbsp;OHS",loc+"../"+"ohs.html","","eklipse_plain");
submenuItem("&nbsp;Privacy Statement",loc+"../"+"privacy.html","","eklipse_plain");
endSubmenu("eklipse_b3");

startSubmenu("eklipse_b3_over","eklipse_menu",120);
submenuItem("&nbsp;Information",loc+"../"+"contractors_info.html","","eklipse_plain");
submenuItem("&nbsp;FAQ",loc+"../"+"faq.html","","eklipse_plain");
submenuItem("&nbsp;Add My Profile",loc+"../"+"jobseekers/profileadd.php3","","eklipse_plain");
submenuItem("&nbsp;Timesheets",loc+"../"+"timesheets.html","","eklipse_plain");
submenuItem("&nbsp;Forms",loc+"../"+"forms.html","","eklipse_plain");
submenuItem("&nbsp;OHS",loc+"../"+"ohs.html","","eklipse_plain");
submenuItem("&nbsp;Privacy Statement",loc+"../"+"privacy.html","","eklipse_plain");
endSubmenu("eklipse_b3_over");

startSubmenu("eklipse_b2","eklipse_menu",120);
submenuItem("&nbsp;Information",loc+"../"+"employers_info.html","","eklipse_plain");
submenuItem("&nbsp;Candidate Profiles",loc+"../"+"employers/candidates.php3","","eklipse_plain");
endSubmenu("eklipse_b2");

startSubmenu("eklipse_b2_over","eklipse_menu",120);
submenuItem("&nbsp;Information",loc+"../"+"employers_info.html","","eklipse_plain");
submenuItem("&nbsp;Candidate Profiles",loc+"../"+"employers/candidates.php3","","eklipse_plain");
endSubmenu("eklipse_b2_over");

loc="";
