var comCount=0;
var isOver=false;

function setGraficsMarkers()
	{
	for(i=1;i<7;i++)
		{
		marker = document.getElementById("m"+i);
		width = marker.offsetWidth;
		width2 = parseInt(width / 2);
		leftPos = marker.offsetLeft - width2 + 1;
		marker.style.left = leftPos + "px";
		}
	setTimeout("commentsTimer()",2000);
	}

function showComments(marker,comments)
	{
	mWidth = marker.offsetWidth;
	mLeft = marker.offsetLeft;
	mTop = marker.offsetTop;
	cBlock = document.getElementById("gComments");
	document.getElementById("gCommentsText").innerHTML = document.getElementById(comments).innerHTML;
	
	cLeft = mWidth + mLeft;
	
	cBlock.style.left = cLeft + "px";
	cBlock.style.display = "block";
	
	cHeight = cBlock.offsetHeight;
	cHeight2 = parseInt(cHeight / 2);
	cTop = mTop + 10 - cHeight2;
	cBlock.style.top = cTop + "px";
	
	}

function hideComments()
	{
	document.getElementById("gCommentsText").innerHTML = "";
	cBlock = document.getElementById("gComments");
	cBlock.style.top = "0px";
	cBlock.style.left = "0px";
	cBlock.style.display = "none";
	}

function setOver()
	{
	comCount=0;
	isOver=true;
	}

function commentsTimer()
	{
	if(isOver==false)
		{
		comCount++;
		showComments(document.getElementById("m"+comCount),"mc"+comCount);
		if(comCount==6) comCount=0;
		setTimeout("commentsTimer()",4000);
		}
	}