function movestar(padding)
{
	document.getElementById('menustar').style.top=padding;
}
function resize()
{
//	document.getElementById('rightPadTable').style.height=document.getElementById('centerTable').clientHeight; //mozilla doesnt work
//top, 1liners
	document.getElementById('rightPadTable').style.height=document.getElementById('centerTable').scrollHeight;
	document.getElementById('rightPadTable2').style.height=document.getElementById('centerTable2').scrollHeight;
	document.getElementById('rightTable').style.height=document.getElementById('centerTable').scrollHeight;

//реклама между собой
var maxheight=document.getElementById('advTableRight').scrollHeight;
	if(maxheight<document.getElementById('advTableLeft').scrollHeight) maxheight=document.getElementById('advTableLeft').scrollHeight;
	document.getElementById('advTableRight').style.height=maxheight;
	document.getElementById('advTableLeft').style.height=maxheight;
	document.getElementById('advTableCenter').style.height=maxheight;

//реклама
	document.getElementById('lifeTd').style.paddingBottom="50px";
var advDiff=document.getElementById('advTd').offsetTop-document.getElementById('advTableRight').offsetTop;
	if(advDiff<0) {advDiff=-advDiff+parseFloat(document.getElementById('lifeTd').style.paddingBottom);document.getElementById('lifeTd').style.paddingBottom=advDiff;}
	else {document.getElementById('advTableRight').style.marginTop=advDiff;}

//форум и полоски справа
var forum=document.getElementById('rightTable2').offsetTop+document.getElementById('rightTable2').scrollHeight;
var bottd=document.getElementById('bottomTd').offsetTop+parseFloat(document.getElementById('bottomTd2').style.paddingBottom);
	if(bottd-forum<0) {document.getElementById('bottomTd2').style.paddingBottom=forum-bottd+parseFloat(document.getElementById('bottomTd2').style.paddingBottom);}
	else {document.getElementById('rightTable2').style.height=document.getElementById('rightTable2').scrollHeight+bottd-forum;}

//	alert(forum-bottd);
//	document.getElementById('advtd').style.height=document.getElementById('advtr').scrollHeight-43;
//	alert(parseFloat(document.getElementById('lifeTd').style.paddingBottom));
//	document.getElementById('advTableLeft').style.marginTop=0;


}


function resize_in()
{

//реклама между собой
var maxheight=document.getElementById('advTableRight').scrollHeight;
	if(maxheight<document.getElementById('advTableLeft').scrollHeight) maxheight=document.getElementById('advTableLeft').scrollHeight;
	document.getElementById('advTableRight').style.height=maxheight;
	document.getElementById('advTableLeft').style.height=maxheight;
	document.getElementById('advTableCenter').style.height=maxheight;
//	document.getElementById('advTd').style.height=maxheight-114;
	document.getElementById('advDiv').style.height=maxheight-114;

//реклама
	document.getElementById('lifeTd').style.paddingBottom="50px";
var advDiff=document.getElementById('advTd').offsetTop-document.getElementById('advTableRight').offsetTop;
	if(advDiff<0) {advDiff=-advDiff+parseFloat(document.getElementById('lifeTd').style.paddingBottom);document.getElementById('lifeTd').style.paddingBottom=advDiff;}
	else {document.getElementById('advTableRight').style.marginTop=advDiff;}


//document.getElementById('label').style.top=document.getElementById('labelPoint').offsetTop+150;
//alert(document.getElementById('labelPoint').scrollHeight);
document.getElementById('label').style.top=document.getElementById('labelPoint').offsetTop+document.getElementById('labelPoint').scrollHeight+118;//135;

}

function moveUpIE(id)
{
	var oTable;
	if(document.all){
		oTable = document.getElementById('chartTable').firstChild;
	} else {
		oTable = document.getElementById('chartTable').childNodes[1];
	}
	var num=document.getElementById(id).rowIndex;
	if(num > 0){
		oRow1 = document.getElementById(id);
		oRow2 = oRow1.previousSibling;
		if (!document.all) {
			if(oRow2.nodeType == 3){
				oTable.removeChild(oRow2);
				oRow2 = oRow1.previousSibling;
			}
		}
		oTable.insertBefore(oRow1,oRow2)
	}
	return;
}
function moveDownIE(id)
{
	var oTable;
	if(document.all){
		oTable = document.getElementById('chartTable').firstChild;
	} else {
		oTable = document.getElementById('chartTable').childNodes[1];
	}
	var num=document.getElementById(id).rowIndex;
	if(document.getElementById(id).nextSibling){
		oRow1 = document.getElementById(id);
		oRow2 = oRow1.nextSibling;
		if (!document.all) {
			if(oRow2.nodeType == 3){
				oTable.removeChild(oRow2);
				if(oRow1.nextSibling){
					oRow2 = oRow1.nextSibling;
				} else {
					return;
				}
			}
		}
		oTable.insertBefore(oRow2,oRow1);
	}
	return;
}

function moveUp(id)
{
	var thisDiv=document.getElementById(id);
	var prevDiv=thisDiv.nextSibling;
	var temp=thisDiv.innerHTML;
	thisDiv.innerHTML=prevDiv.innerHTML;
	prevDiv.innerHTML=temp;
}

function show_mp3_player (id, name_mp3) {
    var player='<object type="application/x-shockwave-flash" height="70" width="350" data="http://www.dfmrostov.ru/pictures/dinamit/ump3player_500x70.swf"><param value="transparent" name="wmode" /><param value="true" name="allowFullScreen" /><param value="always" name="allowScriptAccess" /><param value="http://www.dfmrostov.ru/pictures/dinamit/ump3player_500x70.swf" name="movie" /><param value="way='+name_mp3+'&amp;swf=http://www.dfmrostov.ru/pictures/dinamit/ump3player_500x70.swf&amp;w=470&amp;h=70&amp;time_seconds=0&amp;autoplay=1&amp;q=&amp;skin=white&amp;volume=70&amp;comment=" name="FlashVars" /></object>';
    //var player='';#<OBJECT classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject"  ID="v_player" standby="Loading Microsoft Media Player components..." codebase="http://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=5,1,51,415" height="45" width="260"><param name="AutoStart" value="true"></param><PARAM NAME="AutoRewind" VALUE="True"><param name="target" value="myself"></param><param name="src" value="'+name_mp3+'"></param><param name="ShowPositionControls" value="0"><PARAM NAME="Volume" value="0"><param name="pluginspage" value="http://www.microsoft.com/windows/mediaplayer/download/default.asp"></param><EMBED border="0" src="'+name_mp3+'" width="260" height="45" target="myself" type="video/x-ms-asf-plugin" controller="true" bgcolor="#BBBBB8" Volume="0" ShowPositionControls="0" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp"></EMBED></OBJECT>';
    document.getElementById(id).innerHTML=player;
    document.getElementById(id).style.display='block';
}