//<![CDATA[
$(document).ready(function() {
		   
	// rework simplified classes in document
	
	$("a[target='lightbox']").fancybox(); // Select all links with lightbox class and turn into lightbox views
	
	// shaded boxes
	var getShadedBoxColours=["blue", "white", "pink", "mustard", "orange", "green", "blueyell"];
	for (getCounter = 0; getCounter < getShadedBoxColours.length; getCounter++)
	{
		$("." +	getShadedBoxColours[getCounter] + "_shaded_box").before("<div class=\"" +	getShadedBoxColours[getCounter] 
			+ "_shaded_box_top\"><div><div></div></div></div>");
		$("." +	getShadedBoxColours[getCounter] + "_shaded_box").after("<div class=\"" + getShadedBoxColours[getCounter] + "_shaded_box_bottom\"><div><div></div></div></div>");
		$("." +	getShadedBoxColours[getCounter] + "_shaded_box").wrap("<div class=\"" + getShadedBoxColours[getCounter] + "_shaded_box_main\"><div></div></div>")
		$("." +	getShadedBoxColours[getCounter] + "_shaded_box").removeClass(getShadedBoxColours[getCounter] + "_shaded_box");
	}
	
	// rounded boxes
	var getRoundedBoxColours=["grey", "beige", "green", "brown", "orange", "pink", "ltblue", "dkblue"];
	for (getCounter = 0; getCounter < getRoundedBoxColours.length; getCounter++)
	{
		$("." +	getRoundedBoxColours[getCounter] + "_rounded_box").wrap("<div class=\"" + getRoundedBoxColours[getCounter] + "_rounded_box_main\"><div><div><div><div></div></div></div></div></div>")
		$("." +	getRoundedBoxColours[getCounter] + "_rounded_box").removeClass(getRoundedBoxColours[getCounter] + "_rounded_box");
	}
	
	
	$("#admintabs").tabs();
	
	
});
//]]>


