	var content='<a class="mylink" href="comunicate.html"><font color="#006699"><b>1.</b> NOU: <br> ORDIN 1083/2011 - Proceduri eliberare carnete de munca </a><br><br> <a class="mylink" href="anunturi.html"><font color="#006699"><b>2.</b> Anunturi: <br> Salariile stabilite conform H.G. 1193/24.11.2010, cu aplicare din data de 01.01.2011 </a><br><br> <a class="mylink" href="inf_gen.html"> <font color="#006699"><b>3.</b> Lista: <br> Persoanele fizice si juridice abilitate sa desfasoare activitati in domeniul SSM </a><br><br><a class="mylink" href="inreg_ccm.html"><font color="#006699"><b>4.</b> IMPORTANT - Inregistrarea Contractelor Colective de Munca </a>'
	var boxheight=460;var boxwidth=108; 
	var speed=25;
	var pixelstep=1;  
	var godown=false; 
	var vShow = -1;
	var vOver = -1;

	var outer,inner,elementheight,ref,refX,refY;
	var w3c=(document.getElementById)?true:false;
	var ns4=(document.layers)?true:false;
	var ie4=(document.all && !w3c)?true:false;
	var ie5=(document.all && w3c)?true:false;
	var ns6=(w3c && navigator.appName.indexOf("Netscape")>=0)?true:false;
	var txt='';
	if(ns4)
	{
		txt = content;
	}
	else
	{
		txt+='<div onmouseover="vOver=1" onmouseout="vOver=-1"  id="ref"  style="position:relative; width:'+boxwidth+'; height:'+boxheight+';  " ></div>';
		txt+='<div onmouseover="vOver=1" onmouseout="vOver=-1"  id="outer"  style="position:absolute; width:'+boxwidth+'; height:'+boxheight+'; visibility:hidden;  overflow:hidden" >';
		txt+='<div onmouseover="vOver=1" onmouseout="vOver=-1"  id="inner"  style="position:absolute; visibility:hidden; left:4px; top:4px; width:'+(boxwidth-8)+'; overflow:hidden; cursor:default;">'+content+'</div>';
		txt+='</div>';
	}
	document.write(txt);

	function getElHeight(el)
	{
		if(!ns4)
		{
			if(ie4||ie5)
				return (el.style.height)? el.style.height : el.clientHeight;
			else 
				return (el.style.height)? parseInt(el.style.height):parseInt(el.offsetHeight);
		}
	}

	function getPageLeft(el)
	{
		var x;
		if(!ns4)
		{
		if(ie4||w3c)
		{
			x = 0;
			while(el.offsetParent!=null)
			{
				x+=el.offsetLeft;
				el=el.offsetParent;
			}
			x+=el.offsetLeft;
			return x;
		}
		}
	}

	function getPageTop(el)
	{
		var y;
		if(!ns4)
		{
		if(ie4||w3c)
		{
			y=0;
			while(el.offsetParent!=null)
			{
				y+=el.offsetTop;
				el=el.offsetParent;
			}
			y+=el.offsetTop;
			return y;
		}
		}
	}
	

	function scrollbox()
	{
		if(vOver < 0)
		{
		if(!ns4)
		{
			vShow = -vShow;
			
			inner.style.top=parseInt(inner.style.top)+((godown)? pixelstep: -pixelstep)+'px';
			if(godown)
			{
				if(parseInt(inner.style.top)>boxheight)inner.style.top=-elementheight+'px';
			}
			else
			{
				if(parseInt(inner.style.top)<2-elementheight)inner.style.top=boxheight+2+'px';
			}
		}
		}
	}


	window.onresize=function()
	{
		if(!ns4)
		{
			outer.style.left=getPageLeft(ref)+'px';
			outer.style.top=getPageTop(ref)+'px';
		}
	}


	window.onload=function()
	{
		outer=(ns4)?vri=1:(ie4)?document.all['outer']:document.getElementById('outer');
		inner=(ns4)?vri=1:(ie4)?document.all['inner']:document.getElementById('inner');
		ref=(ns4)?vri=1:(ie4)?document.all['ref']:document.getElementById('ref');
		elementheight=getElHeight(inner);
		if(!ns4)
		{
			outer.style.left=getPageLeft(ref)+'px';
			outer.style.top=getPageTop(ref)+'px';
			inner.style.top=((godown)? -elementheight : boxheight)+'px';
			inner.style.clip='rect(0px, '+(boxwidth-4)+'px, '+(elementheight)+'px, 0px)';
			outer.style.visibility="visible";
			inner.style.visibility="visible";
		}
		setInterval('scrollbox()',speed);
	}
