timerID = 0;
function stateDiv(stateDom, stateNs, str, topPos, leftPos)
	{
	topPos = getScrollPos();
	strClass = 'dropLayer'
	startHtml = '<table border="0" CELLPADDING="0" CELLSPACING="0"><TR><TD VALIGN="top" background="images/LayerverticalLine.gif" width="4"><img src="images/hd_spacer_e204.gif" width="4"></TD><TD VALIGN="top" class="' +strClass +'">'	
	endHtml = '</TD><TD VALIGN="top" background="images/LayerverticalLine.gif" width="4"><img src="images/hd_spacer_e204.gif" width="4"></TD></TR><TR><TD VALIGN="top"><img src="images/layerLEftCorner.gif" width="4" height="4"></TD><TD VALIGN="top"><img src="images/horizontalline.gif" width="200" height="4"></TD><TD VALIGN="top"><img src="images/layerRightCorner.gif" width="4" height="4"></TD></TR></TABLE>'
	strHtml = startHtml + str + endHtml
	moveDiv ('dropDiv', topPos, leftPos)
	transformDiv ('dropDiv', stateDom, stateNs, strHtml, 'svart')
	stopCountDown();	
	
	if(document.layers)
		{
		
		}
	else
		{
		if(document.all('iFrameOverFlash'))
			{
			divStyle = document.all('dropDiv');		
			objStyle = document.all('iFrameOverFlash').style;	
			
			
			objStyle.width = divStyle.offsetWidth;
			objStyle.height = divStyle.offsetHeight;
			
			objStyle.left=leftPos;					
			objStyle.top=topPos;	
			objStyle.visibility = stateDom;
			}
		else if(document.all('iFrameOverFlash'))
			{
			divStyle = document.getElementyById('dropDiv');		
			objStyle = document.getElementyById('iFrameOverFlash').style;	
			
			
			objStyle.width = divStyle.offsetWidth;
			objStyle.height = divStyle.offsetHeight;
			
			objStyle.left=leftPos;					
			objStyle.top=topPos;	
			objStyle.visibility = stateDom;
			}
		}
	}

function startCountDown() {
    timerID=setTimeout('stateDiv("hidden", "hide", "", 0, 0)',4000);
}

function stopCountDown() {
	//alert("här")
	clearTimeout(timerID);
}

