User:Echelon/bluecloud.js

function domToc {	var txtNode = document.createTextNode( "Testing..." );

document.getElementById( 'nav_right' ).appendChild( txtNode );

var navRight = document.getElementById( 'nav_right' );

if( !navRight ) { return 0; }

navRight.appendChild( txtNode ); var navToc  = document.getElementById( 'toc' );

if( !navToc ) { return 0; }

var navCopy = navToc.cloneNode(true); navRight.appendChild( navCopy );

} domToc;