	
	obj_global_box_style		= document.createElement("div");
	obj_border_top_sx    		= document.createElement("div");
	obj_border_top_dx    		= document.createElement("div");
	obj_border_bottom_sx 		= document.createElement("div");
	obj_border_bottom_dx 		= document.createElement("div");

	obj_border_top    		= document.createElement("div");
	obj_border_left    		= document.createElement("div");
	obj_border_bottom 		= document.createElement("div");
	obj_border_right 		= document.createElement("div");
			
	obj_border_top_sx.className    	= "bordertopsx";
	obj_border_top_dx.className    	= "bordertopdx";
	obj_border_bottom_sx.className 	= "borderbottomsx";
	obj_border_bottom_dx.className 	= "borderbottomdx";

	obj_border_top.className    	= "bordertop";
	obj_border_left.className    	= "borderleft";
	obj_border_bottom.className 	= "borderbottom";
	obj_border_right.className 	= "borderright";

	obj_global_box_style.appendChild(obj_border_top_sx);
	obj_global_box_style.appendChild(obj_border_top);
	obj_global_box_style.appendChild(obj_border_top_dx);
	obj_global_box_style.appendChild(obj_border_right);
	obj_global_box_style.appendChild(obj_border_bottom_dx);
	obj_global_box_style.appendChild(obj_border_bottom);
	obj_global_box_style.appendChild(obj_border_bottom_sx);
	obj_global_box_style.appendChild(obj_border_left);


	function loadBorders() {
				
		obj = document;
		scrollTags(obj);
	}

	function scrollTags(obj) {

		if (typeof(obj) == 'object') {
			if (typeof(obj.childNodes) == 'object' || typeof(obj.childNodes) == 'function') {
				for( var x = 0; x < obj.childNodes.length; x++ ) {

					tagname = obj.childNodes[x].tagName;
							
					if (tagname == "HTML" || tagname == "BODY") {
								
						// Proseguire al livello successivo
						scrollTags(obj.childNodes[x]);

						// Interrompere il ciclo corrente
						break;
					}

					if (tagname == "DIV") {

						if (obj.childNodes[x].className != "box") {

							scrollTags(obj.childNodes[x]);
						} else {
							setBox(obj.childNodes[x]);
						}
					}
				}
			}
		}
	}		
			

	function setBox (obj) {

		app_global_box_style = obj_global_box_style.cloneNode(true);
				
		widthPx  = obj.offsetWidth  - 26;
		heightPx = obj.offsetHeight - 28;
		
		app_global_box_style.childNodes[1].style.width  = widthPx  + 'px';
		app_global_box_style.childNodes[7].style.height = heightPx + 'px';
		app_global_box_style.childNodes[5].style.width 	= widthPx  + 'px';
		app_global_box_style.childNodes[3].style.height = heightPx + 'px';
				
		obj.appendChild(app_global_box_style);
	}