<!--//--><![CDATA[//><!--
/*
*
*
*	big production  (06/10/07)
*
*/
	sfHover = function() {
		var sfEls = document.getElementById("nav").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++) {
			sfEls[i].onmouseover=function() {
				this.className+=" sfhover";
			}
			sfEls[i].onmouseout=function() {
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
	if (window.attachEvent) window.attachEvent("onload", sfHover);

	function getBlur(){
		if (this.document.company_search.searchfield.value=="Enter company e.g. IBM, Wells Fargo, Cisco...") {
			this.document.company_search.searchfield.value="";
		}
		if (this.document.person_search.name.value=="Enter name e.g. Kathryn Frankland, Frank Vaculin...") {
			this.document.person_search.name.value="";
		}
	}
	
	var x;
	var layers = new Array();
	var selected_id = null; 
	var dom = document.getElementById; 
	function swapIt(id) { 
	var y;
		if (dom) { 
			if(selected_id != id) { 
				for (x in layers) {
					y = 'lyr_' + layers[x]; 
					el = document.getElementById(y); 
					document.getElementById(y).style.display = 'none';
					
				}
				y = 'lyr_' + id; 
				document.getElementById(y).style.display = 'block';
				el.style.cursor = "hand"; 
				el.style.cursor = "pointer"; 
			} 
		} 
	} 
	
	function getStyleObject(objectId) {
		if(document.getElementById && document.getElementById(objectId)) {
			return document.getElementById(objectId).style;
		}
		else if (document.all && document.all(objectId)) {  
			return document.all(objectId).style;
		} 
		else if (document.layers && document.layers[objectId]) { 
			return document.layers[objectId];
		} else {
			return false;
		}
	}
	
	function changeObjectVisibility(objectId, newVisibility) {
	    var styleObject = getStyleObject(objectId);
	    if(styleObject) {
			styleObject.visibility = newVisibility;
			return true;
	    } else {
			return false;
	    }
	}
	
	function showLayer(layer) {
		changeObjectVisibility(layer,"visible");
	}
	
	function containsDOM (container, content) {
	var isParent = false;
	  	do {
	   		if ((isParent = container == content))
	      		break;
	    	content = content.parentNode;
	  		}
	  	while (content != null);
	  	return isParent;
	}
	
	function checkMouseEnter (element, evt) {
		if (element.contains && evt.fromElement) {
			return !element.contains(evt.fromElement);
	  	}  else if (evt.relatedTarget) {
	    	return !containsDOM(element, evt.relatedTarget);
	  	}
	}

	function checkMouseLeave (element, evt) {
	  	if (element.contains && evt.toElement) {
	    	return !element.contains(evt.toElement);
	  	} else if (evt.relatedTarget) {
	   	 	return !containsDOM(element, evt.relatedTarget);
	  	}
	}

	function cleanup (popup) {
	changeObjectVisibility(popup,"hidden");
}
	
if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat"){
  document.onreadystatechange = onresize = function fixIE6AbsPos(){
    if (!document.body) return;
    if (document.body.style.margin != "0px") document.body.style.margin = 0;
    onresize = null;
    document.body.style.height = 0;
    setTimeout(function(){ document.body.style.height = document.documentElement.scrollHeight+"px"; }, 1);
    setTimeout(function(){ onresize = fixIE6AbsPos; }, 100);
  }
}

var win=null;
function makeWin (mypage,myname,w,h,scroll,pos) {
    if(pos=="random") {
		LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center") {
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	} else
		if ((pos!="center" && pos!="random") || pos==null) {
			LeftPosition=0;TopPosition=20
		}
		settings = 'width=' + w + ',height=' + h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
	win.focus();
}

function on1(id) {
	document.getElementById(id).style.color="#000000";
}

function off1(id) {
	document.getElementById(id).style.color="#4a8bca";
}
//--><!]]>
