var oldimg="04"; var isrc="";
var bstat04="";var bstat06="";var bstat08="";var bstat10="";var bstat12="";
function clickit(id)	{
	document.getElementById("snb04").src="http://localhost/diddybag3/images/bb_04.png";
	document.getElementById("snb06").src="http://localhost/diddybag3/images/bb_06.png";
	document.getElementById("snb08").src="http://localhost/diddybag3/images/bb_08.png";
	document.getElementById("snb10").src="http://localhost/diddybag3/images/bb_10.png";
	document.getElementById("snb12").src="http://localhost/diddybag3/images/bb_12.png";
	document.getElementById("snb"+id).style.display="";
	document.getElementById("snb"+id).src="http://localhost/diddybag3/images/bb_"+ 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));	}
function categories()	{
	var stat1="";
	var stat2=document.getElementById("rmenu").style.display;
	if (stat2=="none")	{ stat1="inline";	} else {	stat1="none";	}
	document.getElementById("rmenu").style.display=stat1;	}
function resizeme() {
	var thisheight = document.documentElement.clientHeight;
	document.getElementById("table1").style.height = thisheight+"px"; }

