	function MM_findObj(n, d) { //v3.0 revised by SK for NN6 5.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];
	  	}
	  
	  else if ((!d.layers)&&navigator.appVersion.indexOf('MSIE 4')<0) {
	  if(d.getElementById(n)) {
	  	x=d.getElementById(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 findMenus(m) {
	var menus=['navabout','navinvestors','navteam','navcontact','navnews','navportfolio','naventrepreneurs'];
	var othermenus=new Array;
	for (x=0;x<menus.length;x++) {
		if (m!=menus[x]) {
			othermenus[othermenus.length]=menus[x];
			}
		}
	return othermenus;
	}

	function menuImages(m) {
	var imgnames=['about','investors','team','contact','news','portfolio','entrepreneurs'];
	var openend = '_open';
	var imgpath = 'images/';
	var imgtype = '.gif';
	var mimg = m.slice(3);
	MM_swapImage(mimg,'',imgpath+mimg+openend+imgtype,1);
	var othermenus=findMenus(m);
	for (x=0;x<othermenus.length;x++) {
		var omimg=othermenus[x].slice(3);
		MM_swapImage(omimg,'',imgpath+omimg+imgtype,1);
		}
	}
	
	function showMenu() {
	  var i,p,v,obj,args=showMenu.arguments;
	  var m=args[0];	  
		if (!document.layers) {
		if ((navigator.appVersion.indexOf('MSIE 4')<0)&&(document.getElementById(m))) {   //for NN6+IE5
			document.getElementById(m).style.visibility = "visible";
		}
		else if (document.all) {
			eval(m)["style"].visibility="visible";					//for IE4
		}
		}
		else if (document.layers) {									//for NN4
//		alert(document.layers[m]);
			document.layers[m].visibility = "show";				//show the layer
		}
	   menuImages(m);
	   hideMenu(m);
	  }

	function hideMenu(m) {
	  var i,p,v,obj,args=hideMenu.arguments;
	  var m=args[0];
	  var othermenus=findMenus(m);
	  for (x=0;x<othermenus.length;x++) {
		if (!document.layers) {
		if ((navigator.appVersion.indexOf('MSIE 4')<0)&&(document.getElementById(othermenus[x]))) {   //for NN6+IE5
			document.getElementById(othermenus[x]).style.visibility = "hidden";
		}
		else if (document.all) {
			eval(othermenus[x])["style"].visibility="hidden";					//for IE4
		}
		}
		else if (document.layers) {											//for NN4
			document.layers[othermenus[x]].visibility = "hide";				//hide the layer


		}
	  }
	
	}

	function newsItem() {
	var args = newsItem.arguments;
	var thisone = 'news/news'+args[0]+'.htm';
	window.open(thisone,'news','width=700,height=420,left=50,screenX=50,top=50,screenY=50,scrollbars');
	}

	
	function caseStudy(cs) {
	window.open(cs,'casestudy','width=586,height=425,left=50,screenX=50,top=50,screenY=50');
	}

	function hideQuotes() {
	alert (quote.document);
	}

	function hideQuote() {
	window.opener.close();
	}



/* procedure for adding new quotes:
 
 + set the number of ceo quotes in the ceoQuote function counting from zero
 + add a case to the findSize function (does it need a small, medium or large window?)
 + images: 'images/quotes/00_ceo.gif', 'images/quotes/00_quote.gif'
 + html files: 'quotes/00.htm'

*/


	function quoteAll() {
	window.open('all.htm','quoteall','width=700,height=650,scrollbars,resizable');
	}

	function ceoQuote () {
	// set the number of ceo quotes
	var t = 10;
	var k = Math.round((Math.random())*t);
 	var m = k.toString();
	var n = m;
	// get the name right
 	if ( m.length == 1) {
 	var n = '0' + m;
 	}
 	
 	var swapper = 'images/quotes/' + n + '_ceo.gif';
 	MM_swapImage('ceo','',swapper,1);
 	var swapper = 'images/quotes/' + n + '_quote.gif';
 	MM_swapImage('quote','',swapper,1);
 	}


	function quotePop() {
    var d=document; 
	// figure out where we're supposed to go
	var k = (MM_findObj('ceo', d).src);
	var l = k.slice((k.length-10),(k.length-8));
	var thisone = 'quotes/'+l+'.htm';
	//alert(findSize(l));
	var atts = 'width=510,height='+(findSize(l))+',left=50,screenX=50,top=50,screenY=50,scrollbars=no,resizable';
//	alert (atts);
	window.open(thisone,'quote',atts);
	}

	function quoteWindow(l) {
	var thisone = l+'.htm';
	var atts = 'width=510,height='+(findSize(l))+',left=50,screenX=50,top=50,screenY=50,scrollbars=no,resizable';
	window.open(thisone,'quote',atts);	
	}


	function focusQuote() {
	window.focus();
	var k = window.location.toString();
	var l = k.slice((k.length-6),(k.length-4));
	var j = (parseInt(findSize(l))+30);
	window.resizeTo(520,j);
	}

	function findSize(l) {
	var h;
	var sm = '300';
	var med = '350';
	var lg = '410';
	switch(l) {
	case '00':
		h=sm;
		return h;
		break;
	case '01':
		h=sm;
		return h;
		break;
	case '02':
		h=sm;
		return h;
		break;
	case '03':
		h=med;
		return h;
		break;
	case '04':
		h=med;
		return h;
		break;
	case '05':
		h=sm;
		return h;
		break;
	case '06':
		h=sm;
		return h;
		break;
	case '07':
		h=sm;
		return h;
		break;
	case '08':
		h=sm;
		return h;
		break;
	case '09':
		h=lg;
		return h;
		break;
	case '10':
		h=lg;
		return h;
		break;
	default:
		h=sm;
		return h;
		break;	
	}

	}