// JavaScript Document
<!--
	function addcorners1(id_name) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);
		var top_left = document.createElement("div");
		top_left.className = "box1_top_left";
		var top = document.createElement("div");
		top.className = "box1_top";
		var left = document.createElement("div");
		left.className = "box1_left";
		var right = document.createElement("div");
		right.className = "box1_right";
		var top_right = document.createElement("div");
		top_right.className = "box1_top_right";
		top_left.appendChild(left);
		left.appendChild(right);
		right.appendChild(top);
		top.appendChild(top_right);
		top_right.appendChild(element);
		
		id.parentNode.insertBefore(top_left, id.nextSibling);
		id.parentNode.removeChild(id);
	}
	
	function addcorners2(id_name) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);
		var bottom = document.createElement("div");
		bottom.className = "box1_bottom";
		var left = document.createElement("div");
		left.className = "box1_left";
		var right = document.createElement("div");
		right.className = "box1_right";
		var bottom_left = document.createElement("div");
		bottom_left.className = "box1_bottom_left";
		var bottom_right = document.createElement("div");
		bottom_right.className = "box1_bottom_right";
		bottom.appendChild(left);
		left.appendChild(right);
		right.appendChild(bottom_left);
		bottom_left.appendChild(bottom_right);
		bottom_right.appendChild(element);
		
		id.parentNode.insertBefore(bottom, id.nextSibling);
		id.parentNode.removeChild(id);
	}
		
	function addcorners3(id_name) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);
		var top = document.createElement("div");
		top.className = "box2_top";
		var bottom = document.createElement("div");
		bottom.className = "box2_bottom";
		var left = document.createElement("div");
		left.className = "box2_left";
		var right = document.createElement("div");
		right.className = "box2_right";
		var top_left = document.createElement("div");
		top_left.className = "box2_top_left";
		var top_right = document.createElement("div");
		top_right.className = "box2_top_right";
		var bottom_left = document.createElement("div");
		bottom_left.className = "box2_bottom_left";
		var bottom_right = document.createElement("div");
		bottom_right.className = "box2_bottom_right";

		top.appendChild(bottom);
		bottom.appendChild(left);
		left.appendChild(right);
		right.appendChild(top_left);
		top_left.appendChild(top_right);
		top_right.appendChild(bottom_left);
		bottom_left.appendChild(bottom_right);
		bottom_right.appendChild(element);
		
		id.parentNode.insertBefore(top, id.nextSibling);
		id.parentNode.removeChild(id);
	}

	function addcorners4(id_name, bgd) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);

		var background = document.createElement("div");
		background.className = bgd;
		var top = document.createElement("div");
		top.className = "box6_top";
		var bottom = document.createElement("div");
		bottom.className = "box6_bottom";
		var top_left = document.createElement("div");
		top_left.className = "box6_top_left";
		var top_right = document.createElement("div");
		top_right.className = "box6_top_right";

		background.appendChild(top);
		top.appendChild(bottom);
		bottom.appendChild(top_left);
		top_left.appendChild(top_right);
		top_right.appendChild(element);
		
		id.parentNode.insertBefore(background, id.nextSibling);
		id.parentNode.removeChild(id);
	}
	
	function addcorners5(id_name) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);
		var bottom = document.createElement("div");
		bottom.className = "box5_bottom";
		var left = document.createElement("div");
		left.className = "box5_left";
		var right = document.createElement("div");
		right.className = "box5_right";
		var bottom_left = document.createElement("div");
		bottom_left.className = "box5_bottom_left";
		var bottom_right = document.createElement("div");
		bottom_right.className = "box5_bottom_right";

		bottom.appendChild(left);
		left.appendChild(right);
		right.appendChild(bottom_left);
		bottom_left.appendChild(bottom_right);
		bottom_right.appendChild(element);
		
		id.parentNode.insertBefore(bottom, id.nextSibling);
		id.parentNode.removeChild(id);
	}
	
	function addcorners6(id_name) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);
		var top = document.createElement("div");
		top.className = "box3_top";
		var bottom = document.createElement("div");
		bottom.className = "box3_bottom";
		var left = document.createElement("div");
		left.className = "box3_left";
		var right = document.createElement("div");
		right.className = "box3_right";
		var top_left = document.createElement("div");
		top_left.className = "box3_top_left";
		var top_right = document.createElement("div");
		top_right.className = "box3_top_right";
		var bottom_left = document.createElement("div");
		bottom_left.className = "box3_bottom_left";
		var bottom_right = document.createElement("div");
		bottom_right.className = "box3_bottom_right";

		top.appendChild(bottom);
		bottom.appendChild(left);
		left.appendChild(right);
		right.appendChild(top_left);
		top_left.appendChild(top_right);
		top_right.appendChild(bottom_left);
		bottom_left.appendChild(bottom_right);
		bottom_right.appendChild(element);
		
		id.parentNode.insertBefore(top, id.nextSibling);
		id.parentNode.removeChild(id);
	}

	function addcorners7(id_name, bgd) {
		var id = document.getElementById(id_name);
		var element = id.cloneNode(true);

		var background = document.createElement("div");
		background.className = bgd;
		var top = document.createElement("div");
		top.className = "box4_top";
		var bottom = document.createElement("div");
		bottom.className = "box4_bottom";
		var top_left = document.createElement("div");
		top_left.className = "box4_top_left";
		var top_right = document.createElement("div");
		top_right.className = "box4_top_right";

		background.appendChild(top);
		top.appendChild(bottom);
		bottom.appendChild(top_left);
		top_left.appendChild(top_right);
		top_right.appendChild(element);
		
		id.parentNode.insertBefore(background, id.nextSibling);
		id.parentNode.removeChild(id);
	}
	
	function addmaincorners() {
		addcorners1("nav1");
		addcorners2("nav2");
		addcorners3("content");
	}
		
	function addindexcorners(bgd) {
		addcorners4("index_title", bgd);
		addcorners5("index_content");
	}
	
	function addsubcorners(bgd) {
		addcorners4("right_title", bgd);
		addcorners5("right_box");
		addcorners6("left_nav");
	}
	
	function addhomecorners(bgd1, bgd2) {
		addcorners6("left_nav_homepage");
		addcorners7("right_title_homepage1", bgd1);
		addcorners7("right_title_homepage2", bgd2);
		addcorners5("right_box1");
		addcorners5("right_box2");
	}

	function addfullcorners(bgd) {
		addcorners4("right_title", bgd);
		addcorners5("right_box");
	}
-->
