
function doQuickLinks(){
	var args = doQuickLinks.arguments;

	if("home" == args[0]){
		document.location='/index.php';
	}
	else if("about" == args[0]){
		document.location='/about/index.php';
	}
	else if("services" == args[0]){
		document.location='/services/index.php';
	}
	else if("contact" == args[0]){
		document.location='/contact/index.php';
	}
	else if("matchbase" == args[0]){
		document.location='/services/crm.php';
	}
	else if("web" == args[0]){
		document.location='/services/web.php';
	}
	else if("bespoke" == args[0]){
		document.location='/services/bespoke.php';
	}
	else if("consultancy" == args[0]){
		document.location='/services/consult.php';
	}
	else if("news" == args[0]){
		top.document.location='/about/press.php?newsId='+args[1];
	}

}

function showNews(){
	var args = showNews.arguments;
	tugSection(args[0]);
}



function movepic(img_name,img_src) {
document[img_name].src=img_src;
}


function serviceLinks(){
	var args = serviceLinks.arguments;

	if("matchbase" == args[0]){
		getAndDisplayFile('main_body_id','/services/text/crm-text.html');
	}
	else if("web" == args[0]){
		getAndDisplayFile('main_body_id','/services/text/web-text.html');		
	}
	else if("bespoke" == args[0]){
		getAndDisplayFile('main_body_id','/services/text/bespoke-text.html');		
	}
	else if("itconsult" == args[0]){
		getAndDisplayFile('main_body_id','/services/text/consult-text.html');		
	}
}

function contactLinks(){
	var args = contactLinks.arguments;

	if("contact" == args[0]){
		getAndDisplayFile('main_body_id','/contact/text/contact-text.html');
	}
	else if("map" == args[0]){
		//getAndDisplayFile('main_body_id','/ce/contact/text/map-text.html');		
		display('main_body_id','&nbsp;&nbsp;&nbsp;<iframe scrolling="no" marginheight="0" marginwidth="0" frameborder="0" src ="/contact/text/map-text.html" width="500" height="300"></iframe>');

	}
}




function aboutUsLinks(){
	var args = aboutUsLinks.arguments;

	if("about" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/about-text.html');
	}
	else if("mission" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/mission-text.html');		
	}
	else if("culture" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/culture-text.html');		
	}
	else if("partners" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/partners-text.html');		
	}
	else if("press" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/press-text.php');		
	}
	else if("careers" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/careers-text.html');		
	}
	else if("profile" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/profile-text.html');		
	}
	else if("ceo" == args[0]){
		getAndDisplayFile('main_body_id','/about/text/ceo-text.html');		
	}	
}

function linkin(){
try{
	window.status='';
}catch(e){

}

}

function display(){
	var args = display.arguments;
	try{
		var displayPreload = document.getElementById(args[0]);  	
		displayPreload.innerHTML = args[1];
	}catch(e){
	}
}




function tugSection(){
	var args = tugSection.arguments;
	var	element = document.getElementById(args[0]);	
	if(element.style.display == ""){
		element.style.display = "none";
	}
	else{
		element.style.display = "";
	}
}


function getAndDisplayFile(){
		var args = getAndDisplayFile.arguments;
		
		if (document.getElementById) {
			var x = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
		}
		if (x){
			x.onreadystatechange = function(){
				preload = document.getElementById(args[0]);
				if(x.readyState == 0){
		
				}
				else if(x.readyState == 1){
					
				} 
				else if(x.readyState == 2){
		
				}
				else if(x.readyState == 3){
					
				}
				else if (x.readyState == 4 && x.status == 200){
					preload.innerHTML = x.responseText;
				}

			}
			var salt = "";
			if(args[1].indexOf('?') == -1){				
				salt = "?random="+(Math.random() * Date.parse(new Date()));
			}
			else{				
				salt = "&random="+(Math.random() * Date.parse(new Date()));
			}		

			x.open("GET", args[1]+salt+"&targetWindow="+self.name, true);
			x.send(null);
			
		}		

	}





var FlashDetect=new function(){var self=this;self.installed=false;self.raw="";self.major=-1;self.minor=-1;self.revision=-1;self.revisionStr="";var activeXDetectRules=[{"name":"ShockwaveFlash.ShockwaveFlash.7","version":function(obj){return getActiveXVersion(obj);}},{"name":"ShockwaveFlash.ShockwaveFlash.6","version":function(obj){var version="6,0,21";try{obj.AllowScriptAccess="always";version=getActiveXVersion(obj);}catch(err){}
return version;}},{"name":"ShockwaveFlash.ShockwaveFlash","version":function(obj){return getActiveXVersion(obj);}}];var getActiveXVersion=function(activeXObj){var version=-1;try{version=activeXObj.GetVariable("$version");}catch(err){}
return version;};var getActiveXObject=function(name){var obj=-1;try{obj=new ActiveXObject(name);}catch(err){}
return obj;};var parseActiveXVersion=function(str){var versionArray=str.split(",");return{"raw":str,"major":parseInt(versionArray[0].split(" ")[1],10),"minor":parseInt(versionArray[1],10),"revision":parseInt(versionArray[2],10),"revisionStr":versionArray[2]};};var parseStandardVersion=function(str){var descParts=str.split(/ +/);var majorMinor=descParts[2].split(/\./);var revisionStr=descParts[3];return{"raw":str,"major":parseInt(majorMinor[0],10),"minor":parseInt(majorMinor[1],10),"revisionStr":revisionStr,"revision":parseRevisionStrToInt(revisionStr)};};var parseRevisionStrToInt=function(str){return parseInt(str.replace(/[a-zA-Z]/g,""),10)||self.revision;};self.majorAtLeast=function(version){return self.major>=version;};self.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var type='application/x-shockwave-flash';var mimeTypes=navigator.mimeTypes;if(mimeTypes&&mimeTypes[type]&&mimeTypes[type].enabledPlugin&&mimeTypes[type].enabledPlugin.description){var version=mimeTypes[type].enabledPlugin.description;var versionObj=parseStandardVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revisionStr=versionObj.revisionStr;self.revision=versionObj.revision;self.installed=true;}}else if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){var version=-1;for(var i=0;i<activeXDetectRules.length&&version==-1;i++){var obj=getActiveXObject(activeXDetectRules[i].name);if(typeof obj=="object"){self.installed=true;version=activeXDetectRules[i].version(obj);if(version!=-1){var versionObj=parseActiveXVersion(version);self.raw=versionObj.raw;self.major=versionObj.major;self.minor=versionObj.minor;self.revision=versionObj.revision;self.revisionStr=versionObj.revisionStr;}}}}}();};FlashDetect.release="1.0.3";

