$(document).ready(function(){				
	function displayTopCorners(o){
		var top, b1, b2, b3, b4;					
		top=document.createElement("b");
		top.className="top"; 
		
		b1=document.createElement("b");
		b1.className="b1";				
		b2=document.createElement("b");
		b2.className="b2";												
		b3=document.createElement("b");
		b3.className="b3";	
		b4=document.createElement("b");
		b4.className="b4";						
		
		o.insertBefore(top,o.firstChild);
		top.appendChild(b1);
		top.appendChild(b2);
		top.appendChild(b3);
		top.appendChild(b4);
	}
	function displayBottomCorners(o){
		var bottom, b1b, b2b, b3b, b4b;					
		bottom=document.createElement("b");
		bottom.className="bottom";
		
		b1b=document.createElement("b");
		b1b.className="b1b";				
		b2b=document.createElement("b");
		b2b.className="b2b";												
		b3b=document.createElement("b");
		b3b.className="b3b";	
		b4b=document.createElement("b");
		b4b.className="b4b";			
		
		o.appendChild(bottom);					
		bottom.appendChild(b4b);
		bottom.appendChild(b3b);				
		bottom.appendChild(b2b);
		bottom.appendChild(b1b);					
	}				
	
	$("div.corners.top").each(function(){displayTopCorners(this);});
	$("div.corners.bottom").each(function(){displayBottomCorners(this);});
	$("div.corners.full").each(function(){displayTopCorners(this);displayBottomCorners(this);});
});
