var roundedCornersOnLoad = function () { 
	    //swapDOM("visual_version", SPAN(null, MochiKit.Visual.VERSION)); 
	    //roundClass("h1", null , {corners: "top"}); 
	    //roundClass(null, "siteNavigationBarArea" , {corners: "all"});
	    roundClass(null, "ControlTable" , {corners: "all"});
	    
	    if ( document.getElementById( 'ViewCartDiv' )) {
	    roundElement( "ViewCartDiv" , {corners: "all"} ); 
	    }
	    
	    if ( document.getElementById( 'BrowseProudctsMenuBar' )) {
	       roundElement( "BrowseProudctsMenuBar" , {corners: "top"} );
	    }
	    if ( document.getElementById( 'AdminMenuBar' )) {
	       roundElement( "AdminMenuBar" , {corners: "top"} );
	    }
	    if ( document.getElementById( 'ContactUsMenuBar' )  ){
	        roundElement( "ContactUsMenuBar" , {corners: "top"} );
	    }
	    if ( document.getElementById( 'Footer' ) ) {
	        roundElement( "Footer" , {corners: "bottom"} );
	    }
	    
	    //roundElement("TitleBarRow" , {corners: "bl"});
	    //roundClass("h2", null, {corners: "bottom"}); 
	}; 
	addLoadEvent(roundedCornersOnLoad); 
	 
	/* this isn't necessary ... 
	// rewrite the view-source links 
	addLoadEvent(function () { 
	    var elems = getElementsByTagAndClassName("A", "view-source"); 
	    var page = "rounded_corners/"; 
	    for (var i = 0; i < elems.length; i++) { 
	        var elem = elems[i]; 
	        var href = elem.href.split(/\//).pop(); 
	        elem.target = "_blank"; 
	        elem.href = "../view-source/view-source.html#" + page + href; 
	    } 
	}); 
	*/