function myDom(){
		var isIE			= false;
		this.currentlyOpen	= "";
	this.evaluateLayers	= function(myEvent){
		this.aDiv = document.getElementsByTagName('div');
		thiscount	= this.aDiv.length;		
	}
	//	Get Object for usage
	//------------------------------------------------
	this.getObject  = function(name){
		if (document.getElementById){
		   OBJ = document.getElementById(name);
		}
		else if (document.all){
		   OBJ = document.all[name];
		}
		else if (document.layers){
			if (document.layers[name]){
				OBJ = document.layers[name];
			}
		}
		return OBJ;
	}
	//	find x and y positions
	//------------------------------------------------
	this.findPosX = function(OBJ){
		var curleft = 0;
		if (OBJ.offsetParent){
			while (OBJ.offsetParent){
				curleft += OBJ.offsetLeft
				OBJ = OBJ.offsetParent;
			}
		}
		else if (OBJ.x){curleft += OBJ.x;}
		return curleft;
	}

	this.findPosY = function(OBJ){
		var curtop = 0;
		if (OBJ.offsetParent){
			while (OBJ.offsetParent){
				curtop += OBJ.offsetTop
				OBJ = OBJ.offsetParent;
			}
		}
		else if (OBJ.y){curtop += OBJ.y;}
		return curtop;
	}

	this.findWidth = function(OBJ){
		var objWidth = 0;
		if (OBJ.offsetParent){
			while (OBJ.offsetParent){
				objWidth += OBJ.offsetWidth;
				OBJ = OBJ.offsetWidth;
			}
		}
		else if (OBJ.x){objWidth += OBJ.x;}
		return objWidth;
	}

	this.findHeight = function(OBJ){
		var objHeight = 0;
		if (OBJ.offsetParent){
			while (OBJ.offsetParent){
				objHeight += OBJ.offsetHeight;
				OBJ = OBJ.offsetHeight;
			}
		}
		else if (OBJ.y){objHeight += OBJ.y;}
		return objHeight;
	}
}
//------------------------------------------------
//	Get Object for usage
//------------------------------------------------
function getObject(id){
	//	retrieve object
	//------------------------------
	if (document.getElementById){
	   OBJ = document.getElementById(id);
	}
	else if (document.all){
	   OBJ = document.all[id];
	}
	else if (document.layers){
		if (document.layers[id]){
			OBJ = document.layers[id];
		}
	}
	//	return object to caller
	//------------------------------
	return OBJ;
}
//------------------------------------------------
//	show hide layers
//------------------------------------------------
function showHide(id){
	//	retrieve object
	//------------------------------
	OBJ	= getObject(id);

	//	check state and reset
	//------------------------------
	OBJ.style.visibility	= OBJ.style.visibility == "hidden" ? "visible" : "hidden";
	OBJ.style.display		= OBJ.style.display == "none" ? "block" : "none";

}
function hide(id){
	//	retrieve object
	//------------------------------
	OBJ	= getObject(id);

	//	check state and reset
	//------------------------------
	OBJ.style.visibility	= "hidden";
	OBJ.style.display		= "none";
}

function show(id){
	//	retrieve object
	//------------------------------
	OBJ	= getObject(id);
	//	check state and reset
	//------------------------------
	OBJ.style.visibility	= "visible";
	OBJ.style.display		= "block";
	//	register layer
	//------------------------------
	OBJ.style.zIndex		= 999;
}
//------------------------------------------------
//------------------------------------------------
//	add flash to page
//------------------------------------------------
function addFlash(id, w, h, src){
	OBJ		= getObject(id);
	OBJ.innerHTML	= "";

	flashOBJ		= '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"';
	flashOBJ		+= 'width="' + w + '"';
	flashOBJ		+= 'height="' + h + '">';
	flashOBJ		+= '<param name="movie" value="' + src + '">';
	flashOBJ		+= '<param name="quality" value="high" >';
	flashOBJ		+= '<param name="menu" value="false" />';
	flashOBJ		+= '<param name="wmode" value="transparent">';
	flashOBJ		+= '<embed src="' + src + '"';
	flashOBJ		+= 'quality="high"';
	flashOBJ		+= 'pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	flashOBJ		+= 'type="application/x-shockwave-flash" ';
	flashOBJ		+= 'width="' + w + '" ';
	flashOBJ		+= 'height="' + h + '" ';
	flashOBJ		+= 'menu="false"';
	flashOBJ		+= 'wmode="transparent"></embed>';
	flashOBJ		+= '</object>';

	OBJ.innerHTML	= flashOBJ;
}
