function hideall()
{
	var divcoll = document.all.tags("div");
	var htmltagid;
	for (count=0; count<divcoll.length; count++)
	{
		if (divcoll[count].id.indexOf("vacancybody") != -1)
		{	
			divcoll[count].style.display = "none";
			htmltagid = "vacancytext" + divcoll[count].id.substring(11);
			divcoll[count].innerHTML = document.all[htmltagid].innerHTML;
		}
	}
}

function showhide(tagname)
{
	evalstr = "currentstate = document.all[\"" + tagname + "\"].style.display"
	eval(evalstr);
	if (currentstate=="none")
	{
		evalstr = "document.all[\"" + tagname + "\"].style.display=\"\"";
		eval(evalstr);
	}
	else
	{
		evalstr = "document.all[\"" + tagname + "\"].style.display=\"none\"";
		eval(evalstr);
	}
}

function newwindow(url)
{
	var features;
	var windowname;
	windowname="JUSmallWindow";
	features="height=400, width=545, menubar, scrollbars=yes";
	window.open(url, windowname, features);
}

function newwindow2(formname) {
    var features;
    var windowname;
    windowname = "JUSmallWindow";
    features = "height=400, width=545, menubar, scrollbars=yes";
    window.open("about:blank", windowname, features);
    document.forms(formname).submit();
}

function swapimage(tag)
{
	if (tag.src.indexOf("images/downarrow.gif") != -1)
	{
		pos = tag.src.indexOf("downarrow.gif");
		tag.src = tag.src.substr(0, pos) + "uparrow.gif";
		tag.title = "Click here to collapse";
	}
	else
	{
		pos = tag.src.indexOf("uparrow.gif");
		tag.src = tag.src.substr(0, pos) + "downarrow.gif";
		tag.title = "Click here to expand details";
	}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",138,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
  fw_menu_0.addMenuItem("Are you in the RIGHT job?","window.open('careercheckup.htm', '_self');");
   fw_menu_0.fontWeight="bold";
   fw_menu_0.hideOnMouseOut=true;
    window.fw_menu_1_1 = new Menu("ACCOUNTANCY &amp; FINANCE",70,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
    fw_menu_1_1.addMenuItem("up to &pound;16k","window.open('findbottomframefinvacjr.htm', '_self');");
    fw_menu_1_1.addMenuItem("&pound;16k+","window.open('findbottomframefinvac.htm', '_self');");
     fw_menu_1_1.fontWeight="bold";
     fw_menu_1_1.hideOnMouseOut=true;
    window.fw_menu_1_2 = new Menu("COMMERCIAL &amp; OFFICE",70,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
    fw_menu_1_2.addMenuItem("up to &pound;16k","window.open('findbottomframecomvacjr.htm', '_self');");
    fw_menu_1_2.addMenuItem("&pound;16k+","window.open('findbottomframecomvac.htm', '_self');");
     fw_menu_1_2.fontWeight="bold";
     fw_menu_1_2.hideOnMouseOut=true;
    window.fw_menu_1_3 = new Menu("LEGAL &amp; EXECUTIVE",83,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
    fw_menu_1_3.addMenuItem("Senior roles","window.open('findbottomframelegalvac.htm', '_self');");
    fw_menu_1_3.addMenuItem("Support roles","window.open('findbottomframelegaljrvac.htm', '_self');");
     fw_menu_1_3.fontWeight="bold";
     fw_menu_1_3.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",149,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
  fw_menu_1.addMenuItem("NEW VACANCIES!!!","window.open('findbottomframevacsnew.htm', '_self');");
  fw_menu_1.addMenuItem(fw_menu_1_1);
  fw_menu_1.addMenuItem(fw_menu_1_2);
  fw_menu_1.addMenuItem("INFORMATION TECHNOLOGY","window.open('findbottomframeitvac.htm', '_self');");
  fw_menu_1.addMenuItem(fw_menu_1_3);
  fw_menu_1.addMenuItem("SALES &amp; MARKETING","window.open('findbottomframesalevac.htm', '_self');");
  fw_menu_1.addMenuItem("TEMPS &amp; CONTRACTORS","window.open('findbottomframetempvac.htm', '_self');");
   fw_menu_1.fontWeight="bold";
   fw_menu_1.hideOnMouseOut=true;
   fw_menu_1.childMenuIcon="arrows.gif";
  window.fw_menu_2 = new Menu("root",116,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
  fw_menu_2.addMenuItem("CV Tips","window.open('findbottomframecvtips.htm', '_self');");
  fw_menu_2.addMenuItem("CV Layout","window.open('findbottomframecvlayout.htm', '_self');");
  fw_menu_2.addMenuItem("Accompanying Letter","window.open('findbottomframeaccletter.htm', '_self');");
   fw_menu_2.fontWeight="bold";
   fw_menu_2.hideOnMouseOut=true;
  window.fw_menu_3 = new Menu("root",124,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
  fw_menu_3.addMenuItem("Interview Prep","window.open('findbottomframeintprep.htm', '_self');");
  fw_menu_3.addMenuItem("Possible Questions","window.open('findbottomframeintpossq.htm', '_self');");
  fw_menu_3.addMenuItem("The Interview","window.open('findbottomframeinttheint.htm', '_self');");
  fw_menu_3.addMenuItem("Do's &amp; Don'ts","window.open('findbottomframeintdodont.htm', '_self');");
  fw_menu_3.addMenuItem("Psychometric Profiling","window.open('findbottomframeintpsy.htm', '_self');");
   fw_menu_3.fontWeight="bold";
   fw_menu_3.hideOnMouseOut=true;
  window.fw_menu_4 = new Menu("root",135,15,"Verdana, Arial, Helvetica, sans-serif",8,"#0000ff","#0000ff","#ffd9ff","#ff80ff");
  fw_menu_4.addMenuItem("Code of Conduct","window.open('findbottomframetccode.htm', '_self');");
  fw_menu_4.addMenuItem("FAQ","window.open('findbottomframetcfaq.htm', '_self');");
  fw_menu_4.addMenuItem("Timesheets","window.open('findbottomframetctimesheets.htm', '_self');");
  fw_menu_4.addMenuItem("Method of Payment","window.open('findbottomframetcpay.htm', '_self');");
  fw_menu_4.addMenuItem("Payslips &amp; Timesheets","window.open('findbottomframetcslips.htm', '_self');");
  fw_menu_4.addMenuItem("P45s","window.open('findbottomframetcp45.htm', '_self');");
  fw_menu_4.addMenuItem("Ltd Companies &amp; VAT","window.open('findbottomframetcltd.htm', '_self');");
  fw_menu_4.addMenuItem("Change of Circumstances","window.open('findbottomframetcchange.htm', '_self');");
  fw_menu_4.addMenuItem("Absence from work","window.open('findbottomframetcabsence.htm', '_self');");
  fw_menu_4.addMenuItem("End of Assignment","window.open('findbottomframetcend.htm', '_self');");
  fw_menu_4.addMenuItem("Holiday Pay","window.open('findbottomframetchol.htm', '_self');");
  fw_menu_4.addMenuItem("Further Info","window.open('findbottomframetcinfo.htm', '_self');");
  fw_menu_4.addMenuItem("Useful Forms","window.open('findbottomframetcforms.htm', '_self');");
   fw_menu_4.fontWeight="bold";
   fw_menu_4.hideOnMouseOut=true;

  fw_menu_4.writeMenus();
} // fwLoadMenus()

