/* Apply Nifty corner-rounding to selected elements. */
function nifty_init()
{
    //Nifty("div#content,div#sidebar","same-height");
    Nifty("div#page", "big transparent");
    Nifty("div#header", "transparent top");
    Nifty("div#navigation", "transparent bottom");
    Nifty("ul#nav a", "small transparent top");
    Nifty("div#content h1", "transparent");
    Nifty("div#sidebar", "transparent");
    Nifty("div#footer", "transparent");
    
    //var c2 = document.getElementById("content2");
    //var c2html = c2.innerHTML;
    //alert(c2html);
    //c2.innerHTML = "";
    //c2ifr = document.createElement("iframe");
    //c2ifr.setAttribute("id","edit");
	//c2.appendChild(c2ifr);
    
    //document.designMode = "on";
    //c2ifr = document.getElementById("edit");
    //alert(c2ifr);
    //c2ifr.contentDocument.designMode = "on";
    //alert(c2ifr.contentDocument);
    
    //html = document.getElementById('edit').contentWindow.document.body.ownerDocument.createRange();
    //html.selectNodeContents(document.getElementById('edit').contentWindow.document.body);
    //document.getElementById('edit').contentWindow.document.body.innerHTML = c2html; //html.toString();
    
    //c2ifr.contentWindow.document.body = c2html;
    //c2ifr.contentDocument.execCommand("contentReadOnly", false, null);  
    //alert(c2ifr.contentDocument.designMode);
}

window.onload = nifty_init;
