
function flashOverlay(anchorDiv,flashDiv,newHeight,newWidth,xOffset,yOffset,active){
	//FlashDiv is the div within the anchorDiv that contains the flash file
	//newWidth changes the flash file width
	//newHeight changes the flash file Height
	//xOffset will change the abosolute position if the value is set to 0 then the flashDiv x will be equal to the anchorDiv x
	//yOffset will change the abosolute position if the value is set to 0 then the flashDiv y will be equal to the anchorDiv y
	//active if set to 1 then the flashDiv Styles will change to position:absolute if set to 0 then it will change the style back to normal
	flashObject=document.getElementById(flashDiv);
	anchorObject=document.getElementById(anchorDiv);
	//Set the style for the flashDiv
	if(active==1){
		flashObject.style.position="absolute";
	}
	
	//Set the new height
	flashObject.height=newHeight;
	//Set the new width
	flashObject.width=newWidth;
	
	//These Functions help IE find the values of the anchor div
	function findPosX(obj)
	{
	var curleft = 0;
	 if(obj.offsetParent)
	while(1)
	{
	curleft += obj.offsetLeft;
	if(!obj.offsetParent)
	break;
	 obj = obj.offsetParent;
	}
	else if(obj.x)
	curleft += obj.x;
	return curleft;
	}
	
	function findPosY(obj)
	 {
	var curtop = 0;
	if(obj.offsetParent)
	while(1)
	{
	curtop += obj.offsetTop;
	if(!obj.offsetParent)
	break;
	obj = obj.offsetParent;
	}
	else if(obj.y)
	curtop += obj.y;
	return curtop;
	}
	
	
	//Set the Top And Left values of the div
	//flashObject.style.left=parseInt(xOffset)+(findPosX(anchorObject))+'px';
	//flashObject.style.top=parseInt(yOffset)+(findPosY(anchorObject))+'px';
	flashObject.style.zIndex="1";
	flashObject.style.left=parseInt(xOffset)+'px';
	flashObject.style.top=parseInt(yOffset)+'px';
	
	
}
