/****************************************//*                                      *//*              Bistech Plc             *//*         Shared Script Library        *//*                                      *//*       http://www.bistech.co.uk       *//*	                                   *//*    Copyright (C) Bistech Plc 2007    *//*        software@bistech.co.uk        *//*                                      *//****************************************/function SetupLinks(CurrentPage) {	var CurrentSection = CurrentPage.substr(0,5);	switch(CurrentSection) {		case 'index':			document.getElementById('Home').style.color = '#22272C'			break		case 'about':			document.getElementById('About').style.color = '#22272C'			break		case 'caree':			document.getElementById('Careers').style.color = '#22272C'			break		case 'cases':			document.getElementById('CaseStudies').style.color = '#22272C'			break		case 'conta':			document.getElementById('Contact').style.color = '#22272C'			break		case 'peopl':			document.getElementById('People').style.color = '#22272C'			break		case 'strat':			document.getElementById('Stratsol').style.color = '#22272C'			break		default:			break	}}function DisplayHiddenField(RadioButton,CompareValue,HideDisplay) {	for (var i=0; i < document.forms[0][RadioButton].length; i++) {		if (document.forms[0][RadioButton][i].checked) {			var rad_val = document.forms[0][RadioButton][i].value;		}	}	if (rad_val == CompareValue) {		ShowRow(HideDisplay)	} else {		HideRow(HideDisplay)	}}function ShowHideJobHistory(FormField,TargetID,CallerID) {	var FieldValue = document.forms[0](FormField).value;	if (FieldValue != 'undefined') {		ShowHide(TargetID,CallerID)	}}function ShowRow(TargetID) {	document.getElementById(TargetID).style.display = 'inline';}function HideRow(TargetID) {	document.getElementById(TargetID).style.display = 'none';}function ShowHide(TargetID,CallerID) {	if (document.getElementById(TargetID).style.display == 'none') {		document.getElementById(CallerID).innerHTML = "<br><img src='expand_minus.gif?OpenImageResource' onclick=\"ShowHide('"+TargetID+"','"+CallerID+"');\">Remove"		document.getElementById(TargetID).style.display = 'inline';	} else {		document.getElementById(CallerID).innerHTML = "<br><img src='expand_plus.gif?OpenImageResource' onclick=\"ShowHide('"+TargetID+"','"+CallerID+"');\">Add More"		document.getElementById(TargetID).style.display = 'none';	}}function getDBPath() {	var pathname = window.location.pathname;	var iPos = window.location.pathname.toString().toLowerCase().lastIndexOf('.nsf');	if(iPos>0) return pathname.substring(0, iPos+4);	return pathname;}function ContactDetails(office) {	var InnerHTML = ""	switch(office) {		case 'Europe':			InnerHTML = "<label class='headline'>Europe</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>(44)207 629 0455<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:european.strategy@bistech.co.uk'>european.strategy@bistech.co.uk</a>"			break 		case 'Birmingham':			InnerHTML = "<label class='headline'>Birmingham</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>0121 2331 338<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:north.strategy@bistech.co.uk'>north.strategy@bistech.co.uk</a>"			break    		case 'Bournemouth':			InnerHTML = "<label class='headline'>Bournemouth</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>01202 863234<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:corporate.strategy@bistech.co.uk'>corporate.strategy@bistech.co.uk</a>"			break		case 'Bristol':			InnerHTML = "<label class='headline'>Bristol</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>01179 715627<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:sw.strategy@bistech.co.uk'>sw.strategy@bistech.co.uk</a>"			break		case 'Cardiff':			InnerHTML = "<label class='headline'>Cardiff</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>02920 395973<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:sw.strategy@bistech.co.uk'>sw.strategy@bistech.co.uk</a>"			break		case 'Edinburgh':			InnerHTML = "<label class='headline'>Edinburgh</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>0131 2205 309<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:north.strategy@bistech.co.uk'>north.strategy@bistech.co.uk</a>"			break		case 'Exeter':			InnerHTML = "<label class='headline'>Exeter</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>01392 499844<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:sw.strategy@bistech.co.uk'>sw.strategy@bistech.co.uk</a>"			break		case 'Isle of Wight':			InnerHTML = "<label class='headline'>Isle of Wight</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>01983 522003<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:south.strategy@bistech.co.uk'>south.strategy@bistech.co.uk</a>"			break		case 'London':			InnerHTML = "<label class='headline'>London</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>020 7629 0455<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:corporate.strategy@bistech.co.uk'>corporate.strategy@bistech.co.uk</a>"			break		case 'Manchester':			InnerHTML = "<label class='headline'>Manchester</label><br><br><label class='subtitle' style='width:75px;'>telephone:</label>0161 237 9559<br><label class='subtitle' style='width:75px;'>email:</label><a href='mailto:north.strategy@bistech.co.uk'>north.strategy@bistech.co.uk</a>"			break		default:			InnerHTML = "<img src='contact_click_for_details.png?OpenImageResource' width='300' height='100'>"	}	document.getElementById('HoverBox').innerHTML = InnerHTML}function CurrentYear() {	var d=new Date()	document.write(d.getFullYear())}function CompanyAge() {	var d = new Date()	var yearFounded = 1988 // The year the company was founded (1988)	var monthFounded = 7   // The month the company was founded (July)		var ageYears = d.getYear()- yearFounded	var ageMonths = monthFounded - d.getMonth()		if (ageMonths>0) {		ageYears = ageYears-1;	}	document.write(ageYears)}function JavaEnabled() {	var jEnabled = navigator.javaEnabled();	if (jEnabled){		document.forms['0'].Submit.disabled = false;		document.getElementById('Java').style.display = 'none';	}}function TimeOut(delay,formName) {	// Supply the time out in minutes	delay = delay * 60;		// Convert to seconds	delay = delay * 1000;	// Convert to miliseconds	setTimeout('SubmitForm("'+ formName +'")',delay);}function SubmitForm(formName) {	var UNID = document.getElementById('UNID').value;	if (UNID != "") {		document.forms[formName].submit();	}}function ValidateTest() {	var UNID = document.getElementById('UNID').value;	if (UNID != "") {		document.getElementById('displayError').style.display = 'none';		document.getElementById('displayTest').style.display = 'inline';	}}