var _W=window,_D=document;

function gE(e){if(_D.getElementById)return _D.getElementById(e);if(_D.all)return _D.all[e]}
function sE(e){e.style.visibility='visible'}
function hE(e){e.style.visibility='hidden'}
function SE(e){e.style.display='block'}
function HE(e){e.style.display='none'}
function sX(e,x){op?e.style.pixelLeft=x:e.style.left=x+'px'}
function sY(e,y){op?e.style.pixelTop=y:e.style.top=y+'px'}
function sW(e,w){op?e.style.pixelWidth=w:e.style.width=w+'px'}
function sH(e,h){op?e.style.pixelHeight=h:e.style.height=h+'px'}
function wH(e,h){e.innerHTML=h}

function toggleDisplay(e){
	gE(e).style.display = (gE(e).style.display == 'none') ? '' : 'none';
}

function toggleVisibility(e){
	gE(e).style.visibility = (gE(e).style.visibility == 'hidden') ? 'visible' : 'hidden';
}

function cmsGearPopup(url, nm, opts){
	var opt = opts.split(','), ops='';
	for(i in opt){
		ops += (opt[i].indexOf('centered') == 1) ? opt[i]+',' : '';
	}
	//alert(ops);
	//pop = window.open (url, '');
	/*
	if(cntr){
		var winPos = ',top='+((screen.height - h) / 2)+',left='+((screen.width - w) / 2);
	}
	var scrollArg = (scroll == false) ? '' : ',scrollbars=1';
	var resizeArg = (resize == false) ? '' : ',resizable=1';
	pop = window.open (url, "newin", opts);
	//+scroll+resize+center,"width=" + w + ",height=" + h + scrollArg + resizeArg + winPos);
	pop.resizeTo(w,h);
	*/

	pop.focus();
}
