
function clearTextField(obj){
	obj.value='';
}

function sectionHighlightImg(){
	var parts = new Array();
	var url = window.location.href;

	nav_ex = [];
	nav_ex.push({id:"gassupply",value:"other_nav"});
	nav_ex.push({id:"cs",value:"home_nav"});

	parts=url.split('/');
	var img_str='';
	switch(parts[3]){
		case 'home':		img_str='home_nav';		break;
		case 'business':	img_str='biz_nav';		break;
		case 'other':		img_str='other_nav';	break;
		case 'investors':	img_str='invest_nav';	break;
		default: 
			tmp='';
			for(i=0; i<nav_ex.length; i++){
				if(nav_ex[i].id==parts[3]){ tmp=nav_ex[i].value; }
			}
			if(tmp==''){ img_str='none'; }else{ img_str=tmp; }
	}
	if(img_str!='none'){
		document.getElementById(img_str).src="/graphics/layout/nav_header-sub-mouseover.gif";
	}
}
function rotateNavImage(img_id,img_name){
	img1=new Image(129,13);
	img1.src="/graphics/layout/nav_header-sub.gif";

	img2=new Image(129,13);
	img2.src="/graphics/layout/nav_header-sub-mouseover.gif";

	document.getElementById(img_id).src = eval(img_name + ".src");
	if(img_name=='img1'){ sectionHighlightImg(); }
}
function rotateTopHdrImage(img_id,img_name){
	img1=new Image();
	img1.src="/graphics/layout/"+img_name+".gif";
	document.getElementById(img_id).src = img1.src;
}
function rotateArrowLink(obj,to_color,status){
	if(status=="over"){ obj.className="hover"; }else{ obj.className=""; }
	parts=obj.id.split("_");
	img_id="link_arrow_"+parts[1];
	img_obj=document.getElementById(img_id);
	img_obj.src="/graphics/layout/item_arrow_"+to_color+".gif";
}


function toPassword(oInput) {
	var newEl = document.createElement('input');
	newEl.setAttribute('type', 'password');
	newEl.setAttribute('name', 'password');
	oInput.parentNode.replaceChild(newEl,oInput);
	toPassword.el = newEl;
	setTimeout('toPassword.el.focus()',100); 
	return true;
}
function openVideoWin(){
	window.open('/about/bobvideo.html','mywindow','status=0,toolbar=0,location=0,menubar=0,height=260,width=340');
}

//------------------------------
function launchTimeline(){
	window.open('/about/timeline.html','timeline_win','status=0,toolbar=0,location=0,menubar=0,height=550,width=790');
}
