<!--

	/* --------------------------------------------------------
		Momentum Splash 'Message'
	-------------------------------------------------------- */

	// 	Define global var

		messageID = 1;
		// default, shown when home page not loaded by splash (in which case currentPage=1)

	// 	Define arrays for Momentum 'Message'

		splashFlash = new Array();
		splashFlash[0] = new Array();
		splashFlash[1] = new Array();
		splashFlash[2] = new Array();
		splashFlash[3] = new Array();			
		
		// splashFlash[x][0] - id
		// splashFlash[x][1] - title
		// splashFlash[x][2] - alt text	

		splashFlash[0][0] = 'on_the_job';
		splashFlash[0][1] = 'On the Job';		
		splashFlash[0][2] = 'Looking for the right person? Looking for the right position? Look with momentum. ';			

		splashFlash[1][0] = 'on_the_move'; 
		splashFlash[1][1] = 'On the Move'; 
		splashFlash[1][2] = '...look no further. Whether you\'re looking for a new role or a person to fill a role - you\'ve come to the right place. Our dynamic team of executive search, recruitment and leasing specialists can help you keep ahead of the competition. '; 
		
		splashFlash[2][0] = 'on_a_roll';
		splashFlash[2][1] = 'On a Roll';		
		splashFlash[2][2] = 'For recruitment, executive leasing and corporate HR services - step out with momentum. ';			
		
		splashFlash[3][0] = 'dont_stand_still';
		splashFlash[3][1] = 'Don\'t Stand Still';
		splashFlash[3][2] = '...otherwise you\'ll go nowhere - and that\'s not what momentum is about. ';	

	// 	Query message data arrays

		function getMessageData(messageID, messageDataType)
		{	
			if (messageDataType == 'id')
			{
				messageDataMatch = 0;
			}
			else if (messageDataType == 'title')
			{
				messageDataMatch = 1;
			}		
			else if (messageDataType == 'alt')
			{
				messageDataMatch = 2;
			}
			messageData = splashFlash[messageID][messageDataMatch];
			
			return(messageData);
		}
	
	//	Get selected message id from URL (passed to homepage from splash page)
	
		function getPassedMessageID()
		{
			var urlString = document.location.href;
			
			// id is last char of url
			messageID = urlString.charAt(urlString.length - 1);
			
			return(messageID);
		}
	
	// Write splash message in .gif format (mozilla, mac ie5.2 and mac safari show blue bars left and right after wipe)

		welcomemessagewritten = 0; 
		// prevent duplicate writes in case browser supports more than one screenres detect mechanism
	
	// Detect Screen Res
	
		function writewelcomemessage()
		{	
			// if welcome message not already written
			
			if (welcomemessagewritten != 1)
			{
				// detect screen dimensions and write message
				
				if ((window.screen) && (screen.availWidth >= 1014)) 
				{
					writecorrectwelcomemessage('1024x768'); // 1024x768 or greater
				}
				else if ((window.screen) && (screen.availWidth <= 810)) 
				{
					writecorrectwelcomemessage('800x600'); // 800x600 or less
				}
			
				// window.innerWidth	
			
				else if ((window.innerWidth) && (window.innerWidth >= 1014)) 
				{
					writecorrectwelcomemessage('1024x768'); // 1024x768 or greater
				}
				else if ((window.innerWidth) && (window.innerWidth <= 810)) 
				{
					writecorrectwelcomemessage('800x600'); // 800x600 or less		
				}
			
				// document.body.clientWidth
				
				else if ((document.body) && (document.body.clientWidth >= 1014))
				{
					writecorrectwelcomemessage('1024x768'); // 1024x768 or greater
				}
				else if ((document.body) && (document.body.clientWidth <= 810))
				{
					writecorrectwelcomemessage('800x600'); // 800x600 or less		
				}
			}
		}	
	
		function writecorrectwelcomemessage(screenres)
		{
			if (screenres == '800x600')
			{
				imagewidth = '307';
				imageheight = '150';
			}
			else if (screenres == '1024x768')
			{
				imagewidth = '390';
				imageheight = '190';
			}
			
			getPassedMessageID();
			
			if (isNum(messageID))
			{		
				// if homepage url not generate by splash page final char of URL could be a letter	
				
				document.write('<img src="images/ui/' + getMessageData(messageID,'id') + '_' + screenres + '.gif" width="' + imagewidth + '" height="' + imageheight + '" alt="' + getMessageData(messageID,'alt') + '" />');
				welcomemessagewritten = 1;
			}
		}	

	/* --------------------------------------------------------
		Top navigation rollovers
	-------------------------------------------------------- */

	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 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_findObj(n, d) 
	{ 
		//v4.01
		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);
		if(!x && d.getElementById) x=d.getElementById(n); 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];}
	}

	/* --------------------------------------------------------
		Pop-up window
	-------------------------------------------------------- */

	function MM_openBrWindow(theURL,winName,features)
	{
		// v2.0
		window.open(theURL,winName,features);
	}
	function flvFPW1()
	{
		// v1.3
		// Copyright 2002, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl/dreamweaver/)
		var v1=arguments,v2=v1[2].split(","),v3=(v1.length>3)?v1[3]:false,v4=(v1.length>4)?parseInt(v1[4]):0,v5=(v1.length>5)?parseInt(v1[5]):0,v6,v7=0,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18;if (v4>1){v10=screen.width;for (v6=0;v6<v2.length;v6++){v18=v2[v6].split("=");if (v18[0]=="width"){v8=parseInt(v18[1]);}if (v18[0]=="left"){v9=parseInt(v18[1]);v11=v6;}}if (v4==2){v7=(v10-v8)/2;v11=v2.length;}else if (v4==3){v7=v10-v8-v9;}v2[v11]="left="+v7;}if (v5>1){v14=screen.height;for (v6=0;v6<v2.length;v6++){v18=v2[v6].split("=");if (v18[0]=="height"){v12=parseInt(v18[1]);}if (v18[0]=="top"){v13=parseInt(v18[1]);v15=v6;}}if (v5==2){v7=(v14-v12)/2;v15=v2.length;}else if (v5==3){v7=v14-v12-v13;}v2[v15]="top="+v7;}v16=v2.join(",");v17=window.open(v1[0],v1[1],v16);if (v3){v17.focus();}document.MM_returnValue=false;
	}
	
	/* --------------------------------------------------------
		String Type
	-------------------------------------------------------- */	
	
	var numb = '0123456789';
	var lwr = 'abcdefghijklmnopqrstuvwxyz';
	var upr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
	 
	function isValid(parm,val) 
	{
		if (parm == "") return false;
		for (i=0; i<parm.length; i++) 
		{
			if (val.indexOf(parm.charAt(i),0) == -1) return false;
		}
		return true;
	}
	 
	function isNum(parm) {
		return isValid(parm,numb);
	}
	function isLower(parm) {
		return isValid(parm,lwr);
	}
	function isUpper(parm) {
		return isValid(parm,upr);
	}
	function isAlpha(parm) {
		return isValid(parm,lwr+upr);
	}
	function isAlphanum(parm) {
		return isValid(parm,lwr+upr+numb);
	}		
			
//-->