function toggleLayer( whichLayer )
{
	var elem, vis;
	if( document.getElementById ) // this is the way the standards work
	elem = document.getElementById( whichLayer );
	else if( document.all ) // this is the way old msie versions work
	  elem = document.all[whichLayer];
	else if( document.layers ) // this is the way nn4 works
	elem = document.layers[whichLayer];
	vis = elem.style;
	// if the style.display value is blank we try to figure it out here
	if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
	vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
	vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}



// Tooltip script
window.addEvent('domready', function(){
	var myTips = new Tips('.Tips');

	var accordion = new Accordion($$('.toggler'),$$('.element'), {
		display: 'none',
		alwaysHide: true,
		opacity: true,
		onActive: function(toggler) { toggler.setStyle('color', '#000000'); },
		onBackground: function(toggler) { toggler.setStyle('color', '#000000'); }
	});

});

// Nifty rounding script
window.onload=function(){
	if(!NiftyCheck())
		return;
	Rounded("div#content","all","#26292a","#fff","border #000");
	// Rounded("div#page","all","#ececec","#549ec8","smooth");
	Rounded("div#nav li #active","top","transparent","#26292a","border #26292a");
	//Rounded("div#nav li #inax","top","transparent","#b4d3e4","border #b4d3e4");
}