/*****************************
***************************************************
    Add Groups Description
    -----------------------------------------------------------------------------
    The following script will append a description under the "Find Groups" title
    within the Groups tab
********************************************************************************/

$E.onDOMReady(function(){ 


	var url = window.location.href.replace(/^http:\/\//gi,'');
	
	if(url == "physicianspracticetoolbox.com/group") {

		// Create a new DIV element and give it some content
		descriptionDiv = document.createElement("div");
		descriptionDiv.style.width = "483px";
		descriptionDiv.style.position = "relative";
		descriptionDiv.style.padding = "15px 15px 15px 10px";
		descriptionDiv.innerHTML = "<div id=\"roundedcornr_box_712816\" style=\"background: #E6E6E6\;\">"
			+ "<div id=\"roundedcornr_top_961745\" style=\"background: url(http://static.sixent.com/content/1/0/85720001/69/roundedcornr_961745_tr.png) no-repeat top right\; width: 100%\; height: 10px\; font-size: 1px\;\">"
				+ "<div style=\"background: url(http://static.sixent.com/content/1/0/85720001/66/roundedcornr_961745_tl.png) no-repeat top left\; width: 100%\; height: 10px\; font-size: 1px\;\"></div>"
				+ "</div>"
				+ "<div style=\"padding: 7px 10px\;\">"
					+ "<div style=\"float:left\; padding: 0px 7px 7px 0px\;\">"
						+ "<img width=50px src=\"http://static.sixent.com/content/1/0/85720001/65/ppt-group-info-icon.png\" />"
					+ "</div>"
					+ "<div id=\"roundedcornr_content_961745\">"
						+ "Groups organize tools and content like webinars, self assessments, expert tips, etc., into key areas.   You have automatically been enrolled into groups we think may be of interest to you.   Click on a group below to view that group's content or search for other groups (<a href=\"http://physicianspracticetoolbox.com/groups\">here</a>) you might find of interest." 	
					+ "</div>"
				+ "</div>"
				+ "<div id=\"roundedcornr_bottom_961745\" style=\"background: url(http://static.sixent.com/content/1/0/85720001/67/roundedcornr_961745_br.png) no-repeat bottom right\; width: 100%\; height: 10px\; font-size: 1px\;\">"
				+ "<div style=\"background: url(http://static.sixent.com/content/1/0/85720001/68/roundedcornr_961745_bl.png) no-repeat bottom left\; width: 100%\; height: 10px\; font-size: 1px\;\"></div>"
			+ "</div>"
		+ "</div>";
									   
									   
									   
		// Add the newly created element and it's content into the DOM
		existing_div = $("rm-groupSets");
		parent_element = existing_div.parentNode;
		parent_element.insertBefore(descriptionDiv, existing_div);
		
	
	}
})