<!-- Browser Check -->
iens6=document.all||document.getElementById
ns4=document.layers
<!--DEFINE CONTENT-->
var titleArray = new Array
titleArray[1]="<b><a class='menuBar' href='area.php'>Area of Sepcialisation</a></b>"

var linkArray = new Array

linkArray[1]="<tr><td class='mnutblt' onmouseover=\"this.className='mnutblton'\" onmouseout=\"this.className='mnutblt'\" cellspacing='0' cellpadding='0'><b><a class='mnu1' href='mining.php'>Mining, Transport industry & Manufacturing</a></b></td></tr>"
linkArray[1]+="<tr><td class='mnutbl' onmouseover=\"this.className='mnutblon'\" onmouseout=\"this.className='mnutbl'\" cellspacing='0' cellpadding='0'><b><a class='mnu1' href='medical.php'>Medical & Pharmaceutical Recruitment</a></b></td></tr>"
linkArray[1]+="<tr><td class='mnutbl' onmouseover=\"this.className='mnutblon'\" onmouseout=\"this.className='mnutbl'\" cellspacing='0' cellpadding='0'><b><a class='mnu1' href='temp.php'>Temporary division<br>Registered Labour Broker - Skilled artisans</a></b></td></tr>"
linkArray[1]+="<tr><td class='mnutbl' onmouseover=\"this.className='mnutblon'\" onmouseout=\"this.className='mnutbl'\" cellspacing='0' cellpadding='0'><b><a class='mnu1' href='locum.php'>Locums - Doctors & Pharmacists</a></b></td></tr>"

var thename
var theobj
var thetext
var winHeight
var winWidth
var boxPosition
var headerColor
var tableColor
var timerID
var seconds=0
var x=0
var y=0
var offsetx = 2
var offsety = 2
var dunnit = false;

<!--END GLOBAL VARIABLES-->
if(ns4) {
	document.captureEvents(Event.MOUSEMOVE)
}
document.onmousemove=getXY
<!--GLOBAL FUNCTIONS-->
function buildText(value,tcolor,bcolor) {
text="<table width='"+(winWidth-4)+"' height='"+(winHeight-4)+"' bgcolor='"+tableColor+"' cellspacing='0' cellpadding='0'>"
text+=linkArray[value]
text+="</table>"
return text
}
function setObj(textelement,inwidth,inheight,boxpos,titlecolor,boxcolor,tfontcolor,bfontcolor) {
	clearTimeout(timerID)
	boxPosition=boxpos
	tableColor=boxcolor
	headerColor=titlecolor
	winWidth=inwidth
	winHeight=inheight
	thetext=buildText(textelement,tfontcolor,bfontcolor)
  y=findPosY(document.getElementById('area'))+22
  if (textelement == '1') {
  	x=findPosX(document.getElementById('area'))
  }
	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		theobj.style.width=winWidth
		theobj.style.height=winHeight
		theobj.style.left=x
		theobj.style.top=y
			if(iens6&&document.all) {
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border='0'><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
			}
			if(iens6&&!document.all) {
				theobj.innerHTML = ""
				theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border='0'><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>"
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		theobj.left=x
		theobj.top=y
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.height=winHeight
		theobj.clip.height=winHeight
		theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border='0'><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
		theobj.document.close()
	}
	viewIt()
}
function viewIt() {
		if(iens6) {
			theobj.style.visibility="visible"
		}
		if(ns4) {
			theobj.visibility = "visible"
		}
}
function stopIt() {
	if(iens6) {
		if (theobj) {
      theobj.innerHTML = ""
		  theobj.style.visibility="hidden"
		}  
	}
	if(ns4) {
	if (theobj) {
	  	theobj.document.write("")
  		theobj.document.close()
	  	theobj.visibility="hidden"
	  } 	
	}
}
function timer(sec) {
	seconds=parseInt(sec)
	if(seconds>0) {
		seconds--
		timerID=setTimeout("timer(seconds)",2000)
	}else{
		stopIt()
	}
}
function getXY(e) {
	if (ns4) {
		x=0
		y=0
		x=e.pageX; 
		y=e.pageY;
	}
	if (iens6&&document.all) {
		x=0
		y=0
		x=event.x; 
		y=event.y;
	}
	if (iens6&&!document.all) {
		x=0
		y=0
		x=e.pageX; 
		y=e.pageY;
	}
}

function sendemto(emto) {
  if (emto == "webmaster") {
      var uname = "careerpro";
		  var hname = "visitus.co.za";
		  var linktxt = uname + "@" + hname;
		  document.write('<a class="bottomSig" href=' + "mail" + "to:" + uname + "@" + hname + ">" + " webmaster" + "</a>");
  }
 }

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;
	var printstring = '';
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			printstring += ' element ' + obj.tagName + ' has ' + obj.offsetTop;
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	window.status = printstring;
	return curtop;
}

function imgOn(iname) {
	 if (document.images) {  
	    if (eval(iname + "On.complete")) { 
	       document.images[iname].src = eval(iname + "On.src"); 
	    }
	 }  
}

function imgOff(iname) {
	 if (document.images) {
	    if (eval(iname + "Off.complete")) { 
	      document.images[iname].src = eval(iname + "Off.src"); 
	    }
	 }
}

function checkit ()
{
  if (dunnit) {
    alert ("One submission per person!");
    return false;
  } else {	
    alert ("Thank you for your input.");
    dunnit = true;
    return true;
  }
}

