function roundedWhite( _el ) {
	this._inner = _el;
	if( _el.getElementsByTagName( "*" ).length < 1 ) {
		return false;
	}
	this._left = document.createElement( "div" );
	this._left.className += " r_left";
	this._right = document.createElement( "div" );
	this._right.className += " r_right";
	
	this._bottom = document.createElement( "div" );
	this._bottom.className += " r_bottom";
	this._bottomleft = document.createElement( "div" );
	this._bottomleft.className += " r_bottomleft";
	this._bottomright = document.createElement( "div" );
	this._bottomright.className += " r_bottomright";
	
	this._top = document.createElement( "div" );
	this._top.className += " r_top";
	this._topright = document.createElement( "div" );
	this._topright.className += " r_topright";
	this._topleft = document.createElement( "div" );
	this._topleft.setAttribute( "id", this._inner.getAttribute( "id" ) );
	this._topleft.className += this._inner.className;
	this._topleft.className += " r_topleft";
	
	this._inner.removeAttribute( "id" );
	this._inner.removeAttribute( "class" );
	this._inner.className += " r_inner";
	this._inner.parentNode.insertBefore( this._topleft, this._inner );
	
	this._bottomright.appendChild( this._bottom );
	this._bottomleft.appendChild( this._bottomright );
	
	this._right.appendChild( this._inner );
	this._left.appendChild( this._right );
	
	this._topright.appendChild( this._top );
	
	this._topleft.appendChild( this._topright );
	this._topleft.appendChild( this._left );
	this._topleft.appendChild( this._bottomleft );	
	
	return this;
}
// JavaScript Document
function getElementsByClassName(clsName) 
{ 
	var arr = new Array(); 
	var elems = document.getElementsByTagName("*");
	var elem;
	for ( var cls, i = 0; ( elem = elems[i] ); i++ )
	{
		if ( elem.className == clsName )
		{
			arr[arr.length] = elem;
		}
	}
	return arr;
}

// Dean Edwards/Matthias Miller/John Resig
function init() {
	// quit if this function has already been called
	if (arguments.callee.done) return;

	// flag this function so we don't do the same thing twice
	arguments.callee.done = true;

	// kill the timer
	if (_timer) clearInterval(_timer);

	// do stuff
	var c = roundedWhite( document.getElementById( "center" ) );
	var left = document.getElementById( "left" );
	if( left ) {
		c._topleft.className += " leftexists";
		var leftdivs = left.childNodes;
		for( var i=0; i<leftdivs.length; i++ ) {
			var e = leftdivs[ i ];
			if( e.nodeName.toLowerCase() == "div" ) {
				roundedWhite( e );
			}
		}
	}
	var right = document.getElementById( "right" );
	if( right ) {
		var rightdivs = right.childNodes;
		for( var i=0; i<rightdivs.length; i++ ) {
			var e = rightdivs[ i ];
			if( e.nodeName.toLowerCase() == "div" ) {
				roundedWhite( e );
			}
		}
	}
};

/* for Mozilla/Opera9 */
if (document.addEventListener) {
	document.addEventListener("DOMContentLoaded", init, false);
}

/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
	var ie = true;
	document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
	var script = document.getElementById("__ie_onload");
	script.onreadystatechange = function() {
		if (this.readyState == "complete") {
			init(); // call the onload handler
		}
	};
/*@end @*/

/* for Safari */
if (/WebKit/i.test(navigator.userAgent)) { // sniff
	var _timer = setInterval(function() {
		if (/loaded|complete/.test(document.readyState)) {
			init(); // call the onload handler
		}
	}, 10);
}

/* for other browsers */
window.onload = init;