
	$("div#TMG_home-tools div.TMG_open h2").after("<a class='TMG_control' href='#'>close</a>");
	$("div#TMG_home-tools div.TMG_close h2").after("<a class='TMG_control' href='#'>open</a>");
	
	
	$("div#TMG_home-tools div.TMG_close a.TMG_control").toggle(
		function () {
			var parentTag = $(this).parent();
			$(parentTag).addClass("open").removeClass("close");
			$(this).text("close");
			return false;
		},
		function () {
			var parentTag = $(this).parent();
			$(parentTag).addClass("close").removeClass("open");
			$(this).text("open");
			return false;
		}
	);	
	
	
	$("div#home-tools div.open a.control").toggle(
		function () {
			var parentTag = $(this).parent();
			$(parentTag).addClass("close").removeClass("open");
			$(this).text("open");
			return false;
		},
		function () {
			var parentTag = $(this).parent();
			$(parentTag).addClass("open").removeClass("close");
			$(this).text("close");
			return false;
		}
	);	
	
	
	$("div#QOF-tools div.open a.control").toggle(
		function () {
			var parentTag = $(this).parent();
			$(parentTag).addClass("close").removeClass("open");
			$(this).text("open");
			return false;
		},
		function () {
			var parentTag = $(this).parent();
			$(parentTag).addClass("open").removeClass("close");
			$(this).text("close");
			return false;
		}
	);	
	
	
	/*
	$("ul.home-nav li.home-guidance-latest a").click(function(){
		$("div.home-guidance-latest").show();
		$("div.home-guidance-tools").hide();
		$("div.home-guidance-focus").hide();
		$("ul.home-nav li.home-guidance-latest").addClass("active");
		$("ul.home-nav li.home-guidance-tools").removeClass("active");
		$("ul.home-nav li.home-guidance-focus").removeClass("active");
		return false;
	});
	
	$("ul.home-nav li.home-guidance-tools a").click(function(){
		$("div.home-guidance-latest").hide();
		$("div.home-guidance-tools").show();
		$("div.home-guidance-focus").hide();
		$("ul.home-nav li.home-guidance-latest").removeClass("active");
		$("ul.home-nav li.home-guidance-tools").addClass("active");
		$("ul.home-nav li.home-guidance-focus").removeClass("active");
		return false;
	});
	
	$("ul.home-nav li.home-guidance-focus a").click(function(){
		$("div.home-guidance-latest").hide();
		$("div.home-guidance-tools").hide();
		$("div.home-guidance-focus").show();
		$("ul.home-nav li.home-guidance-latest").removeClass("active");
		$("ul.home-nav li.home-guidance-tools").removeClass("active");
		$("ul.home-nav li.home-guidance-focus").addClass("active");
		return false;
	});
	*/
	
	$("div.home-latest-news span.controls-previous").replaceWith("<a href='#' class='controls-previous'><span>Previous</span></a>");
	$("div.home-latest-news h2").after("<a href='#' class='controls-next'><span>Next</span></a>");
	$("div.home-latest-news div").append("<p class='pagination'>page 1 <span>of 6</span></p>");
	
	
	/*
	$("#header .text").focus(function () {
         if ($(this).val("Search")){
		 	$(this).val("");
		 }
    });
	$("#header .text").blur(function () {
         if ($(this).val("")){
		 	$(this).val("Search");
		 }
    });
    */

	
	
