function resizeMe(obj)	{ 
	docHeight = document.body.scrollHeight;
	document.getElementById(obj).style.height = docHeight+"px";	 }
var oldimg="04"; var isrc="";
var bstat04="";var bstat06="";var bstat08="";var bstat10="";var bstat12="";
function clickit(id)	{
	document.getElementById("sb04").src="http://www.embroidershoppe.com/images/sb_04.png";
	document.getElementById("sb06").src="http://www.embroidershoppe.com/images/sb_06.png";
	document.getElementById("sb08").src="http://www.embroidershoppe.com/images/sb_08.png";
	document.getElementById("sb10").src="http://www.embroidershoppe.com/images/sb_10.png";
	document.getElementById("sb12").src="http://www.embroidershoppe.com/images/sb_12.png";
	document.getElementById("sb"+id).src="http://www.embroidershoppe.com/images/sb_"+ id +"a.png";
	document.getElementById("ddframe").src="bar_"+id+".aspx";	}
function sprite(x)	{
	for (i=4; i > 0; i--) {
		document.getElementById("m"+i).style.display="none";	}
	document.getElementById("m"+x).style.display="";	}
function hide(x)	{
	document.getElementById("m"+x).style.display="none";	}
function show(x)	{
	document.getElementById("m"+x).style.display="";	}
function highlightOn(obj)	{
	var cell=obj;
	//obj.style.color="#ffffff";
	//obj.style.backgroundColor="#5b6f4a";
	return false;	}
function highlightOff(obj)	{
	var cell=obj;
	obj.style.color="#323545";
	obj.style.backgroundColor="transparent";
	return false;	}
function resizeMe(id)	{ 
	docHeight = getDocHeight();
	document.getElementById(id).style.height = docHeight*1+"px";		}
function findElementCoords(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) 	{
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;	}
	}
	return [curtop];	}
function getDocHeight() {
	var D = document;
	return Math.max(
	Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
	Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
	Math.max(D.body.clientHeight, D.documentElement.clientHeight));	}
